| | |
| | | Style="{StaticResource ListBoxItemStyle2}" |
| | | BorderBrush="Gray" |
| | | Visibility="{Binding MenuVisibility}" |
| | | SelectedItem="{Binding SelectedSubMenu}" AlternationCount="{Binding SubMenuItems.Count}" |
| | | SelectionChanged="SubMenu_SelectionChanged" |
| | | BorderThickness="0" ItemsSource="{Binding SubMenuItems}" > |
| | | SelectedItem="{Binding SelectedSubMenu,Mode=OneWay}" AlternationCount="{Binding SubMenuItems.Count}" |
| | | SelectionChanged="SubMenu_SelectionChanged" BorderThickness="0" ItemsSource="{Binding SubMenuItems}" > |
| | | </ListBox> |
| | | </DockPanel> |
| | | </Border> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <Border x:Name="page" Grid.Row="2" BorderThickness="0" Margin="0" Background="White" Padding="0"> |
| | | |
| | | </Border> |
| | | |
| | | <Border Height="80" Grid.Row="2" Background="Red" Visibility="Collapsed" VerticalAlignment="Top" x:Name="alarmBorder"> |
| | | <Border.Style> |
| | | <Style TargetType="Border"> |
| | | <Style.Triggers> |
| | | <Trigger Property="Visibility" Value="Visible"> |
| | | <Trigger.EnterActions> |
| | | <BeginStoryboard> |
| | | <Storyboard> |
| | | <ColorAnimation Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" |
| | | From="#ff2100" |
| | | To="#fe7975" |
| | | Duration="0:0:0.7" |
| | | AutoReverse="True" |
| | | RepeatBehavior="Forever"/> |
| | | </Storyboard> |
| | | </BeginStoryboard> |
| | | </Trigger.EnterActions> |
| | | </Trigger> |
| | | </Style.Triggers> |
| | | </Style> |
| | | </Border.Style> |
| | | |
| | | <DockPanel> |
| | | <Button DockPanel.Dock="Right" |
| | | FontSize="25" |
| | | FontWeight="Bold" |
| | | Margin="0,10,10,0" |
| | | VerticalAlignment="Top" |
| | | Click="Button_Click_1" |
| | | FontFamily="{StaticResource iconfont}" Background="Transparent" Content=""/> |
| | | |
| | | <Label Margin="10,0,0,0" FontSize="25" FontWeight="Bold" |
| | | VerticalAlignment="Center" Content="{Binding AlarmInfo}"/> |
| | | |
| | | </DockPanel> |
| | | </Border> |
| | | </Grid> |
| | | </UserControl> |