The input is either rendered as an ink stroke using default settings for color and thickness (a black ballpoint pen with a thickness of 2 pixels), or treated as a stroke eraser (when input is from an eraser tip or the pen tip modified with an erase button).Īn InkCanvas has default Height and Width properties of zero, unless it is the child of an element that automatically sizes its child elements, such as StackPanel or Grid controls. To add basic inking functionality, just place an InkCanvas UWP platform control on the appropriate page in your app.īy default, the InkCanvas supports ink input only from a pen. For more information, see the Complex ink sample. This enables full customization of the inking experience. For more information about how to use the InkToolbar, see Add an InkToolbar to a Windows app inking app.Įnables the rendering of ink strokes onto the designated Direct2D device context of a Universal Windows app, instead of the default InkCanvas control. For more information about how to use the InkPresenter, see Recognize Windows Ink strokes as text and Store and retrieve Windows Ink stroke data.Ī XAML UI platform control containing a customizable and extensible collection of buttons that activate ink-related features in an associated InkCanvas. This object provides all default inking functionality exposed by the InkCanvas, along with a comprehensive set of APIs for additional customization and personalization. For more information about how to use the InkCanvas, see Recognize Windows Ink strokes as text and Store and retrieve Windows Ink stroke data.Ī code-behind object, instantiated along with an InkCanvas control (exposed through the InkCanvas.InkPresenter property). Components of the Windows Ink platform ComponentĪ XAML UI platform control that, by default, receives and displays all input from a pen as either an ink stroke or an erase stroke. It is designed to support various levels of functionality, depending on your requirements.įor Windows Ink UX guidelines, see Inking controls. Your app can also support ink input from other pointer-based devices, including touch digitizers and mouse devices.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |