终端一体化运控平台
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

41 satır
2.0 KiB

  1. <UserControl x:Class="BPASmartClient.MilkWithTea.Control.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. xmlns:local="clr-namespace:BPASmartClient.MilkWithTea.Control"
  7. xmlns:ccontrols="http://schemas.microsoft.com/expression/2010/drawing"
  8. mc:Ignorable="d" x:Name="circularProgress"
  9. Height="100" Width="100">
  10. <Grid x:Name="layout" Width="{Binding RelativeSource={RelativeSource Self}, Path=Width}" Height="100" >
  11. <Ellipse Width="{Binding ElementName=layout, Path=Width}"
  12. Height="{Binding ElementName=layout, Path=Height}"
  13. StrokeThickness="10" Stroke="#ddd" >
  14. <Ellipse.Effect >
  15. <DropShadowEffect BlurRadius="8" ShadowDepth="0" Color="AliceBlue" ></DropShadowEffect>
  16. </Ellipse.Effect>
  17. </Ellipse>
  18. <Path x:Name="cyclePath" StrokeStartLineCap="Round" StrokeEndLineCap="Round" Stroke="#FF37A0EA" StrokeThickness="10" >
  19. <Path.Effect>
  20. <DropShadowEffect Color="WhiteSmoke" ShadowDepth="0" BlurRadius="5"/>
  21. </Path.Effect>
  22. <Path.RenderTransform >
  23. <RotateTransform CenterX="50" CenterY="50" x:Name="rotate">
  24. </RotateTransform>
  25. </Path.RenderTransform>
  26. </Path>
  27. <Viewbox Margin="20">
  28. <TextBlock Foreground="DarkSlateGray" HorizontalAlignment="Center" VerticalAlignment="Center" >
  29. <Run Text="{Binding Percent, RelativeSource={RelativeSource AncestorType=UserControl,Mode=FindAncestor}}"></Run>
  30. <Run Text="%"></Run>
  31. </TextBlock>
  32. </Viewbox>
  33. </Grid>
  34. </UserControl>