mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
scrolly posts
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
x:Name="ContentGrid"
|
||||
Padding="12, 8, 8, 8"
|
||||
CornerRadius="{StaticResource OverlayCornerRadius}"
|
||||
TabFocusNavigation="Cycle"
|
||||
Margin="0,4,4,4"
|
||||
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
|
||||
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}">
|
||||
|
||||
@@ -23,15 +23,16 @@
|
||||
|
||||
<controls:SwitchPresenter TargetType="local:ViewModelLoadedState" Value="{x:Bind LoadedState, Mode=OneWay}">
|
||||
<controls:Case Value="Loaded">
|
||||
|
||||
<ItemsControl Margin="8" ItemsSource="{x:Bind ViewModel.Forms, Mode=OneWay}">
|
||||
<!-- or ListView or ItemsRepeater more likely... -->
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate x:DataType="viewmodels:FormViewModel">
|
||||
<cmdPalControls:FormControl ViewModel="{x:Bind}"/>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
<ScrollView VerticalAlignment="Top" VerticalScrollMode="Enabled">
|
||||
<ItemsControl VerticalAlignment="Stretch" Margin="8" ItemsSource="{x:Bind ViewModel.Forms, Mode=OneWay}">
|
||||
<!-- or ListView or ItemsRepeater more likely... -->
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate x:DataType="viewmodels:FormViewModel">
|
||||
<cmdPalControls:FormControl ViewModel="{x:Bind}"/>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</ScrollView>
|
||||
|
||||
</controls:Case>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user