
<Style TargetType="{x:Type telerikNavigation:RadTreeViewItem}"> <Setter Property="CheckState" Value="{Binding IsCheckedState, Mode=TwoWay}" /> <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" /> <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" /> </Style> IsVirtualizing="True" telerikTreeView:TreeViewPanel.VirtualizationMode="Hierarchical"> <P>Parameter name: otherVisual</P> <P>at System.Windows.Media.Visual.FindCommonVisualAncestor(DependencyObject otherVisual)</P> <P>at System.Windows.Media.Visual.TransformToVisual(Visual visual)</P> <P>at Telerik.Windows.Controls.RadWindow.OnThumbDragStarted(Object sender, DragStartedEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\RadWindow.cs:line 2125</P> <P>at System.Windows.Controls.Primitives.DragStartedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)</P> <P>at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)</P> <P>at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)</P> <P>at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)</P> <P>at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)</P> <P>at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)</P> <P>at System.Windows.Controls.Primitives.Thumb.OnMouseLeftButtonDown(MouseButtonEventArgs e)</P> <P>at System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)</P> <P>at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)</P> <P>at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)</P> <P>at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)</P> <P>at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)</P> <P>at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)</P> <P>at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)</P> <P>at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)</P> <P>at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)</P> <P>at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)</P> <P>at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)</P> <P>at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)</P> <P>at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)</P> <P>at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)</P> <P>at System.Windows.Input.InputManager.ProcessStagingArea()</P> <P>at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)</P> <P>at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)</P> <P>at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)</P> <P>at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)</P> <P>at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)</P> <P>at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)</P> <P>at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)</P> <P>at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)</P> <P>at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)</P> <P>at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)</P> <P>at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)</P> <P>at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)</P> <P>at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)</P> <P>at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)</P> <P>at System.Windows.Threading.Dispatcher.Run()</P>at
public class VirtualQuery : VirtualQueryableCollectionView { WPF.Models.VirtualQuery _cacheVirtualQuery; CacheConnection _conn; public VirtualQuery(WPF.Models.VirtualQuery cacheVirtualQuery) { LoadSize = 1000; _cacheVirtualQuery = cacheVirtualQuery; _conn = cacheVirtualQuery.Connection; _cacheVirtualQuery.CreateQuery(); VirtualItemCount = Convert.ToInt16(_cacheVirtualQuery.VirtualItemCount); ItemsLoading += VirtualQuery_ItemsLoading; } private void VirtualQuery_ItemsLoading(object sender, VirtualQueryableCollectionViewItemsLoadingEventArgs e) { SetUpCacheQuery(); _cacheVirtualQuery.ItemsLoading(e.StartIndex, e.ItemCount); VirtualItemCount = Convert.ToInt16(_cacheVirtualQuery.VirtualItemCount); #region smazat dynamicky objekt pomale /*CacheDynamicObject[] DataContext = new CacheDynamicObject[_cacheVirtualQuery.QueryItems.Count] ; for (int i = 0; i < _cacheVirtualQuery.QueryItems.Count; i++) { DataContext[i] = new CacheDynamicObject(_cacheVirtualQuery.QueryItems[i] as CacheArrayOfDataTypes); }*/ #endregion object[] DataContext1 = new object[_cacheVirtualQuery.QueryItems.Count]; for (int i = 0; i < _cacheVirtualQuery.QueryItems.Count; i++) { DataContext1[i] = new Dictionary<string, string>(_cacheVirtualQuery.QueryItems[i] as CacheArrayOfDataTypes); ; } Load(e.StartIndex, DataContext1); _cacheVirtualQuery.QueryItems.Clear(); _cacheVirtualQuery.Connection.ForceSync(); } private void SetUpCacheQuery() { _cacheVirtualQuery.SortDescriptors.Clear(); foreach (Telerik.Windows.Controls.GridView.ColumnSortDescriptor item in SortDescriptors) { WPF.Models.SortDescriptor desc = new WPF.Models.SortDescriptor(_conn); desc.SortUniqueName = item.Column.UniqueName; desc.SortDirection = item.SortDirection.ToString(); _cacheVirtualQuery.SortDescriptors.Add(desc); } } }<telerikDocking:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical"> <telerikDocking:RadPaneGroup> <telerikDocking:RadPane Header="Overview" CanUserClose="False" > <my:OverviewControl Margin="5 5 5 5" x:Name="ucPlanSituation"/> </telerikDocking:RadPane> </telerikDocking:RadPaneGroup> <telerikDocking:RadPaneGroup> <telerikDocking:RadPane Header="Légende" CanUserClose="False" > <my:TocControl Margin="5 5 5 5" x:Name="ucLegende"/> </telerikDocking:RadPane> </telerikDocking:RadPaneGroup></telerikDocking:RadSplitContainer>Hello,
I have a class “Priority” which derives from the Category class and fires PropertyChanged when (New) CategoryBrush changes.
I assign the collection of Priority objects to the CategoriesSource property of the ScheduleView control.
The Edit window loads the list fine, but when the brush color of the Category aka Priority changes in the configuration window - the Edit window doesn’t reflect the change. Other controls bound to the CategoryBrush property of the same collection change the color but not the ScheduleView.
Can you see why?
Thank you.
Hi,
I have just started my adventure with WPF. I have heard that it is dedicated for graphical applications. I'm interested in creating a control that handles linear chart and transform it into chart in a circle. I just wonder if there is some easy way to do that?
Thank you in advance for any reply.