Federerer / Notifications.Wpf

Toast notifications for WPF
MIT License
657 stars 142 forks source link

Strange view error #2

Open tgiachi opened 7 years ago

tgiachi commented 7 years ago

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 commented 7 years ago

thank you! :)

Federerer commented 7 years ago

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 commented 7 years ago

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

Thanks! Tommy