Esempio n. 1
0
        private void NewButton_Click(object sender, RoutedEventArgs e)
        {
            RiskMonitor.InstrumentSelectorViewModel vm   = new RiskMonitor.InstrumentSelectorViewModel();
            RiskMonitor.InstrumentSelectorView      view = new RiskMonitor.InstrumentSelectorView();

            view.DataContext = vm;

            view.Width  = 300;
            view.Height = 300;
            view.ShowDialog();

            var newWindow = new Window();

            newWindow.Width   = 300;
            newWindow.Height  = 300;
            newWindow.Content = view.SelectedInstBaseVM_.View_;
            newWindow.Show();
        }
        private void NewButton_Click(object sender, RoutedEventArgs e)
        {
            RiskMonitor.InstrumentSelectorViewModel vm = new RiskMonitor.InstrumentSelectorViewModel();
            RiskMonitor.InstrumentSelectorView view = new RiskMonitor.InstrumentSelectorView();
            
            view.DataContext = vm;

            view.Width = 300;
            view.Height = 300;
            view.ShowDialog();

            var newWindow = new Window();
            newWindow.Width = 300;
            newWindow.Height = 300;
            newWindow.Content = view.SelectedInstBaseVM_.View_;
            newWindow.Show();

        }