C# Class Odyssey.Controls.BreadcrumbBar

Inheritance: System.Windows.Controls.Control, IAddChild
Show file Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
ApplyPropertiesEvent System.Windows.RoutedEvent
BreadcrumbItemDropDownClosedEvent System.Windows.RoutedEvent
BreadcrumbItemDropDownOpenedEvent System.Windows.RoutedEvent
BreadcrumbItemTemplateProperty System.Windows.DependencyProperty
BreadcrumbItemTemplateSelectorProperty System.Windows.DependencyProperty
CollapsedTracesProperty System.Windows.DependencyProperty
DropDownItemTemplateProperty System.Windows.DependencyProperty
DropDownItemTemplateSelectorProperty System.Windows.DependencyProperty
DropDownItemsPanelProperty System.Windows.DependencyProperty
HasDropDownItemsProperty System.Windows.DependencyProperty
IsDropDownOpenProperty System.Windows.DependencyProperty
IsOverflowPressedProperty System.Windows.DependencyProperty
IsRootSelectedProperty System.Windows.DependencyProperty
OverflowItemTemplateProperty System.Windows.DependencyProperty
OverflowItemTemplateSelectorProperty System.Windows.DependencyProperty
OverflowModeProperty System.Windows.DependencyProperty
ProgressMaximumProperty System.Windows.DependencyProperty
ProgressMinimumProperty System.Windows.DependencyProperty
ProgressValueChangedEvent System.Windows.RoutedEvent
ProgressValueProperty System.Windows.DependencyProperty
RootProperty System.Windows.DependencyProperty
SelectedBreadcrumbChangedEvent System.Windows.RoutedEvent
SelectedBreadcrumbProperty System.Windows.DependencyProperty
SelectedDropDownIndexProperty System.Windows.DependencyProperty
SelectedItemProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
BreadcrumbBar System
BuildBreadcrumbsFromPath void
CoerceProgressMaximum object
CoerceProgressMinimum object
CoerceProgressValue object
GetImage object
IsDropDownOpenChanged void
OverflowPressedChanged void
ProgressValuePropertyChanged void
RemoveLastEmptySeparator string
RootPropertyChanged void
SelectRootCommandExecuted void
SelectTraceCommandExecuted void
SelectedBreadcrumbPropertyChanged void
ShowDropDownExecuted void
breadcrumbItemDropDownChangedEvent void
breadcrumbItemSelectedItemChanged void
breadcrumbItemSelectionChangedEvent void
breadcrumbItemTraceValueChanged void
comboBox_DropDownClosed void
comboBox_KeyDown void
comboBox_Loaded void
menuItem_Click void
rootButton_Click void

Public Methods

Method Description
Exit ( bool updatePath ) : void

Do what's necessary to do when the BreadcrumbBar has lost focus.

GetDisplayPath ( ) : string

Gets the display path from the traces of the BreacrumbItems.

OnApplyTemplate ( ) : void
OnRootChanged ( object oldValue, object newValue ) : void

Occurs when the Root property is changed.

SetInputState ( ) : void
SetPathWithoutNavigate ( string path ) : void
SetProgressValue ( double value, Duration duration ) : void

Protected Methods

Method Description
ArrangeOverride ( Size arrangeBounds ) : Size
OnBreadcrumbItemDropDownClosed ( RoutedEventArgs e ) : void

Occurs when the dropdown of a BreadcrumbItem is closed.

OnBreadcrumbItemDropDownOpened ( RoutedEventArgs e ) : void

Occurs when the dropdown of a BreadcrumbItem is opened.

OnDropDownOpenChanged ( bool oldValue, bool newValue ) : void

Occurs when the IsDropDownOpen property is changed.

OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnOverflowPressedChanged ( ) : void

Occurs when the IsOverflowPressed property is changed.

Private Methods

Method Description
BreadcrumbBar ( ) : System
BuildBreadcrumbsFromPath ( string newPath ) : void

Traces the specified path and builds the associated BreadcrumbItems.

