开发者

XAML to C# Converter

开发者 https://www.devze.com 2023-01-08 22:38 出处:网络
I need help to convert XAML TO C# in the following code. It was working fine at the design time. But I want to assign the values in the runtime.

I need help to convert XAML TO C# in the following code. It was working fine at the design time. But I want to assign the values in the runtime.

Here is the XAML code:

开发者_如何学编程

< Image UITest:SupportAnimatedGIFBehviour.SupportAnimatedGif="True"/>

And the full source is in the following website:

http://eladm.wordpress.com/2009/04/02/animated-gif-support-behavior/


For this XAML:

<Image Name="myImage"/>

Use this C# code:

SupportAnimatedGIFBehviour.SetSupportAnimatedGif( myImage, true );


Use http://xamlt.com/ to convert any XAML Code to C#

0

精彩评论

暂无评论...
验证码 换一张
取 消