Skip to content

Commit

Permalink
- Issue #1034: Implementing ProgressDialog with WPF in a ManagedUI
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg.shilo authored and oleg.shilo committed Sep 26, 2021
1 parent 37946a5 commit 3d32acb
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Source/src/WixSharp.UI.WPF/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,45 @@ public void SetDialogContent(IWpfDialog content)
};
}

/// <summary>
///
/// </summary>
/// <param name="messageType"></param>
/// <param name="messageRecord"></param>
/// <param name="buttons"></param>
/// <param name="icon"></param>
/// <param name="defaultButton"></param>
/// <returns></returns>
public override MessageResult ProcessMessage(InstallMessage messageType, Record messageRecord, MessageButtons buttons, MessageIcon icon, MessageDefaultButton defaultButton)
{
return base.ProcessMessage(messageType, messageRecord, buttons, icon, defaultButton);
}

/// <summary>
///
/// </summary>
public override void OnExecuteComplete()
{
(content as IManagedDialog)?.OnExecuteComplete();
}

/// <summary>
///
/// </summary>
public override void OnExecuteStarted()
{
(content as IManagedDialog)?.OnExecuteStarted();
}

/// <summary>
///
/// </summary>
/// <param name="progressPercentage"></param>
public override void OnProgress(int progressPercentage)
{
(content as IManagedDialog)?.OnProgress(progressPercentage);
}

/// <summary>
/// Called when Shell is changed. It is a good place to initialize the dialog to reflect the MSI session
/// (e.g. localize the view).
Expand Down

0 comments on commit 3d32acb

Please sign in to comment.