CoerceProgressMaximum ( DependencyObject d, object baseValue ) : object
CoerceProgressMinimum ( DependencyObject d, object baseValue ) : object
CoerceProgressValue ( DependencyObject d, object baseValue ) : object

Check the desired value for ProgressValue and asure that it is between Minimum and Maximum:

GetImage ( ImageSource imageSource ) : object
IsDropDownOpenChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OverflowPressedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ProgressValuePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RemoveLastEmptySeparator ( string path ) : string

Remove the last separator string from the path if there is no additional trace.

RootPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SelectRootCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
SelectTraceCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
SelectedBreadcrumbPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ShowDropDownExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
breadcrumbItemDropDownChangedEvent ( object sender, RoutedEventArgs e ) : void
breadcrumbItemSelectedItemChanged ( object sender, RoutedEventArgs e ) : void
breadcrumbItemSelectionChangedEvent ( object sender, RoutedEventArgs e ) : void
breadcrumbItemTraceValueChanged ( object sender, RoutedEventArgs e ) : void
comboBox_DropDownClosed ( object sender, EventArgs e ) : void
comboBox_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
comboBox_Loaded ( object sender, RoutedEventArgs e ) : void
menuItem_Click ( object sender, RoutedEventArgs e ) : void
rootButton_Click ( object sender, RoutedEventArgs e ) : void

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size arrangeBounds ) : Size
arrangeBounds System.Windows.Size
return System.Windows.Size

Exit() public method

Do what's necessary to do when the BreadcrumbBar has lost focus.
public Exit ( bool updatePath ) : void
updatePath bool
return void

GetDisplayPath() public method

Gets the display path from the traces of the BreacrumbItems.
public GetDisplayPath ( ) : string
return string

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnBreadcrumbItemDropDownClosed() protected method

Occurs when the dropdown of a BreadcrumbItem is closed.
protected OnBreadcrumbItemDropDownClosed ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs
return void

OnBreadcrumbItemDropDownOpened() protected method

Occurs when the dropdown of a BreadcrumbItem is opened.
protected OnBreadcrumbItemDropDownOpened ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs
return void

OnDropDownOpenChanged() protected method

Occurs when the IsDropDownOpen property is changed.
protected OnDropDownOpenChanged ( bool oldValue, bool newValue ) : void
oldValue bool
newValue bool
return void

OnMouseDown() protected method

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

OnOverflowPressedChanged() protected method

Occurs when the IsOverflowPressed property is changed.
protected OnOverflowPressedChanged ( ) : void
return void

OnRootChanged() public method

Occurs when the Root property is changed.
public OnRootChanged ( object oldValue, object newValue ) : void
oldValue object
newValue object
return void

SetInputState() public method

public SetInputState ( ) : void
return void

SetPathWithoutNavigate() public method

public SetPathWithoutNavigate ( string path ) : void
path string
return void

SetProgressValue() public method

public SetProgressValue ( double value, Duration duration ) : void
value double
duration Duration
return void

Property Details

ApplyPropertiesEvent public static property

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

BreadcrumbItemDropDownClosedEvent public static property

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

BreadcrumbItemDropDownOpenedEvent public static property

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

BreadcrumbItemTemplateProperty public static property

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

BreadcrumbItemTemplateSelectorProperty public static property

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

CollapsedTracesProperty public static property

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

DropDownItemTemplateProperty public static property

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

DropDownItemTemplateSelectorProperty public static property

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

DropDownItemsPanelProperty public static property

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

HasDropDownItemsProperty public static property

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

IsDropDownOpenProperty public static property

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

IsOverflowPressedProperty public static property

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

IsRootSelectedProperty public static property

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

OverflowItemTemplateProperty public static property

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

OverflowItemTemplateSelectorProperty public static property

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

OverflowModeProperty public static property

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

ProgressMaximumProperty public static property

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

ProgressMinimumProperty public static property

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

ProgressValueChangedEvent public static property

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

ProgressValueProperty public static property

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

RootProperty public static property

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

SelectedBreadcrumbChangedEvent public static property

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

SelectedBreadcrumbProperty public static property

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

SelectedDropDownIndexProperty public static property

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

SelectedItemProperty public static property

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