1 <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3 x:Class="Microsoft.Samples.Animation.AnimationGallery.app">
4 <Application.Resources>
10 <DrawingBrush x:Key="MyGridBrushResource"
11 Viewport="0,0,10,10" ViewportUnits="Absolute" TileMode="Tile">
12 <DrawingBrush.Drawing>
14 <DrawingGroup.Children>
15 <GeometryDrawing Brush="#FFFFFFFF">
16 <GeometryDrawing.Geometry>
17 <RectangleGeometry Rect="0,0,1,1" />
18 </GeometryDrawing.Geometry>
20 <GeometryDrawing Geometry="M0,0 L1,0 1,0.1, 0,0.1Z" Brush="#66CCCCFF" />
21 <GeometryDrawing Geometry="M0,0 L0,1 0.1,1, 0.1,0Z" Brush="#66CCCCFF" />
22 </DrawingGroup.Children>
24 </DrawingBrush.Drawing>
27 <DrawingBrush x:Key="MyPartiallyTransparentGridBrushResource"
28 Viewport="0,0,10,10" ViewportUnits="Absolute" TileMode="Tile">
29 <DrawingBrush.Drawing>
31 <DrawingGroup.Children>
32 <GeometryDrawing Brush="#99FFFFFF">
33 <GeometryDrawing.Geometry>
34 <RectangleGeometry Rect="0,0,1,1" />
35 </GeometryDrawing.Geometry>
37 <GeometryDrawing Geometry="M0,0 L1,0 1,0.1, 0,0.1Z" Brush="#66CCCCFF" />
38 <GeometryDrawing Geometry="M0,0 L0,1 0.1,1, 0.1,0Z" Brush="#66CCCCFF" />
39 </DrawingGroup.Children>
41 </DrawingBrush.Drawing>
44 <DrawingBrush x:Key="MyWireBrushResource"
45 Viewport="0,0,10,10" ViewportUnits="Absolute" TileMode="Tile">
46 <DrawingBrush.Drawing>
48 <DrawingGroup.Children>
49 <GeometryDrawing Geometry="M0,0 L1,0 1,0.1, 0,0.1Z" Brush="#66CCCCFF" />
50 <GeometryDrawing Geometry="M0,0 L0,1 0.1,1, 0.1,0Z" Brush="#66CCCCFF" />
51 </DrawingGroup.Children>
53 </DrawingBrush.Drawing>
56 <ImageBrush x:Key="SteelBrushResource"
57 ImageSource="sample_images\steel.png" Stretch="None" TileMode="Tile"
58 Viewport="0,0,500,300" ViewportUnits="Absolute" />
60 <ImageBrush x:Key="CloudyGlassBrushResource"
61 ImageSource="sample_images\clouds.png" Stretch="None" TileMode="FlipXY" />
63 <GradientStopCollection x:Key="MyGlassGradientStopsResource">
64 <GradientStop Color="White" Offset="0.2" />
65 <GradientStop Color="Transparent" Offset="0.4" />
66 <GradientStop Color="White" Offset="0.5" />
67 <GradientStop Color="Transparent" Offset="0.75" />
68 <GradientStop Color="White" Offset="0.9" />
69 <GradientStop Color="Transparent" Offset="1.0" />
70 </GradientStopCollection>
72 <LinearGradientBrush x:Key="MyGlassBrushResource"
73 StartPoint="0,0" EndPoint="1,1" Opacity="1"
74 GradientStops="{StaticResource MyGlassGradientStopsResource}" />
77 <!-- Other Resources -->
81 <PathGeometry x:Key="LeftArrowGeometry" Figures="M10,25 L30,40 20,25 30,10Z" />
82 <PathGeometry x:Key="RightArrowGeometry" Figures="M10,25 L30,40 20,25 30,10Z" >
83 <PathGeometry.Transform>
84 <RotateTransform CenterX="20" CenterY="30" Angle="180" />
85 </PathGeometry.Transform>
87 <PathGeometry x:Key="UpArrowGeometry" Figures="M10,25 L30,40 20,25 30,10Z" >
88 <PathGeometry.Transform>
89 <RotateTransform CenterX="20" CenterY="30" Angle="90" />
90 </PathGeometry.Transform>
92 <PathGeometry x:Key="DownArrowGeometry" Figures="M10,25 L30,40 20,25 30,10Z" >
93 <PathGeometry.Transform>
94 <RotateTransform CenterX="20" CenterY="30" Angle="270" />
95 </PathGeometry.Transform>
100 <!-- Styles & Templates -->
102 <Style TargetType="{x:Type TextBlock}">
103 <Setter Property="TextBlock.FontFamily" Value="Verdana" />
104 <Setter Property="TextBlock.TextWrapping" Value="Wrap" />
105 <Setter Property="TextBlock.FontWeight" Value="Normal" />
108 <Style x:Key="HorizontalSliderStyle" TargetType="{x:Type Slider}">
109 <Setter Property = "TickFrequency" Value =".01"/>
110 <Setter Property = "MinWidth" Value ="100"/>
111 <Setter Property = "Minimum" Value ="0"/>
112 <Setter Property = "Maximum" Value ="1"/>
113 <Setter Property = "HorizontalAlignment" Value ="Left"/>
114 <Setter Property = "Orientation" Value ="Horizontal"/>
117 <Style TargetType="{x:Type TextBlock}" x:Key="CodeTextBlockStyle">
118 <Setter Property="TextBlock.FontFamily" Value="Courier New" />
119 <Setter Property="TextBlock.HorizontalAlignment" Value="Left" />
120 <Setter Property="TextBlock.TextWrapping" Value="Wrap" />
121 <Setter Property="TextBlock.FontWeight" Value="Normal" />
122 <Setter Property="TextBlock.MaxWidth" Value="500" />
125 <Style x:Key="myIntroTextBorderStyle" TargetType="{x:Type Border}">
126 <Setter Property="Border.Background">
128 <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
129 <LinearGradientBrush.GradientStops>
130 <GradientStop Offset="0.0" Color="#CCCCFF" />
131 <GradientStop Offset="0.0" Color="White" />
132 </LinearGradientBrush.GradientStops>
133 </LinearGradientBrush>
136 <Setter Property="Border.HorizontalAlignment" Value="Stretch" />
137 <Setter Property="Border.BorderBrush" Value="Gray" />
138 <Setter Property="Border.BorderThickness" Value="1" />
139 <Setter Property="Border.Margin" Value="0,0,0,40" />
140 <Setter Property="Border.VerticalAlignment" Value="Top" />
143 <Style x:Key="MyIntroTextBlockStyle" TargetType="{x:Type TextBlock}">
144 <Setter Property="TextBlock.FontFamily" Value="Verdana" />
145 <Setter Property="TextBlock.HorizontalAlignment" Value="Left" />
146 <Setter Property="TextBlock.TextWrapping" Value="Wrap" />
147 <Setter Property="TextBlock.FontWeight" Value="Normal" />
148 <Setter Property="TextBlock.MaxWidth" Value="500" />
149 <Setter Property="TextBlock.Margin" Value="20" />
154 <Style TargetType="{x:Type Viewport3D}">
155 <Setter Property="IsHitTestVisible" Value="False" />
160 <Style TargetType="{x:Type Button}" x:Key="GelButtonStyle">
163 <Setter Property="Button.MinWidth" Value="120" />
164 <Setter Property="Button.Background" Value="#330033FF" />
167 <Setter Property="Template">
169 <ControlTemplate TargetType="{x:Type Button}">
171 <StackPanel Background="Transparent">
172 <Grid x:Name="mainPanel" RenderTransformOrigin="0.5,0.5">
173 <Grid x:Name="decorativeGrid" Background="Transparent"
174 VerticalAlignment="Stretch"
175 RenderTransformOrigin="0.5,0.5">
176 <Grid.ColumnDefinitions>
177 <ColumnDefinition Width="Auto"/>
178 <ColumnDefinition Width="*" />
179 <ColumnDefinition Width="Auto" />
180 </Grid.ColumnDefinitions>
181 <Grid.RowDefinitions>
182 <RowDefinition Height="5" />
183 <RowDefinition Height="*" />
184 <RowDefinition Height="5" />
185 </Grid.RowDefinitions>
187 <Rectangle x:Name="backgroundRectangle"
188 Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Grid.RowSpan="3"
189 RadiusX="5" RadiusY="5"
190 HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
193 <Rectangle x:Name="userBackgroundRectangle"
194 Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Grid.RowSpan="3"
195 RadiusX="5" RadiusY="5"
196 HorizontalAlignment="Stretch"
197 VerticalAlignment="Stretch"
198 Fill="{TemplateBinding Background}" />
200 <Rectangle Grid.Row="0" Grid.Column="0" Grid.RowSpan="3"
201 RadiusX="5" RadiusY="5"
202 Width="5" HorizontalAlignment="Left">
204 <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
205 <LinearGradientBrush.GradientStops>
206 <GradientStop Offset="0.0" Color="Gray" />
207 <GradientStop Offset="1.0" Color="Transparent" />
208 </LinearGradientBrush.GradientStops>
209 </LinearGradientBrush>
213 <Rectangle Grid.Row="0" Grid.Column="2" Grid.RowSpan="3"
214 RadiusX="5" RadiusY="5"
215 Width="5" HorizontalAlignment="Right">
217 <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
218 <LinearGradientBrush.GradientStops>
219 <GradientStop Offset="0.0" Color="Transparent" />
220 <GradientStop Offset="1.0" Color="Gray" />
221 </LinearGradientBrush.GradientStops>
222 </LinearGradientBrush>
226 <Rectangle x:Name="glassRectangle"
227 Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Grid.RowSpan="3"
228 RadiusX="5" RadiusY="5"
229 Stroke="Gray" StrokeThickness="1"
230 HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
231 <Rectangle.OpacityMask>
232 <RadialGradientBrush>
233 <RadialGradientBrush.GradientStops>
234 <GradientStop Offset="0.0" Color="Transparent" />
235 <GradientStop Offset="1.0" Color="Black" />
236 </RadialGradientBrush.GradientStops>
237 </RadialGradientBrush>
238 </Rectangle.OpacityMask>
241 <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" Opacity="0.5">
242 <LinearGradientBrush.GradientStops>
243 <GradientStop Offset="0.0" Color="White" />
244 <GradientStop Offset="0.45" Color="Transparent" />
245 <GradientStop Offset="0.51" Color="#99000000" />
246 <GradientStop Offset="0.9" Color="#99FFFFFF" />
247 <GradientStop Offset="1" Color="#FFFFFFFF" />
248 </LinearGradientBrush.GradientStops>
249 </LinearGradientBrush>
253 <Rectangle Height="10" Margin="3" Grid.Column="1" Grid.Row="0" Grid.RowSpan="3"
254 VerticalAlignment="Top" HorizontalAlignment="Stretch"
255 RadiusX="5" RadiusY="5">
257 <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
258 <LinearGradientBrush.GradientStops>
259 <GradientStop Offset="0.0" Color="#99FFFFFF" />
260 <GradientStop Offset="1.0" Color="Transparent" />
261 </LinearGradientBrush.GradientStops>
262 </LinearGradientBrush>
269 <Grid.RenderTransform>
274 </Grid.RenderTransform>
276 <ContentPresenter x:Name="myContentPresenter"
277 Grid.Row="1" Grid.Column="1"
278 VerticalAlignment="Center" HorizontalAlignment="Center"
279 Margin="10" Content="{TemplateBinding Content}" />
281 <Grid.RenderTransform>
286 </Grid.RenderTransform>
290 <ControlTemplate.Triggers>
291 <EventTrigger RoutedEvent="Mouse.MouseEnter">
292 <EventTrigger.Actions>
293 <BeginStoryboard Name="mouseEnterBeginStoryboard" HandoffBehavior="Compose">
294 <Storyboard FillBehavior="Stop">
295 <DoubleAnimation Storyboard.TargetName="userBackgroundRectangle" Storyboard.TargetProperty="(Rectangle.Fill).(Brush.Opacity)"
296 To="0" Duration="0:0:0.1" FillBehavior="HoldEnd" />
297 <DoubleAnimation Storyboard.TargetName="userBackgroundRectangle"
298 Storyboard.TargetProperty="(Rectangle.Fill).(Brush.Opacity)"
299 BeginTime="0:0:0.1" To="0.5" Duration="0:0:1" AutoReverse="True"
300 RepeatBehavior="Forever" />
301 <DoubleAnimation Storyboard.TargetName="decorativeGrid"
302 Storyboard.TargetProperty="(Grid.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"
303 By="-0.05" Duration="0:0:0.5" AutoReverse="True"
304 RepeatBehavior="Forever" />
305 <DoubleAnimation Storyboard.TargetName="decorativeGrid"
306 Storyboard.TargetProperty="(Grid.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)"
307 By="-0.05" Duration="0:0:0.5" AutoReverse="True"
308 RepeatBehavior="Forever" />
311 </EventTrigger.Actions>
314 <EventTrigger RoutedEvent="Mouse.MouseLeave">
315 <EventTrigger.Actions>
316 <StopStoryboard BeginStoryboardName="mouseEnterBeginStoryboard" />
317 </EventTrigger.Actions>
320 <EventTrigger RoutedEvent="ButtonBase.Click">
321 <EventTrigger.Actions>
325 Storyboard.TargetName="backgroundRectangle"
326 Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)"
327 To="Lime" Duration="0:0:0.05" AutoReverse="True" RepeatBehavior="3x" />
329 Storyboard.TargetName="mainPanel"
330 Storyboard.TargetProperty="(Grid.RenderTransform).(TransformGroup.Children)[1].(RotateTransform.Angle)"
331 From="0" To="360" Duration="0:0:0.5" />
333 Storyboard.TargetName="mainPanel"
334 Storyboard.TargetProperty="(Grid.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"
335 From="1" To="0.25" Duration="0:0:0.25" AutoReverse="True" />
337 Storyboard.TargetName="mainPanel"
338 Storyboard.TargetProperty="(Grid.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)"
339 From="1" To="0.25" Duration="0:0:0.25" AutoReverse="True" />
342 </EventTrigger.Actions>
344 </ControlTemplate.Triggers>
351 <Style TargetType="{x:Type RadioButton}" x:Key="GlassRadioButtonStyle">
353 <Setter Property="Margin" Value="1" />
354 <Setter Property="Background">
357 <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
358 <LinearGradientBrush.GradientStops>
359 <GradientStop Offset="0.0" Color="#CCCCFF" />
360 <GradientStop Offset="1.0" Color="DarkGray" />
361 </LinearGradientBrush.GradientStops>
362 </LinearGradientBrush>
367 <Setter Property="Template">
369 <ControlTemplate TargetType="{x:Type RadioButton}">
370 <Grid Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"
374 <Rectangle x:Name="outerRectangle"
375 HorizontalAlignment="Stretch"
376 VerticalAlignment="Stretch"
377 Stroke="{TemplateBinding Background}"
378 StrokeThickness="1" Fill="Transparent" />
380 <Rectangle x:Name="glassCube" HorizontalAlignment="Stretch"
381 VerticalAlignment="Stretch"
382 StrokeThickness="2" RadiusX="10" RadiusY="10" Opacity="0"
383 Fill="{StaticResource MyGlassBrushResource}"
384 RenderTransformOrigin="0.5,0.5"
387 <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
388 <LinearGradientBrush.GradientStops>
389 <GradientStop Offset="0.0" Color="LightBlue" />
390 <GradientStop Offset="1.0" Color="Gray" />
391 </LinearGradientBrush.GradientStops>
392 </LinearGradientBrush>
394 <Rectangle.RenderTransform>
396 <ScaleTransform x:Name="cubeScaleTransform" />
397 <RotateTransform x:Name="cubeRotateTransform" />
399 </Rectangle.RenderTransform>
403 <DockPanel Margin="10">
405 <Viewbox Stretch="Uniform">
406 <ContentPresenter x:Name="myContentPresenter"
407 Content="{TemplateBinding Content}"
408 TextBlock.Foreground="Black" />
412 <Rectangle Fill="Transparent" />
416 <ControlTemplate.Triggers>
418 <MultiTrigger.Conditions>
419 <Condition Property="IsMouseOver" Value="true" />
420 <Condition Property="IsChecked" Value="false" />
421 </MultiTrigger.Conditions>
422 <Setter Property ="Rectangle.Stroke" Value="Black" TargetName="outerRectangle" />
423 <Setter Property="Rectangle.Opacity" Value="1" TargetName="glassCube" />
425 <Trigger Property="IsChecked" Value="true">
426 <Setter Property="Rectangle.Opacity" Value="1" TargetName="glassCube" />
428 <Trigger Property="IsFocused" Value="true">
429 <Setter Property="Rectangle.Stroke" Value="Black" TargetName="outerRectangle" />
430 <Setter Property="Rectangle.Opacity" Value="1" TargetName="glassCube" />
432 <EventTrigger RoutedEvent="Mouse.MouseEnter">
433 <EventTrigger.Actions>
434 <BeginStoryboard Name="mouseEnterBeginStoryboard">
437 Storyboard.TargetName="cubeScaleTransform"
438 Storyboard.TargetProperty="ScaleX"
439 By="-0.1" Duration="0:0:0.5" />
441 Storyboard.TargetName="cubeScaleTransform"
442 Storyboard.TargetProperty="ScaleY"
443 By="-0.1" Duration="0:0:0.5" />
446 </EventTrigger.Actions>
448 <EventTrigger RoutedEvent="Mouse.MouseLeave">
449 <EventTrigger.Actions>
450 <StopStoryboard BeginStoryboardName="mouseEnterBeginStoryboard" />
451 </EventTrigger.Actions>
453 <EventTrigger RoutedEvent="RadioButton.Checked">
454 <EventTrigger.Actions>
458 Storyboard.TargetName="cubeRotateTransform"
459 Storyboard.TargetProperty="Angle"
460 By="360" Duration="0:0:0.5" />
463 </EventTrigger.Actions>
465 </ControlTemplate.Triggers>
475 <MeshGeometry3D x:Key="CubeSide01"
476 TriangleIndices="0,1,2 3,4,5 "
477 Normals="-1,0,0 -1,0,0 -1,0,0 -1,0,0 -1,0,0 -1,0,0 "
478 TextureCoordinates="0,1 0,0 1,0 1,0 1,1 0,1 "
479 Positions="-0.5,0.5,-0.5 -0.5,-0.5,-0.5 -0.5,-0.5,0.5 -0.5,-0.5,0.5 -0.5,0.5,0.5 -0.5,0.5,-0.5 " />
481 <MeshGeometry3D x:Key="CubeSide02"
482 TriangleIndices="0,1,2 3,4,5 "
483 Normals="0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 "
484 TextureCoordinates="0,0 1,0 1,1 1,1 0,1 0,0 "
485 Positions="-0.5,-0.5,0.5 0.5,-0.5,0.5 0.5,0.5,0.5 0.5,0.5,0.5 -0.5,0.5,0.5 -0.5,-0.5,0.5 " />
487 <MeshGeometry3D x:Key="CubeSide03"
488 TriangleIndices="0,1,2 3,4,5 "
489 Normals="0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 "
490 TextureCoordinates="1,0 1,1 0,1 0,1 0,0 1,0 "
491 Positions="0.5,-0.5,-0.5 0.5,0.5,-0.5 0.5,0.5,0.5 0.5,0.5,0.5 0.5,-0.5,0.5 0.5,-0.5,-0.5 " />
493 <MeshGeometry3D x:Key="CubeSide04"
494 TriangleIndices="0,1,2 3,4,5 "
495 Normals="1,0,0 1,0,0 1,0,0 1,0,0 1,0,0 1,0,0 "
496 TextureCoordinates="1,0 1,1 0,1 0,1 0,0 1,0 "
497 Positions="-0.5,-0.5,-0.5 -0.5,0.5,-0.5 0.5,0.5,-0.5 0.5,0.5,-0.5 0.5,-0.5,-0.5 -0.5,-0.5,-0.5 " />
499 <MeshGeometry3D x:Key="CubeSide05"
500 TriangleIndices="0,1,2 3,4,5 6,7,8 9,10,11 "
501 Normals="0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,1,0 0,1,0 0,1,0 0,1,0 0,1,0 0,1,0 "
502 TextureCoordinates="0,0 1,0 1,1 1,1 0,1 0,0 1,1 0,1 0,0 0,0 1,0 1,1 "
503 Positions="-0.5,-0.5,-0.5 -0.5,0.5,0.5 -0.5,-0.5,0.5 0.5,-0.5,0.5 -0.5,-0.5,-0.5 -0.5,0.5,-0.5
504 0.5,0.5,-0.5 -0.5,0.5,-0.5 -0.5,0.5,0.5 -0.5,0.5,0.5 0.5,0.5,0.5 0.5,0.5,-0.5 " />
506 <MeshGeometry3D x:Key="CubeSide06"
507 TriangleIndices="0,1,2 3,4,5 6,7,8 9,10,11 "
508 Normals="-1,0,0 -1,0,0 -1,0,0 -1,0,0 -1,0,0 -1,0,0 "
509 TextureCoordinates="1,0 1,1 0,1 0,1 0,0 1,0 "
510 Positions="-0.5,-0.5,0.5 -0.5,-0.5,-0.5 0.5,-0.5,-0.5 0.5,-0.5,-0.5 0.5,-0.5,0.5 -0.5,-0.5,0.5" />
512 <!-- 3D Materials -->
513 <MaterialGroup x:Key="LeavesMaterial1">
515 <DiffuseMaterial.Brush>
516 <ImageBrush Stretch="UniformToFill" ImageSource="sample_images\leaves_closeup.png" TileMode="None" ViewportUnits="Absolute" Viewport="0 0 1 1" AlignmentX="Left" AlignmentY="Top" Opacity="1.000000" />
517 </DiffuseMaterial.Brush>
519 <SpecularMaterial SpecularPower="85.3333">
520 <SpecularMaterial.Brush>
521 <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>
522 </SpecularMaterial.Brush>
526 <MaterialGroup x:Key="RocksMaterial">
528 <DiffuseMaterial.Brush>
529 <ImageBrush Stretch="UniformToFill" ImageSource="sample_images\rocks.png" TileMode="None" ViewportUnits="Absolute" Viewport="0 0 1 1" AlignmentX="Left" AlignmentY="Top" Opacity="1.000000" />
530 </DiffuseMaterial.Brush>
532 <SpecularMaterial SpecularPower="85.3333">
533 <SpecularMaterial.Brush>
534 <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>
535 </SpecularMaterial.Brush>
539 <MaterialGroup x:Key="BranchesMaterial">
541 <DiffuseMaterial.Brush>
542 <ImageBrush Stretch="UniformToFill" ImageSource="sample_images\branches.png" TileMode="None" ViewportUnits="Absolute" Viewport="0 0 1 1" AlignmentX="Left" AlignmentY="Top" Opacity="1.000000" />
543 </DiffuseMaterial.Brush>
545 <SpecularMaterial SpecularPower="85.3333">
546 <SpecularMaterial.Brush>
547 <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>
548 </SpecularMaterial.Brush>
551 <MaterialGroup x:Key="BerriesMaterial">
553 <DiffuseMaterial.Brush>
554 <ImageBrush Stretch="UniformToFill" ImageSource="sample_images\berries.jpg" TileMode="None" ViewportUnits="Absolute" Viewport="0 0 1 1" AlignmentX="Left" AlignmentY="Top" Opacity="1.000000" />
555 </DiffuseMaterial.Brush>
557 <SpecularMaterial SpecularPower="85.3333">
558 <SpecularMaterial.Brush>
559 <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>
560 </SpecularMaterial.Brush>
563 <MaterialGroup x:Key="FlowersMaterial">
565 <DiffuseMaterial.Brush>
566 <ImageBrush Stretch="UniformToFill" ImageSource="sample_images\Waterlilies.png" ViewportUnits="Absolute"
567 Viewport="0 0 1 1" AlignmentX="Left" AlignmentY="Top" Opacity="1.000000" />
568 </DiffuseMaterial.Brush>
570 <SpecularMaterial SpecularPower="85.3333">
571 <SpecularMaterial.Brush>
572 <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>
573 </SpecularMaterial.Brush>
576 <MaterialGroup x:Key="SunsetMaterial">
578 <DiffuseMaterial.Brush>
579 <ImageBrush Stretch="UniformToFill" ImageSource="sample_images\Sunset.jpg" ViewportUnits="Absolute"
580 Viewport="0 0 1 1" AlignmentX="Left" AlignmentY="Top" Opacity="1.000000" />
581 </DiffuseMaterial.Brush>
583 <SpecularMaterial SpecularPower="85.3333">
584 <SpecularMaterial.Brush>
585 <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>
586 </SpecularMaterial.Brush>
589 <MaterialGroup x:Key="SolidColorMaterial">
591 <DiffuseMaterial.Brush>
592 <SolidColorBrush Color="Orange" Opacity="1.000000"/>
593 </DiffuseMaterial.Brush>
595 <SpecularMaterial SpecularPower="85.3333">
596 <SpecularMaterial.Brush>
597 <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>
598 </SpecularMaterial.Brush>
603 <!-- Model3DVisuals -->
604 <ModelVisual3D x:Key="PictureCubeModelVisual3DResource" x:Shared="False">
605 <ModelVisual3D.Children>
607 <ModelVisual3D.Content>
608 <AmbientLight Color="#333333" />
609 </ModelVisual3D.Content>
612 <ModelVisual3D.Content>
613 <DirectionalLight Color="#FFFFFF" Direction="-0.612372,-0.5,-0.612372" />
614 </ModelVisual3D.Content>
617 <ModelVisual3D.Content>
618 <DirectionalLight Color="#FFFFFF" Direction="0.612372,-0.5,-0.612372" />
619 </ModelVisual3D.Content>
622 <ModelVisual3D.Content>
623 <GeometryModel3D Geometry="{StaticResource CubeSide01}" Material="{StaticResource BranchesMaterial}"/>
624 </ModelVisual3D.Content>
627 <ModelVisual3D.Content>
628 <GeometryModel3D Geometry="{StaticResource CubeSide02}" Material="{StaticResource FlowersMaterial}"/>
629 </ModelVisual3D.Content>
632 <ModelVisual3D.Content>
633 <GeometryModel3D Geometry="{StaticResource CubeSide03}" Material="{StaticResource BerriesMaterial}"/>
634 </ModelVisual3D.Content>
637 <ModelVisual3D.Content>
638 <GeometryModel3D Geometry="{StaticResource CubeSide04}" Material="{StaticResource LeavesMaterial1}"/>
639 </ModelVisual3D.Content>
642 <ModelVisual3D.Content>
643 <GeometryModel3D Geometry="{StaticResource CubeSide05}" Material="{StaticResource RocksMaterial}"/>
644 </ModelVisual3D.Content>
647 <ModelVisual3D.Content>
648 <GeometryModel3D Geometry="{StaticResource CubeSide06}" Material="{StaticResource SunsetMaterial}"/>
649 </ModelVisual3D.Content>
651 </ModelVisual3D.Children>
654 </Application.Resources>