4

I am using LayoutAnchorable of Avalon Dock to dock my toolbar in my WPF application. Everything works fine. But as soon as I set the AllowTransparency property of parent window to true, it stopped working.

AnchorableControl is being shown as it should. When I unpin it, it docks itself to side of the window. But it nevers comes up upon hovering the mouse over it.

I am trying to find a workaround in the source control of Avalon dock. but there is lot to take and code isn't very straight.

Manvinder
  • 4,495
  • 16
  • 53
  • 100

1 Answers1

2

Unfortunatly many Controls (including HWND etc.) are not working when AllowTransparency is set to true. But this is outdated anyway.

If you want to style your Window take a look at the WindowChrome Class and/or use a the very good Design Library MahApps.Metro

Edit: Found the reason here.

Johannes Wanzek
  • 2,825
  • 2
  • 29
  • 47
  • I am already using Mahapps in my application. I am using Avalon for docking purposes – Manvinder Aug 29 '14 at 08:55
  • Why do you need `AllowTransparency` then? – Johannes Wanzek Aug 29 '14 at 11:07
  • Application needs a feature to make it 50% transparent on some of the occasions. To make it 50% transparent I need to set the allow transparency to true. – Manvinder Aug 29 '14 at 16:27
  • There is only one way but you will need to modify Avalon source code. Find static constructor of LayoutAnchorableFloatingWindowControl class and override contentproperty metadata with ContentProperty.OverrideMetadata(typeof(LayoutAnchorableFloatingWindowControl), new FrameworkPropertyMetadata(null, null)); – user2250152 Oct 06 '14 at 11:52