private void Button_Click(object sender, RoutedEventArgs e) {
    MyClassProperty = new MyClass
    {
       Name = "lold"
    };
    DetailWindow win = new DetailWindow();
    win.grid.Resources["MainWindowResource"] = this;
    win.ShowDialog();
 }
Beispiel #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MyClassProperty = new MyClass
            {
                Name = "lold"
            };
            DetailWindow win = new DetailWindow();

            win.grid.Resources["MainWindowResource"] = this;
            win.ShowDialog();
        }