///////////////////////////////////////////////////////////////////////////////////////////////////// // NON-PUBLIC PROCEDURES ///////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Creates and floats a tool window. /// </summary> private void CreateAndFloatToolWindow() { var textBox = new TextBox() { BorderThickness = new Thickness(), Text = "This floating window will fade out when it loses focus.", TextWrapping = TextWrapping.Wrap }; var toolWindow = new ToolWindow(dockSite, "tool", "Floating Tool Window", null, textBox); toolWindow.Float(new Point(400, 200)); toolWindow.Activate(); }