public MenuItem() { this.DefaultStyleKey = typeof(MenuItem); this.Loaded += new RoutedEventHandler(MenuItem_Loaded); if (Items == null) { Items = new ObservableCollection <MenuItem>(); } if (string.IsNullOrEmpty(MenuText)) { MenuText = "Default"; } MouseOverTimer = new DispatcherTimer(); MouseOverTimer.Tick += (se, ev) => { MouseOverTimer.Stop(); ShowDropDown(); }; isNested = false; parentMenuBarItem = null; parentMenuItem = null; }
public MenuItem() { this.DefaultStyleKey = typeof(MenuItem); this.Loaded += new RoutedEventHandler(MenuItem_Loaded); if (items == null) items = new ObservableCollection<MenuItem>(); if (string.IsNullOrEmpty(MenuText)) MenuText = "Default"; isNested = false; parentMenuBarItem = null; parentMenuItem = null; }
public MenuItem() { this.DefaultStyleKey = typeof(MenuItem); this.Loaded += new RoutedEventHandler(MenuItem_Loaded); if (items == null) { items = new ObservableCollection <MenuItem>(); } if (string.IsNullOrEmpty(MenuText)) { MenuText = "Default"; } isNested = false; parentMenuBarItem = null; parentMenuItem = null; }
public MenuItem() { this.DefaultStyleKey = typeof(MenuItem); this.Loaded += new RoutedEventHandler(MenuItem_Loaded); if (Items == null) Items = new ObservableCollection<MenuItem>(); if (string.IsNullOrEmpty(MenuText)) MenuText = "Default"; MouseOverTimer = new DispatcherTimer(); MouseOverTimer.Tick += (se, ev) => { MouseOverTimer.Stop(); ShowDropDown(); }; isNested = false; parentMenuBarItem = null; parentMenuItem = null; }