The HamburgerMenuItem provides a glyph based implementation for HamburgerMenu entries.
Наследование: HamburgerMenuItem
Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Vlive = ((WpfApplication1.MainWindow)(target));
                return;

            case 2:
                this.HamburgerMenuControl = ((MahApps.Metro.Controls.HamburgerMenu)(target));

#line 89 "..\..\..\MainWindow.xaml"
                this.HamburgerMenuControl.ItemClick += new MahApps.Metro.Controls.ItemClickEventHandler(this.HamburgerMenuControl_OnItemClick);

#line default
#line hidden

#line 90 "..\..\..\MainWindow.xaml"
                this.HamburgerMenuControl.OptionsItemClick += new MahApps.Metro.Controls.ItemClickEventHandler(this.HamburgerMenuControl_OnItemClick);

#line default
#line hidden
                return;

            case 3:
                this.Home = ((MahApps.Metro.Controls.HamburgerMenuGlyphItem)(target));
                return;

            case 4:
                this.taskBarItemInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._wUserInterface = ((HamburgerMenuApp.MainWindow)(target));

            #line 20 "..\..\MainWindow.xaml"
                this._wUserInterface.Closing += new System.ComponentModel.CancelEventHandler(this._wUserInterface_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.HamburgerMenuControl = ((MahApps.Metro.Controls.HamburgerMenu)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.HamburgerMenuControl.ItemClick += new MahApps.Metro.Controls.ItemClickRoutedEventHandler(this.HamburgerMenuControl_OnItemClick);

            #line default
            #line hidden

            #line 80 "..\..\MainWindow.xaml"
                this.HamburgerMenuControl.OptionsItemClick += new MahApps.Metro.Controls.ItemClickRoutedEventHandler(this.HamburgerMenuControl_OnItemClick);

            #line default
            #line hidden
                return;

            case 3:
                this._bAutomaticWindow = ((MahApps.Metro.Controls.HamburgerMenuGlyphItem)(target));
                return;

            case 4:
                this._bHomeWindow = ((MahApps.Metro.Controls.HamburgerMenuGlyphItem)(target));
                return;

            case 5:
                this._bSettingsWindow = ((MahApps.Metro.Controls.HamburgerMenuGlyphItem)(target));
                return;

            case 6:
                this._bAboutWindow = ((MahApps.Metro.Controls.HamburgerMenuGlyphItem)(target));
                return;

            case 7:
                this._bLoginWindow = ((MahApps.Metro.Controls.HamburgerMenuGlyphItem)(target));
                return;
            }
            this._contentLoaded = true;
        }