[UWP]关于Windows画布面板 [英] [UWP]Regarding Windows canvas panel
本文介绍了[UWP]关于Windows画布面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Windows 10应用程序(用于微软表面),我在那里使用画布控件来绘制。是否有任何方法只裁剪绘制的部分并排除画布的剩余部分(在Windows 8.1中也是如此)?
I have one windows 10 application(for microsoft surface),where I am using canvas control to draw.Is there any way to crop only drawn part and exclude remaining part of canvas(in windows 8.1 also)?
推荐答案
嗨Lakkur,
如果要剪切绘制部分的矩形区域canvas,您可以使用仅支持RectangleGeometry作为剪裁几何的UIElement.Clip。
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.uielement.clip?f=255& ; MSPPError = -2147217396
$
最好的问候,
David
Hi Lakkur,
If you want to clip a rectangle area of the drawn part on the canvas, you may use UIElement.Clip which only support RectangleGeometry as clipping geometry.
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.uielement.clip?f=255&MSPPError=-2147217396
Best Regards,
David
>
这篇关于[UWP]关于Windows画布面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文