or
<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>Ã 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()ListStyle newListStyle = DefaultListStyles.Numbered; DocumentList documentList = new DocumentList(newListStyle, Document); for(int i=0;i<maxTOClevel;i++) { documentList.Style.Levels[i].Indent = 0; documentList.Style.Levels[i].HangingIndent = 0; documentList.Style.Levels[i].NumberingFormat = ListNumberingFormat.Decimal; }StyleDefinition toc1Style = Document.StyleRepository[RadDocumentDefaultStyles.GetTocStyleNameByIndex(1)];toc1Style.SpanProperties.UnderlineDecoration = UnderlineTypes.Line;
private void PropsGrid_AutoGeneratingPropertyDefinition(object sender, Telerik.Windows.Controls.Data.PropertyGrid.AutoGeneratingPropertyDefinitionEventArgs e){ string[] hiddenProperties = { "RotationAngle", "IsSelected", "Position", "Visibility", "Width", "Height", "Content", "Background" }; if (hiddenProperties.Contains(e.PropertyDefinition.SourceProperty.Name)) { // I want to hide some properties of the inherited object (this works) e.PropertyDefinition.Visibility = System.Windows.Visibility.Collapsed; } else if (e.PropertyDefinition.SourceProperty.PropertyType == typeof(IPAddress)) { // I want to show IP address, but do not want them to expand NestedProperties // THIS DOESNT WORK e.PropertyDefinition.NestedProperties = null; }}