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
MessageBoxImage is not shown #1751
Comments
Sorry, I can't seem to reproduce this in a simpler case (I don't have your details about your dynamic resources)
Have you commented out the setters to see if anything there might be interfering?
…________________________________
From: Leon Schimmel ***@***.***>
Sent: Saturday, June 3, 2023 5:22 PM
To: xceedsoftware/wpftoolkit ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [xceedsoftware/wpftoolkit] MessageBoxImage is not shown (Issue #1751)
When I use this method the MessageBox shows perfectly except there is no image shown.
This is my code:
Xceed.Wpf.Toolkit.MessageBox.Show(
"My message",
"My caption",
MessageBoxButton.OKCancel,
MessageBoxImage.Error,
MessageBoxResult.Cancel);
This is my style
<Style TargetType="{x:Type xctk:MessageBox}">
<Setter Property="Background" Value="{DynamicResource Background}"/>
<Setter Property="WindowBackground" Value="{DynamicResource Text}"/>
<Setter Property="ButtonRegionBackground" Value="{DynamicResource Background}"/>
<Setter Property="Foreground" Value="{DynamicResource Text}"/>
<Setter Property="CaptionForeground" Value="{DynamicResource Background}"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderThickness}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Text}"/>
<Setter Property="CancelButtonStyle" Value="{StaticResource ButtonStyle}"/>
<Setter Property="OkButtonStyle" Value="{StaticResource ButtonStyle}"/>
<Setter Property="CancelButtonContent" Value="Close"/>
<Setter Property="OkButtonContent" Value="Open GitHub issue"/>
<Setter Property="CloseButtonStyle" Value="{StaticResource CloseButtonStyle}"/>
<Setter Property="WindowBorderThickness" Value="{StaticResource BorderThickness}"/>
<Setter Property="WindowBorderBrush" Value="{DynamicResource Background}"/>
</Style>
—
Reply to this email directly, view it on GitHub<#1751>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A7M3JW53P6CZ2FZKOAQHLCLXJOTIFANCNFSM6AAAAAAYZQLNT4>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
It doesn't even work when no Style is applied. |
Are you saying that the image to the left of the text is not showing for you in any situation?
Can you provide more details, like release version of the toolkit (or day you downloaded it), .Net version, any other styles you might have applied, whether it works in a clean project, and anything else that might help me debug this?
Thanks
…________________________________
From: Leon Schimmel ***@***.***>
Sent: Friday, June 9, 2023 2:53 PM
To: xceedsoftware/wpftoolkit ***@***.***>
Cc: Daniel Prevost ***@***.***>; Comment ***@***.***>
Subject: Re: [xceedsoftware/wpftoolkit] MessageBoxImage is not shown (Issue #1751)
Sorry, I can't seem to reproduce this in a simpler case (I don't have your details about your dynamic resources) Have you commented out the setters to see if anything there might be interfering?
…
________________________________ From: Leon Schimmel @.> Sent: Saturday, June 3, 2023 5:22 PM To: xceedsoftware/wpftoolkit @.> Cc: Subscribed @.> Subject: [xceedsoftware/wpftoolkit] MessageBoxImage is not shown (Issue #1751<#1751>) When I use this method the MessageBox shows perfectly except there is no image shown. This is my code: Xceed.Wpf.Toolkit.MessageBox.Show( "My message", "My caption", MessageBoxButton.OKCancel, MessageBoxImage.Error, MessageBoxResult.Cancel); This is my style <Style TargetType="{x:Type xctk:MessageBox}"> </Style> — Reply to this email directly, view it on GitHub<#1751<#1751>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7M3JW53P6CZ2FZKOAQHLCLXJOTIFANCNFSM6AAAAAAYZQLNT4. You are receiving this because you are subscribed to this thread.Message ID: @.>
It doesn't even work when no Style is applied.
—
Reply to this email directly, view it on GitHub<#1751 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A7M3JW5BXXOCWGDL5WCZPJTXKNWJJANCNFSM6AAAAAAYZQLNT4>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Its not showing in any situation. |
I'll try in .NET 6 |
Doesn't work in .NET 6 either |
I have the same issue, it seems to have been broken since V4.40 if I roll back the NuGet package to 4.3.0 it works. In my style i have <Style TargetType="xctk:MessageBox"> </Style>In code i am calling I am running this in a WPF C# .NET6 project. |
Hi, You are right. This doesn't work in .NET5+. It currently only works in .NETFramework. In the meantime, if you have the source code, you can go in file Xceed.Wpf.Toolkit/MessageBox/Implementation/MessageBox.cs, Thank you |
When I use this method the MessageBox shows perfectly except there is no image shown.
This is my code:
This is my style:
The text was updated successfully, but these errors were encountered: