public InspectDialog()
{
InitializeComponent();
WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
CanvasPropertyGrid = new System.Windows.Forms.PropertyGrid();
// CanvasPropertyGrid.Size = new System.Drawing.Size(300, 250);
// Bottom part of the screen
CanvasPropHost.Child = CanvasPropertyGrid;
// CanvasPropertyGrid.SelectedObject = myCanvas;
CanvasPropertyGrid.HelpVisible = false;
helpMessage.Text = "Preview the dialog and sub dialogs associated with the command below." +"Clicking on the Syntax button will bring up the syntax in the Command Editor. "+ "Clicking on the HELP button will bring up the Help. Clicking on the buttons in the dialog will bring up sub-dialogs. The property grid displays the properties of the dialog.";
CanvasPropertyGrid.BrowsableAttributes = new AttributeCollection(
new Attribute[]
{
new CategoryAttribute("Dialog Properties")
});
}