Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
I think,when resizeing, the shape's width and height should auto change without above code ,
Did I miss anything important?
0
Stefan
Telerik team
answered on 15 Jun 2018, 08:30 AM
Hi Rui,
Thanks for the update.
I cannot confirm the exact cause for this behavior, as there seems to be a customization of which I am not aware. Can you please double check whether there isn't some Margin applied within the customized template, as this is my best guess for the selection rectangle being around the shape. Although the solution you have found might be working as expected, placing the control within a ViewBox, for example, might do the trick out of the box.
Regards,
Stefan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.