ClipToBounds property in WinRT

前端 未结 3 1329
粉色の甜心
粉色の甜心 2020-12-11 05:58

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 ?

3条回答
  •  醉话见心
    2020-12-11 06:20

    This is implemented in WinRTXamlToolkit (https://github.com/xyzzer/WinRTXamlToolkit) which is also available as Nuget package.

    Add to XAML header:

    xmlns:extensions="using:WinRTXamlToolkit.Controls.Extensions"
    

    Then, for example in XAML Canvas component

    
    

提交回复
热议问题