aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/CctView.xaml
blob: a5bfc2f1464f993eaaf10d4d3019bc03dec587b4 (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
<UserControl x:Class="Tango.MachineStudio.DB.Views.DBViews.CctView"
             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:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
             xmlns:controls="clr-namespace:Tango.MachineStudio.DB.Controls"
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:colorPicker="clr-namespace:Tango;assembly=Tango.ColorPicker"
             xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
             xmlns:vm="clr-namespace:Tango.MachineStudio.DB.ViewModels"
             xmlns:local="clr-namespace:Tango.MachineStudio.DB.Views.DBViews"
             mc:Ignorable="d" 
             d:DesignHeight="400" d:DesignWidth="300" d:DataContext="{d:DesignInstance Type=vm:CctsViewVM, IsDesignTimeCreatable=False}">

    <Grid>
        <controls:TableGrid>
            <TextBlock Text="ID:" FontWeight="Bold"></TextBlock>
            <TextBox Text="{Binding EditEntity.ID}" IsReadOnly="True"></TextBox>
            <TextBlock Text="GUID:" FontWeight="Bold"></TextBlock>
            <TextBox Text="{Binding EditEntity.Guid}" IsReadOnly="True"></TextBox>
            <TextBlock Text="Last Updated:" FontWeight="Bold"></TextBlock>
            <TextBox Text="{Binding EditEntity.LastUpdated}" IsReadOnly="True"></TextBox>
            <TextBlock Text="Name:" FontWeight="Bold"></TextBlock>
            <TextBox Text="{Binding EditEntity.Name}"></TextBox>
            <TextBlock Text="Description:" FontWeight="Bold"></TextBlock>
            <TextBox Text="{Binding EditEntity.Description}"></TextBox>

            <TextBlock Text="Forward File:" FontWeight="Bold"></TextBlock>
            <DockPanel LastChildFill="False">
                <TextBlock DockPanel.Dock="Left" VerticalAlignment="Center" Text="{Binding EditEntity.ForwardFileName,TargetNullValue=NONE}"></TextBlock>
                <Button DockPanel.Dock="Right" Style="{StaticResource MaterialDesignFlatButton}" ToolTip="Select File" Padding="5 0 5 0" Command="{Binding SelectForwardFileCommand}">
                    <StackPanel Orientation="Horizontal">
                        <TextBlock VerticalAlignment="Center">BROWSE</TextBlock>
                        <materialDesign:PackIcon Margin="5 0 0 0" Kind="FolderOutline" Width="24" Height="24"></materialDesign:PackIcon>
                    </StackPanel>
                </Button>
            </DockPanel>

            <TextBlock Text="Inverse File:" FontWeight="Bold"></TextBlock>
            <DockPanel LastChildFill="False">
                <TextBlock DockPanel.Dock="Left" VerticalAlignment="Center" Text="{Binding EditEntity.InverseFileName,TargetNullValue=NONE}"></TextBlock>
                <Button DockPanel.Dock="Right" Style="{StaticResource MaterialDesignFlatButton}" ToolTip="Select File" Padding="5 0 5 0" Command="{Binding SelectInverseFileCommand}">
                    <StackPanel Orientation="Horizontal">
                        <TextBlock VerticalAlignment="Center">BROWSE</TextBlock>
                        <materialDesign:PackIcon Margin="5 0 0 0" Kind="FolderOutline" Width="24" Height="24"></materialDesign:PackIcon>
                    </StackPanel>
                </Button>
            </DockPanel>

            <TextBlock Text="Version:" FontWeight="Bold"></TextBlock>
            <mahapps:NumericUpDown Minimum="0" Maximum="10000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="True" HorizontalContentAlignment="Left" Value="{Binding EditEntity.Version,Mode=TwoWay}"></mahapps:NumericUpDown>

            <TextBlock Text="Recommended Media:" FontWeight="Bold"></TextBlock>
            <ComboBox ItemsSource="{Binding Adapter.Rmls}" SelectedItem="{Binding EditEntity.Rml,Mode=TwoWay}" DisplayMemberPath="Name"></ComboBox>
        </controls:TableGrid>
    </Grid>
</UserControl>