This question is locked. New answers and comments are not allowed.
Hello,
Telerik.Windows.Controls.Docking.dll v2.0.50727
We have a UserControl in a RadPane:
Telerik.Windows.Controls.Docking.dll v2.0.50727
We have a UserControl in a RadPane:
<dock:RadPane x:Name = "tagPalettePane" Header = "Tag Palette" CanUserClose = "False" = "180" ="{x:Null}" > <ScrollViewer VerticalScrollBarVisibility = "Auto"> <Views:TagManagerView x:Name = "viewTagManager" /> </ScrollViewer></dock:RadPane>The TagManagerView contains an MS Toolkit TreeView control; the TreeViewItems are described in a template:
TreeItemBorder_MouseLeftButtonDown hooks up a MouseMove event handler:
(LayoutRoot is a Grid control in our content display area.
Finally the question/problem:
- When the RadPane is pinned open, the DragTagDelta handler is called.
- When the RadPane is NOT pinned open, the code that hooks up the DragTagDelta handler is called, but DragTagDelta is never called.
Why is that, and how can I fix it?
Thanks for any insight...
<sdk:TreeView.ItemTemplate> <sdk:HierarchicalDataTemplate ItemsSource="{Binding Children}"> <Border x:Name="TreeItemBorder" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" MouseLeftButtonDown="TreeItemBorder_MouseLeftButtonDown" MouseLeftButtonUp="TreeItemBorder_MouseLeftButtonUp"> <StackPanel Orientation="Horizontal"> <CheckBox IsChecked="{Binding IsVisible, Mode=TwoWay}"></CheckBox> <TextBlock x:Name = "TagTextBlock" Text="{Binding Name}" Foreground="{Binding TagType, Converter={StaticResource colorConverter}}" MouseEnter = "TagTextBlock_OnMouseEnter" MouseLeave="TagTextBlock_MouseLeave" /> </StackPanel> </Border> </sdk:HierarchicalDataTemplate></sdk:TreeView.ItemTemplate> LayoutRoot.MouseMove += DragTagDelta;Finally the question/problem:
- When the RadPane is pinned open, the DragTagDelta handler is called.
- When the RadPane is NOT pinned open, the code that hooks up the DragTagDelta handler is called, but DragTagDelta is never called.
Why is that, and how can I fix it?
Thanks for any insight...