aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Insights/Dialogs/ExportToCsvDialogView.xaml
blob: 10af90ce35d368b847cfe3ba4c3b24d8736f42b4 (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
<UserControl x:Class="Tango.FSE.Insights.Dialogs.ExportToCsvDialogView"
             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:commonControls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
             xmlns:local="clr-namespace:Tango.FSE.Insights.Dialogs"
             mc:Ignorable="d" 
             Width="700" Height="500" d:DataContext="{d:DesignInstance Type=local:ExportToCsvDialogViewVM, IsDesignTimeCreatable=False}" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
    <Grid Margin="10">
        <DockPanel>
            <StackPanel DockPanel.Dock="Top" >
                <StackPanel Orientation="Horizontal">
                    <Image Source="../Images/excel.png" Stretch="Uniform" Width="50" RenderOptions.BitmapScalingMode="Fant" />
                    <TextBlock Margin="10 0 0 0" FontSize="{StaticResource FSE_LargerFontSize}" VerticalAlignment="Center">Export Monitors To CSV</TextBlock>
                </StackPanel>

                <TextBlock Margin="0 10 0 0" TextWrapping="Wrap" FontSize="{StaticResource FSE_SmallFontSize}">
                      <Run>Please select from the below monitors and press 'EXPORT'.</Run>
                      <LineBreak/>
                      <Run Foreground="{StaticResource FSE_GrayBrush}">Gaps in monitors samples due to machine disconnection etc, will be represented by a row with empty values.</Run>
                </TextBlock>

                <DockPanel Margin="0 10 0 0">
                    <material:PackIcon Kind="Search" VerticalAlignment="Center" Width="20" Height="20" />
                    <TextBox Margin="5 0 0 0" Padding="1" material:HintAssist.Hint="Find Monitor" Text="{Binding Filter,UpdateSourceTrigger=PropertyChanged,Delay=300}" Width="300" HorizontalAlignment="Left"></TextBox>
                </DockPanel>
            </StackPanel>

            <DockPanel>
                <StackPanel DockPanel.Dock="Bottom" Margin="0 10 0 0">
                    <DockPanel>
                        <commonControls:IconButton Command="{Binding SelectFileCommand}" Margin="5 0 0 0" Padding="0" DockPanel.Dock="Right" Icon="FolderOpen" Width="30" Height="30" VerticalAlignment="Bottom" />
                        <TextBox Style="{StaticResource FSE_Rounded_Corners_TextBox}" Background="{StaticResource FSE_PrimaryBackgroundBrush}" material:HintAssist.Hint="Browse File Location" Text="{Binding SelectedFile,Mode=OneWay}" IsReadOnly="True"></TextBox>
                    </DockPanel>
                </StackPanel>
                <Border Margin="0 10 0 0" BorderThickness="1" BorderBrush="{StaticResource FSE_BorderBrush}" Background="{StaticResource FSE_PrimaryBackgroundDarkBrush}" CornerRadius="5">
                    <ScrollViewer Margin="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
                        <StackPanel>
                            <StackPanel Orientation="Horizontal" Margin="5 5 0 0">
                                <CheckBox VerticalAlignment="Center" IsChecked="{Binding SelectAll,Mode=TwoWay}" />
                                <material:PackIcon Margin="5 0 0 0" VerticalAlignment="Center" Kind="ChartHistogram" Width="20" Height="20" />
                                <TextBlock Margin="10 0 0 0" Text="Select All" VerticalAlignment="Center"></TextBlock>
                            </StackPanel>
                            <ItemsControl ItemsSource="{Binding SelectedCharts}">
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <Border Padding="5">
                                            <StackPanel Orientation="Horizontal">
                                                <CheckBox VerticalAlignment="Center" IsChecked="{Binding IsSelected,Mode=TwoWay}" />
                                                <material:PackIcon Margin="5 0 0 0" VerticalAlignment="Center" Kind="ChartLine" Width="20" Height="20" />
                                                <TextBlock Margin="10 0 0 0" Text="{Binding Data.Description}" VerticalAlignment="Center"></TextBlock>
                                            </StackPanel>
                                        </Border>
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </StackPanel>
                    </ScrollViewer>
                </Border>
            </DockPanel>
        </DockPanel>
    </Grid>
</UserControl>