dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.96k stars 1.7k forks source link

Style Context Menu #12817

Open vmusasia10g opened 1 year ago

vmusasia10g commented 1 year ago

Description

I would like to have the ability to style a context menu and its items through an expose style class that can also respond to theme changes

Public API Changes

  <Style TargetType="FlyoutMenu">
        <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Primary}}" />
        <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
        <Setter Property="FontFamily" Value="OpenSansRegular"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="CornerRadius" Value="8"/>
        <Setter Property="Padding" Value="14,10"/>
        <Setter Property="VisualStateManager.VisualStateGroups">
        </Setter Property="VisualStateManager.VisualStateGroups">
</Style>

Intended Use-Case

Using custom fonts and styling throughout our application and we want to Context Menus to match that for consistency sake and can be controlled the same way as others through app theming and setting.

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.