Executing this code throw an exeption :
If Visibility is sets to Hidden everithing works as expected.
Setting Opacity to 0 doesn't work (the bar is visible), it's normal or not ?
The stack trace is :
<telerik:RadCartesianChart > <telerik:RadCartesianChart.HorizontalAxis> <telerik:CategoricalAxis GapLength="0" /> </telerik:RadCartesianChart.HorizontalAxis> <telerik:RadCartesianChart.VerticalAxis> <telerik:LinearAxis /> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.Grid> <telerik:CartesianChartGrid MajorLinesVisibility="Y" /> </telerik:RadCartesianChart.Grid> <telerik:RadCartesianChart.SelectionPalette> <telerik:ChartPalette> <telerik:ChartPalette.GlobalEntries> <telerik:PaletteEntry Fill="Orange" /> </telerik:ChartPalette.GlobalEntries> </telerik:ChartPalette> </telerik:RadCartesianChart.SelectionPalette> <telerik:RadCartesianChart.Behaviors> <telerik:ChartSelectionBehavior /> </telerik:RadCartesianChart.Behaviors> <telerik:RangeBarSeries ItemsSource="{Binding Items}" LowBinding="Min" HighBinding="Max" CategoryBinding="X" CombineMode="Cluster" /> <telerik:RangeBarSeries ItemsSource="{Binding Items2}" LowBinding="Min" HighBinding="Max" CategoryBinding="X" CombineMode="Cluster" Visibility="Collapsed" /></telerik:RadCartesianChart>If Visibility is sets to Hidden everithing works as expected.
Setting Opacity to 0 doesn't work (the bar is visible), it's normal or not ?
The stack trace is :
à System.Windows.Media.VisualTreeHelper.HitTest(Visual reference, HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, HitTestParameters hitTestParameters) à Telerik.Windows.Controls.VisualTreeHelperExtensions.GetElementsInHostCoordinates[T](UIElement subtree, HitTestParameters hitTestParams) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Common\VisualTreeHelperExtensions.cs:ligne 141 à Telerik.Windows.Controls.VisualTreeHelperExtensions.GetElementsInHostCoordinates[T](UIElement subtree, Rect localIntersectingRect) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Common\VisualTreeHelperExtensions.cs:ligne 134 à Telerik.Windows.Controls.ChartView.ChartSeries.<HitTestElementsCore>d__c.MoveNext() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\ChartSeries.Behavior.cs:ligne 158 à Telerik.Windows.Controls.ChartView.ChartSeries.<HitTestDataPointsCore>d__14.MoveNext() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\ChartSeries.Behavior.cs:ligne 176 à Telerik.Windows.Controls.ChartView.ChartSeries.<HitTestDataPoints>d__0.MoveNext() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\ChartSeries.Behavior.cs:ligne 122 à Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.UpdateDataPointSelection(ChartSeries series) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 346 à Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.UpdateSelection() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 267 à Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.DoSelection(Point location) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 221 à Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.AdornerContainerMouseLeftButtonUp(Object sender, MouseButtonEventArgs e) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 210 à System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) à System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) à System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) à System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) à System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) à System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) à System.Windows.Input.InputManager.ProcessStagingArea() à System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) à System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) à System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) à System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) à System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) à MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) à System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) à System.Windows.Threading.Dispatcher.Run() à System.Windows.Application.RunDispatcher(Object ignore) à System.Windows.Application.RunInternal(Window window) à System.Windows.Application.Run(Window window) à System.Windows.Application.Run() à TelerikChartViewSelection.App.Main() dans E:\Documents\Visual Studio 2010\Projects\TelerikChartViewSelection\obj\x86\Debug\App.g.cs:ligne 0 à System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) à System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() à System.Threading.ThreadHelper.ThreadStart_Context(Object state) à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) à System.Threading.ThreadHelper.ThreadStart()