Adding more than 3 options in C# MessageDialog

0

I want to add 4 options in a MessageDialog in C# Windows Store App. I can add 3 options like this example: http://msdn.microsoft.com/en-us/library/windows/apps/dn308255.aspx

But when I am going to app 4th option it throws exception

"The operation attempted to access data outside the valid range (Exception from HRESULT: 0x8000000B)"

Is it not possible to add more than 3 options?

c#
windows-store-apps
asked on Stack Overflow Jan 6, 2015 by San • edited Jan 6, 2015 by John

1 Answer

1

The message dialog has a command bar that can support up to three commands. If you don't specify any commands, then a default command is added to close the dialog. if you want to add more option try to override MessageDialog class.

answered on Stack Overflow Jan 6, 2015 by cvsingh

User contributions licensed under CC BY-SA 3.0