[DEPRECATED] Thank you for your interest in the InkToolbar control. We aredeprecating this extension in favor of the XAML InkToolbar control that was released as a part the Windows 10 Anniversary update. The new InkToolbar sports new tools, like pencil and ruler, multi-language support, better extensibility story, better performance, and an updated UI. Resources that you might find useful: ______________________________________________________________________________________ Most inking apps will need a UI to control inking properties, such as color and thickness, and interaction modes, such as inking or erasing. We have packaged the inking UI that is used in theMicrosoft Edge browser’s Web Notes feature into to this experimental control. With the InkToolbar and the new InkCanvas control in Windows 10 you can build a basic inking UI in seconds! The InkToolbar can be positioned like any standard control, and it can for example be floating on top of your inking surface: Or placed within a toolbar or appbar:
The InkToolbar control provides three buttons by default: Pen, Highlighter, and Eraser. If you need additional buttons you can use the InkToolbarButton control and place them next to the InkToolbar.
Requirements
Both can be found here: https://dev.windows.com/en-us/windows-10-developer-preview-tools
Known issues
Install instructions
UsageThere are two main ways to use the InkToolbar control:
Basic sample: Bind the InkToolbar to an InkCanvas control
XAML Edit|Remove xaml<Page x:Class="InkSample.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:InkSample " xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:inkTools="using:Microsoft.Labs.InkToolbarControl" mc:Ignorable="d" Loaded="Page_Loaded"> <Grid Background="#FFFFFADF"> <InkCanvas Name="myCanvas"></InkCanvas> <inkTools:InkToolbar TargetInkCanvas="{x:Bind myCanvas}" PenColor="#FFE61021" VerticalAlignment="Top" HorizontalAlignment="Right"></inkTools:InkToolbar> </Grid></Page> <Page x:Class="InkSample.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:InkSample " xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:inkTools="using:Microsoft.Labs.InkToolbarControl" mc:Ignorable="d" Loaded="Page_Loaded"> <Grid Background="#FFFFFADF"> <InkCanvas Name="myCanvas"></InkCanvas> <inkTools:InkToolbar TargetInkCanvas="{x:Bind myCanvas}" PenColor="#FFE61021" VerticalAlignment="Top" HorizontalAlignment="Right"></inkTools:InkToolbar> </Grid> </Page> We look forward to your feedback!
|