Пример #1
0
        private void WireDataContext()
        {
            this.shellViewModel = (ShellViewModel)this.DataContext;

            this.shellViewModel.ViewSettings.WhenAnyValue(x => x.AccentColor)
                .Subscribe(ChangeAccent);

            this.shellViewModel.ViewSettings.WhenAnyValue(x => x.AppTheme)
                .Subscribe(ChangeAppTheme);
        }
Пример #2
0
 private void WireDataContext()
 {
     this.shellViewModel = (ShellViewModel)this.DataContext;
 }