C# Class RadialMenuControl.UserControl.Floating

Inheritance: Windows.UI.Xaml.Controls.ContentControl
显示文件 Open project: CatalystCode/radial-menu

Public Properties

Property Type Description
IsBoundByParentProperty Windows.UI.Xaml.DependencyProperty
IsBoundByScreenProperty Windows.UI.Xaml.DependencyProperty
ShouldManiuplateChildProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
Floating ( ) : System

Initializes a new instance of the Floating class.

ManipulateControlPosition ( double x, double y ) : void

Manipulate the control's positon!

ManipulateControlPosition ( double x, double y, double exptectedHeight, double expectedWidth ) : void

Manipulate the control's positon!

Protected Methods

Method Description
OnApplyTemplate ( ) : void

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

Private Methods

Method Description
AdjustCanvasPosition ( Rect rect ) : void

Adjusts the canvas position according to the IsBoundBy* properties.

AdjustedPosition ( Rect rect, Rect parentRect ) : Point

Returns the adjusted the topleft position of a rectangle so that is stays within a parent rectangle.

Border_ManipulationDelta ( object sender, ManipulationDeltaRoutedEventArgs e ) : void

Handler for ManuplationDelta event

Floating_Loaded ( object sender, RoutedEventArgs e ) : void

Loaded handler which registers for the SizeChanged event.

Floating_SizeChanged ( object sender, SizeChangedEventArgs e ) : void

Size Changed Handler for Control

GetClosestParentWithSize ( FrameworkElement element ) : FrameworkElement

Gets the closest parent with a real size.

Method Details

Floating() public method

Initializes a new instance of the Floating class.
public Floating ( ) : System
return System

ManipulateControlPosition() public method

Manipulate the control's positon!
public ManipulateControlPosition ( double x, double y ) : void
x double Delta on the X axis
y double Delta on the Y axis
return void

ManipulateControlPosition() public method

Manipulate the control's positon!
public ManipulateControlPosition ( double x, double y, double exptectedHeight, double expectedWidth ) : void
x double Delta on the X axis
y double Delta on the Y axis
exptectedHeight double Expected heigth of the floating control
expectedWidth double Expected width of the floating control
return void

OnApplyTemplate() protected method

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected OnApplyTemplate ( ) : void
return void

Property Details

IsBoundByParentProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml IsBoundByParentProperty
return Windows.UI.Xaml.DependencyProperty

IsBoundByScreenProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml IsBoundByScreenProperty
return Windows.UI.Xaml.DependencyProperty

ShouldManiuplateChildProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml ShouldManiuplateChildProperty
return Windows.UI.Xaml.DependencyProperty