Current filter:
                                You should refresh the page.
                                  • Hi,

                                    This may be a similar problem to that described in T807458. When I try to interactively create a connector between two tasks (with AllowEditConnectors="True") I get a runtime crash with the following call stack.

                                    System.ArgumentNullException
                                      HResult=0x80004003
                                      Message=Value cannot be null.
                                    Parameter name: otherVisual
                                      Source=PresentationCore
                                      StackTrace:
                                       at System.Windows.Media.Visual.FindCommonVisualAncestor(DependencyObject otherVisual)
                                       at System.Windows.Media.Visual.TransformToVisual(Visual visual)
                                       at DevExpress.Xpf.Core.Native.LayoutHelper.GetRelativeElementRect(UIElement element, UIElement parent)
                                       at DevExpress.Xpf.Gantt.Native.NoEditState.GetConnectorStartPoint(OutputConnectorDragThumb thumb, GanttNode node)
                                       at DevExpress.Xpf.Gantt.Native.NoEditState.DragConnector(OutputConnectorDragThumb thumb)
                                       at DevExpress.Xpf.Gantt.Native.NoEditState.<>c__DisplayClass3_0.<ProcessOutputConnectorDragThumbMouseDown>b__2()
                                       at DevExpress.Mvvm.Native.MayBe.Return[TI,TR](TI input, Func`2 evaluator, Func`1 fallback)
                                       at DevExpress.Xpf.Gantt.Native.NoEditState.<>c__DisplayClass3_0.<ProcessOutputConnectorDragThumbMouseDown>b__0()
                                       at DevExpress.Xpf.Gantt.Native.NoEditState.GoToState(Func`1 junction)
                                       at DevExpress.Xpf.Gantt.Native.NoEditState.ProcessOutputConnectorDragThumbMouseDown(OutputConnectorDragThumb thumb)
                                       at DevExpress.Xpf.Gantt.GanttView.<>c__DisplayClass197_0.<GanttOutputConnectorDragThumbMouseDown>b__0(GanttViewEditState x)
                                       at DevExpress.Xpf.Gantt.GanttView.UpdateEditState(Func`2 update)
                                       at DevExpress.Xpf.Gantt.GanttView.GanttOutputConnectorDragThumbMouseDown(OutputConnectorDragThumb thumb)
                                       at DevExpress.Xpf.Gantt.Native.OutputConnectorDragThumb.OnMouseLeftButtonDown(MouseButtonEventArgs e)
                                       at System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)
                                       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
                                       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
                                       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
                                       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
                                       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
                                       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
                                       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
                                       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
                                       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
                                       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
                                       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
                                       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
                                       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
                                       at System.Windows.Input.InputManager.ProcessStagingArea()
                                       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
                                       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
                                       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
                                       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
                                       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
                                       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
                                       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
                                       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)
                                       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
                                       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
                                       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
                                       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
                                       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
                                       at System.Windows.Application.RunDispatcher(Object ignore)
                                       at System.Windows.Application.RunInternal(Window window)
                                       at System.Windows.Application.Run(Window window)
                                       at System.Windows.Application.Run()
                                       at CIOClientVW.App.Main()

                                    If you need more info to follow this up, let me know, But I suspect the call stack may give you the clues as in the previous ticket.

                                    Thanks

                                    Nick

                                • Dima (DevExpress Support) 08.22.2019

                                  Hello Nick,

                                  Although these call stacks have similar elements, it looks like they represent different issues. I discussed them with our developers, and we were not able to find a potential cause in our code. Would you please provide us with a sample where the issue is reproducible?

                                  I look forward to your reply.

                                • Nick Friend 08.22.2019

                                  Ok thanks, I'll try and get some more precise info together later today.

                                  I suspect it's another issue where I've got null values in the underlying objects, but I think that's as much a problem about how I'm designing as anything else.

                                  I'll keep you posted.

                                  Nick

                                • Dima (DevExpress Support) 08.22.2019

                                  OK, Nick. We look forward to hearing from you.

                                • Nick Friend 08.23.2019

                                  I found the source of the problem. It's a control template we have to print a watermark-style background on our grids and tree lists.

                                  Can you suggest how to modify this so that it doesn't apply to the GanttView?

                                  [XAML]
                                  <ControlTemplate x:Key="{dxgt:TableViewThemeKey ResourceKey=DataPresenterTemplate, IsThemeIndependent=True}" TargetType="{x:Type dxg:DataPresenter}"> <Grid Background="White"> <TextBlock Foreground="Gray" Opacity="0.4" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="50" TextWrapping="Wrap" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" Text="{Binding Path=Tag, RelativeSource={RelativeSource AncestorType=dxg:DataControlBase}}"> <TextBlock.RenderTransform> <RotateTransform Angle="320" /> </TextBlock.RenderTransform> </TextBlock> <Border Background="Transparent"> <ContentPresenter /> </Border> </Grid> </ControlTemplate>

                                  Thanks

                                  Nick

                                1 Solution

                                Creation Date Importance Sort by

                                Hello,
                                If you want to apply this template only for particular GridControls, you can simply place it into these GridControls' Resources. Alternatively, you can create a style for the required target View (TableView, TreeListView etc.) and place the template into this style's Resources.

                                Thanks,
                                Kirill