mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
更新
This commit is contained in:
parent
18fbc60f87
commit
a91d7e2835
@ -45,16 +45,18 @@ public class MovePageVM
|
|||||||
|
|
||||||
private void Search_ValueChanged(string oldValue, string newValue)
|
private void Search_ValueChanged(string oldValue, string newValue)
|
||||||
{
|
{
|
||||||
//if (string.IsNullOrWhiteSpace(newValue))
|
if (string.IsNullOrWhiteSpace(newValue))
|
||||||
//{
|
{
|
||||||
// ShowMoves.EnumValue = Moves;
|
ShowMoves.Value = Moves;
|
||||||
//}
|
}
|
||||||
//else
|
else
|
||||||
//{
|
{
|
||||||
// ShowMoves.EnumValue = new(
|
ShowMoves.Value = new(
|
||||||
// Moves.Where(m => m.Id.EnumValue.Contains(newValue, StringComparison.OrdinalIgnoreCase))
|
Moves.Where(
|
||||||
// );
|
m => m.Graph.Value.Contains(newValue, StringComparison.OrdinalIgnoreCase)
|
||||||
//}
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Close() { }
|
public void Close() { }
|
||||||
|
@ -32,12 +32,12 @@
|
|||||||
ItemsSource="{Binding ShowClickTexts.Value}"
|
ItemsSource="{Binding ShowClickTexts.Value}"
|
||||||
MouseDoubleClick="DataGrid_MouseDoubleClick"
|
MouseDoubleClick="DataGrid_MouseDoubleClick"
|
||||||
RowDetailsVisibilityMode="Visible"
|
RowDetailsVisibilityMode="Visible"
|
||||||
RowHeight="50"
|
RowHeight="64"
|
||||||
VirtualizingStackPanel.IsVirtualizing="True"
|
VirtualizingStackPanel.IsVirtualizing="True"
|
||||||
VirtualizingStackPanel.VirtualizationMode="Recycling">
|
VirtualizingStackPanel.VirtualizationMode="Recycling">
|
||||||
<DataGrid.RowStyle>
|
<DataGrid.RowStyle>
|
||||||
<Style BasedOn="{StaticResource {x:Type DataGridRow}}" TargetType="DataGridRow">
|
<Style BasedOn="{StaticResource {x:Type DataGridRow}}" TargetType="DataGridRow">
|
||||||
<Setter Property="Height" Value="50" />
|
<Setter Property="Height" Value="64" />
|
||||||
<Setter Property="Tag" Value="{Binding}" />
|
<Setter Property="Tag" Value="{Binding}" />
|
||||||
<Setter Property="ContextMenu" Value="{StaticResource ContextMenu_DataGridRow}" />
|
<Setter Property="ContextMenu" Value="{StaticResource ContextMenu_DataGridRow}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
@ -151,9 +151,10 @@
|
|||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
SortMemberPath="Price.Value" />
|
SortMemberPath="Price.Value" />
|
||||||
<DataGridTextColumn
|
<DataGridTextColumn
|
||||||
|
MaxWidth="300"
|
||||||
Binding="{Binding CurrentI18nData.Value.Description.Value}"
|
Binding="{Binding CurrentI18nData.Value.Description.Value}"
|
||||||
CanUserSort="True"
|
CanUserSort="True"
|
||||||
ElementStyle="{DynamicResource TextBlock_LeftCenter}"
|
ElementStyle="{DynamicResource TextBlock_Wrap}"
|
||||||
Header="{ll:Str 描述}"
|
Header="{ll:Str 描述}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
SortMemberPath="CurrentI18nData.Value.Description.Value" />
|
SortMemberPath="CurrentI18nData.Value.Description.Value" />
|
||||||
|
@ -23,9 +23,9 @@
|
|||||||
<ColumnDefinition />
|
<ColumnDefinition />
|
||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<!--<TextBox pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}" Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}">
|
<TextBox pu:TextBoxHelper.Watermark="{ll:Str 搜索动画}" Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}">
|
||||||
<TextBox.Style>
|
<TextBox.Style>
|
||||||
<Style BasedOn="{StaticResource {x:Type TextBox}}" TargetType="TextBox">
|
<Style BasedOn="{StaticResource StandardTextBoxStyle}" TargetType="TextBox">
|
||||||
<Setter Property="IsEnabled" Value="True" />
|
<Setter Property="IsEnabled" Value="True" />
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
<DataTrigger Binding="{Binding SelectedItem, ElementName=ComboBox_Pet}" Value="{x:Null}">
|
<DataTrigger Binding="{Binding SelectedItem, ElementName=ComboBox_Pet}" Value="{x:Null}">
|
||||||
@ -34,14 +34,15 @@
|
|||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
</TextBox.Style>
|
</TextBox.Style>
|
||||||
</TextBox>-->
|
</TextBox>
|
||||||
<ComboBox
|
<ComboBox
|
||||||
x:Name="ComboBox_Pet"
|
x:Name="ComboBox_Pet"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
pu:ComboBoxHelper.Watermark="{ll:Str 选择宠物}"
|
pu:ComboBoxHelper.Watermark="{ll:Str 选择宠物}"
|
||||||
DisplayMemberPath="Id.Value"
|
DisplayMemberPath="Id.Value"
|
||||||
ItemsSource="{Binding Pets}"
|
ItemsSource="{Binding Pets}"
|
||||||
SelectedItem="{Binding CurrentPet.Value}">
|
SelectedItem="{Binding CurrentPet.Value}"
|
||||||
|
Style="{DynamicResource StandardComboBoxStyle}">
|
||||||
<ComboBox.ItemContainerStyle>
|
<ComboBox.ItemContainerStyle>
|
||||||
<Style BasedOn="{StaticResource {x:Type ComboBoxItem}}" TargetType="ComboBoxItem">
|
<Style BasedOn="{StaticResource {x:Type ComboBoxItem}}" TargetType="ComboBoxItem">
|
||||||
<Setter Property="ToolTip" Value="{Binding CurrentI18nData.Value.Name.Value}" />
|
<Setter Property="ToolTip" Value="{Binding CurrentI18nData.Value.Name.Value}" />
|
||||||
@ -69,12 +70,12 @@
|
|||||||
ItemsSource="{Binding ShowMoves.Value}"
|
ItemsSource="{Binding ShowMoves.Value}"
|
||||||
MouseDoubleClick="DataGrid_MouseDoubleClick"
|
MouseDoubleClick="DataGrid_MouseDoubleClick"
|
||||||
RowDetailsVisibilityMode="Visible"
|
RowDetailsVisibilityMode="Visible"
|
||||||
RowHeight="64"
|
RowHeight="50"
|
||||||
VirtualizingStackPanel.IsVirtualizing="True"
|
VirtualizingStackPanel.IsVirtualizing="True"
|
||||||
VirtualizingStackPanel.VirtualizationMode="Recycling">
|
VirtualizingStackPanel.VirtualizationMode="Recycling">
|
||||||
<DataGrid.RowStyle>
|
<DataGrid.RowStyle>
|
||||||
<Style BasedOn="{StaticResource {x:Type DataGridRow}}" TargetType="DataGridRow">
|
<Style BasedOn="{StaticResource {x:Type DataGridRow}}" TargetType="DataGridRow">
|
||||||
<Setter Property="Height" Value="64" />
|
<Setter Property="Height" Value="50" />
|
||||||
<Setter Property="Tag" Value="{Binding}" />
|
<Setter Property="Tag" Value="{Binding}" />
|
||||||
<Setter Property="ContextMenu" Value="{StaticResource ContextMenu_DataGridRow}" />
|
<Setter Property="ContextMenu" Value="{StaticResource ContextMenu_DataGridRow}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
@ -18,7 +18,10 @@
|
|||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition />
|
<RowDefinition />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBox pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}" Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
<TextBox
|
||||||
|
pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}"
|
||||||
|
Style="{DynamicResource StandardTextBoxStyle}"
|
||||||
|
Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
||||||
<DataGrid
|
<DataGrid
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||||
|
Loading…
Reference in New Issue
Block a user