xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.9k stars 877 forks source link

Set borderThickness property to layoutAnchorable WPF #1715

Open vikaschamp opened 2 years ago

vikaschamp commented 2 years ago

I have developed a docking application using xceed.Wpf.AvalonDock library in WPF . I am using floated LayoutAnchorable which contain the user control component. I want to increase the border thickness of floated LayoutAnchorable .

Actually getting issue while resizing the floating layout anchorable using mouse . The mouse pointer is not prominent at the border . I thought to increase the border size will resolve the issue.

Is it possible to do that ? Please suggest question . Thanks in advance .

XceedBoucherS commented 2 years ago

Hi,

If you look in Xceed.Wpf.AvalonDock/Themes./Default.xaml, and search for "LayoutAnchorableFloatingWindowControl" style, you will see a BorderThickness of 3. You can change that if you want. But if you want a bigger resizing BorderThickness (mouse changing to double arrow for resizing), you will have to modify, inside this LayoutAnchorableFloatingWindowControl, a WindowChrome : it contains a ResizeBorderThickness of 10. Then recompile the dll.

For the moment, there is no property accessible on the DockingManager to modify this easily. We will try to add one.

Thank you.

evancekafando commented 2 years ago

Hi,

In v4.5, a new property ResizeBorderThickness will be available in order to get/set the width of the border that is used to resize a LayoutFloatingWindowControl/LayoutAnchorableFloatingWindowControl/LayoutDocumentFloatingWindowControl.