質問

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.

役に立ちましたか?

解決

TiltEffect.SetIsTiltEnabled(MyStackPanel, true);

他のヒント

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top