private void dockingPaneManager_ActivePaneChanged(object sender,
Telerik.Windows.Controls.Docking.ActivePangeChangedEventArgs e)
{
if (e.NewPane == pane1)
LoadLayout(Properties.Resources.Pane1);
else if (e.NewPane == pane2)
LoadLayout(Properties.Resources.Pane2);
else if (e.NewPane == pane3)
LoadLayout(Properties.Resources.Pane3);
}
---------------------------
System.InvalidOperationException: The specified Visual is not an ancestor of this Visual.
at System.Windows.Media.Visual.TrySimpleTransformToAncestor(Visual ancestor, Boolean inverse, GeneralTransform& generalTransform, Matrix& simpleTransform)
at System.Windows.Media.Visual.InternalTransformToAncestor(Visual ancestor, Boolean inverse)
at Telerik.Windows.Controls.ApplicationHelper.TransformToScreenRoot(UIElement target) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Common\ApplicationHelper.cs:line 285
at Telerik.Windows.Controls.RadPane.GetDraggableArea(Boolean allowDragReorder) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPane.cs:line 1378
at Telerik.Windows.Controls.RadPane.OnHeaderMouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPane.cs:line 886
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.Input.InputManager.ProcessStagingArea()
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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
OK
---------------------------

AssociatedObject.AddHandler( UIElement.KeyDownEvent, mKeyEventHandler, true );AssociatedObject.PreviewKeyDown += _HandlePreviewKeyDown;<Window.Resources> <Style TargetType="telerik:RadListBoxItem"> <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" /> </Style></Window.Resources><Window.DataContext> <local:ExampleViewModel /></Window.DataContext><Grid Background="White" x:Name="LayoutRoot"> <telerik:RadListBox ItemsSource="{Binding CountryList}" AllowDrop="True" x:Name="listBox" Height="200" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <telerik:RadListBox.ItemTemplate> <DataTemplate> <Grid Height="50" Width="100" Background="LightBlue" telerik:DragDropManager.AllowDrag="False"> <TextBox Text="{Binding CountryName}" VerticalAlignment="Center" PreviewMouseLeftButtonDown="TextBox_PreviewMouseLeftButtonDown" MouseLeave="TextBox_MouseLeave" HorizontalAlignment="Center"/> </Grid> </DataTemplate> </telerik:RadListBox.ItemTemplate> <telerik:RadListBox.DragDropBehavior> <telerik:ListBoxDragDropBehavior AllowReorder="True"/> </telerik:RadListBox.DragDropBehavior> <telerik:RadListBox.DragVisualProvider> <telerik:ScreenshotDragVisualProvider /> </telerik:RadListBox.DragVisualProvider> <telerik:RadListBox.DropVisualProvider> <telerik:LinearDropVisualProvider /> </telerik:RadListBox.DropVisualProvider> </telerik:RadListBox>ScrollViewer.VerticalScrollBarVisibility="Visible"<telerik:RadGridView Margin="2,38,2,2" Name="notesListGridView" CanUserInsertRows="False" CanUserDeleteRows="False" IsReadOnly="True" AutoGenerateColumns="False" TabIndex="5" SelectionMode="Extended" > <telerik:RadGridView.Columns> <telerik:GridViewDataColumn UniqueName="Employee_Note_Date" Header="Date" Width="120" DataMemberBinding="{Binding Employee_Note_Date, StringFormat=d}" CellStyle="{StaticResource CustomCellStyle}" /> <telerik:GridViewDataColumn UniqueName="Employee_Note_Types" Header="Type" Width="200" DataMemberBinding="{Binding Employee_Note_Types, Path=Employee_Note_Types.Description}" CellStyle="{StaticResource CustomCellStyle}" /> <telerik:GridViewDataColumn UniqueName="Notes" Header="Notes" Width="*" DataMemberBinding="{Binding Notes}" TextWrapping="Wrap" CellStyle="{StaticResource CustomCellStyle}"></telerik:GridViewDataColumn> </telerik:RadGridView.Columns></telerik:RadGridView>string searchTxt = searchTextBox.Text;notesListGridView.FilterDescriptors.Clear();CompositeFilterDescriptor compositeDescriptor = new CompositeFilterDescriptor();compositeDescriptor.LogicalOperator = FilterCompositionLogicalOperator.Or;foreach (Telerik.Windows.Controls.GridViewColumn column in notesListGridView.Columns){ if (column.IsVisible) { GridViewDataColumn col = (GridViewDataColumn)column; if (col.DataType.ToString() == "System.String") { compositeDescriptor.FilterDescriptors.Add(new FilterDescriptor(column.UniqueName, FilterOperator.Contains, searchTxt, false)); } }}notesListGridView.FilterDescriptors.Add(compositeDescriptor);<Style TargetType="telerik:GridViewRow"> <Setter Property="Background" Value="{DynamicResource TextBackground}" /> <Setter Property="Foreground" Value="{DynamicResource TextForeground}" /> </Style><telerik:RadGridView AutoExpandGroups="True" AutoGenerateColumns="False" Background="{DynamicResource DataBackground}" CanUserDeleteRows="False" CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserResizeColumns="False" CanUserSortColumns="True" EnableColumnVirtualization="True" EnableRowVirtualization="True" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource DataForeground}" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" IsReadOnly="True" ItemsSource="{Binding Path=DataRetentionPolicies, Mode=TwoWay, RelativeSource={RelativeSource AncestorType={x:Type cs:AdvancedSettingEditor}}}" Margin="5" Name="DataPolicies" SelectionUnit="FullRow" ScrollMode="Deferred" ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" ShowGroupFooters="True" TabIndex="8" ToolTip="Data Maintenance Properties" Visibility="{Binding Converter={StaticResource BoolToVisibility}, Mode=TwoWay, Path=EnableRetention, RelativeSource={RelativeSource AncestorType={x:Type cs:AdvancedSettingEditor}}}"> <telerik:RadGridView.Columns> . . . </telerik:RadGridView.Columns> </telerik:RadGridView>