Set dialog box name
x:Name="MyDialogBox"
Close dialog box
MyDialogBox.Hide();
//Or
this.Hide();
Width and height
It looks like you have to leave space around a content dialog.
In our test using a 800×1280 screen the max width and height was 750 x 700 (Margin=”0,0,0,0″)
