limit ex/import uid selections height

This commit is contained in:
DismissedLight
2024-07-15 00:04:15 +08:00
parent d57865fed9
commit eb57ac5952
2 changed files with 23 additions and 18 deletions

View File

@@ -15,14 +15,16 @@
mc:Ignorable="d">
<Grid>
<cwc:HeaderedContentControl Header="{shuxm:ResourceString Name=ViewDialogExportUIGFSubtitle}">
<ItemsControl Margin="0,4,0,0" ItemsSource="{x:Bind Selections}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Uid}" IsChecked="{Binding IsSelected, Mode=TwoWay}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</cwc:HeaderedContentControl>
<ScrollViewer MaxHeight="480">
<cwc:HeaderedContentControl Header="{shuxm:ResourceString Name=ViewDialogExportUIGFSubtitle}">
<ItemsControl Margin="0,4,0,0" ItemsSource="{x:Bind Selections}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Uid}" IsChecked="{Binding IsSelected, Mode=TwoWay}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</cwc:HeaderedContentControl>
</ScrollViewer>
</Grid>
</ContentDialog>

View File

@@ -64,14 +64,17 @@
</cwc:UniformGrid>
<cwc:HeaderedContentControl Grid.Row="1" Header="{shuxm:ResourceString Name=ViewDialogImportUIGFSubtitle}">
<ItemsControl Margin="0,4,0,0" ItemsSource="{x:Bind Selections}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Uid}" IsChecked="{Binding IsSelected, Mode=TwoWay}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</cwc:HeaderedContentControl>
<ScrollViewer MaxHeight="480">
<cwc:HeaderedContentControl Grid.Row="1" Header="{shuxm:ResourceString Name=ViewDialogImportUIGFSubtitle}">
<ItemsControl Margin="0,4,0,0" ItemsSource="{x:Bind Selections}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Uid}" IsChecked="{Binding IsSelected, Mode=TwoWay}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</cwc:HeaderedContentControl>
</ScrollViewer>
</Grid>
</ContentDialog>