Notifications.Wpf icon indicating copy to clipboard operation
Notifications.Wpf copied to clipboard

Strange view error

Open tgiachi opened this issue 8 years ago • 3 comments

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 avatar Feb 24 '17 12:02 tgiachi

thank you! :)

tgiachi avatar Feb 24 '17 12:02 tgiachi

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>

Federerer avatar Feb 24 '17 18:02 Federerer

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

Thanks! Tommy

tgiachi avatar Feb 27 '17 10:02 tgiachi