Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange view error #2

Open
tgiachi opened this issue Feb 24, 2017 · 3 comments
Open

Strange view error #2

tgiachi opened this issue Feb 24, 2017 · 3 comments

Comments

@tgiachi
Copy link

tgiachi commented Feb 24, 2017

Hi!, I'have application with MahApp Metro and when i show notification show like this:

image

the code is same of example

var notificationManager = new NotificationManager();


            notificationManager.Show(new NotificationContent
            {
                Title = "Sample notification",
                Message = "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
                Type = NotificationType.Information
            });
@tgiachi
Copy link
Author

tgiachi commented Feb 24, 2017

thank you! :)

@Federerer
Copy link
Owner

I did some tests with Mahapps.Metro 1.4.3 and it looks fine. Maybe you replaced default DataTemplate for a TextBlock, giving it a white background? My Application.Resources looks like this:

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
                <!-- Accent and AppTheme setting -->
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

@tgiachi
Copy link
Author

tgiachi commented Feb 27, 2017

Hi Federerer,
No The DataTemplate is standard, is strange error!. What name of style you use? I'll try to override!

Thanks!
Tommy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants