FloatingWindowControl Class
Represents a WindowControl that is used as the root control of a hosted floating window.
public class FloatingWindowControl : WindowControl
- Inheritance:
- object Visual UIElement FrameworkElement Control ContentControl WindowControl object
Properties
DockSite
Gets the DockSite that is managing the window.
public DockSite DockSite { get; }
Property Value
Methods
Activate()
Attempts to bring the window to the foreground and activates it.
public override bool Activate()
Returns
- bool:
true
if the window was successfully activated; otherwise,false
.
GetAdjustedBounds(Rect, ResizeOperation)
Returns an adjusted version of the specified bounds, which can provide support for features such as magnetism.
public override Rect GetAdjustedBounds(Rect bounds, ResizeOperation resizeOperation)
Parameter | Type | Description |
---|---|---|
bounds | Rect | The bounds to examine. |
resizeOperation | ResizeOperation | The active resize operation. |
Returns
- Rect:
The adjusted bounds.
OnActivated(RoutedEventArgs)
Called when the window gains focus within.
protected override void OnActivated(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | RoutedEventArgs | A |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
OnClosing(CancelRoutedEventArgs)
Called directly after Close() is called, and can be handled to cancel window closure.
protected override void OnClosing(CancelRoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | CancelRoutedEventArgs | A |
OnDeactivated(RoutedEventArgs)
Called when the window loses focus within.
protected override void OnDeactivated(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | RoutedEventArgs | A |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
Inherited Members
- WindowControl.CanCloseProperty
- WindowControl.CornerRadiusProperty
- WindowControl.ContextContentProperty
- WindowControl.ContextContentTemplateProperty
- WindowControl.ContextContentTemplateSelectorProperty
- WindowControl.HasCloseButtonProperty
- WindowControl.HasDropShadowProperty
- WindowControl.HasIconProperty
- WindowControl.HasMaximizeButtonProperty
- WindowControl.HasMinimizeButtonProperty
- WindowControl.HasRestoreButtonProperty
- WindowControl.HasTitleBarProperty
- WindowControl.IconProperty
- WindowControl.IsActiveProperty
- WindowControl.IsCloseButtonVisibleProperty
- WindowControl.IsMaximizeButtonVisibleProperty
- WindowControl.IsMaximizedFrameVisibleProperty
- WindowControl.IsMinimizeButtonVisibleProperty
- WindowControl.IsMovingProperty
- WindowControl.IsReadOnlyProperty
- WindowControl.IsResizingProperty
- WindowControl.IsRestoreButtonVisibleProperty
- WindowControl.LeftProperty
- WindowControl.ReadOnlyContextContentTemplateProperty
- WindowControl.ResizeModeProperty
- WindowControl.RestoredBoundsProperty
- WindowControl.ShadowElevationProperty
- WindowControl.TitleProperty
- WindowControl.TitleBarFontWeightProperty
- WindowControl.TopProperty
- WindowControl.WindowStateProperty
- WindowControl.ActivatedEvent
- WindowControl.ClosedEvent
- WindowControl.ClosingEvent
- WindowControl.DeactivatedEvent
- WindowControl.DragMovedEvent
- WindowControl.DragMovingEvent
- WindowControl.DragResizedEvent
- WindowControl.DragResizingEvent
- WindowControl.LocationChangedEvent
- WindowControl.OpenedEvent
- WindowControl.StateChangedEvent
- WindowControl.TitleBarDoubleTappedEvent
- WindowControl.TitleBarMenuOpeningEvent
- WindowControl.Close()
- WindowControl.DragMove(InputPointerButtonEventArgs)
- WindowControl.HitTestResizeOperation(Point)
- WindowControl.OnApplyTemplate()
- WindowControl.OnCreateAutomationPeer()
- WindowControl.Show()
- WindowControl.ToggleWindowState()
- WindowControl.OnClosed(RoutedEventArgs)
- WindowControl.OnDragMoved(RoutedEventArgs)
- WindowControl.OnDragMoving(CancelRoutedEventArgs)
- WindowControl.OnDragResized(RoutedEventArgs)
- WindowControl.OnDragResizing(CancelRoutedEventArgs)
- WindowControl.OnLocationChanged(RoutedEventArgs)
- WindowControl.OnOpened(RoutedEventArgs)
- WindowControl.OnStateChanged(RoutedEventArgs)
- WindowControl.OnTitleBarDoubleTapped(CancelRoutedEventArgs)
- WindowControl.OnTitleBarMenuOpening(DockingMenuEventArgs)
- WindowControl.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
- WindowControl.OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)
- WindowControl.CanClose
- WindowControl.CloseCommand
- WindowControl.ContextContent
- WindowControl.ContextContentTemplate
- WindowControl.ContextContentTemplateSelector
- WindowControl.CornerRadius
- WindowControl.HasCloseButton
- WindowControl.HasDropShadow
- WindowControl.HasIcon
- WindowControl.HasMaximizeButton
- WindowControl.HasMinimizeButton
- WindowControl.HasRestoreButton
- WindowControl.HasTitleBar
- WindowControl.Icon
- WindowControl.IsActive
- WindowControl.IsCloseButtonVisible
- WindowControl.IsMaximizeButtonVisible
- WindowControl.IsMaximizedFrameVisible
- WindowControl.IsMinimizeButtonVisible
- WindowControl.IsMoving
- WindowControl.IsReadOnly
- WindowControl.IsResizing
- WindowControl.IsRestoreButtonVisible
- WindowControl.Left
- WindowControl.MaximizeCommand
- WindowControl.MinimizeCommand
- WindowControl.ReadOnlyContextContentTemplate
- WindowControl.ResizeMode
- WindowControl.RestoreCommand
- WindowControl.RestoredBounds
- WindowControl.ShadowElevation
- WindowControl.Title
- WindowControl.TitleBarFontWeight
- WindowControl.Top
- WindowControl.WindowState
- WindowControl.Activated
- WindowControl.Closed
- WindowControl.Closing
- WindowControl.Deactivated
- WindowControl.DragMoved
- WindowControl.DragMoving
- WindowControl.DragResized
- WindowControl.DragResizing
- WindowControl.LocationChanged
- WindowControl.Opened
- WindowControl.StateChanged
- WindowControl.TitleBarDoubleTapped
- WindowControl.TitleBarMenuOpening