C# Class FirstFloor.ModernUI.Windows.Controls.AdornedControl

Inheritance: System.Windows.Controls.ContentControl
ファイルを表示 Open project: gro-ove/actools

Public Properties

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

Public Methods

Method Description
AdornedControl ( ) : System
GetAdornerLayer ( Visual visual ) : AdornerLayer
HideAdorner ( ) : void

Hide the adorner.

OnApplyTemplate ( ) : void
ShowAdorner ( ) : void

Show the adorner.

Private Methods

Method Description
AdornedControl_DataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the DataContext of the adorned control changes.

AdornerContent_PropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the value of AdornerContent has changed.

HideAdornerCommand_Executed ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Event raised when the Hide command is executed.

HideAdornerInternal ( ) : void

Internal method to hide the adorner.

IsAdornerVisible_PropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the value of IsAdornerVisible has changed.

OnOrderChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the value of Order has changed.

ShowAdornerCommand_Executed ( object target, 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.

UpdateOrder ( ) : void

Update adorner’s order.

Method Details

AdornedControl() public method

public AdornedControl ( ) : System
return System

GetAdornerLayer() public static method

public static GetAdornerLayer ( Visual visual ) : AdornerLayer
visual Visual
return AdornerLayer

HideAdorner() public method

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

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

ShowAdorner() public method

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

Property Details

AdornerContentProperty public_oe static_oe property

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

AdornerOffsetXProperty public_oe static_oe property

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

AdornerOffsetYProperty public_oe static_oe property

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

AvoidUsingScrollContentPresenterProperty public_oe static_oe property

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

HideAdornerCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input HideAdornerCommand
return System.Windows.Input.RoutedCommand

HorizontalAdornerPlacementProperty public_oe static_oe property

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

IsAdornerVisibleProperty public_oe static_oe property

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

OrderProperty public_oe static_oe property

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

ShowAdornerCommand public_oe static_oe property

public static RoutedCommand,System.Windows.Input ShowAdornerCommand
return System.Windows.Input.RoutedCommand

VerticalAdornerPlacementProperty public_oe static_oe property

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