Issue #5
This commit is contained in:
@@ -6,52 +6,14 @@
|
||||
xmlns:local="clr-namespace:Server_Dashboard.Controls.HalfRoundProgressBar"
|
||||
xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
|
||||
xmlns:root="clr-namespace:Server_Dashboard"
|
||||
mc:Ignorable="d"
|
||||
x:Name="_this"
|
||||
d:DesignHeight="50" d:DesignWidth="50">
|
||||
mc:Ignorable="d" x:Name="_this" d:DesignHeight="50" d:DesignWidth="50">
|
||||
<UserControl.Resources>
|
||||
<root:ValueToAngleConverter x:Key="valueToAngle"/>
|
||||
</UserControl.Resources>
|
||||
<!--Progress bar but just half round-->
|
||||
<Grid>
|
||||
<Ellipse
|
||||
x:Name="Background"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=BackgroundBrush
|
||||
}"
|
||||
Margin="0"
|
||||
Stroke="{Binding
|
||||
ElementName=_this,
|
||||
Path=BackgroundBrush
|
||||
}"
|
||||
/>
|
||||
<ed:Arc
|
||||
ArcThickness="8"
|
||||
ArcThicknessUnit="Pixel"
|
||||
EndAngle="{Binding
|
||||
Converter={StaticResource valueToAngle},
|
||||
ElementName=_this,
|
||||
Path=Value
|
||||
}"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=IndicatorBrush
|
||||
}"
|
||||
Stretch="None"
|
||||
StartAngle="0"
|
||||
/>
|
||||
<Ellipse
|
||||
x:Name="Border"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=ProgressBorderBrush
|
||||
}"
|
||||
Margin="8"
|
||||
Stroke="{Binding
|
||||
ElementName=_this,
|
||||
Path=ProgressBorderBrush
|
||||
}"
|
||||
|
||||
/>
|
||||
<Ellipse x:Name="Background" Fill="{Binding ElementName=_this, Path=BackgroundBrush}" Margin="0" Stroke="{Binding ElementName=_this, Path=BackgroundBrush}"/>
|
||||
<ed:Arc ArcThickness="8" ArcThicknessUnit="Pixel" EndAngle="{Binding Converter={StaticResource valueToAngle}, ElementName=_this, Path=Value}" Fill="{Binding ElementName=_this, Path=IndicatorBrush}" Stretch="None" StartAngle="0"/>
|
||||
<Ellipse x:Name="Border" Fill="{Binding ElementName=_this, Path=ProgressBorderBrush}" Margin="8" Stroke="{Binding ElementName=_this, Path=ProgressBorderBrush}"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user