aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Procedures/Dialogs/LoadPublishedProjectView.xaml
blob: 4c51caf407a1a2b96f53cf44c126478e4c671838 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<UserControl x:Class="Tango.FSE.Procedures.Dialogs.LoadPublishedProjectView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:local="clr-namespace:Tango.FSE.Procedures.Dialogs"
             mc:Ignorable="d" 
             Width="1000" Height="600" d:DataContext="{d:DesignInstance Type=local:LoadPublishedProjectViewVM, IsDesignTimeCreatable=False}" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
    <Grid Margin="10">
        <DockPanel>
            <StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
                <material:PackIcon Kind="FolderCog" Width="32" Height="32" />
                <TextBlock Margin="10 0 0 0" FontSize="{StaticResource FSE_LargeFontSize}" VerticalAlignment="Center">Published Projects</TextBlock>
            </StackPanel>

            <Border Margin="0 20 0 0" BorderThickness="1" BorderBrush="{StaticResource FSE_BorderBrush}" Background="{StaticResource FSE_PrimaryBackgroundDarkBrush}" CornerRadius="5">
                <ListBox FontSize="{StaticResource FSE_SmallFontSize}" Margin="2" Background="Transparent" HorizontalContentAlignment="Stretch" ItemsSource="{Binding PublishedProcedureProjects}" SelectedItem="{Binding SelectedProject}">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <DockPanel>
                                <Image Source="../Images/project.png" RenderOptions.BitmapScalingMode="Fant" Width="64" VerticalAlignment="Top" />
                                <material:PackIcon DockPanel.Dock="Right" Kind="Eye">
                                    <material:PackIcon.Style>
                                        <Style TargetType="material:PackIcon">
                                            <Setter Property="Foreground" Value="{StaticResource FSE_GrayBrush}"></Setter>
                                            <Setter Property="ToolTip" Value="Suppressed"></Setter>
                                            <Style.Triggers>
                                                <DataTrigger Binding="{Binding IsVisible}" Value="True">
                                                    <Setter Property="Foreground" Value="{StaticResource FSE_GreenBrush}"></Setter>
                                                    <Setter Property="ToolTip" Value="Published"></Setter>
                                                </DataTrigger>
                                            </Style.Triggers>
                                        </Style>
                                    </material:PackIcon.Style>
                                </material:PackIcon>
                                <StackPanel Margin="10 0 0 0">
                                    <TextBlock FontSize="{StaticResource FSE_LargeFontSize}">
                                        <Run Text="{Binding Name}"></Run>
                                    </TextBlock>
                                    <TextBlock Margin="0 2 0 0" Foreground="{StaticResource FSE_GrayBrush}">
                                        <Run FontWeight="SemiBold">Version:</Run>
                                        <Run Text="{Binding CurrentVersion.Version}"></Run>
                                    </TextBlock>
                                    <TextBlock Margin="0 2 0 0" Foreground="{StaticResource FSE_GrayBrush}">
                                        <Run FontWeight="SemiBold">Author:</Run>
                                        <Run Text="{Binding CurrentVersion.Author}"></Run>
                                    </TextBlock>
                                    <TextBlock Margin="0 2 0 0" Foreground="{StaticResource FSE_GrayBrush}">
                                        <Run FontWeight="SemiBold">Visibility:</Run>
                                        <Run Text="{Binding ProjectVisibility}"></Run>
                                    </TextBlock>
                                    <TextBlock Margin="0 2 0 0" TextWrapping="NoWrap" Foreground="{StaticResource FSE_GrayBrush}" TextTrimming="CharacterEllipsis">
                                        <Run FontWeight="SemiBold">Description:</Run>
                                        <Run Text="{Binding Description}"></Run>
                                    </TextBlock>
                                </StackPanel>
                            </DockPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </Border>
        </DockPanel>

        <CheckBox IsChecked="{Binding ShowSuppressedProjects}" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="10 0 0 -55" Foreground="{StaticResource FSE_GrayBrush}" FontSize="{StaticResource FSE_SmallFontSize}">Show Suppressed Projects</CheckBox>
    </Grid>
</UserControl>