This commit is contained in:
Hakoyu 2023-09-23 16:15:41 +08:00
parent c2822ec8fd
commit fa26de684b
2 changed files with 4 additions and 7 deletions

View File

@ -21,9 +21,6 @@ public class AddCultureWindowVM
public AddCultureWindowVM()
{
ShowCultures.Value = AllCultures;
AllCultures.Add("zh-Hans");
AllCultures.Add("zh-Hant");
AllCultures.Add("en-US");
Search.ValueChanged += Search_ValueChanged;
}

View File

@ -8,7 +8,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="https://opensource.panuon.com/wpf-ui"
xmlns:vm="clr-namespace:VPet.ModMaker.ViewModels.ModEdit"
Title="Window_AddLang"
Title="{ll:Str 添加文化}"
Width="500"
Height="400"
d:DataContext="{d:DesignInstance Type=vm:AddCultureWindowVM}"
@ -33,7 +33,7 @@
<TextBox
x:Name="TextBox_Lang"
pu:TextBoxHelper.Watermark="{ll:Str 语言区域标记}"
Text="{Binding Lang.Value, UpdateSourceTrigger=PropertyChanged}" />
Text="{Binding Culture.Value, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Grid.Row="1">
<Hyperlink Click="Hyperlink_Click">
<TextBlock Text="{ll:Str 详情请参阅 Windows 支持的语言/区域名称列表中的“语言标记”列}" />
@ -66,8 +66,8 @@
<TextBox pu:TextBoxHelper.Watermark="{ll:Str 搜索}" Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
<ListBox
Grid.Row="1"
ItemsSource="{Binding ShowLangs.Value}"
SelectedItem="{Binding Lang.Value}" />
ItemsSource="{Binding ShowCultures.Value}"
SelectedItem="{Binding Culture.Value}" />
</Grid>
</Grid>
</Window>