87 lines
5.6 KiB
Plaintext
87 lines
5.6 KiB
Plaintext
![]() |
<!--
|
||
|
Copyright (C) 2014-2019 de4dot@gmail.com
|
||
|
|
||
|
This file is part of dnSpy
|
||
|
|
||
|
dnSpy is free software: you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation, either version 3 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
dnSpy is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with dnSpy. If not, see <http://www.gnu.org/licenses/>.
|
||
|
-->
|
||
|
<winlocal:WindowBase x:Class="dnSpy.AsmEditor.Resources.ImageListDlg"
|
||
|
x:ClassModifier="internal"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:local="clr-namespace:dnSpy.AsmEditor.Resources"
|
||
|
xmlns:mvvmvc="clr-namespace:dnSpy.Contracts.MVVM.Converters;assembly=dnSpy.Contracts.DnSpy"
|
||
|
xmlns:winlocal="clr-namespace:dnSpy.Contracts.Controls;assembly=dnSpy.Contracts.DnSpy"
|
||
|
xmlns:p="clr-namespace:dnSpy.AsmEditor.Properties"
|
||
|
Title="{x:Static p:dnSpy_AsmEditor_Resources.EditResourceCommand2}"
|
||
|
Height="400" Width="350"
|
||
|
Style="{StaticResource DialogWindowStyle}" WindowStartupLocation="CenterOwner"
|
||
|
MinHeight="250" MinWidth="300">
|
||
|
<winlocal:WindowBase.Resources>
|
||
|
<mvvmvc:NegateBooleanConverter x:Key="NegateBooleanConverter" />
|
||
|
</winlocal:WindowBase.Resources>
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="*" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<Grid Grid.Row="0" Margin="0 5 5 0">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
<ColumnDefinition Width="*" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Label Grid.Row="0" Grid.Column="0" Margin="0 0 0 0" Target="{Binding ElementName=nameTextBox}" Content="{x:Static p:dnSpy_AsmEditor_Resources.Resource_Name}" />
|
||
|
<TextBox Grid.Row="0" Grid.Column="1" Margin="5 0 0 0" Name="nameTextBox" Text="{Binding Name, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
<Label Grid.Row="1" Grid.Column="0" Margin="0 5 0 0" Content="{x:Static p:dnSpy_AsmEditor_Resources.Resource_ColorDepth}" Target="{Binding ElementName=colorDepthComboBox}" />
|
||
|
<ComboBox Grid.Row="1" Grid.Column="1" Margin="5 5 0 0" HorizontalAlignment="Stretch" Name="colorDepthComboBox" DisplayMemberPath="Name" ItemsSource="{Binding ColorDepthVM.Items}" SelectedIndex="{Binding ColorDepthVM.SelectedIndex}" VerticalContentAlignment="Center" />
|
||
|
<Label Grid.Row="2" Grid.Column="0" Margin="0 5 0 0" Content="{x:Static p:dnSpy_AsmEditor_Resources.Resource_TransparentColor}" Target="{Binding ElementName=transpColorTextBox}" />
|
||
|
<TextBox Grid.Row="2" Grid.Column="1" Margin="5 5 0 0" Name="transpColorTextBox" Text="{Binding TransparentColorVM.StringValue, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
|
||
|
<Label Grid.Row="3" Grid.Column="0" Margin="0 5 0 0" Target="{Binding ElementName=withTextBox}" Content="{x:Static p:dnSpy_AsmEditor_Resources.Resource_Size}" />
|
||
|
<Grid Grid.Row="3" Grid.Column="1">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
<ColumnDefinition Width="*" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<TextBox Grid.Column="0" Margin="5 5 0 0" Name="withTextBox" Text="{Binding WidthVM.StringValue, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
<Label Grid.Column="1" Margin="5 5 0 0" Content="x" />
|
||
|
<TextBox Grid.Column="2" Margin="5 5 0 0" Name="heightTextBox" Text="{Binding HeightVM.StringValue, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
|
||
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||
|
<local:ImageListStreamerControl DataContext="{Binding ImageListStreamerVM}" Margin="5" />
|
||
|
</ScrollViewer>
|
||
|
|
||
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5 0 5 5">
|
||
|
<Button Content="{x:Static p:dnSpy_AsmEditor_Resources.Button_OK}" IsEnabled="{Binding HasError, Converter={StaticResource NegateBooleanConverter}}" IsDefault="True" Style="{StaticResource DialogButton}" Margin="0,0,5,0" Click="okButton_Click" />
|
||
|
<Button Content="{x:Static p:dnSpy_AsmEditor_Resources.Button_Cancel}" IsCancel="True" Style="{StaticResource DialogButton}" Margin="0,0,5,0" />
|
||
|
<Button Content="{x:Static p:dnSpy_AsmEditor_Resources.Button_RestoreSettings}" Style="{StaticResource DialogButton}" Command="{Binding ReinitializeCommand}" />
|
||
|
</StackPanel>
|
||
|
</Grid>
|
||
|
</winlocal:WindowBase>
|