blob: 2edbe69c58d949dc1253c993fec1898d987ee420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<mahapps:MetroWindow x:Class="Tango.FSE.UI.DemoMode.DemoModeWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:global="clr-namespace:Tango.FSE.UI"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:Tango.FSE.UI.DemoMode"
mc:Ignorable="d"
Title="Tango FSE - Demo Mode"
Height="400"
Width="350"
WindowState="Minimized"
TitleForeground="{StaticResource FSE_PrimaryForegroundBrush}"
TextElement.Foreground="{StaticResource FSE_PrimaryForegroundBrush}"
Background="{StaticResource FSE_PrimaryBackgroundBrush}"
TextElement.FontSize="{StaticResource FSE_DefaultFontSize}"
TitleCharacterCasing="Normal"
EnableDWMDropShadow="True"
BorderThickness="1"
BorderBrush="Gray"
FontFamily="{StaticResource flexo}"
WindowTitleBrush="{StaticResource FSE_PrimaryBackgroundLightBrush}"
d:DataContext="{d:DesignInstance Type=local:DemoModeWindowVM, IsDesignTimeCreatable=False}"
DataContext="{x:Static global:ViewModelLocator.DemoModeWindowVM}" ShowCloseButton="False" ShowMaxRestoreButton="False">
<Grid>
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Padding="5">
<ItemsControl ItemsSource="{Binding DemoModeManager.DemoCommands}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Padding="10 10" HorizontalContentAlignment="Left" Margin="0 5 0 0" Style="{StaticResource FSE_RaisedButton_Dark_Hover}" Command="{Binding Command}">
<DockPanel>
<materialDesign:PackIcon Kind="LightningBolt" VerticalAlignment="Top" Width="24" Height="24" />
<StackPanel Margin="10 0 0 0">
<TextBlock Text="{Binding Name}" FontSize="{StaticResource FSE_SmallFontSize}"></TextBlock>
<TextBlock Text="{Binding Description}" Margin="0 5 0 0" Foreground="{StaticResource FSE_GrayBrush}" FontSize="{StaticResource FSE_SmallerFontSize}" TextWrapping="Wrap"></TextBlock>
</StackPanel>
</DockPanel>
</Button>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</Grid>
</mahapps:MetroWindow>
|