C# Class Odyssey.Controls.BreadcrumbButton

Inheritance: System.Windows.Controls.HeaderedItemsControl
显示文件 Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
DropDownContentTemplateProperty System.Windows.DependencyProperty
EnableVisualButtonStyleProperty System.Windows.DependencyProperty
IsButtonVisibleProperty System.Windows.DependencyProperty
IsDropDownPressedProperty System.Windows.DependencyProperty
IsDropDownVisibleProperty System.Windows.DependencyProperty
IsImageVisibleProperty System.Windows.DependencyProperty
IsPressedProperty System.Windows.DependencyProperty
ModeProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetCursorPosition ( ) : Point
OnApplyTemplate ( ) : void

Protected Methods

Method Description
OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void

Focus this BreadcrumbButton if the focus is currently within the BreadcrumbBar where this BreadcrumbButton is embedded:

OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnOverflowPressedChanged ( ) : void

Private Methods

Method Description
BreadcrumbButton ( ) : System
GetCursorPos ( POINT &lpPoint ) : bool
OpenOverflowCommandCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
OpenOverflowCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OverflowPressedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SelectCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
SelectedItemChangedEvent ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
contextMenu_Opened ( object sender, RoutedEventArgs e ) : void
dropDownBtn_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
item_Click ( object sender, RoutedEventArgs e ) : void

Method Details

GetCursorPosition() public static method

public static GetCursorPosition ( ) : Point
return Point

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnMouseEnter() protected method

Focus this BreadcrumbButton if the focus is currently within the BreadcrumbBar where this BreadcrumbButton is embedded:
protected OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

OnMouseLeftButtonDown() protected method

protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnOverflowPressedChanged() protected method

protected OnOverflowPressedChanged ( ) : void
return void

Property Details

DropDownContentTemplateProperty public_oe static_oe property

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

EnableVisualButtonStyleProperty public_oe static_oe property

Gets or sets whether to use visual background style on MouseOver and/or MouseDown.
public static DependencyProperty,System.Windows EnableVisualButtonStyleProperty
return System.Windows.DependencyProperty

IsButtonVisibleProperty public_oe static_oe property

Gets or sets whether the button is visible.
public static DependencyProperty,System.Windows IsButtonVisibleProperty
return System.Windows.DependencyProperty

IsDropDownPressedProperty public_oe static_oe property

Gets or sets whether the drop down button is pressed.
public static DependencyProperty,System.Windows IsDropDownPressedProperty
return System.Windows.DependencyProperty

IsDropDownVisibleProperty public_oe static_oe property

Gets or sets whether the drop down button is visible.
public static DependencyProperty,System.Windows IsDropDownVisibleProperty
return System.Windows.DependencyProperty

IsImageVisibleProperty public_oe static_oe property

Gets or sets whether the Image is visible
public static DependencyProperty,System.Windows IsImageVisibleProperty
return System.Windows.DependencyProperty

IsPressedProperty public_oe static_oe property

Gets or sets whether the button is pressed.
public static DependencyProperty,System.Windows IsPressedProperty
return System.Windows.DependencyProperty

ModeProperty public_oe static_oe property

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