public void preview() { //Create the palette if we havent already if (myPal == null) { myPal = new PaletteSet("My Palette", System.Guid.NewGuid()); myPreviewBox = new PreviewBox(); myPal.Add("Palette1", myPreviewBox); } //disply the palette myPal.Visible = true; }