/// <summary> /// Creates and initializes a new <see cref="CloudExplorerOptionsPage"/>. /// </summary> /// <param name="parentModel"></param> public CloudExplorerOptionsPage(ICloudExplorerOptions parentModel) { InitializeComponent(); ViewModel = new CloudExplorerOptionsPageViewModel(parentModel.ResetSettings); DataContext = ViewModel; parentModel.SavingSettings += UpdateBindingSources; AddHandler(UIElementDialogPage.DialogKeyPendingEvent, new RoutedEventHandler(OnDialogKeyPending)); }
public SerializableCloudExplorerOptions(ICloudExplorerOptions parentOptions) { _parentOptions = parentOptions; }