C# Class Yuhan.WPF.MenuKiller.MenuKillerItem

Inheritance: System.Windows.Controls.TreeViewItem, ICommandSource, ICustomAlignedControl
Exibir arquivo Open project: hansuky/Yuhan Class Usage Examples

Public Properties

Property Type Description
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
CommandTargetProperty System.Windows.DependencyProperty
MouseHoverEvent System.Windows.RoutedEvent
RootToolTipProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
AddCommand void
CanExecuteChanged void
CanToggleExpand bool
CanToggleHandler void
CommandChanged void
HookUpCommand void
InvalidateTreeMeasure void
MenuKillerItem System
MenuKillerItem_MouseEnter void
RemoveCommand void
SetOpacityRecursively void
ToggleCommandHandler void
ToggleExpand void
mCenterButton_Click void
mPanel_ChildArranged void

Public Methods

Method Description
AddMouseHoverHandler ( DependencyObject o, RoutedEventHandler handler ) : void
OnApplyTemplate ( ) : void
RemoveMouseHoverHandler ( DependencyObject o, RoutedEventHandler handler ) : void
SetChildrenOpacity ( UIElement exception, double dOpacity ) : void

Multiplies the opacity of all children with a given value, except for the center button and the 'exception'

Protected Methods

Method Description
MeasureOverride ( Size constraint ) : Size
OnRender ( System drawingContext ) : void

Private Methods

Method Description
AddCommand ( ICommand oldCommand, ICommand newCommand ) : void
CanExecuteChanged ( object sender, EventArgs e ) : void
CanToggleExpand ( ) : bool
CanToggleHandler ( object target, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
HookUpCommand ( ICommand oldCommand, ICommand newCommand ) : void
InvalidateTreeMeasure ( ) : void
MenuKillerItem ( ) : System
MenuKillerItem_MouseEnter ( object o, System.Windows.Input.MouseEventArgs e ) : void
RemoveCommand ( ICommand oldCommand, ICommand newCommand ) : void
SetOpacityRecursively ( int iLevel ) : void
ToggleCommandHandler ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
ToggleExpand ( ) : void
mCenterButton_Click ( object sender, System e ) : void
mPanel_ChildArranged ( object sender, UIElement child, double angle ) : void

Method Details

AddMouseHoverHandler() public static method

public static AddMouseHoverHandler ( DependencyObject o, RoutedEventHandler handler ) : void
o System.Windows.DependencyObject
handler RoutedEventHandler
return void

MeasureOverride() protected method

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
return System.Windows.Size

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnRender() protected method

protected OnRender ( System drawingContext ) : void
drawingContext System
return void

RemoveMouseHoverHandler() public static method

public static RemoveMouseHoverHandler ( DependencyObject o, RoutedEventHandler handler ) : void
o System.Windows.DependencyObject
handler RoutedEventHandler
return void

SetChildrenOpacity() public method

Multiplies the opacity of all children with a given value, except for the center button and the 'exception'
public SetChildrenOpacity ( UIElement exception, double dOpacity ) : void
exception UIElement The item whose opacity is to be preserved. may be null.
dOpacity double
return void

Property Details

CommandParameterProperty public_oe static_oe property

public static DependencyProperty,System.Windows CommandParameterProperty
return System.Windows.DependencyProperty

CommandProperty public_oe static_oe property

public static DependencyProperty,System.Windows CommandProperty
return System.Windows.DependencyProperty

CommandTargetProperty public_oe static_oe property

public static DependencyProperty,System.Windows CommandTargetProperty
return System.Windows.DependencyProperty

MouseHoverEvent public_oe static_oe property

public static RoutedEvent,System.Windows MouseHoverEvent
return System.Windows.RoutedEvent

RootToolTipProperty public_oe static_oe property

public static DependencyProperty,System.Windows RootToolTipProperty
return System.Windows.DependencyProperty