How to create a custom dialog?


  • Hi,

    I would like to create a custom dialog similar to the Socialite app shipped with WDP, it seems there are embedded HTML code from Facebook to the dialog layer of presentation. How can I do that? All I can find right now is WinJS.UI.MessageDialog, which I can only show a string.


    Saturday, October 8, 2011 3:26 AM


All replies

  • Hi Cat :-).

    The Socialite does not present a custom UI.  It is using the WebAuthenticationBroker to display the login info the Facebook provides and gets login info from the callback.  See the Web Authentication sample: http://code.msdn.microsoft.com/windowsapps/Web-Authentication-d0485122 for a sample on how to do this yourself!


    Jeff Sanders (MSFT)
    • Marked as answer by InCatWeTrust Tuesday, October 11, 2011 2:54 AM
    Monday, October 10, 2011 1:29 PM
  • ICWT, did JP's answer solve your problem? Or are you looking to create a custom dialog for another purpose?

    Monday, October 10, 2011 3:14 PM
  • hi

    I need to create custom dialog with my own buttons and other controls , can I do so in metro? if yes  how?

    Wednesday, July 18, 2012 1:07 PM