Class FloatingContentControl
A Content Control which allows to be dragged around the screen
Inheritance
System.Object
Windows.UI.Xaml.DependencyObject
Windows.UI.Xaml.UIElement
Windows.UI.Xaml.FrameworkElement
Windows.UI.Xaml.Controls.Control
Windows.UI.Xaml.Controls.ContentControl
FloatingContentControl
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
Namespace: pdftron.PDF.Tools.Controls
Assembly: pdftron.PDF.Tools.dll
Syntax
public class FloatingContentControl : ContentControl, IDependencyObject, IDependencyObject2, IUIElement, IUIElement2, IUIElement3, IUIElement4, IUIElement5, IUIElement7, IUIElement8, IUIElement9, IUIElement10, IUIElementOverrides, IUIElementOverrides7, IUIElementOverrides8, IUIElementOverrides9, IAnimationObject, IVisualElement, IFrameworkElement, IFrameworkElement2, IFrameworkElement3, IFrameworkElement4, IFrameworkElement6, IFrameworkElement7, IFrameworkElementProtected7, IFrameworkElementOverrides, IFrameworkElementOverrides2, IControl, IControl2, IControl3, IControl4, IControl5, IControl7, IControlProtected, IControlOverrides, IControlOverrides6, IContentControl, IContentControl2, IContentControlOverrides
Constructors
FloatingContentControl()
Initializes a new instance of the FloatingContentControl class.
Declaration
public FloatingContentControl()
Fields
BoundaryProperty
Declaration
public static readonly DependencyProperty BoundaryProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
DraggableProperty
Declaration
public static readonly DependencyProperty DraggableProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
StartPositionProperty
Declaration
public static readonly DependencyProperty StartPositionProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
Properties
Boundary
Choose which type of boundary restrictions the control should respect
Declaration
public FloatingBoundary Boundary { get; set; }
Property Value
Type | Description |
---|---|
FloatingBoundary |
Draggable
Set wether the control allows it to be dragged around
Declaration
public bool Draggable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
StartPosition
Set the starting position for the control
Declaration
public FloatingStartPosition StartPosition { get; set; }
Property Value
Type | Description |
---|---|
FloatingStartPosition |
Methods
OnApplyTemplate()
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.
Declaration
protected override void OnApplyTemplate()
Overrides
Windows.UI.Xaml.FrameworkElement.Windows.UI.Xaml.IFrameworkElementOverrides.OnApplyTemplate()
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement