GARbro-mirror/ArcFormats/LiveMaker/WidgetGAL.xaml

21 lines
1.1 KiB
XML

<StackPanel x:Class="GameRes.Formats.GUI.WidgetGAL"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:GameRes.Formats.Strings"
xmlns:p="clr-namespace:GameRes.Formats.Properties"
xmlns:local="clr-namespace:GameRes.Formats.GUI"
MaxWidth="250" Orientation="Vertical">
<Label HorizontalAlignment="Left" Margin="0,0,5,5" Padding="0">
<TextBlock Text="{x:Static s:arcStrings.GALChoose}" TextWrapping="WrapWithOverflow"/>
</Label>
<ComboBox Name="Title" ItemsSource="{Binding}"
SelectedValue="{Binding ElementName=Key, Path=Text}"
SelectedValuePath="Value" DisplayMemberPath="Key"
Width="200" HorizontalAlignment="Left"/>
<TextBox Name="Key" Width="200" HorizontalAlignment="Left" Margin="0,5,0,0">
<TextBox.Text>
<Binding Source="{x:Static p:Settings.Default}" Path="GALKey" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"/>
</TextBox.Text>
</TextBox>
</StackPanel>