2014-07-22 03:26:28 +08:00
|
|
|
<Grid x:Class="GameRes.Formats.GUI.WidgetYPF"
|
|
|
|
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"
|
2014-08-16 08:42:20 +08:00
|
|
|
xmlns:p="clr-namespace:GameRes.Formats.Properties"
|
|
|
|
xmlns:gui="clr-namespace:GameRes.Formats.GUI"
|
2014-07-22 03:26:28 +08:00
|
|
|
MaxWidth="250">
|
2014-08-16 08:42:20 +08:00
|
|
|
<Grid.Resources>
|
|
|
|
<gui:KeyToStringConverter x:Key="guiKeyConverter" />
|
|
|
|
</Grid.Resources>
|
2014-07-22 03:26:28 +08:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
2014-08-16 08:42:20 +08:00
|
|
|
<ColumnDefinition MinWidth="50" Width="*"/>
|
2014-07-22 03:26:28 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2014-08-16 08:42:20 +08:00
|
|
|
<Label Content="{x:Static s:arcStrings.YPFLabelKey}" Target="{Binding ElementName=Passkey}" ToolTip="{x:Static s:arcStrings.TooltipHex}" Grid.Column="0" Grid.Row="0" Padding="0,1" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
|
|
|
<TextBox Name="Passkey" Text="{Binding Source={x:Static p:Settings.Default}, Path=YPFKey, Mode=TwoWay, Converter={StaticResource guiKeyConverter}}"
|
|
|
|
ToolTip="{x:Static s:arcStrings.TooltipHex}" Margin="5" Width="50" Grid.Column="1" Grid.Row="0"/>
|
|
|
|
</Grid>
|