|
16
|
1 |
<UserControl
|
|
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Name="userControl"
|
|
|
6 |
mc:Ignorable="d"
|
|
|
7 |
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
|
|
8 |
|
|
|
9 |
x:Class="Iri.Modernisation.Controls.View.HeaderProductionPartControler" Width="128">
|
|
|
10 |
|
|
|
11 |
<Grid x:Name="LayoutRoot">
|
|
|
12 |
<VisualStateManager.VisualStateGroups>
|
|
|
13 |
<VisualStateGroup x:Name="Displays">
|
|
|
14 |
<VisualState x:Name="Finished">
|
|
|
15 |
<Storyboard>
|
|
|
16 |
<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)">
|
|
|
17 |
<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF65FF00"/>
|
|
|
18 |
</ColorAnimationUsingKeyFrames>
|
|
|
19 |
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="but" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
|
20 |
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
|
21 |
<DiscreteObjectKeyFrame.Value>
|
|
|
22 |
<Visibility>Collapsed</Visibility>
|
|
|
23 |
</DiscreteObjectKeyFrame.Value>
|
|
|
24 |
</DiscreteObjectKeyFrame>
|
|
|
25 |
</ObjectAnimationUsingKeyFrames>
|
|
|
26 |
</Storyboard>
|
|
|
27 |
</VisualState>
|
|
|
28 |
<VisualState x:Name="Available">
|
|
|
29 |
<Storyboard>
|
|
|
30 |
<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)">
|
|
|
31 |
<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFFF7E00"/>
|
|
|
32 |
</ColorAnimationUsingKeyFrames>
|
|
|
33 |
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="but" Storyboard.TargetProperty="(Control.IsEnabled)">
|
|
|
34 |
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
|
35 |
<DiscreteObjectKeyFrame.Value>
|
|
|
36 |
<System:Boolean>False</System:Boolean>
|
|
|
37 |
</DiscreteObjectKeyFrame.Value>
|
|
|
38 |
</DiscreteObjectKeyFrame>
|
|
|
39 |
</ObjectAnimationUsingKeyFrames>
|
|
|
40 |
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="but" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
|
41 |
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
|
42 |
<DiscreteObjectKeyFrame.Value>
|
|
|
43 |
<Visibility>Visible</Visibility>
|
|
|
44 |
</DiscreteObjectKeyFrame.Value>
|
|
|
45 |
</DiscreteObjectKeyFrame>
|
|
|
46 |
</ObjectAnimationUsingKeyFrames>
|
|
|
47 |
</Storyboard>
|
|
|
48 |
</VisualState>
|
|
|
49 |
<VisualState x:Name="Selected">
|
|
|
50 |
<Storyboard>
|
|
|
51 |
<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)">
|
|
|
52 |
<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFFFF700"/>
|
|
|
53 |
</ColorAnimationUsingKeyFrames>
|
|
|
54 |
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="but" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
|
55 |
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
|
56 |
<DiscreteObjectKeyFrame.Value>
|
|
|
57 |
<Visibility>Visible</Visibility>
|
|
|
58 |
</DiscreteObjectKeyFrame.Value>
|
|
|
59 |
</DiscreteObjectKeyFrame>
|
|
|
60 |
</ObjectAnimationUsingKeyFrames>
|
|
|
61 |
</Storyboard>
|
|
|
62 |
</VisualState>
|
|
|
63 |
</VisualStateGroup>
|
|
|
64 |
</VisualStateManager.VisualStateGroups>
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
<TextBlock x:Name="textBlock" HorizontalAlignment="Left" Foreground="Red" Text="{Binding Path=Text, ElementName=userControl, Mode=OneWay}" TextWrapping="Wrap" MouseLeftButtonDown="textBlock_MouseLeftButtonDown" d:LayoutOverrides="VerticalMargin"/>
|
|
|
68 |
<Button Width="32" x:Name="but" Content="Ok" Click="but_Click" Visibility="Collapsed" HorizontalAlignment="Right"/>
|
|
|
69 |
</Grid>
|
|
|
70 |
</UserControl> |