Closed Aaswin1996 closed 3 months ago
In your dialog init:
public partial class WelcomeDialog : WpfDialog, IWpfDialog
{
public WelcomeDialog()
{
InitializeComponent();
}
public void Init()
{
var topWindow = this.ManagedFormHost.Parent as System.Windows.Forms.Form;
topWindow.FormClosing += (sender, e) =>
{
MessageBox.Show("Closing...");
};
ViewModelBinder.Bind(new CustomDialogModel { Host = ManagedFormHost }, this, null);
}
@oleg-shilo Thanks for the reply ...Can we style the title bar I basically want to make the edges rounded ...I am using a managed WPF installer . PS : thanks for WixSharp it has made my life a hell lot easier
thanks for WixSharp it has made my life a hell lot easier
Great to hear. Appreciate it.
Can we style the title bar I want to make the edges rounded Sorry, this is beyond WixSharp responsibilities. WixSharp provides the standard (stock) appearance and behaviour. Just to meet the major user base expectations. Anything more will be specific to the user and must be implemented by the user.
Rounded edges are not simple to implement when dealing with Windows Forms. Yes, even when you use WPF your top-level window is still a System.Windows.Forms.Form
instance.
Thus I suggest you look at the External_UI sample which will give you complete freedom of WPF implementation of all visual elements.
I am creating an installer using the WPF UI examples.I need to handle the behavior whenever any user clicks on the "X" button in the installer title bar .
How to handle that without using the External UI .I am using caliburn .
xaml code :