public pageRealEstate()
 {
     InitializeComponent();
     ActiveListingIndex = 0;
     ThemeManager.AddThemeChangedHandler(this, OnThemeChanged);
     UpdateTheme(ThemeManager.ApplicationThemeName);
 }
 protected override void OnAttached()
 {
     base.OnAttached();
     NavBar.FocusVisualStyle = null;
     NavBar.Focusable        = true;
     NavBar.PreviewKeyDown  += OnPreviewKeyDown;
     NavBar.Loaded          += OnLoaded;
     ThemeManager.AddThemeChangedHandler(NavBar, OnThemeChanged);
     UpdateKeyboardProperties();
     NavBar.Focus();
     NavBar.PreviewMouseDown += NavBar_PreviewMouseDown;
 }
 protected override void OnAttached()
 {
     base.OnAttached();
     ThemeManager.AddThemeChangedHandler(AssociatedObject, OnWindowThemeChanged);
     OnWindowThemeChanged(AssociatedObject, new ThemeChangedRoutedEventArgs(ThemeManager.GetThemeName(AssociatedObject)));
 }
Beispiel #4
0
 private ThemeLoader()
 {
     platformLoader = DependencyService.Get <IThemeLoader>();
     ThemeManager.AddThemeChangedHandler(this);
 }
 public TreeListDemoModule()
 {
     ThemeManager.AddThemeChangedHandler(this, ThemeNameChanged);
 }