MessageBox.Avalonia
MessageBox.Avalonia copied to clipboard
Message boxes with parameters for the text
Because of what's involved in creating message boxes using this API, I started creating static readonly instances for various situations. Unfortunately, that robbed me of a way to change the text slightly. So I might have used text like "You were editing “{0}” and made changes. Are you sure you want to discard those changes?". Is there a way to have both the static instance and the parameters?
I try to avoid any static in my codebase, but if it brings more profit for community, i think it'll be good decision