public SpreadSheetWidgetSettingVisual(SpreadSheetWidgetViewModel ViewModel, SpreadSheetWidgetVisual View)
        {
            InitializeComponent();
            this.DataContext = ViewModel;
            this._view       = View;
            this._viewModel  = ViewModel;

            this.txtXml.Text = _viewModel._ViewerModel.Parameters.XML;
        }
Ejemplo n.º 2
0
        public void ShowSettings()
        {
            SpreadSheetWidgetViewModel     settingsViewModel = new SpreadSheetWidgetViewModel(this.ViewModel, this.GenericWindow);
            SpreadSheetWidgetSettingVisual window            = new SpreadSheetWidgetSettingVisual(settingsViewModel, this.GenericWindow);

            window.Owner = Application.Current.MainWindow;
            window.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            window.ShowDialog();
        }
        public SpreadSheetWidgetSettingVisual(SpreadSheetWidgetViewModel ViewModel, SpreadSheetWidgetVisual View)
        {
            InitializeComponent();
            this.DataContext = ViewModel;
            this._view       = View;
            this._viewModel  = ViewModel;

            this.chkVisible.IsChecked = _viewModel._ViewerModel.Parameters.Visible;
            this.Path.Text            = _viewModel._ViewerModel.Parameters.Path;
        }