source: trunk/CrypPlugins/WorkspaceManager/View/VisualComponents/CircularProgressBar.xaml @ 2388

Last change on this file since 2388 was 1685, checked in by matkovic, 11 years ago

-Style changes

File size: 1.7 KB
Line 
1<UserControl x:Class="WorkspaceManager.View.VisualComponents.CircularProgressBar"
2             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6             Height="45" Width="45">
7    <UserControl.Resources>
8        <Storyboard x:Key="ColorAnimation">
9            <ColorAnimation Storyboard.TargetProperty="Fill.Color" Duration="00:00:01.000" />
10        </Storyboard>
11    </UserControl.Resources>
12    <UserControl.LayoutTransform>
13        <ScaleTransform ScaleX="0.7" ScaleY="0.7"></ScaleTransform>
14    </UserControl.LayoutTransform>
15   
16    <Grid>
17        <Path Fill="red" Stroke="#FF7E7A7A" x:Name="PercentagePath">
18            <Path.RenderTransform>
19                <TransformGroup>
20                    <TranslateTransform X="22" Y="22"></TranslateTransform>
21                </TransformGroup>
22            </Path.RenderTransform>
23            <Path.Effect>
24                <DropShadowEffect BlurRadius="3" ShadowDepth="3" Color="#FFC2C2C2"/>
25            </Path.Effect>
26            <Path.Data>
27                <PathGeometry>
28                    <PathFigure StartPoint="0 0" IsClosed="True">
29                        <LineSegment Point="18 0" />
30                        <ArcSegment x:Name="PercentageArc"
31                                Size="18 18" SweepDirection="ClockWise" Point="18 0" IsLargeArc="False"/>
32                    </PathFigure>
33                </PathGeometry>
34            </Path.Data>
35        </Path>
36    </Grid>
37</UserControl>
Note: See TracBrowser for help on using the repository browser.