Download the Source Code (I used 96370) and set AvalonDock.MVVMTestApp as startup project:
Edit App.xaml to contain a themes resource dictionary:
Re-Build the complete solution and open MainWindow.xaml. The Designer shows the following unhandled exception:
-------------------------------------------------------
'HwndHostInstance' TargetType does not match type of element 'LayoutAutoHideWindowControl'.
at System.Windows.Style.CheckTargetType(Object element)
at System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle, Style& styleCache)
at System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
at System.Windows.FrameworkElement.UpdateStyleProperty()
at System.Windows.FrameworkElement.OnInitialized(EventArgs e)
at System.Windows.FrameworkElement.TryFireInitialized()
at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
at System.Windows.FrameworkElement.AddLogicalChild(Object child)
at AvalonDock.DockingManager.AvalonDock.Controls.ILogicalChildrenContainer.InternalAddLogicalChild(Object element) in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1273
at AvalonDock.DockingManager.OnAutoHideWindowChanged(DependencyPropertyChangedEventArgs e) in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1392
at AvalonDock.DockingManager.OnAutoHideWindowChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1381
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
at AvalonDock.DockingManager.SetAutoHideWindow(LayoutAutoHideWindowControl value) in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1373
at AvalonDock.DockingManager.SetupAutoHideWindow() in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1333
at AvalonDock.DockingManager.OnApplyTemplate() in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 272
at System.Windows.FrameworkElement.ApplyTemplate()
at Microsoft.Expression.Platform.WPF.WpfViewNodeManager.EnsureElementInDictionary(Object root, ViewNode knownAncestor)
------------------------------------------------------
Comments: ** Comment from web user: TheCamel **
Edit App.xaml to contain a themes resource dictionary:
Re-Build the complete solution and open MainWindow.xaml. The Designer shows the following unhandled exception:
-------------------------------------------------------
'HwndHostInstance' TargetType does not match type of element 'LayoutAutoHideWindowControl'.
at System.Windows.Style.CheckTargetType(Object element)
at System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle, Style& styleCache)
at System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
at System.Windows.FrameworkElement.UpdateStyleProperty()
at System.Windows.FrameworkElement.OnInitialized(EventArgs e)
at System.Windows.FrameworkElement.TryFireInitialized()
at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
at System.Windows.FrameworkElement.AddLogicalChild(Object child)
at AvalonDock.DockingManager.AvalonDock.Controls.ILogicalChildrenContainer.InternalAddLogicalChild(Object element) in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1273
at AvalonDock.DockingManager.OnAutoHideWindowChanged(DependencyPropertyChangedEventArgs e) in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1392
at AvalonDock.DockingManager.OnAutoHideWindowChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1381
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
at AvalonDock.DockingManager.SetAutoHideWindow(LayoutAutoHideWindowControl value) in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1373
at AvalonDock.DockingManager.SetupAutoHideWindow() in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 1333
at AvalonDock.DockingManager.OnApplyTemplate() in C:\temp\avalondock-96370\AvalonDock\DockingManager.cs:line 272
at System.Windows.FrameworkElement.ApplyTemplate()
at Microsoft.Expression.Platform.WPF.WpfViewNodeManager.EnsureElementInDictionary(Object root, ViewNode knownAncestor)
------------------------------------------------------
Comments: ** Comment from web user: TheCamel **
Hi, this is not corrected in the latest checkin 97240
'HwndHostInstance' TargetType does not match type of element 'LayoutAutoHideWindowControl'. D:\PROJECTS\CBR\CBR\Views\MainView.xaml 696 3 CBR
http://wfpbookreader.codeplex.com/
this is because i used my own customized version of generic.xaml that is included my dictionnaires ? fyi, i am just using avalon main assembly, with no themes
btw, this is just a designer crash...but would ne nice if corrected