aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Procedures/Windows/ProcedureDialogWindow.xaml
blob: 2dc6df858669be6e7ab354a9db0b2fbc2043985e (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
<mahapps:MetroWindow x:Class="Tango.FSE.Procedures.Windows.ProcedureDialogWindow"
        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:commonControls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
        xmlns:local="clr-namespace:Tango.FSE.Procedures.Windows"
        mc:Ignorable="d"
        Title="Tango FSE" 
        TextElement.Foreground="{StaticResource FSE_PrimaryForegroundBrush}"
        Background="{StaticResource FSE_PrimaryBackgroundBrush}"
        TextElement.FontSize="{StaticResource FSE_DefaultFontSize}"
        TitleCharacterCasing="Normal"
        UseNoneWindowStyle="True" 
        EnableDWMDropShadow="True" 
        BorderThickness="1" 
        BorderBrush="Gray" 
        FontFamily="{StaticResource flexo}" 
        WindowTitleBrush="{StaticResource FSE_PrimaryBackgroundBrush}"
        TitleForeground="{StaticResource FSE_PrimaryForegroundBrush}"
        WindowTransitionsEnabled="False" d:DesignWidth="1000" d:DesignHeight="600" AllowsTransparency="True">

    <Grid>
        <DockPanel>
            <Grid Height="40" DockPanel.Dock="Top" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}">

                <StackPanel Margin="5 0 0 0" HorizontalAlignment="Left"  Orientation="Horizontal">
                    <Image Source="{StaticResource FSE_Machine_Full}" RenderOptions.BitmapScalingMode="Fant" Margin="8" />
                    <TextBlock FontWeight="SemiBold" Margin="5 0 0 0" VerticalAlignment="Center" Text="{Binding RelativeSource={RelativeSource AncestorType=Window},Path=Title,FallbackValue='Tango FSE'}"></TextBlock>
                </StackPanel>

                <Image Source="{StaticResource FSE_Twine_Logo_Colored}" RenderOptions.BitmapScalingMode="Fant" HorizontalAlignment="Center" Margin="5"></Image>

                <Polygon HorizontalAlignment="Right" Points="200,0 300,0 300,100 0,100" Width="250" Stretch="Fill">
                    <Polygon.Fill>
                        <ImageBrush Viewport="0 0 800 300" ViewportUnits="Absolute" ImageSource="{StaticResource FSE_Abstract}" Stretch="None" Opacity="0.6" />
                    </Polygon.Fill>
                </Polygon>
            </Grid>
            <Grid Margin="0,-2,0,2">
                <Border x:Name="contentBorder" x:FieldModifier="public" BorderBrush="{StaticResource FSE_PrimaryBackgroundBrush}" BorderThickness="2">
                    
                </Border>

                <Image IsHitTestVisible="False" Source="{StaticResource FSE_Shadow_Top}" VerticalAlignment="Top" Stretch="Fill" Height="10" Opacity="0.6" />
            </Grid>
        </DockPanel>

        <Grid VerticalAlignment="Top" Height="40">
            <DockPanel>
                <UniformGrid DockPanel.Dock="Right" Columns="3" HorizontalAlignment="Right" Width="130">
                    <commonControls:IconButton Padding="8" x:Name="btnMinimize" Icon="WindowMinimize" />
                    <commonControls:IconButton Padding="8" x:Name="btnMaximize" Icon="WindowMaximize" />
                    <commonControls:IconButton Padding="8" x:Name="btnClose" Icon="WindowClose" ToolTip="Close and attach to main application" />
                </UniformGrid>
                <Grid Background="Transparent" x:Name="gridTitle" Margin="0 0 0 0" Height="50" VerticalAlignment="Top"></Grid>
            </DockPanel>
        </Grid>
    </Grid>
</mahapps:MetroWindow>