Bug Report T302014
Visible to All Users

GridControl raises an exception on expanding its detail grid in a separate UI threa

created 9 years ago

Hi guys,

I have an app that creates multiple UI threads. It has one master-detail DXGrid on the window. When I open two instances of the same window and click on the [+] sign to expend the detail level it blows up with the following exception and the call stack. Please see below.

I tried to search the support website but couldn't find anything that resembles this problem.

Can you please help me out

Thanks,

Leon

Exception thrown: 'System.Windows.Markup.XamlParseException' in PresentationFramework.dll

Additional information: The calling thread cannot access this object because a different thread owns it.

at System.Windows.Threading.Dispatcher.VerifyAccess()
   at System.Windows.DependencyObject.GetValue(DependencyProperty dp)
   at DevExpress.Xpf.Grid.DetailMarginVisibilityConverter.get_MarginSide()
   at DevExpress.Xpf.Grid.DetailMarginVisibilityConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.Activate(Object item)
   at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   at System.Windows.Data.BindingExpression.AttachOverride(DependencyObject target, DependencyProperty dp)
   at System.Windows.Data.BindingExpressionBase.OnAttach(DependencyObject d, DependencyProperty dp)
   at System.Windows.StyleHelper.GetInstanceValue(UncommonField`1 dataField, DependencyObject container, FrameworkElement feChild, FrameworkContentElement fceChild, Int32 childIndex, DependencyProperty dp, Int32 i, EffectiveValueEntry& entry)
   at System.Windows.FrameworkTemplate.ReceivePropertySet(Object targetObject, XamlMember member, Object value, DependencyObject templatedParent)
   at System.Windows.FrameworkTemplate.<>c__DisplayClass0.<LoadOptimizedTemplateContent>b__6(Object sender, XamlSetValueEventArgs setArgs)
   at System.Xaml.XamlObjectWriter.OnSetValue(Object eventSender, XamlMember member, Object value)
   at System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent)
   at System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteEndObject()
   at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)

Comments (2)
Andrey K (DevExpress Support) 9 years ago

    Hi,

    We have successfully reproduced the behavior you described and passed this ticket to our developers for further research. Please bear with us. We will notify you as soon as we make any progress.

    Thanks,
    Andrey

    LH LH
    Leon Habinsky 1 9 years ago

      Thank you, Andery. I'm glad you were able to reproduce the problem. I'll be patiently waiting for the resolution.
      Leon

      Answers approved by DevExpress Support

      created 9 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Comments (2)
        LH LH
        Leon Habinsky 1 9 years ago

          Hi guys,
          Is hotfix for v2015 not available yet?
          Thanks,
          Leon

          DevExpress Support Team 9 years ago

            Hello Leon,

            A hotfix for this issue is not available until we release the 15.1.8 version of our controls. We have plan to release it in a few days, so you will receive an e-mail about it.

            Thanks,
            Elliot

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.