Inconsistent TaskDialog format

Inconsistent TaskDialog format

mmaso64U7Y
Enthusiast Enthusiast
207 Views
2 Replies
Message 1 of 3

Inconsistent TaskDialog format

mmaso64U7Y
Enthusiast
Enthusiast

Steps to reproduce

TaskDialog.Show("Title", "Message.");
var task_dialog = new TaskDialog("Title") { MainContent = "Message." };
task_dialog.Show();

 

Actual behaviour

The first method (static Show) promts this message:

mmaso64U7Y_1-1738834013860.png

The second method (non-static Show) prompts this message:

mmaso64U7Y_2-1738834080497.png

 

Expected behaviour

Both methods should generate promts with the same format.

 

Question

Is there a way to achieve the expected behaviour?

0 Likes
Accepted solutions (1)
208 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

This is the intended behaviour. The code you share should not produce the same result. To obtain the first result using the second code statements, replace MainContent by MainInstruction:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

mmaso64U7Y
Enthusiast
Enthusiast

Thanks

0 Likes