Language
Edit

InkToolbar Class

Definition

WinForms-enabled wrapper for Windows.UI.Xaml.Controls.InkToolbar

public class InkToolbar : Microsoft.Toolkit.Forms.UI.XamlHost.WindowsXamlHostBase
type InkToolbar = class
    inherit WindowsXamlHostBase
Public Class InkToolbar
Inherits WindowsXamlHostBase
Inheritance

Constructors

Name Description
InkToolbar()

Initializes a new instance of the InkToolbar class, a WinForms-enabled wrapper for Windows.UI.Xaml.Controls.InkToolbar

InkToolbar(String)

Initializes a new instance of the InkToolbar class, a WinForms-enabled wrapper for Windows.UI.Xaml.Controls.InkToolbar

Properties

Name Description
ActiveTool

Gets or sets Windows.UI.Xaml.Controls.InkToolbar.ActiveTool

AutoSize

Gets or sets a value indicating whether the control dynamically sizes to its content

AutoSizeMode

Gets or sets the automatic size mode.

ButtonFlyoutPlacement

Gets or sets Windows.UI.Xaml.Controls.InkToolbar.ButtonFlyoutPlacement

ChildInternal

Gets or sets XAML content for XamlContentHost

(Inherited from WindowsXamlHostBase)
DefaultSize

Gets the default size of the control.

(Inherited from WindowsXamlHostBase)
DpiScalingRenderTransform

Gets or sets a value indicating whether a render transform is added to the UWP control corresponding to the current dpi scaling factor if scaling is not supported natively by the XAML island

(Inherited from WindowsXamlHostBase)
Focused

Gets a value indicating whether this Control currently has focus. Check both the Control's window handle and the hosted Xaml window handle. If either has focus then this Control currently has focus.

(Inherited from WindowsXamlHostBase)
InitialControls

Gets or sets Windows.UI.Xaml.Controls.InkToolbar.InitialControls

InkDrawingAttributes

Gets Windows.UI.Xaml.Controls.InkToolbar.InkDrawingAttributes

IsRulerButtonChecked

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.InkToolbar.IsRulerButtonChecked

IsStencilButtonChecked

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.InkToolbar.IsStencilButtonChecked

Orientation

Gets or sets Windows.UI.Xaml.Controls.InkToolbar.Orientation

TargetInkCanvas

Gets or sets the underlying Uwp control's TargetInkCanvas property Windows.UI.Xaml.Controls.InkToolbar.TargetInkCanvas

UwpControl

Methods

Name Description
Dispose(Boolean)
GetPreferredSize(Size)

Overrides the base class implementation of GetPreferredSize(Size) to provide correct layout behavior for the hosted XAML content.

(Inherited from WindowsXamlHostBase)
GetUwpInternalObject()

Exposes ChildInternal without exposing its actual Type.

(Inherited from WindowsXamlHostBase)
OnChildSizeChanged(Object, Object)

Responds to UWP XAML's 'SizeChanged' event, fired when XAML content layout has changed. If 'DesiredSize' has changed, re-run Windows Forms layout.

(Inherited from WindowsXamlHostBase)
OnHandleCreated(EventArgs)
OnHandleDestroyed(EventArgs)

Override that disposes the current instance when the parent handle has been destroyed

(Inherited from WindowsXamlHostBase)
OnPaint(PaintEventArgs)

Draw a placeholder Rectangle with 'Xaml Content' in Design mode

(Inherited from WindowsXamlHostBase)
OnPaintBackground(PaintEventArgs)

Prevent control from painting the background

(Inherited from WindowsXamlHostBase)
OnWindowXamlHostSizeChanged(Object, EventArgs)

Event handler for SizeChanged. If the size of the host control has changed, re-run Windows Forms layout on this Control instance.

(Inherited from WindowsXamlHostBase)
PreProcessMessage(Message)

In order to handle keyboard accelerators and TAB input, we must give a chance to <seealso cref="T:Windows.UI.Xaml.Hosting.DesktopWindowXamlSource"></seealso> to handle the msg using <seealso cref="M:Microsoft.Toolkit.Win32.UI.XamlHost.IDesktopWindowXamlSourceNative2.PreTranslateMessage(System.Windows.Forms.Message@)"></seealso>

(Inherited from WindowsXamlHostBase)
ProcessTabKey(Boolean)

Processes a tab key, ensuring that Xaml has an opportunity to handle the command before normal Windows Forms processing. (Xaml must be notified of keys that invoke focus navigation.)

(Inherited from WindowsXamlHostBase)
Select(Boolean, Boolean)

Activates the Windows Forms WindowsXamlHost Control

(Inherited from WindowsXamlHostBase)
SetContent(UIElement)

Sets the root UWP XAML element on DesktopWindowXamlSource

(Inherited from WindowsXamlHostBase)
UpdateDpiScalingFactor()

Sets a scaling factor based on the current dpi value on the scaling panel

(Inherited from WindowsXamlHostBase)
WndProc(Message)

Processes Windows messages for XamlContentHost control window (not XAML window)

(Inherited from WindowsXamlHostBase)

Events

Name Description
ActiveToolChanged

Windows.UI.Xaml.Controls.InkToolbar.ActiveToolChanged

ChildChanged

Fired when XAML content has been updated

(Inherited from WindowsXamlHostBase)
EraseAllClicked

Windows.UI.Xaml.Controls.InkToolbar.EraseAllClicked

InkDrawingAttributesChanged

Windows.UI.Xaml.Controls.InkToolbar.InkDrawingAttributesChanged

IsRulerButtonCheckedChanged

Windows.UI.Xaml.Controls.InkToolbar.IsRulerButtonCheckedChanged

IsStencilButtonCheckedChanged

Windows.UI.Xaml.Controls.InkToolbar.IsStencilButtonCheckedChanged

Applies to