C# Class Channel9Downloader.Controls.AdornedControl

This class can be used as container for adorned content.
Inheritance: System.Windows.Controls.ContentControl
Show file Open project: MadCowDevelopment/Channel9Downloader

Public Properties

Property Type Description
AdornerContentProperty System.Windows.DependencyProperty
AdornerOffsetXProperty System.Windows.DependencyProperty
AdornerOffsetYProperty System.Windows.DependencyProperty
HideAdornerCommand System.Windows.Input.RoutedCommand
HorizontalAdornerPlacementProperty System.Windows.DependencyProperty
IsAdornerVisibleProperty System.Windows.DependencyProperty
ShowAdornerCommand System.Windows.Input.RoutedCommand
VerticalAdornerPlacementProperty System.Windows.DependencyProperty

Public Methods

Method Description
HideAdorner ( ) : void

Hide the adorner.

OnApplyTemplate ( ) : void

Applies the template.

ShowAdorner ( ) : void

Show the adorner.

Private Methods

Method Description
AdornedControl ( ) : System

Initializes static members of the AdornedControl class.

AdornedControlDataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the DataContext of the adorned control changes.

AdornerContentPropertyChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the value of AdornerContent has changed.

CreateAdornedFrameworkElementFromDataTemplateInResources ( ) : void

Creates the adorned framework element by searching for a DataTemplate that has the same type as the AdornerContent.

HideAdornerCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Event raised when the Hide command is executed.

HideAdornerInternal ( ) : void

Internal method to hide the adorner.

IsAdornerVisiblePropertyChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the value of IsAdornerVisible has changed.

ShowAdornerCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Event raised when the Show command is executed.

ShowAdornerInternal ( ) : void

Internal method to show the adorner.

ShowOrHideAdornerInternal ( ) : void

Internal method to show or hide the adorner based on the value of IsAdornerVisible.

UpdateAdornerDataContext ( ) : void

Update the DataContext of the adorner from the adorned control.

Method Details

HideAdorner() public method

Hide the adorner.
public HideAdorner ( ) : void
return void

OnApplyTemplate() public method

Applies the template.
public OnApplyTemplate ( ) : void
return void

ShowAdorner() public method

Show the adorner.
public ShowAdorner ( ) : void
return void

Property Details

AdornerContentProperty public static property

Register AdornerContent dependency property.
public static DependencyProperty,System.Windows AdornerContentProperty
return System.Windows.DependencyProperty

AdornerOffsetXProperty public static property

Register AdornerOffsetX dependency property.
public static DependencyProperty,System.Windows AdornerOffsetXProperty
return System.Windows.DependencyProperty

AdornerOffsetYProperty public static property

Register AdornerOffsetY dependency property.
public static DependencyProperty,System.Windows AdornerOffsetYProperty
return System.Windows.DependencyProperty

HideAdornerCommand public static property

Command to hide the Adorner.
public static RoutedCommand,System.Windows.Input HideAdornerCommand
return System.Windows.Input.RoutedCommand

HorizontalAdornerPlacementProperty public static property

Register HorizontalAdornerPlacement dependency property.
public static DependencyProperty,System.Windows HorizontalAdornerPlacementProperty
return System.Windows.DependencyProperty

IsAdornerVisibleProperty public static property

Register IsAdornerVisible dependency property.
public static DependencyProperty,System.Windows IsAdornerVisibleProperty
return System.Windows.DependencyProperty

ShowAdornerCommand public static property

Command to show the Adorner.
public static RoutedCommand,System.Windows.Input ShowAdornerCommand
return System.Windows.Input.RoutedCommand

VerticalAdornerPlacementProperty public static property

Register VerticalAdornerPlacement dependency property.
public static DependencyProperty,System.Windows VerticalAdornerPlacementProperty
return System.Windows.DependencyProperty