C# Класс Eto.Forms.MenuBar

Наследование: Eto.Forms.Menu, ISubMenuWidget
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
MenuBar ( ) : System

Initializes a new instance of the Eto.Forms.MenuBar class.

MenuBar ( IEnumerable items ) : System

Initializes a new instance of the Eto.Forms.MenuBar class with the specified items.

Защищенные методы

Метод Описание
OnDataContextChanged ( EventArgs e ) : void

Raises the BindableWidget.DataContextChanged event

Implementors may override this to fire this event on child widgets in a heirarchy. This allows a control to be bound to its own BindableWidget.DataContext, which would be set on one of the parent control(s).

OnLoad ( EventArgs e ) : void

Called when the menu is assigned to a control/window

OnPreLoad ( EventArgs e ) : void

Called before the menu is assigned to a control/window

OnUnLoad ( EventArgs e ) : void

Called when the menu is removed from a control/window

Описание методов

MenuBar() публичный Метод

Initializes a new instance of the Eto.Forms.MenuBar class.
public MenuBar ( ) : System
Результат System

MenuBar() публичный Метод

Initializes a new instance of the Eto.Forms.MenuBar class with the specified items.
public MenuBar ( IEnumerable items ) : System
items IEnumerable Items to add to the menu bar initially.
Результат System

OnDataContextChanged() защищенный Метод

Raises the BindableWidget.DataContextChanged event
Implementors may override this to fire this event on child widgets in a heirarchy. This allows a control to be bound to its own BindableWidget.DataContext, which would be set on one of the parent control(s).
protected OnDataContextChanged ( EventArgs e ) : void
e System.EventArgs Event arguments
Результат void

OnLoad() защищенный Метод

Called when the menu is assigned to a control/window
protected OnLoad ( EventArgs e ) : void
e System.EventArgs Event arguments
Результат void

OnPreLoad() защищенный Метод

Called before the menu is assigned to a control/window
protected OnPreLoad ( EventArgs e ) : void
e System.EventArgs Event arguments
Результат void

OnUnLoad() защищенный Метод

Called when the menu is removed from a control/window
protected OnUnLoad ( EventArgs e ) : void
e System.EventArgs Event arguments
Результат void