WPF从Usercontrol中访问当前App与mainwindow成员

(App.Current as App).test = 2;
(Application.Current.MainWindow as MainWindow).test = 3;

你可能感兴趣的:(开发)