mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 10:10:48 +01:00
fix: schema panel scroll issue
This commit is contained in:
@@ -116,31 +116,29 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</ui:NavigationView>
|
</ui:NavigationView>
|
||||||
<SplitView.Pane>
|
<SplitView.Pane>
|
||||||
<StackPanel>
|
<Grid RowDefinitions="auto,*">
|
||||||
<ui:CommandBar DefaultLabelPosition="Right">
|
<ui:CommandBar DefaultLabelPosition="Right"
|
||||||
|
Grid.Row="0">
|
||||||
<ui:CommandBar.PrimaryCommands>
|
<ui:CommandBar.PrimaryCommands>
|
||||||
<ui:CommandBarButton Name="CloseCommandBarButton" Label="Close" Command="{Binding CloseSchemaCommand}"/>
|
<ui:CommandBarButton Name="CloseCommandBarButton" Label="Close" Command="{Binding CloseSchemaCommand}"/>
|
||||||
<ui:CommandBarButton Name="CloseAllCommandBarButton" Label="Close all" Command="{Binding CloseSchemaAllCommand}"/>
|
<ui:CommandBarButton Name="CloseAllCommandBarButton" Label="Close all" Command="{Binding CloseSchemaAllCommand}"/>
|
||||||
</ui:CommandBar.PrimaryCommands>
|
</ui:CommandBar.PrimaryCommands>
|
||||||
</ui:CommandBar>
|
</ui:CommandBar>
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled"
|
<ListBox ItemsSource="{Binding Schemas}" SelectedItem="{Binding SelectedSchema}" Margin="8 0 8 0" Grid.Row="1">
|
||||||
Margin="8 0 8 0">
|
<ListBox.Styles>
|
||||||
<ListBox ItemsSource="{Binding Schemas}" SelectedItem="{Binding SelectedSchema}">
|
<Style Selector="ListBoxItem">
|
||||||
<ListBox.Styles>
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
|
||||||
<Style Selector="ListBoxItem">
|
<Setter Property="Padding" Value="0"></Setter>
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
|
<Setter Property="Margin" Value="0 0 0 8"></Setter>
|
||||||
<Setter Property="Padding" Value="0"></Setter>
|
</Style>
|
||||||
<Setter Property="Margin" Value="0 0 0 8"></Setter>
|
</ListBox.Styles>
|
||||||
</Style>
|
<ListBox.ItemTemplate>
|
||||||
</ListBox.Styles>
|
<DataTemplate>
|
||||||
<ListBox.ItemTemplate>
|
<ContentControl Content="{Binding}"/>
|
||||||
<DataTemplate>
|
</DataTemplate>
|
||||||
<ContentControl Content="{Binding}"/>
|
</ListBox.ItemTemplate>
|
||||||
</DataTemplate>
|
</ListBox>
|
||||||
</ListBox.ItemTemplate>
|
</Grid>
|
||||||
</ListBox>
|
|
||||||
</ScrollViewer>
|
|
||||||
</StackPanel>
|
|
||||||
</SplitView.Pane>
|
</SplitView.Pane>
|
||||||
</SplitView>
|
</SplitView>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user