Hi, I have a DockLayoutManager that contains multiple autohidegroups. I have my AutoHideMode set to inline. When I open an autohidegroup, I am unable to manually change the width by dragging. When I press the "expand" button at the top of the autohide window, my program crashes with the following error: Un-handled exception caused application to close: System.InvalidOperationException: Cannot resolve all property references in the property path '(0).Children[1].ScaleX'. Verify that applicable objects support the properties.
When the AutoHideMode is set to Overlay, I have no issues, but overlay does not meet my needs.
Hi,
I have tried to replicate this behavior in a sample project, but did not succeed. Attached is a project that illustrates my attempts to reproduce your scenario and the issue you are experiencing.
Please modify this project so that it illustrates the problematic behavior and send it to us.
Thanks,
Andrey
Hi Audrey, so far i've been unable to get your example to crash like my program does. I can post a bit of the xaml for how mine is set up:
<dx:LoadingDecorator IsSplashScreenShown="{Binding Busy}" SplashScreenDataContext="{Binding}" Grid.Row="1"> <dx:LoadingDecorator.SplashScreenTemplate> <DataTemplate> <dx:WaitIndicator DeferedVisibility="True" Content="{Binding LoadText}"/> </DataTemplate> </dx:LoadingDecorator.SplashScreenTemplate> <dxb:BarManager x:Name="barManager" CreateStandardLayout="True" > <dxd:DockLayoutManager x:Name="dockLayoutManager" FloatingMode="Desktop" OwnsFloatWindows="False" ClosedPanelsBarVisibility="Never" ShowFloatWindowsInTaskbar="True" AllowDockItemRename="False" AllowLayoutItemRename="False" DockItemClosed="dockLayoutManager_DockItemClosed" DockItemCollapsed="dockLayoutManager_DockItemCollapsed" DockItemActivated="dockLayoutManager_DockItemActivated" DockItemDragging="dockLayoutManager_DockItemDragging" DockOperationCompleted="dockLayoutManager_DockOperationCompleted" DockItemExpanded="dockLayoutManager_DockItemExpanded" ShowingMenu="dockLayoutManager_ShowingMenu" AutoHideMode="Inline"> <dxd:DockLayoutManager.AutoHideGroups> <dxd:AutoHideGroup DockType="Right" x:Name="rightAHGroup" AllowFloat="{Binding LockLayout}" AllowMove="{Binding LockLayout}" AllowSizing="{Binding LockLayout}" AutoHideSpeed="{Binding AutoHideSpeed}"> <dxd:LayoutPanel x:Name="txtPanel" Caption="{Binding TextViewerPanelHeaderText, Mode=OneWay}" AllowFloat="{Binding LockLayout}" AllowMove="{Binding LockLayout}" AllowSizing="{Binding LockLayout}" dxd:AutoHideGroup.AutoHideSize="800,500"> <cons:ChatControl x:Name="chatControl"/> </dxd:LayoutPanel> </dxd:AutoHideGroup> </dxd:DockLayoutManager.AutoHideGroups> </dxd:DockLayoutManager> </dxb:BarManager> </dx:LoadingDecorator> </dx:DXWindow>
Note: I've redacted some of the xaml to make the paste less crowded.
I did notice that one of my autohidegroups does not cause this crash. The working autohide group only contains a treelist control, whereas the others contain custom controls, most of which contain grids.
Here is the full error:
System.InvalidOperationException: Cannot resolve all property references in the property path '(0).Children[1].ScaleX'. Verify that applicable objects support the properties. at System.Windows.Media.Animation.Storyboard.VerifyPathIsAnimatable(PropertyPath path) at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer) at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer) at System.Windows.Media.Animation.Storyboard.BeginCommon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer) at System.Windows.VisualStateGroup.StartNewThenStopOld(FrameworkElement element, Storyboard[] newStoryboards) at System.Windows.VisualStateManager.GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, Boolean useTransitions) at System.Windows.VisualStateManager.GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, String stateName, Boolean useTransitions) at System.Windows.VisualStateManager.GoToState(FrameworkElement control, String stateName, Boolean useTransitions) at DevExpress.Xpf.Docking.VisualElements.DockPaneControlBoxButton.UpdateVisualState() at DevExpress.Xpf.Docking.VisualElements.ControlBoxButton.OnApplyTemplate() at System.Windows.FrameworkElement.ApplyTemplate() at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.StackPanel.StackMeasureHelper(IStackMeasure measureElement, IStackMeasureScrollData scrollData, Size constraint) at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Hi,
I've tried to reproduce the issue using the code snippet you have provided but haven't succeeded. As I can see from the provided stack trace, the error is related to the ControlBoxButton template. Please clarify what theme you are using in your project? Does the error occur with other themes?
I look forward to your response.
Hi Paul, i'm using metropolis dark. When I try the same test in DeepBlue, the crash does not happen.
Thank you for your clarification, Evan. I have reproduced the issue and passed this ticket to our developers for further research. We will update this thread as soon as we make any progress.
Thanks,
Alexander