Skip to content

Custom dialog background and foreground #2497

@void22

Description

@void22

What steps will reproduce this issue?

I'm using custom dialog as a message box (with Background="Transparent" and Foreground=White) like in the picture:
dialogtest01

It works well with version 1.1.2, but since 1.2.0 (including the latest 1.3.0-ALPHA147) both Background and Foreground colors are "ignored".

The result is:
dialogtest02

Expected outcome

What I already tried:

  • Set colors in xaml
  • Set colors via bindings from VM
  • Set colors before dialog shown
    var dialog = new TestDialog(); dialog.Background = new SolidColorBrush(Colors.Red);
  • Create new style
  • Add custom resource to dialog.DialogSettings.CustomResourceDictionary

None of them is working. I'm sorry if this question was already answered, but I did not find a solution neither on SO nor here.

Environment

  • MahApps.Metro v1.2.0
  • Windows 10 x64
  • Visual Studio 2015
  • .NET Framework 4.6

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions