icsharpcode / WpfDesigner

The WPF Designer from SharpDevelop
MIT License
958 stars 259 forks source link

Control Placed Outside the Window Disappears #114

Closed RikaMi8 closed 2 months ago

RikaMi8 commented 2 months ago

When a control is placed outside the window and the focus moves to it, the control becomes completely invisible. To select that control again, I need to choose it from the TreeView.

https://github.com/user-attachments/assets/48638583-a9fd-4484-beac-1ec9ed3dfb19

Is there a way to display controls outside the window, similar to how the XAML designer in Visual Studio does? image

jogibear9988 commented 2 months ago

If you set

 ClipToBounds="False"

here: https://github.com/icsharpcode/WpfDesigner/blob/38e9db5129bb1de297c23cc5860dba62b2b83ddd/WpfDesign.Designer/Project/Controls/ControlStyles.xaml#L196

it should work.

jogibear9988 commented 2 months ago

You can copy the template for window clone to your code and override it

RikaMi8 commented 2 months ago

@jogibear9988 Thank you for your response. It's working well!