public override void OnApplyTemplate() { Panel.SetZIndex((UIElement)this, int.MaxValue); this.RenderTransform = (Transform) new TranslateTransform(-this.MenuWidth, 0.0); (this.FindName("MenuColumn") as ColumnDefinition).Width = new GridLength(this.MenuWidth); this.State = this.State; this.Theme = this.Theme; this.ShadowBackground = this.ShadowBackground; }
private SideMenu MapMenuToTheme(SideMenuTheme theme) { //this should not be necesray but colors are not changing correctly //when changing theme porperty... maybe its needed to implement INotifyPropertyChanged return(new SideMenu { MenuWidth = Menu.MenuWidth, Theme = theme, Menu = Menu.Menu }); }
private SideMenu MapMenuToTheme(SideMenuTheme theme) { //this should not be necesray but colors are not changing correctly //when changing theme porperty... maybe its needed to implement INotifyPropertyChanged return new SideMenu { MenuWidth = Menu.MenuWidth, Theme = theme, Menu = Menu.Menu }; }
public override void OnApplyTemplate() { Panel.SetZIndex(this, int.MaxValue); RenderTransform = new TranslateTransform(-MenuWidth, 0); //(FindName("MenuColumn") as ColumnDefinition).Width = new GridLength(MenuWidth); //this is a little hack to fire propertu changes. //wpf so complex, it could be much simple... State = State; Theme = Theme; ShadowBackground = ShadowBackground; ButtonBackground = ButtonBackground; ButtonHover = ButtonHover; }
public override void OnApplyTemplate() { Panel.SetZIndex(this, int.MaxValue); RenderTransform = new TranslateTransform(-MenuWidth, 0); (FindName("MenuColumn") as ColumnDefinition).Width = new GridLength(MenuWidth); //this is a little hack to fire propertu changes. //wpf so complex, it could be much simple... State = State; Theme = Theme; ShadowBackground = ShadowBackground; ButtonBackground = ButtonBackground; ButtonHover = ButtonHover; }
public SideMenu() { this.InitializeComponent(); this.Theme = SideMenuTheme.Default; this.ClosingType = ClosingType.Auto; }