12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <Window x:Class="vCloud.GeneratePackages.Tool.ModalActionWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:tool="clr-namespace:vCloud.GeneratePackages.Tool"
- mc:Ignorable="d"
- Title="{Binding Title}"
- Background="Transparent"
- WindowStartupLocation="CenterOwner"
- ResizeMode="NoResize"
- WindowStyle="None"
- ShowInTaskbar="False"
- AllowsTransparency="True"
- Width="350"
- Height="150">
- <StackPanel Margin="10" >
- <Canvas x:Name="canvasBusy"
- Width="64"
- Height="64"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Canvas.RenderTransform>
- <TransformGroup>
- <RotateTransform x:Name="angle" Angle="120" CenterX="32" CenterY="32" />
- </TransformGroup>
- </Canvas.RenderTransform>
- <Path Width="64"
- Height="64"
- Stretch="Fill"
- Stroke="#4682B4"
- StrokeStartLineCap="Round"
- StrokeThickness="6">
- <Path.Data>
- <PathGeometry>
- <PathFigure StartPoint="1,0">
- <ArcSegment IsLargeArc="True"
- Point="0,-1"
- RotationAngle="90"
- Size="4,2"
- SweepDirection="Clockwise" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
- <Path Canvas.Left="32"
- Canvas.Top="-2"
- Width="10"
- Height="10"
- Fill="#4682B4"
- Stretch="Fill">
- <Path.Data>
- <PathGeometry>
- <PathFigure StartPoint="0,-1.1">
- <LineSegment Point="0.1,-1" />
- <LineSegment Point="0,-0.9" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
- <Canvas.Triggers>
- <!-- Animates the Center position of the
- EllipseGeometry. -->
- <EventTrigger RoutedEvent="Canvas.Loaded">
- <BeginStoryboard>
- <Storyboard RepeatBehavior="Forever">
- <DoubleAnimation Duration="0:0:3"
- From="0"
- RepeatBehavior="Forever"
- Storyboard.TargetName="angle"
- Storyboard.TargetProperty="Angle"
- To="359" />
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </Canvas.Triggers>
- </Canvas>
- <TextBlock Margin="7"
- Grid.Row="1" Text="{Binding Description}"
- FontWeight="SemiBold"
- Foreground="#2F4F4F"
- TextWrapping="Wrap"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- />
- </StackPanel>
- </Window>
|