C# Class GW2PAO.Infrastructure.ViewModels.CheckableMenuItem

Inheritance: BindableBase, IMenuItem
Show file Open project: SamHurne/gw2pao

Public Methods

Method Description
CheckableMenuItem ( string header, bool staysOpen, Action setter = null, Func getter = null, INotifyPropertyChanged propertyOwner = null, Expression isCheckedProperty = null ) : System

Alternate constructor

CheckableMenuItem ( string header, bool staysOpen, Expression isCheckedProperty, INotifyPropertyChanged propertyOwner ) : System

Default constructor

Method Details

CheckableMenuItem() public method

Alternate constructor
public CheckableMenuItem ( string header, bool staysOpen, Action setter = null, Func getter = null, INotifyPropertyChanged propertyOwner = null, Expression isCheckedProperty = null ) : System
header string Header text to use for the menu item
staysOpen bool Configures whether or not clicking the item closes the menu
setter Action Getter for the IsChecked information
getter Func Setter for the IsChecked information
propertyOwner INotifyPropertyChanged Owner of the IsChecked PropertyChanged event
isCheckedProperty Expression Lambda containing the property name for use with the PropertyChanged event
return System

CheckableMenuItem() public method

Default constructor
public CheckableMenuItem ( string header, bool staysOpen, Expression isCheckedProperty, INotifyPropertyChanged propertyOwner ) : System
header string Header text to use for the menu item
staysOpen bool Configures whether or not clicking the item closes the menu
isCheckedProperty Expression The property to bind IsChecked to
propertyOwner INotifyPropertyChanged Owner of the isCheckedProperty
return System