Class ControlView
Implements AbstractControl container using SKCanvasView.
public class ControlView : SKCanvasView, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ISKCanvasView, IView, IElement, ITransform, IRaiseSystemColorsChanged
- Inheritance
-
ControlView
- Implements
- Derived
Constructors
- ControlView()
Initializes a new instance of the ControlView class.
Properties
- Control
Gets or sets attached AbstractControl.
- Interior
Gets control interior element (border and scrollbars).
- IsDark
Gets a value indicating whether the current theme is dark.
- ParentPage
Gets the parent page of the current view.
- SwipeGesture
Gets swipe gesture created after call to RequireSwipeGesture(SwipeDirection).
- UseUnscaledDrawImage
Gets or sets whether 'DrawImage' methods draw unscaled image. Default is
true
.
Methods
- GetContainer(AbstractControl?)
Gets ControlView for the specified Control.
- GetIsDesignMode()
Gets whether control is in the design mode.
- GetPlatformView(AbstractControl?)
Gets PlatformView for the specified Control.
- GetPlatformView(IElementHandler?)
Gets platform view.
- HandleMacPlatformBecomeFirstResponder(PlatformView)
Handles 'BecomeFirstResponder' event of the platform view on mac platform.
- HandleMacPlatformDidUpdateFocus(PlatformView, UIFocusUpdateContext)
Handles 'DidUpdateFocus' event of the platform view on mac platform.
- HandleMacPlatformHoverGestureRecognizer(PlatformView, UIHoverGestureRecognizer)
Handles 'HoverGestureRecognizer' event of the platform view on mac platform.
- HandleMacPlatformPressesBegan(PlatformView, PressesEventArgs)
Handles 'PressesBegan' event of the platform view on mac platform.
- HandleMacPlatformPressesCancelled(PlatformView, PressesEventArgs)
Handles 'PressesCancelled' event of the platform view on mac platform.
- HandleMacPlatformPressesChanged(PlatformView, PressesEventArgs)
Handles 'PressesChanged' event of the platform view on mac platform.
- HandleMacPlatformPressesEnded(PlatformView, PressesEventArgs)
Handles 'PressesEnded' event of the platform view on mac platform.
- HandleMacPlatformResignFirstResponder(PlatformView)
Handles 'ResignFirstResponder' event of the platform view on mac platform.
- HandleMacPlatformShouldUpdateFocus(PlatformView, UIFocusUpdateContext)
Handles 'ShouldUpdateFocus' event of the platform view on mac platform.
- HideKeyboard()
Hides on-screen keyboard for this control.
- Invalidate()
Repaints the control.
- IsKeyboardShowing()
Gets whether on-screen keyboard is shown for this control.
- Log(object?)
Adds message to log.
- OnCanvasTouch(object?, SKTouchEventArgs)
Handles touch events on the canvas and raises the corresponding touch event on the associated control.
- OnChildAdded(Element)
Invoked when a child object is added to this element.
- OnChildRemoved(Element, int)
Invoked when a child object is removed from this element.
- OnDoubleTapGesture(TappedEventArgs)
Raised when double tap gesture is recognized.
- OnFocused(object?, FocusEventArgs)
Handles the event when the control gains focus.
- OnHandlerChanged()
When overridden in a derived class, should raise the HandlerChanged event.
- OnHandlerChanging(HandlerChangingEventArgs)
When overridden in a derived class, should raise the HandlerChanging event.
- OnPaintSurface(object?, SKPaintSurfaceEventArgs)
Handles the paint surface event to render the control's visual content.
- OnPanGesture(PanUpdatedEventArgs)
Raised when pan gesture is recognized.
- OnParentChanged()
When overridden in a derived class, should raise the ParentChanged event.
- OnPropertyChanged(string?)
Method that is called when a bound property is changed.
- OnSizeChanged(object?, EventArgs)
Handles the size change event for the control and updates its bounds accordingly.
- OnSwipeDown(SwipedEventArgs)
Raised when swipe gesture with direction to the right is recognized.
- OnSwipeGesture(SwipedEventArgs)
Raised when swipe gesture is recognized.
- OnSwipeLeft(SwipedEventArgs)
Raised when swipe gesture with direction to the right is recognized.
- OnSwipeRight(SwipedEventArgs)
Raised when swipe gesture with direction to the right is recognized.
- OnSwipeUp(SwipedEventArgs)
Raised when swipe gesture with direction to the right is recognized.
- OnUnfocused(object?, FocusEventArgs)
Handles the event when the control loses focus.
- RaiseSystemColorsChanged()
Updates colors after application theme is changed.
- RequireDoubleTapGesture()
Registers to receive double tap gestures.
- RequirePanGesture()
Registers to receive pan gestures.
- RequireSwipeGesture(SwipeDirection)
Registers to receive swipe gestures.
- SetFocusIfPossible()
Sets focus to the control if it is not already focused and if the platform supports it.
- ShowKeyboard()
Shows on-screen keyboard for this control.
- ToggleKeyboard()
Toggles on-screen keyboard visibility for this control.
- TrySetFocusWithTimeout(int)
Attempts to set focus to the view within the specified timeout.