Skip to content

Overriding submenu placements #1803

@jespersh

Description

@jespersh

I'm attempting to override the Placement set to Popup of submenus set here:

It is quite easy to override the Menu's placement:

<Menu.ItemsPanel>
    <ItemsPanelTemplate>
        <VirtualizingStackPanel Orientation="Vertical" VerticalAlignment="Bottom" />
    </ItemsPanelTemplate>
</Menu.ItemsPanel>

I tried this without success:

<MenuItem.Resources>
    <Style TargetType="{x:Type Popup}">
        <Setter Property="Placement"
                Value="Right" />
    </Style>
</MenuItem.Resources>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions