C# Class Odyssey.Controls.BreadcrumbItem

Inheritance: System.Windows.Controls.Primitives.Selector
Afficher le fichier Open project: Gainedge/BetterExplorer Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

Appies the binding to the breadcrumb item.
public ApplyBinding ( ) : void
Résultat void

ContainerFromItem() public méthode

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.
Résultat BreadcrumbItem

CreateItem() public static méthode

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

DropDownPressedPropertyChanged() public static méthode

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
Résultat void

GetContainerForItemOverride() protected méthode

protected GetContainerForItemOverride ( ) : DependencyObject
Résultat System.Windows.DependencyObject

GetTraceItem() public méthode

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

IsItemItsOwnContainerOverride() protected méthode

protected IsItemItsOwnContainerOverride ( object item ) : bool
item object
Résultat bool

MeasureOverride() protected méthode

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

OnApplyTemplate() public méthode

public OnApplyTemplate ( ) : void
Résultat void

OnDropDownPressedChanged() protected méthode

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

OnItemsChanged() protected méthode

protected OnItemsChanged ( System e ) : void
e System
Résultat void

OnItemsSourceChanged() protected méthode

protected OnItemsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void
oldValue IEnumerable
newValue IEnumerable
Résultat void

OnOverflowChanged() protected méthode

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

OnSelectedBreadcrumbChanged() protected méthode

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

OnSelectionChanged() protected méthode

protected OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void
e System.Windows.Controls.SelectionChangedEventArgs
Résultat void

OverflowPropertyChanged() public static méthode

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
Résultat void

Property Details

DropDownPressedChangedEvent public_oe static_oe property

Occurs when the IsDropDownPressed property is changed.
public static RoutedEvent,System.Windows DropDownPressedChangedEvent
Résultat System.Windows.RoutedEvent

HeaderProperty public_oe static_oe property

Gets or sets the Header.
public static DependencyProperty,System.Windows HeaderProperty
Résultat System.Windows.DependencyProperty

HeaderTemplateProperty public_oe static_oe property

public static DependencyProperty,System.Windows HeaderTemplateProperty
Résultat System.Windows.DependencyProperty

HeaderTemplateSelectorProperty public_oe static_oe property

public static DependencyProperty,System.Windows HeaderTemplateSelectorProperty
Résultat System.Windows.DependencyProperty

ImageProperty public_oe static_oe property

Gets or sets the ImageSource.
public static DependencyProperty,System.Windows ImageProperty
Résultat System.Windows.DependencyProperty

IsButtonVisibleProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsButtonVisibleProperty
Résultat System.Windows.DependencyProperty

IsDropDownPressedProperty public_oe static_oe property

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

IsOverflowProperty public_oe static_oe 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
Résultat System.Windows.DependencyProperty

IsRootProperty public_oe static_oe property

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

OverflowChangedEvent public_oe static_oe property

Occurs when the Overflow property is changed.
public static RoutedEvent,System.Windows OverflowChangedEvent
Résultat System.Windows.RoutedEvent

OverflowItemTemplateProperty public_oe static_oe property

public static DependencyProperty,System.Windows OverflowItemTemplateProperty
Résultat System.Windows.DependencyProperty

OverflowItemTemplateSelectorProperty public_oe static_oe property

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

SelectedBreadcrumbProperty public_oe static_oe property

public static DependencyProperty,System.Windows SelectedBreadcrumbProperty
Résultat System.Windows.DependencyProperty

TraceChangedEvent public_oe static_oe property

Occurs when the Trace property is changed.
public static RoutedEvent,System.Windows TraceChangedEvent
Résultat System.Windows.RoutedEvent

TraceProperty public_oe static_oe property

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