This animation was originally very simple. I saw it on the Forum and put it here. It will be saved later.
[CSHARP]View plaincopyprint?
-
- <Window X: class = "wpftransformwindows. mainwindow"
-
- Xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-
- Xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml"
-
- Title = "mainwindow" Height = "350" width = "525" foreground = "{X: null} "windowstyle =" NONE "resizemode =" noresize "allowstransparency =" true "background =" {X: NULL} "topmost =" true ">
-
- <Window. Resources>
-
- <Storyboard X: Key = "fanzhuan">
-
- <Pointanimationusingkeyframes storyboard. targetproperty = "(uielement. rendertransformorigin)" storyboard. targetname = "Grid">
-
- <Easingpointkeyframe keytime = "0" value = "0.5, 0.5"/>
-
- </Pointanimationusingkeyframes>
- <Doubleanimationusingkeyframes storyboard. targetproperty = "(uielement. rendertransform). (transformgroup. Children) [0]. (scaletransform. scalex)" storyboard. targetname = "Grid">
-
- <Easingdoublekeyframe keytime = "0" value = "-1">
-
- <Easingdoublekeyframe. easingfunction>
-
- <Cubicease easingmode = "easeout"/>
-
- </Easingdoublekeyframe. easingfunction>
-
- </Easingdoublekeyframe>
-
- <Easingdoublekeyframe keytime = "0: 0: 1" value = "1">
-
- <Easingdoublekeyframe. easingfunction>
-
- <Cubicease easingmode = "easeout"/>
-
- </Easingdoublekeyframe. easingfunction>
-
- </Easingdoublekeyframe>
-
- </Doubleanimationusingkeyframes>
-
- </Storyboard>
- </Window. Resources>
-
- <Window. triggers>
-
- <Eventtrigger routedevent = "frameworkelement. Loaded">
-
- <Beginstoryboard storyboard = "{staticresource fanzhuan}"/>
-
- </Eventtrigger>
-
- </Window. triggers>
-
-
-
- <Grid X: Name = "Grid" mouseleftbuttondown = "grid_mouseleftbuttondown_1">
-
- <Grid. rendertransform>
-
- <Transformgroup>
-
- <Scaletransform/>
-
- <Skewtransform/>
-
- <Rotatetransform/>
-
- <Translatetransform/>
-
- </Transformgroup>
-
- </Grid. rendertransform>
-
- <Grid. Background>
- <Imagebrush imagesource = "6.jpg" stretch =" uniformtofill "/>
-
- </Grid. Background>