src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml
changeset 165 e78e40b9d761
parent 151 5f011a5ce421
child 168 d70ee2002f75
equal deleted inserted replaced
164:09700eb26702 165:e78e40b9d761
   160                                                                     <Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/>
   160                                                                     <Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/>
   161                                                                     <Rectangle x:Name="Button" Fill="{x:Null}" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True" Stroke="{x:Null}"/>
   161                                                                     <Rectangle x:Name="Button" Fill="{x:Null}" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True" Stroke="{x:Null}"/>
   162                                                                     <Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Fill="{x:Null}" Stroke="{x:Null}"/>
   162                                                                     <Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Fill="{x:Null}" Stroke="{x:Null}"/>
   163                                                                     <Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/>
   163                                                                     <Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/>
   164                                                                     <Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/>
   164                                                                     <Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/>
       
   165                                                                     <Rectangle x:Name="PauseSymbol" Fill="{DynamicResource Play_xaml}" Stroke="{x:Null}" RenderTransformOrigin="0.5,0.5" Margin="0,-4.435,0.676,11.231" HorizontalAlignment="Right" Width="12.393" Visibility="Collapsed">
       
   166                                                                     	<Rectangle.RenderTransform>
       
   167                                                                     		<TransformGroup>
       
   168                                                                     			<ScaleTransform/>
       
   169                                                                     			<SkewTransform/>
       
   170                                                                     			<RotateTransform Angle="89.649"/>
       
   171                                                                     			<TranslateTransform/>
       
   172                                                                     		</TransformGroup>
       
   173                                                                     	</Rectangle.RenderTransform>
       
   174                                                                     </Rectangle>
   165                                                                 </Grid>
   175                                                                 </Grid>
   166                                                                 <ControlTemplate.Triggers>
   176                                                                 <ControlTemplate.Triggers>
   167                                                                     <Trigger Property="IsFocused" Value="True"/>
   177                                                                     <Trigger Property="IsFocused" Value="True"/>
   168                                                                     <Trigger Property="IsEnabled" Value="False">
   178                                                                     <Trigger Property="IsEnabled" Value="False">
   169                                                                         <Setter Property="Fill" TargetName="Button" Value="#00000000"/>
   179                                                                         <Setter Property="Fill" TargetName="Button" Value="#00000000"/>
   774                         </Setter.Value>
   784                         </Setter.Value>
   775                     </Setter>
   785                     </Setter>
   776                 </Trigger>
   786                 </Trigger>
   777             </Style.Triggers>
   787             </Style.Triggers>
   778         </Style>
   788         </Style>
       
   789         <Style x:Key="TimelineViewStyle1" TargetType="{x:Type vw:TimelineView}">
       
   790         	<Setter Property="Template">
       
   791         		<Setter.Value>
       
   792         			<ControlTemplate TargetType="{x:Type vw:TimelineView}">
       
   793         				<Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
       
   794         					<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
       
   795         				</Border>
       
   796         			</ControlTemplate>
       
   797         		</Setter.Value>
       
   798         	</Setter>
       
   799         </Style>
   779     </UserControl.Resources>
   800     </UserControl.Resources>
   780 
   801 
   781     <Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}">
   802     <Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}">
   782         <Custom:SurfaceSlider  Height="Auto" x:Name="slider" Value="0.5" Width="Auto" 
   803         <Custom:SurfaceSlider  Height="Auto" x:Name="slider" Value="0.5" Width="Auto" 
   783                                Thumb.DragStarted="sliderPosition_DragStarted" Thumb.DragCompleted="sliderPosition_DragCompleted" ContactTapGesture="slider_ContactTapGesture" Background="#19FFFFFF" Style="{DynamicResource FingersDance.Control.Slider}" />
   804                                Thumb.DragStarted="sliderPosition_DragStarted" Thumb.DragCompleted="sliderPosition_DragCompleted" ContactTapGesture="slider_ContactTapGesture" Background="#19FFFFFF" Style="{DynamicResource FingersDance.Control.Slider}" />
   784         <vw:TimelineView x:Name="tv" Margin="0,15,0,0" Background="{x:Null}"/>
   805         <vw:TimelineView x:Name="tv" Margin="0,15,0,0" Background="{x:Null}" Style="{DynamicResource TimelineViewStyle1}"/>
   785         <popup:UserControlClose x:Name="confirmCancelPopup" Question="Êtes-vous de sûr de vouloir effacer cette annotation ?" Visibility="Hidden" ConfirmYesOrNo="confirmCancelPopup_ConfirmYesOrNo" />
   806         <popup:UserControlClose x:Name="confirmCancelPopup" Question="Êtes-vous de sûr de vouloir effacer cette annotation ?" Visibility="Hidden" ConfirmYesOrNo="confirmCancelPopup_ConfirmYesOrNo" />
   786     </Grid>
   807     </Grid>
   787 </UserControl>
   808 </UserControl>