mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Shared UI - Flattened namespaces Shared UI - General housekeeping Project - Code cleanup
48 lines
2.7 KiB
XML
48 lines
2.7 KiB
XML
<UserControl x:Class="Artemis.Plugins.Devices.Debug.Views.DebugConfigurationView"
|
|
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:s="https://github.com/canton7/Stylet"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<Grid Margin="15">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock>
|
|
Enter absolute paths to the device layout and choose the image layout you wish to test. <LineBreak />
|
|
Please note that currently RGB.NET does not support changing devices on runtime and so any changes below won't be applied until you restart Artemis.
|
|
</TextBlock>
|
|
<DataGrid Grid.Row="1"
|
|
ItemsSource="{Binding Definitions}"
|
|
AutoGenerateColumns="False"
|
|
CanUserSortColumns="True"
|
|
CanUserAddRows="True"
|
|
materialDesign:DataGridAssist.CellPadding="13 8 8 8"
|
|
materialDesign:DataGridAssist.ColumnHeaderPadding="8"
|
|
HeadersVisibility="All">
|
|
<DataGrid.Columns>
|
|
<materialDesign:DataGridTextColumn Width="*"
|
|
Binding="{Binding Layout}"
|
|
Header="Layout path"
|
|
EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}" />
|
|
<materialDesign:DataGridTextColumn Width="*"
|
|
Binding="{Binding ImageLayout}"
|
|
Header="Image layout (optional)"
|
|
EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}" />
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button Style="{StaticResource MaterialDesignOutlinedButton}" Margin="0 0 5 0" Command="{s:Action Cancel}">
|
|
CANCEL
|
|
</Button>
|
|
<Button Style="{StaticResource MaterialDesignFlatMidBgButton}" Command="{s:Action SaveChanges}">
|
|
SAVE CHANGES
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl> |