C# Class RadialMenuControl.UserControl.Floating

Inheritance: Windows.UI.Xaml.Controls.ContentControl
Afficher le fichier Open project: CatalystCode/radial-menu

Méthodes publiques

Свойство Type Description
IsBoundByParentProperty Windows.UI.Xaml.DependencyProperty
IsBoundByScreenProperty Windows.UI.Xaml.DependencyProperty
ShouldManiuplateChildProperty Windows.UI.Xaml.DependencyProperty

Méthodes publiques

Méthode 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!

Méthodes protégées

Méthode 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

Méthode 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 méthode

Initializes a new instance of the Floating class.
public Floating ( ) : System
Résultat System

ManipulateControlPosition() public méthode

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
Résultat void

ManipulateControlPosition() public méthode

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
Résultat void

OnApplyTemplate() protected méthode

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
Résultat void

Property Details

IsBoundByParentProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml IsBoundByParentProperty
Résultat Windows.UI.Xaml.DependencyProperty

IsBoundByScreenProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml IsBoundByScreenProperty
Résultat Windows.UI.Xaml.DependencyProperty

ShouldManiuplateChildProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml ShouldManiuplateChildProperty
Résultat Windows.UI.Xaml.DependencyProperty