C# Class Odyssey.Controls.BreadcrumbItem

Inheritance: System.Windows.Controls.Primitives.Selector
Show file Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
DropDownPressedChangedEvent System.Windows.RoutedEvent
HeaderProperty System.Windows.DependencyProperty
HeaderTemplateProperty System.Windows.DependencyProperty
HeaderTemplateSelectorProperty System.Windows.DependencyProperty
ImageProperty System.Windows.DependencyProperty
IsButtonVisibleProperty System.Windows.DependencyProperty
IsDropDownPressedProperty System.Windows.DependencyProperty
IsOverflowProperty System.Windows.DependencyProperty
IsRootProperty System.Windows.DependencyProperty
OverflowChangedEvent System.Windows.RoutedEvent
OverflowItemTemplateProperty System.Windows.DependencyProperty
OverflowItemTemplateSelectorProperty System.Windows.DependencyProperty
SelectedBreadcrumbProperty System.Windows.DependencyProperty
TraceChangedEvent System.Windows.RoutedEvent
TraceProperty System.Windows.DependencyProperty

Public Methods

Method Description
ApplyBinding ( ) : void

Appies the binding to the breadcrumb item.

ContainerFromItem ( object item ) : BreadcrumbItem

Generates a new BreadcrumbItem out of the specified item.

CreateItem ( object dataContext ) : BreadcrumbItem

Creates a new BreadcrumbItem out of the specified data.

DropDownPressedPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Occurs when the IsDropDownPressed property is changed.

GetTraceItem ( ShellItem trace ) : object

Gets the item that represents the specified trace otherwise null.

OnApplyTemplate ( ) : void
OverflowPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Occurs when the Overflow property is changed.

Protected Methods

Method Description
GetContainerForItemOverride ( ) : DependencyObject
IsItemItsOwnContainerOverride ( object item ) : bool
MeasureOverride ( Size constraint ) : Size

Perform a special measurement that checks whether to collapse the header.

OnDropDownPressedChanged ( ) : void

Occurs when the DropDown button is pressed or released.

OnItemsChanged ( System e ) : void
OnItemsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void
OnOverflowChanged ( bool newValue ) : void

Occurs when the Overflow property is changed.

OnSelectedBreadcrumbChanged ( object oldItem, object newItem ) : void

Occurs when the selected BreadcrumbItem is changed.

OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void

Private Methods

Method Description
ApplyProperties ( object item ) : void
BreadcrumbItem ( ) : System
GetResourceKey ( object item ) : System.Windows.DataTemplateKey
HeaderPropertyChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SelectedBreadcrumbPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
TracePropertyChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

ApplyBinding() public method

Appies the binding to the breadcrumb item.
public ApplyBinding ( ) : void
return void

ContainerFromItem() public method

Generates a new BreadcrumbItem out of the specified item.
public ContainerFromItem ( object item ) : BreadcrumbItem
item object The item for which to create a new BreadcrumbItem.
return BreadcrumbItem

CreateItem() public static method

Creates a new BreadcrumbItem out of the specified data.
public static CreateItem ( object dataContext ) : BreadcrumbItem
dataContext object The DataContext for the BreadcrumbItem
return BreadcrumbItem

DropDownPressedPropertyChanged() public static method

Occurs when the IsDropDownPressed property is changed.
public static DropDownPressedPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

GetContainerForItemOverride() protected method

protected GetContainerForItemOverride ( ) : DependencyObject
return System.Windows.DependencyObject

GetTraceItem() public method

Gets the item that represents the specified trace otherwise null.
public GetTraceItem ( ShellItem trace ) : object
trace ShellItem The Trace property of the associated BreadcrumbItem.
return object

IsItemItsOwnContainerOverride() protected method

protected IsItemItsOwnContainerOverride ( object item ) : bool
item object
return bool

MeasureOverride() protected method

Perform a special measurement that checks whether to collapse the header.
protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
return System.Windows.Size

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnDropDownPressedChanged() protected method

Occurs when the DropDown button is pressed or released.
protected OnDropDownPressedChanged ( ) : void
return void

OnItemsChanged() protected method

protected OnItemsChanged ( System e ) : void
e System
return void

OnItemsSourceChanged() protected method

protected OnItemsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void
oldValue IEnumerable
newValue IEnumerable
return void

OnOverflowChanged() protected method

Occurs when the Overflow property is changed.
protected OnOverflowChanged ( bool newValue ) : void
newValue bool
return void

OnSelectedBreadcrumbChanged() protected method

Occurs when the selected BreadcrumbItem is changed.
protected OnSelectedBreadcrumbChanged ( object oldItem, object newItem ) : void
oldItem object
newItem object
return void

OnSelectionChanged() protected method

protected OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void
e System.Windows.Controls.SelectionChangedEventArgs
return void

OverflowPropertyChanged() public static method

Occurs when the Overflow property is changed.
public static OverflowPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

Property Details

DropDownPressedChangedEvent public static property

Occurs when the IsDropDownPressed property is changed.
public static RoutedEvent,System.Windows DropDownPressedChangedEvent
return System.Windows.RoutedEvent

HeaderProperty public static property

Gets or sets the Header.
public static DependencyProperty,System.Windows HeaderProperty
return System.Windows.DependencyProperty

HeaderTemplateProperty public static property

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

HeaderTemplateSelectorProperty public static property

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

ImageProperty public static property

Gets or sets the ImageSource.
public static DependencyProperty,System.Windows ImageProperty
return System.Windows.DependencyProperty

IsButtonVisibleProperty public static property

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

IsDropDownPressedProperty public static property

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

IsOverflowProperty public static property

Gets or sets whether the BreadcrumbItem is in overflow mode, which means that the header property is not visible.
public static DependencyProperty,System.Windows IsOverflowProperty
return System.Windows.DependencyProperty

IsRootProperty public static property

Gets or sets whether this BreadcrumbItem is the Root of a BreadcrumbBar.
public static DependencyProperty,System.Windows IsRootProperty
return System.Windows.DependencyProperty

OverflowChangedEvent public static property

Occurs when the Overflow property is changed.
public static RoutedEvent,System.Windows OverflowChangedEvent
return System.Windows.RoutedEvent

OverflowItemTemplateProperty public static property

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

OverflowItemTemplateSelectorProperty public static property

Gets or sets the TemplateSelector of an Item.
public static DependencyProperty,System.Windows OverflowItemTemplateSelectorProperty
return System.Windows.DependencyProperty

SelectedBreadcrumbProperty public static property

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

TraceChangedEvent public static property

Occurs when the Trace property is changed.
public static RoutedEvent,System.Windows TraceChangedEvent
return System.Windows.RoutedEvent

TraceProperty public static property

Gets or sets the Trace string to build the Path.
public static DependencyProperty,System.Windows TraceProperty
return System.Windows.DependencyProperty