TiltEffect.SetIsTiltEnabled(MyStackPanel, true);
Changing the property of toolkit:TiltEffect.IsTiltEnabled in C#
-
04-06-2022 - |
Question
How do I change the windows phone toolkit property of an object (for example a Stack Panel
) in C#.
The particular property is referred to as toolkit:TiltEffect.IsTiltEnabled (of type bool) in .xaml, but I don't know how to access it in C#.
Thanks, I hope someone can shed some light on the matter.
Solution
OTHER TIPS
if you want to have this effect on all elememts of the grid then in your xaml page
define like toolkit:IsTiltEffect.Isenabled = true
and if you want any specific control to follow this property then .. Tilteffect.Settiltenabled(control,true);
in .cs file
i hope this will help
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow