CustomProgressbar.xaml 1.9 KB

1234567891011121314151617181920212223
  1. <UserControl x:Class="ivf_tl_Operate.CustomUserControls.CustomProgressbar"
  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:ivf_tl_Operate.CustomUserControls"
  7. xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_Surface"
  8. mc:Ignorable="d"
  9. Height="145" Width="1776">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="168"/>
  13. <ColumnDefinition Width="1440"/>
  14. <ColumnDefinition Width="168"/>
  15. </Grid.ColumnDefinitions>
  16. <TextBlock x:Name="_PlayTime" VerticalAlignment="Bottom" Grid.Column="0" Height="50" FontSize="32" Margin="20 15 20 0 " Foreground="Gray" Text="00:00:00" />
  17. <Canvas Grid.Column="1" Width="1440" Height="145" Background="Transparent">
  18. <Canvas x:Name="_canvasMarkItem" Width="1440" Height="1"/>
  19. <customControl:SliderText Orientation="Horizontal" x:Name="_videoPro" Focusable="False" IsMoveToPointEnabled="True" Canvas.Top="55" Width="1440" Thumb.DragStarted="_videoPro_DragStarted" Thumb.DragDelta="_videoPro_DragDelta" ValueChanged="_videoPro_ValueChanged" StringInfo="{Binding CurrentFaYuTimeString, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:CustomProgressbar}}}" Maximum="{Binding VideoAllTime, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:CustomProgressbar}}}"/>
  20. </Canvas>
  21. <TextBlock x:Name="_AllTime" Height="50" VerticalAlignment="Bottom" Grid.Column="2" FontSize="32" Margin="20 15 20 0 " Foreground="Gray" HorizontalAlignment="Right" Text="00:00:00" />
  22. </Grid>
  23. </UserControl>