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

View File

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