C# Class WinRTXamlToolkit.Controls.Extensions.FrameworkElementExtensions

Extensions for the FrameworkElement class.
ファイルを表示 Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
ClipToBoundsHandlerProperty Windows.UI.Xaml.DependencyProperty
ClipToBoundsProperty Windows.UI.Xaml.DependencyProperty
CursorDisplayHandlerProperty Windows.UI.Xaml.DependencyProperty
CursorProperty Windows.UI.Xaml.DependencyProperty
SystemCursorProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
GetClipToBounds ( DependencyObject d ) : bool

Gets the ClipToBounds property. This dependency property indicates whether the element should be clipped to its bounds.

GetCursor ( DependencyObject d ) : CoreCursor

Gets the Cursor property. This dependency property indicates the cursor to use when a mouse cursor is moved over the control.

GetSystemCursor ( DependencyObject d ) : CoreCursorType

Gets the SystemCursor property. This dependency property indicates the system CoreCursorType to use for the control's mouse cursor.

HasNonDefaultValue ( this @this, DependencyProperty dp ) : bool

Determines whether the element has a non default value of the specified dependency property.

SetClipToBounds ( DependencyObject d, bool value ) : void

Sets the ClipToBounds property. This dependency property indicates whether the element should be clipped to its bounds.

SetCursor ( DependencyObject d, CoreCursor value ) : void

Sets the Cursor property. This dependency property indicates the cursor to use when a mouse cursor is moved over the control.

SetSystemCursor ( DependencyObject d, CoreCursorType value ) : void

Sets the SystemCursor property. This dependency property indicates the system CoreCursorType to use for the control's mouse cursor.

Private Methods

Method Description
GetClipToBoundsHandler ( DependencyObject d ) : ClipToBoundsHandler
GetCursorDisplayHandler ( DependencyObject d ) : CursorDisplayHandler
OnClipToBoundsChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the ClipToBounds property.

OnClipToBoundsHandlerChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the ClipToBoundsHandler property.

OnCursorChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Cursor property.

OnSystemCursorChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the SystemCursor property.

SetClipToBoundsHandler ( DependencyObject d, ClipToBoundsHandler value ) : void
SetCursorDisplayHandler ( DependencyObject d, CursorDisplayHandler value ) : void

Method Details

GetClipToBounds() public static method

Gets the ClipToBounds property. This dependency property indicates whether the element should be clipped to its bounds.
public static GetClipToBounds ( DependencyObject d ) : bool
d Windows.UI.Xaml.DependencyObject
return bool

GetCursor() public static method

Gets the Cursor property. This dependency property indicates the cursor to use when a mouse cursor is moved over the control.
public static GetCursor ( DependencyObject d ) : CoreCursor
d Windows.UI.Xaml.DependencyObject
return Windows.UI.Core.CoreCursor

GetSystemCursor() public static method

Gets the SystemCursor property. This dependency property indicates the system CoreCursorType to use for the control's mouse cursor.
public static GetSystemCursor ( DependencyObject d ) : CoreCursorType
d Windows.UI.Xaml.DependencyObject
return CoreCursorType

HasNonDefaultValue() public static method

Determines whether the element has a non default value of the specified dependency property.
public static HasNonDefaultValue ( this @this, DependencyProperty dp ) : bool
@this this
dp Windows.UI.Xaml.DependencyProperty The dp.
return bool

SetClipToBounds() public static method

Sets the ClipToBounds property. This dependency property indicates whether the element should be clipped to its bounds.
public static SetClipToBounds ( DependencyObject d, bool value ) : void
d Windows.UI.Xaml.DependencyObject
value bool
return void

SetCursor() public static method

Sets the Cursor property. This dependency property indicates the cursor to use when a mouse cursor is moved over the control.
public static SetCursor ( DependencyObject d, CoreCursor value ) : void
d Windows.UI.Xaml.DependencyObject
value Windows.UI.Core.CoreCursor
return void

SetSystemCursor() public static method

Sets the SystemCursor property. This dependency property indicates the system CoreCursorType to use for the control's mouse cursor.
public static SetSystemCursor ( DependencyObject d, CoreCursorType value ) : void
d Windows.UI.Xaml.DependencyObject
value CoreCursorType
return void

Property Details

ClipToBoundsHandlerProperty public_oe static_oe property

ClipToBoundsHandler Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml ClipToBoundsHandlerProperty
return Windows.UI.Xaml.DependencyProperty

ClipToBoundsProperty public_oe static_oe property

ClipToBounds Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml ClipToBoundsProperty
return Windows.UI.Xaml.DependencyProperty

CursorDisplayHandlerProperty public_oe static_oe property

CursorDisplayHandler Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml CursorDisplayHandlerProperty
return Windows.UI.Xaml.DependencyProperty

CursorProperty public_oe static_oe property

Cursor Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml CursorProperty
return Windows.UI.Xaml.DependencyProperty

SystemCursorProperty public_oe static_oe property

SystemCursor Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml SystemCursorProperty
return Windows.UI.Xaml.DependencyProperty