We’ve made it easy to use the customized Windows title bar
you can easily define drag regions or clear drag regions for a titlebar.
SetDragRegion
1 | TitleBarHelper.SetDragRegion(window, NonClientRegionKind.Passthrough, myAutosuggestBox, myButton); |
ClearDragRegions
1 | TitleBarHelper.ClearDragRegions(window, NonClientRegionKind.Passthrough); |
Demo
you can run demo and see this feature.