MahApps.Metro icon indicating copy to clipboard operation
MahApps.Metro copied to clipboard

when I update Mahapps.Metro to version alpha with NuGet,I cannot change flyout's background...

Open wojiaofsp opened this issue 12 years ago • 3 comments

Before can change...

wojiaofsp avatar Feb 12 '14 08:02 wojiaofsp

@wojiaofsp Sorry about that. We recently introduced a feature that changes how a flyout deals with it's background depending on its parent MetroWindow theme. Perhaps this has something to do with this.

See this thread for details: #941

cc @flagbug

AzureKitsune avatar Feb 12 '14 22:02 AzureKitsune

That was actually never supported. We may add custom color support in the future

flagbug avatar Feb 13 '14 14:02 flagbug

@wojiaofsp a flyout can have different themes too (>= 0.14)

public enum FlyoutTheme
{
    /// <summary>
    /// Adapts the Flyout's theme to the theme of its host window.
    /// </summary>
    Adapt,
    /// <summary>
    /// Adapts the Flyout's theme to the theme of its host window, but inverted.
    /// This theme can only be applied if the host window's theme abides the "Dark" and "Light" affix convention.
    /// (see <see cref="ThemeManager.GetInverseAppTheme"/> for more infos.
    /// </summary>
    Inverse,
    /// <summary>
    /// The dark theme. This is the default theme.
    /// </summary>
    Dark,
    Light,

    /// <summary>
    /// The flyouts theme will match the host window's accent color.
    /// </summary>
    Accent
}

you can override the Background for a Flyout except if you use the Accent theme.

punker76 avatar Feb 24 '15 21:02 punker76