mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
enhance: supports virtualization in sub context menu
This commit is contained in:
parent
1d7b77e45f
commit
fda13468c4
1 changed files with 8 additions and 1 deletions
|
@ -772,6 +772,7 @@
|
|||
<Popup Name="PART_Popup"
|
||||
WindowManagerAddShadowHint="False"
|
||||
Placement="RightEdgeAlignedTop"
|
||||
MaxHeight="400"
|
||||
IsLightDismissEnabled="False"
|
||||
HorizontalOffset="-4"
|
||||
VerticalOffset="-4"
|
||||
|
@ -793,7 +794,13 @@
|
|||
<ItemsPresenter Name="PART_ItemsPresenter"
|
||||
ItemsPanel="{TemplateBinding ItemsPanel}"
|
||||
Margin="{DynamicResource MenuFlyoutScrollerMargin}"
|
||||
Grid.IsSharedSizeScope="True" />
|
||||
Grid.IsSharedSizeScope="True">
|
||||
<ItemsPresenter.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<VirtualizingStackPanel Orientation="Vertical"/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsPresenter.ItemsPanel>
|
||||
</ItemsPresenter>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
|
Loading…
Reference in a new issue