コード例 #1
0
 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;
 }
コード例 #2
0
 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
     });
 }
コード例 #3
0
 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
     };
 }
コード例 #4
0
        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;
        }
コード例 #5
0
        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;
        }
コード例 #6
0
 public SideMenu()
 {
     this.InitializeComponent();
     this.Theme       = SideMenuTheme.Default;
     this.ClosingType = ClosingType.Auto;
 }