I'm trying to find the equivalent of ClipToBounds in Windows Runtime. If it doesn't exists is there a way to recreate this behavior ?
相关问题
- VNC control for WPF application
- Inheritance impossible in Windows Runtime Componen
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
Here is the solution I use :
Found it here
This is implemented in WinRTXamlToolkit (https://github.com/xyzzer/WinRTXamlToolkit) which is also available as Nuget package.
Add to XAML header:
Then, for example in XAML Canvas component
I prefer the 'Clip' property here is some xaml
The parameter of the 'Rect' property are: Rect="x y width height"
Hope it helps
Greetings