-1
我希望我的SplitView
在其緊湊狀態下不可見。但是即使在緊湊狀態和打開狀態下也可以獲得很大的寬度。SplitView網格
<SplitView x:Name="svNav" DisplayMode="CompactOverlay">
<SplitView.Content>
<StackPanel Width="0" />
</SplitView.Content>
<SplitView.Pane>
<Grid Name="lbPane" Width="auto" VerticalAlignment="Stretch">
<ListView>
<TextBlock FontSize="24">Mode</TextBlock>
<ListViewItem>
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" VerticalAlignment="Center"></TextBlock>
<TextBlock VerticalAlignment="Center" Margin="20,0">Standard Mode</TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem>
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" VerticalAlignment="Center"></TextBlock>
<TextBlock VerticalAlignment="Center" Margin="20,0">Scientific Mode</TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem>
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" VerticalAlignment="Center"></TextBlock>
<TextBlock VerticalAlignment="Center" Margin="20,0">Converter</TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem>
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" VerticalAlignment="Center"></TextBlock>
<TextBlock VerticalAlignment="Center" Margin="20,0">Programming Mode</TextBlock>
</StackPanel>
</ListViewItem>
</ListView>
</Grid>
</SplitView.Pane>
</SplitView>
設計中存在問題。請看看可以做些什麼來解決這個問題 Preview of application
我沒有看到這個問題。你的自適應狀態xaml在哪裏?你能發佈完整的xaml嗎? – AVK
您是否使用該行看到圖片(應用程序預覽)。還沒有適應性國家呢?有必要嗎? –
XAML顯示時間太長?但我可以告訴你,splitview是在一個網格中。 –