| | |
| | | <Ellipse Height="{TemplateBinding Size}" Width="{TemplateBinding Size}" VerticalAlignment="Center"> |
| | | <Ellipse.Style> |
| | | <Style TargetType="Ellipse"> |
| | | <Setter Property="Fill" Value="{StaticResource RedLight}"/> |
| | | <Setter Property="Fill" Value="Gray"/> |
| | | <Style.Triggers> |
| | | <DataTrigger Binding="{Binding Value,RelativeSource={RelativeSource Mode=TemplatedParent}}" Value="True"> |
| | | <Setter Property="Fill" Value="{StaticResource GreenLight}"/> |
| | | </DataTrigger> |
| | | <DataTrigger Binding="{Binding Value,RelativeSource={RelativeSource Mode=TemplatedParent}}" Value="False"> |
| | | <Setter Property="Fill" Value="{StaticResource RedLight}"/> |
| | | </DataTrigger> |
| | | </Style.Triggers> |
| | | </Style> |
| | |
| | | </Setter.Value> |
| | | </Setter> |
| | | </Style> |
| | | |
| | | <Style TargetType="{x:Type local:ScrollLabel}"> |
| | | <Setter Property="Template"> |
| | | <Setter.Value> |
| | | <ControlTemplate TargetType="{x:Type local:ScrollLabel}"> |
| | | <ScrollViewer Name="slv" IsHitTestVisible="False" Width="{TemplateBinding Width}" |
| | | VerticalScrollBarVisibility="Hidden" |
| | | BorderThickness="0" |
| | | HorizontalScrollBarVisibility="Hidden"> |
| | | <Label x:Name="label" Content="{Binding Path=Value, RelativeSource={RelativeSource TemplatedParent}}" |
| | | VerticalContentAlignment="Center" |
| | | BorderThickness="0" |
| | | Foreground="{TemplateBinding Foreground}" |
| | | Padding="{TemplateBinding Padding}" |
| | | Margin="{TemplateBinding Margin}" |
| | | HorizontalContentAlignment="Left" FontSize="{TemplateBinding FontSize}"> |
| | | <!--<Label.Triggers> |
| | | <EventTrigger RoutedEvent="Label.Loaded"> |
| | | <BeginStoryboard HandoffBehavior="Compose"> |
| | | <Storyboard> |
| | | <DoubleAnimation From="0" |
| | | To="{Binding ElementName=slv,Path=ScrollableWidth}" |
| | | Duration="0:0:3" |
| | | Storyboard.TargetName="slv" |
| | | AutoReverse="True" |
| | | RepeatBehavior="Forever" |
| | | BeginTime="0:0:0.2" |
| | | Storyboard.TargetProperty="(local:ScrollViewerBehavior.HorizontalOffset)"> |
| | | </DoubleAnimation> |
| | | </Storyboard> |
| | | </BeginStoryboard> |
| | | </EventTrigger> |
| | | </Label.Triggers>--> |
| | | </Label> |
| | | </ScrollViewer> |
| | | </ControlTemplate> |
| | | </Setter.Value> |
| | | </Setter> |
| | | </Style> |
| | | </ResourceDictionary> |