- 1 year ago
How do i get access to a Windows Whiteboard application and track Pen and Touch Input
To access the Windows Whiteboard application and track pen and touch input, you can use the Windows Ink API provided by the Windows.UI.Input.Inking namespace in UWP (Universal Windows Platform) applications.
Here are the general steps to get started:
Create a UWP Application: Start by creating a UWP application in Visual Studio or another development environment that supports UWP. This will allow you to leverage the Windows Ink API and access the Windows Whiteboard application.
Enable Windows Ink Support: Ensure that your UWP application has Windows Ink support enabled. This includes enabling the required capabilities in the application manifest file (
Package.appxmanifest
), such asinkWorkspace
,pointerInput
, andinputInjectionBrokered
.Access the Whiteboard Application: You can use the
InkPresenter
class from the Windows Ink API to access the Whiteboard application and track pen and touch input. TheInkPresenter
provides functionality for managing ink strokes and input events. You can subscribe to events such asPointerPressed
,PointerMoved
, andPointerReleased
to handle pen and touch input.Handle Input Events: In your UWP application, implement event handlers for the desired input events (
PointerPressed
,PointerMoved
, etc.) to capture pen and touch input. You can use the event arguments to obtain information about the input, such as the position of the pointer and pressure sensitivity.Interact with Windows Whiteboard: Once you've captured the pen and touch input, you can use the Windows Ink API to interact with the Whiteboard application. This can involve creating ink strokes, modifying existing strokes, or performing other actions specific to the Whiteboard functionality.
Please note that accessing the Windows Whiteboard application and tracking pen and touch input may require additional permissions and capabilities, and it may not be feasible to directly integrate with the Whiteboard application from a third-party application. The available functionality and integration options may vary based on the specific Windows version and configuration.
For more detailed information and code samples, you can refer to the Microsoft documentation on Windows Ink API and UWP application development.