Silverlight / WPF - Covert xmal to vb.net for double animation
Asked By MySpider DotNet
13-Apr-09 07:08 AM
Can any one convert the following Xmal to VB.NEt code
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.2"/>
</DoubleAnimationUsingKeyFrames>
Santhosh N replied to MySpider DotNet
I dont think we have any convertor yet to convert the XAML to VB.net...
you could check here for some input on your problem...
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/f9b0b54a-11ae-4a9f-9267-7530ca7acd95
Here it is.
Dim dauKfs As New DoubleAnimationUsingKeyFrames()
dauKfs.BeginTime = TimeSpan.FromSeconds((0))
Storyboard.SetTargetName(dauKfs, "canvas")
Storyboard.SetTargetProperty(dauKfs, New PropertyPath("(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"))
Dim sdKF As New SplineDoubleKeyFrame()
sdKF.KeyTime = TimeSpan.FromSeconds((1))
sdKF.Value = 1.2

Progress Indicator This article shows how to make a WPF circular progress indicator that resembles Silverlight’s loading animation. Introduction I wanted to use a ProgressBar control in a WPF application I am working on and make this ProgressBar look like Silverlight’s loading animation. I was not able to achieve it by changing only the style instance. The following storyboard will be applied to all child elements of the canvas. < Storyboard > <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty = "(UIElement.RenderTransform).(ScaleTransform.ScaleX)"> < SplineDoubleKeyFrame KeyTime = "00:00:00" Value = "0" / > < SplineDoubleKeyFrame KeyTime = "00:00:00.5" Value = "1" / > < SplineDoubleKeyFrame KeyTime = "00:00:01" Value = "1" / > < SplineDoubleKeyFrame KeyTime = "00:00:01.5" Value = "0 DoubleAnimationUsingKeyFrames > <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty = "(UIElement.RenderTransform).(ScaleTransform.ScaleY)"> < SplineDoubleKeyFrame KeyTime = "00:00:00" Value = "0" / > < SplineDoubleKeyFrame
How to create storyboard animation at runtime in silverlight??? Hiii, How to create storyboard animation(DoubleAnimationUsingKeyFrames) at runtime using silverlight??? Thanks, Balaram. Hi, I hope you can create like this example: DoubleAnimationUsingKeyFrames YAnim = new DoubleAnimationUsingKeyFrames(); Storyboard.SetTargetName(YAnim, "rectAnimate" ); YAnim.SetValue(Storyboard.TargetPropertyProperty, new PropertyPath( "(UIElement.RenderTransform).(TransformGroup.Children)[3 TranslateTransform.Y)" )); YAnim.BeginTime = new TimeSpan(0, 0, 0); SplineDoubleKeyFrame SKeyFrame1 = new SplineDoubleKeyFrame(); SKeyFrame1.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromSeconds(0.5)); SKeyFrame1.Value = 150; YAnim.KeyFrames.Add(SKeyFrame1 YAnim); You can find the full tutorial at: http: / / www.dotnetspark.com / kb / 1726-doubleanimation-silverlight.aspx Regards, Sam. Thanks alot. Create New Account
SilverLight What is SilverLight, its concept, why to use it and how to use it What is Silverlight? Silverlight is a new cross-browser, cross-platform implementation of the .NET Framework for building and browsers, including Microsoft Internet Explorer, Mozilla Firefox, Apple Safari, Opera. The plugin required to run Silverlight is very small in size hence gets installed very quickly. It is combination of different platform that allows you to select tools and the programming language you want to use. Silverlight integrates seamlessly with your existing Javascript and ASP.NET AJAX code to complement functionality which you have already created. Silverlight aims to compete with Adobe Flash and the presentation components of Ajax . It also competes with Sun Microsystems' JavaFX, which was launched a few days after Silverlight. Currently there are 2 versions of Silverlight: Silverlight 1.0 : Silverlight 1.0 consists of
silverlight and wpf difference if one person has gain master in silverlight than wiil this help him in learning wpf Hi Malik, WPF has a more advanced and mature XAML support than Silverlight. Silverlight used to be called (WPF / E) and is a subset of the WPF XAML design well and other items. WPF is hardware accelerated and supports things like GPU shaders which Silverlight 2 does not. Silverlight 2 does have the VisualStateManager inside Blend 2, which I think WPF needs an add on and a tweak to work. I think that is the only case where Silverlight 2 XAML was / is slightly ahead of WPF's. Here is a link on XAML us / library / cc917841(VS.95).aspx Here is a good article on MSNMAG about designing Silverlight / WPF apps together and sharing code: http: / / msdn.microsoft.com / en-us / magazine / cc895632.aspx
View HTML files in silverlight Silverlight / WPF hi. . how to View HTML files in silverlight? via silverlight how to disable the right click option in html files? i.e)SL html viewer no, status = no, menubar = no, resizable = yes"); } } } Create New Account keywords: View, HTML, files, in, silverlight description: p style = border:0px;margin-bottom: 18px; border-image: initial; outline-width: 0px; outline