![]() In the code-behind we need to unpack the geometry information about the ink stroke and clip the window accordingly. Rect inkBounds = Ī = viewBounds.X + inkBounds.Left Ī = viewBounds.Y + inkBounds.Top Ī = winBounds.Width Ī = winBounds.Height Rect viewBounds = ApplicationView.GetForCurrentView().VisibleBounds private async void InkPresenter_StrokesCollected(InkPresenter sender, InkStrokesCollectedEventArgs args) You obviously won’t need all this code if you are creating windows of well-known shapes. Most of the code here is specific to getting the geometry info from the collected ink stroke and passing it down to the WPF. To pass on the geometry details about the shape of the window we are using the local AppData settings. The gist on the UWP side is that we are using the FullTrustProcessLauncher API to create the WPF window. Here we need to add the declaration for our desktop extension, so that the UWP app can activate the WPF process for creating the windows. The appxmanifest file in the Package project is the one that is relevant at deployment time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |