-
Notifications
You must be signed in to change notification settings - Fork 1
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
Messagebox #62
base: develop
Are you sure you want to change the base?
Messagebox #62
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple more things that need to be changed, reviewing them from the iPad is not easy tho.
src/net40/Radical.Windows.Presentation/Messaging/Handlers/ShowMessageBoxRequestHandler.cs
Outdated
Show resolved
Hide resolved
src/net40/Radical.Windows.Presentation/Messaging/Handlers/ShowMessageBoxRequestHandler.cs
Outdated
Show resolved
Hide resolved
src/net40/Radical.Windows.Presentation/Messaging/Handlers/ShowMessageBoxRequestHandler.cs
Outdated
Show resolved
Hide resolved
src/net40/Radical.Windows.Presentation/Messaging/Handlers/ShowMessageBoxRequestHandler.cs
Outdated
Show resolved
Hide resolved
src/net40/Radical.Windows.Presentation/Messaging/Handlers/ShowMessageBoxRequestHandler.cs
Outdated
Show resolved
Hide resolved
src/net40/Radical.Windows.Presentation/Messaging/Handlers/ShowMessageBoxRequestHandler.cs
Outdated
Show resolved
Hide resolved
src/net40/Radical.Windows.Presentation/Messaging/Handlers/ShowMessageBoxRequestHandler.cs
Outdated
Show resolved
Hide resolved
src/net40/Radical.Windows.Presentation/Messaging/ShowMessageBoxResult.cs
Show resolved
Hide resolved
@mauroservienti done ! |
/// <summary> | ||
/// Return value for the Message Box Open Request | ||
/// </summary> | ||
public class ShowMessageBoxResult |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete this file.
/// <summary> | ||
/// | ||
/// </summary> | ||
public Action<MessageBoxResult> MessageBoxClosed { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename this to OnMessageBoxClosed
/// <param name="broker"></param> | ||
public ShowMessageBoxRequestHandler(IMessageBroker broker) | ||
{ | ||
Ensure.That(broker).Named(() => broker).IsNotNull(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use the labda, it's too slow. Replace with .Named("broker")
or better yet .Named(nameof(broker))
.
public MessageBoxOptions? Options { get; set; } | ||
|
||
/// <summary> | ||
/// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing documentation 😄
Message box closed callback, invoked when the message box is closed by the user.
This needs to be recreated in Radical.Windows as soon as RadicalFx/Radical.Windows#111 is merged |
Added the possibility to show a MessageBox from ViewModel with message
Related to #63