Cue not displaying

8 posts, 0 answers
  1. Alan Sauls
    Alan Sauls avatar
    12 posts
    Member since:
    Dec 2009

    Posted 19 Apr 2010 Link to this post

    Here is my method in a treeview code behind:

    private

     

     

    void OnDragQuery(object sender, DragDropQueryEventArgs e)

     

    {

     

     

    if (e.Options.Destination != null)

     

    {

     

     

    if (e.Options.Destination.GetType() != typeof(RadTreeViewItem))

     

    {

     

     

    RadTreeViewItem item = e.Source as RadTreeViewItem;

     

     

     

    if (item != null)

     

    {

     

     

    ParentElement ele = (ParentElement)item.Item;

     

     

     

    // Cannot drag an abstract element onto the content region, i.e. paragraph or table

     

     

     

    if (ele.IsAbstract != null)

     

    {

     

     

    if (ele.IsAbstract.Value)

     

    {

    e.QueryResult =

     

    false;

     

     

     

    return;

     

    }

    }

    e.Options.Payload = item.Item;

     

     

    if (e.Options.Status == DragStatus.DropSourceQuery)

     

    {

    _cue.Content = ele.LabelName;

    e.Options.DragCue = _cue;

    e.Options.ArrowCue = _arrow;

    }

    }

    e.QueryResult =

     

    true;

     

    e.Handled =

     

    true;

     

    }

    }

    }

    When I debug into this code the _cue is properly set with my item's LabelName.  I see the arrow during the drag but never see the cue's Content.  I may have an unusual case in that my treeview is in a separate assembly in another project(so that it can be shared by various apps).  Here is my xaml for the user control:


     

    <

     

     

    UserControl x:Class="Bowne.Common.Controls.XBRLHierarchyTree"

     

     

     

     

     

     

     

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

     

     

     

     

     

     

     

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

     

     

     

     

     

     

     

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

     

     

     

     

     

     

     

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

     

     

     

     

     

     

     

    xmlns:local="clr-namespace:Bowne.Common.Controls"

     

     

     

     

     

     

     

    xmlns:dragdrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"

     

     

     

     

     

     

     

    xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"

     

     

     

    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

     

     

     

     

     

     

     

    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" mc:Ignorable="d">

     

     

     

     

     

     

     

     

    <UserControl.Resources>

     

     

     

     

     

     

     

     

    <DataTemplate x:Key="ApplicationDragTemplate">

     

     

     

     

     

     

     

     

    <Image Source="Images/Cancel.png" Stretch="None" VerticalAlignment="Top" />

     

     

     

     

     

     

     

     

    </DataTemplate>

     

     

     

     

     

     

     

     

    <local:BooleanToHiddenVisibility x:Key="boolToVis"/>

     

     

     

     

     

     

     

     

    <local:AbstractVisibility x:Key="AbstractVisibility"/>

     

     

     

     

     

     

     

     

    <local:UsGaapVisibility x:Key="UsGaapVisibility"/>

     

     

     

     

     

     

     

     

    <local:IsCalculationReportSupported x:Key="IsCalculationReportSupported"/>

     

     

     

     

    <LinearGradientBrush x:Key="WindowBackground" EndPoint="0.5,1" StartPoint="0.5,0">

     

     

     

     

     

     

     

     

    <GradientStop Color="#FF24CFFF" Offset="1"/>

     

     

     

     

     

     

     

     

    <GradientStop Color="#FFF9FBFD"/>

     

     

     

     

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

     

     

     

     

    <!--Data source for the RadTreeView-->

     

     

     

     

     

     

     

     

    <!--<local:DataSource x:Key="xbrlHierarchyDataSource"/>-->

     

     

     

     

     

     

     

     

    <!--Bindings collection for the RadTreeViewItems-->

     

     

     

     

     

     

     

     

    <telerik:ContainerBindingCollection x:Name="BindingsCollection">

     

     

     

     

     

     

     

     

    <telerik:ContainerBinding PropertyName="IsSelected" Binding="{Binding Selected, Mode=TwoWay}" />

     

     

     

     

     

     

     

     

    <telerik:ContainerBinding PropertyName="IsExpanded" Binding="{Binding Expanded, Mode=TwoWay}" />

     

     

     

     

     

     

     

     

    <telerik:ContainerBinding PropertyName="IsInEditMode" Binding="{Binding InEditMode, Mode=TwoWay}" />

     

     

     

     

     

     

     

     

    </telerik:ContainerBindingCollection>

     

     

     

     

     

     

     

     

    <!--Data template for the Element object-->

     

     

     

     

     

     

     

     

    <telerik:HierarchicalDataTemplate

     

     

     

    x:Key="ElementTemplate"

     

     

     

    telerik:ContainerBinding.ContainerBindings="{StaticResource BindingsCollection}"

     

     

     

    ItemsSource="{Binding ChildElements}">

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Horizontal">

     

     

     

     

     

     

     

     

    <Image Source="Images/abstract.PNG" Visibility="{Binding Converter={StaticResource AbstractVisibility}}"/>

     

     

     

     

     

     

     

     

    <Image Source="Images/axis.PNG" Visibility="{Binding IsDimension, Converter={StaticResource boolToVis}}"/>

     

     

     

     

     

     

     

     

    <Image Source="Images/member.PNG" Visibility="{Binding IsMember, Converter={StaticResource boolToVis}}"/>

     

     

     

     

     

     

     

     

    <Image Source="Images/table.PNG" Visibility="{Binding IsHypercube, Converter={StaticResource boolToVis}}"/>

     

     

     

     

     

     

     

     

    <Image Source="Images/extension.PNG" Visibility="{Binding NotUsgaap, Converter={StaticResource boolToVis}}"/>

     

     

     

     

     

     

     

     

    <Image Source="Images/emptycircle.PNG" Visibility="{Binding Converter={StaticResource UsGaapVisibility}}"/>

     

     

     

     

     

     

     

     

    <Image Source="Images/minus.PNG" Visibility="{Binding NegateLabel, Converter={StaticResource boolToVis}}"/>

     

     

     

     

     

     

     

     

    <Image Source="Images/inusestar.PNG" Visibility="{Binding IsFact, Converter={StaticResource boolToVis}}"/>

     

     

     

     

     

     

     

     

    <TextBlock Text="{Binding LabelName}" Foreground="#FF0F0F10" FontFamily="Verdana" FontSize="11" Width="Auto">

     

     

     

     

     

     

     

     

    <telerikNavigation:RadContextMenu.ContextMenu>

     

     

     

     

     

     

     

     

    <telerikNavigation:RadContextMenu Name="ElementContextMenu"

     

     

     

     

     

     

     

    ItemClick="OnContextMenuClick">

     

     

     

     

     

     

     

     

    <telerikNavigation:RadMenuItem Header="New Child Element" />

     

     

     

     

     

     

     

     

    <telerikNavigation:RadMenuItem IsSeparator="True" />

     

     

     

     

     

     

     

     

    <telerikNavigation:RadMenuItem Header="Delete" />

     

     

     

     

     

     

     

     

    </telerikNavigation:RadContextMenu>

     

     

     

     

     

     

     

     

    </telerikNavigation:RadContextMenu.ContextMenu>

     

     

     

     

     

     

     

     

    <ToolTipService.ToolTip>

     

     

     

     

     

     

     

     

    <ToolTip x:Name="LabelToolTipText" Content="{Binding LabelName}">

     

     

     

     

     

     

     

     

    </ToolTip>

     

     

     

     

     

     

     

     

    </ToolTipService.ToolTip>

     

     

     

     

     

     

     

     

    </TextBlock>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerik:HierarchicalDataTemplate>

     

     

     

     

     

     

     

     

    <!--Data template for the Department object-->

     

     

     

     

     

     

     

     

    <telerik:HierarchicalDataTemplate

     

     

     

    x:Key="TitleTemplate"

     

     

     

    ItemTemplate="{StaticResource ElementTemplate}"

     

     

     

     

     

     

     

    ItemsSource="{Binding Elements}"

     

     

     

     

     

     

     

    telerik:ContainerBinding.ContainerBindings="{StaticResource BindingsCollection}">

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Horizontal">

     

     

     

     

     

     

     

     

    <TextBlock x:Name="textBlock" Foreground="#FF0F0F10" d:DesignWidth="197" d:DesignHeight="31" FontFamily="Verdana" FontSize="11" Width="Auto" FontWeight="Bold" Text="{Binding Name, Mode=TwoWay}" >

     

     

     

     

     

     

     

     

    <telerikNavigation:RadContextMenu.ContextMenu>

     

     

     

     

     

     

     

     

    <telerikNavigation:RadContextMenu Name="TitleContextMenu"

     

     

     

    ItemClick="OnContextMenuClick">

     

     

     

     

     

     

     

     

    <telerikNavigation:RadMenuItem Header="New Child Element" />

     

     

     

     

     

     

     

     

    <telerikNavigation:RadMenuItem Header="New Child Hypercube" />

     

     

     

     

     

     

     

     

    <telerikNavigation:RadMenuItem Header="New Sibling Element" />

     

     

     

     

     

     

     

     

    <telerikNavigation:RadMenuItem Header="Edit" />

     

     

     

     

     

     

     

     

    <telerikNavigation:RadMenuItem Header="Delete" />

     

     

     

     

    <telerikNavigation:RadMenuItem IsSeparator="True" Visibility="{Binding Converter={StaticResource IsCalculationReportSupported}}"/>

     

     

     

     

     

     

     

     

    <telerikNavigation:RadMenuItem Header="Auto-create Calculation Report" Visibility="{Binding Converter={StaticResource IsCalculationReportSupported}}"/>

     

     

     

     

     

     

     

     

    </telerikNavigation:RadContextMenu>

     

     

     

     

     

     

     

     

    </telerikNavigation:RadContextMenu.ContextMenu>

     

     

     

     

     

     

     

     

    <ToolTipService.ToolTip>

     

     

     

     

     

     

     

     

    <ToolTip x:Name="ElementToolTipText" Content="{Binding Name}">

     

     

     

     

     

     

     

     

    </ToolTip>

     

     

     

     

     

     

     

     

    </ToolTipService.ToolTip>

     

     

     

     

     

     

     

     

    </TextBlock>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerik:HierarchicalDataTemplate>

     

     

     

     

     

     

     

     

    </UserControl.Resources>

     

     

     

     

     

     

     

     

    <Grid x:Name="LayoutRoot" Background="White">

     

     

     

     

     

     

     

     

    <controlsToolkit:BusyIndicator Name="treeBusyIndicator"

     

     

     

     

     

     

     

    DisplayAfter="0"

     

     

     

     

     

     

     

    IsBusy="False"

     

     

     

     

     

     

     

    BusyContent="Loading XBRL Tree..."

     

     

     

     

     

     

     

    Canvas.ZIndex="100">

     

     

     

     

     

     

     

     

    </controlsToolkit:BusyIndicator>

     

     

     

     

     

     

     

     

    <telerikNavigation:RadTreeView Height="Auto" VerticalContentAlignment="Bottom" Width="Auto" Name="xbrlHierarchyTree"

     

     

     

     

     

     

     

    IsEditable="True" Visibility="Collapsed"

     

     

     

     

     

     

     

    SelectionMode="Single" Canvas.ZIndex="1"

     

     

     

     

     

     

     

    ItemTemplate="{StaticResource TitleTemplate}"

     

     

     

    HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ScrollViewer.VerticalScrollBarVisibility="Visible" BorderThickness="1"

     

     

     

    HorizontalContentAlignment="Right" IsLineEnabled="True" BorderBrush="#FF7C6868"

     

     

     

     

     

     

     

    IsDragDropEnabled="True" DataContext="{Binding}"

     

     

     

    PreviewDragEnded="xbrlHierarchyTree_PreviewDragEnded"

     

     

     

    PreviewDragStarted="xbrlHierarchyTree_PreviewDragStarted"

     

     

     

    Selected="xbrlHierarchyTree_Selected" Edited="xbrlHierarchyTree_Edited">

     

     

     

     

     

     

     

     

    <telerikNavigation:RadTreeView.ItemEditTemplate>

     

     

     

     

     

     

     

     

    <DataTemplate>

     

     

     

     

     

     

     

     

    <Grid>

     

     

     

     

     

     

     

     

    <TextBox Text="{Binding Name, Mode=TwoWay}"/>

     

     

     

     

     

     

     

     

    </Grid>

     

     

     

     

     

     

     

     

    </DataTemplate>

     

     

     

     

     

     

     

     

    </telerikNavigation:RadTreeView.ItemEditTemplate>

     

     

     

     

     

     

     

     

    </telerikNavigation:RadTreeView>

     

     

     

     

     

     

     

     

    </Grid>

     

    </

     

     

    UserControl>

    And here is the xaml for the consuming app:

     

     

     

     

    <

     

     

    telerikNavigation:RadWindow Visibility="Visible"

     

     

     

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

     

     

     

     

     

     

     

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

     

     

     

    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

     

     

     

     

     

     

     

    xmlns:MarkupElementInfo="clr-namespace:Bowne.XBRL.XBRLProcessor.Controls.Markup"

     

     

     

     

     

     

     

    xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"

     

     

     

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

     

     

     

     

     

     

     

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

     

     

     

     

     

     

     

    xmlns:local="clr-namespace:Bowne.Common.Controls;assembly=Bowne.Common.Controls"

     

     

     

     

     

     

     

    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"

     

     

     

    xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"

     

     

     

    xmlns:telerikRibbonBar="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar"

     

     

     

    xmlns:dragdrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"

     

     

     

    xmlns:Calendar="clr-namespace:Bowne.XBRL.XBRLProcessor.Controls.Calendar"

     

     

     

    xmlns:PrecisionScaleUnit="clr-namespace:Bowne.XBRL.XBRLProcessor.Controls.PrecisionScaleUnit" xmlns:Match="clr-namespace:Bowne.XBRL.XBRLProcessor.Controls.Match" mc:Ignorable="d" x:Name="processorMainWindow" x:Class="Bowne.XBRL.XBRLProcessor.XprocessorMain"

     

     

     

     

     

     

     

    Width="1000" Height="700" Header="Processor" >

     

     

     

     

     

     

     

     

    <telerikNavigation:RadWindow.BorderBrush>

     

     

     

     

     

     

     

     

    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

     

     

     

     

     

     

     

     

    <LinearGradientBrush.RelativeTransform>

     

     

     

     

     

     

     

     

    <MatrixTransform/>

     

     

     

     

     

     

     

     

    </LinearGradientBrush.RelativeTransform>

     

     

     

     

     

     

     

     

    <GradientStop Color="#FF029ED8" Offset="1"/>

     

     

     

     

     

     

     

     

    <GradientStop Color="#FF5A5D5E" Offset="0"/>

     

     

     

     

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

     

     

     

     

    </telerikNavigation:RadWindow.BorderBrush>

     

     

     

     

     

     

     

     

    <Grid x:Name="LayoutRoot" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,110,0,0">

     

     

     

     

     

     

     

     

    <Grid.RowDefinitions>

     

     

     

     

     

     

     

     

    <RowDefinition Height="25"></RowDefinition>

     

     

     

     

     

     

     

     

    <RowDefinition Height="*"></RowDefinition>

     

     

     

     

     

     

     

     

    </Grid.RowDefinitions>

     

     

     

     

     

     

     

     

    <Grid x:Name="LayoutRoot1" VerticalAlignment="Top" HorizontalAlignment="Stretch" Grid.RowSpan="2">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonBar x:Name="Ribbon" ApplicationName="Processor" Title="XBRLProcessor" TitleBarVisibility="Collapsed" ApplicationButtonVisibility="Collapsed" Height="98" Margin="0,-109,0,0" d:LayoutOverrides="VerticalAlignment">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonTab Header="Markup Review" Margin="0,0,0,20">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonGroup Header="Element">

     

     

     

     

     

     

     

     

    <StackPanel>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton LargeImage="Resources/Images/info.png" Text="Info" Size="Medium" telerikRibbonBar:ScreenTip.Description="Display the element information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <MarkupElementInfo:MarkupElementInfo x:Name="MarkupElementInfo" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonButton Name="UntagElement" Click="UntagElementFromFact_Click" Text="Delete" telerikRibbonBar:ScreenTip.Description="Untag the element from the fact" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" />

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonGroup>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonGroup Header="Context">

     

     

     

     

     

     

     

     

    <StackPanel>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Info" LargeImage="Resources/Images/info.png" Size="Medium" telerikRibbonBar:ScreenTip.Description="Display the Context information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <MarkupElementInfo:MarkupContextInfo x:Name="MarkupContext"></MarkupElementInfo:MarkupContextInfo>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonButton Name="UntagContext" Click="UntagContextFromFact_Click" Text="Delete" telerikRibbonBar:ScreenTip.Description="Untag the context from the fact" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top"/>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonGroup>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonGroup Header="Unit">

     

     

     

     

     

     

     

     

    <StackPanel>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Info" LargeImage="Resources/Images/info.png" Size="Medium" telerikRibbonBar:ScreenTip.Description="Display the Unit information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <MarkupElementInfo:MarkupUnit x:Name="MarkupUnit" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonGroup>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonGroup Header="Precision">

     

     

     

     

     

     

     

     

    <StackPanel>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Info" LargeImage="Resources/Images/info.png" Size="Medium" telerikRibbonBar:ScreenTip.Description="Display the Precision information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <MarkupElementInfo:MarkupPrecision x:Name="MarkupPrecision" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonGroup>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonGroup Header="Scale">

     

     

     

     

     

     

     

     

    <StackPanel>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Info" LargeImage="Resources/Images/info.png" Size="Medium" telerikRibbonBar:ScreenTip.Description="Display the Scale information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <MarkupElementInfo:MarkupScale x:Name="MarkupScale" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonGroup>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonTab>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonTab Header="Calendar">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonGroup Header="Calendar">

     

     

     

     

     

     

     

     

    <StackPanel>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Calendars" telerikRibbonBar:ScreenTip.Description="Display the Calendar information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <Calendar:ElementCalendar x:Name="ElementCalendar" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonGroup>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonTab>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonTab Header="Precision/Scale/Unit">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonGroup Header="Precision/Scale/Unit">

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Horizontal">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Precision" telerikRibbonBar:ScreenTip.Description="Display the Precision information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <PrecisionScaleUnit:Precision x:Name="Precision" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Unit" telerikRibbonBar:ScreenTip.Description="Display the Unit information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <PrecisionScaleUnit:Unit x:Name="Unit" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Scale" telerikRibbonBar:ScreenTip.Description="Display the Scale information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <PrecisionScaleUnit:Scale x:Name="Scale" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Currency" telerikRibbonBar:ScreenTip.Description="Display the Currency information for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <PrecisionScaleUnit:Currency x:Name="Currency" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonGroup>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonTab>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonTab Header="Footnotes" />

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonTab Header="Match Strength ">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonGroup Header="Match Strength">

     

     

     

     

     

     

     

     

    <StackPanel>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton Text="Match Strength" telerikRibbonBar:ScreenTip.Description="Display the Match Strength for the fact">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    <Match:StrengthMatch x:Name="MatchStrength" />

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton.DropDownContent>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonSplitButton>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonGroup>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonTab>

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonTab Header="View">

     

     

     

     

     

     

     

     

    <telerikRibbonBar:RadRibbonGroup HorizontalAlignment="Stretch">

     

     

     

     

     

     

     

     

    <Button x:Name="ShowPanes" Click="ShowPanes_Click" ToolTipService.ToolTip="Show Panes">

     

     

     

     

     

     

     

     

    <Button.Content>

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Horizontal">

     

     

     

     

     

     

     

     

    <Image Source="Resources/Images/showpanes.PNG" Height="18" Width="18" ></Image>

     

     

     

     

     

     

     

     

    <TextBlock x:Name="showPane" Visibility="Visible" HorizontalAlignment="Left" TextWrapping="Wrap" Text=" Show Panes" Width="Auto" Height="16" />

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </Button.Content>

     

     

     

     

     

     

     

     

    </Button>

     

     

     

     

     

     

     

     

    <Button x:Name="ShowDocumentOnly" Click="ShowDocumentOnly_Click" ToolTipService.ToolTip="Funds Detail">

     

     

     

     

     

     

     

     

    <Button.Content>

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Horizontal">

     

     

     

     

     

     

     

     

    <Image Source="Resources/Images/showfunds.PNG" Height="18" Width="18" ></Image>

     

     

     

     

     

     

     

     

    <TextBlock x:Name="showfundsonly" Visibility="Visible" HorizontalAlignment="Left" TextWrapping="Wrap" Text=" Fund Details" Width="Auto" Height="16" />

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </Button.Content>

     

     

     

     

     

     

     

     

    </Button>

     

     

     

     

     

     

     

     

    <telerikNavigation:RadToolBarSeparator/>

     

     

     

     

     

     

     

     

    <Button x:Name="OriginalDoc" ToolTipService.ToolTip="Show Original Document" Click="OriginalDoc_Click" IsEnabled="False" >

     

     

     

     

     

     

     

     

    <Button.Content>

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Horizontal">

     

     

     

     

     

     

     

     

    <Image Source="Resources/Images/originaldoc.JPG" Height="18" Width="18" ></Image>

     

     

     

     

     

     

     

     

    <TextBlock x:Name="showdoc" Visibility="Visible" HorizontalAlignment="Left" TextWrapping="Wrap" Text=" Original E2/E1" Width="Auto" Height="16" />

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </Button.Content>

     

     

     

     

     

     

     

     

    </Button>

     

     

     

     

     

     

     

     

    <telerikNavigation:RadToolBarSeparator/>

     

     

     

     

     

     

     

     

    <Button x:Name="ZoomOut" Click="ZoomOut_Click" ToolTipService.ToolTip="Zoom In">

     

     

     

     

     

     

     

     

    <Button.Content>

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Horizontal">

     

     

     

     

     

     

     

     

    <Image Source="Resources/Images/zoomin.jpg" Height="18" Width="18" ></Image>

     

     

     

     

     

     

     

     

    <TextBlock x:Name="zoomout" Visibility="Visible" HorizontalAlignment="Left" TextWrapping="Wrap" Text=" Zoom in" Width="Auto" Height="16" />

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </Button.Content>

     

     

     

     

     

     

     

     

    </Button>

     

     

     

     

     

     

     

     

    <Button x:Name="ZoomIn" Click="ZoomIn_Click" ToolTipService.ToolTip="Zoom Out">

     

     

     

     

     

     

     

     

    <Button.Content>

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Horizontal">

     

     

     

     

     

     

     

     

    <Image Source="Resources/Images/zoomout.jpg" Height="18" Width="18" ></Image>

     

     

     

     

     

     

     

     

    <TextBlock x:Name="zoomin" Visibility="Visible" HorizontalAlignment="Left" TextWrapping="Wrap" Text=" Zoom out" Width="Auto" Height="16" />

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </Button.Content>

     

     

     

     

     

     

     

     

    </Button>

     

     

     

     

     

     

     

     

    <Button x:Name="ExportXBRL" IsEnabled="True" ToolTipService.ToolTip="Export XBRL" >

     

     

     

     

     

     

     

     

    <Button.Content>

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Horizontal">

     

     

     

     

     

     

     

     

    <Image Source="Resources/Images/export.PNG" Height="15" Width="15" ></Image>

     

     

     

     

     

     

     

     

    <TextBlock x:Name="exportTitle" Visibility="Visible" HorizontalAlignment="Left" TextWrapping="Wrap" Text=" Export XBRL" Width="Auto" Height="16" />

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </Button.Content>

     

     

     

     

     

     

     

     

    </Button>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonGroup>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonTab>

     

     

     

     

     

     

     

     

    </telerikRibbonBar:RadRibbonBar>

     

     

     

     

     

     

     

     

     

    </Grid>

     

     

     

     

     

     

     

     

    <Grid x:Name="LayoutRoot2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,2,0,0" Grid.RowSpan="2">

     

     

     

     

     

     

     

     

    <radDock:RadDocking x:Name="detailDock" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" >

     

     

     

     

     

     

     

     

    <radDock:RadDocking.DocumentHost>

     

     

     

     

     

     

     

     

    <radDock:RadSplitContainer HorizontalAlignment="Stretch">

     

     

     

     

     

     

     

     

    <radDock:RadPaneGroup>

     

     

     

     

     

     

     

     

    <radDock:RadDocumentPane Title="Fund Details" CanFloat="False" x:Name="fundsDetail">

     

     

     

     

     

     

     

     

    <radDock:RadDocumentPane.Content >

     

     

     

     

     

     

     

     

    <ScrollViewer HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"

     

     

     

    HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" x:Name="lstFundsScroller">

     

     

     

     

     

     

     

     

    <StackPanel Orientation="Vertical">

     

     

     

     

     

     

     

     

    <controlsToolkit:BusyIndicator Name="fundBusyIndicator"

     

     

     

     

     

     

     

    DisplayAfter="0"

     

     

     

     

     

     

     

    IsBusy="False"

     

     

     

     

     

     

     

    BusyContent="Retrieving fund information...">

     

     

     

     

     

     

     

     

    </controlsToolkit:BusyIndicator>

     

     

     

     

     

     

     

     

    <ItemsControl

     

     

     

    MouseMove="gridFunds_MouseMove" HorizontalAlignment="Stretch"

     

     

     

     

     

     

     

    MouseLeftButtonUp="gridFunds_MouseLeftButtonUp" Name="gridFunds" FontSize="11" VerticalAlignment="Top"

     

     

     

    Height="Auto" AllowDrop="True" dragdrop:RadDragAndDropManager.AllowDrop="True">

     

     

     

     

     

     

     

     

    </ItemsControl>

     

     

     

     

     

     

     

     

    </StackPanel>

     

     

     

     

     

     

     

     

    </ScrollViewer>

     

     

     

     

     

     

     

     

    </radDock:RadDocumentPane.Content>

     

     

     

     

     

     

     

     

    </radDock:RadDocumentPane>

     

     

     

     

     

     

     

     

    </radDock:RadPaneGroup>

     

     

     

     

     

     

     

     

    </radDock:RadSplitContainer>

     

     

     

     

     

     

     

     

    </radDock:RadDocking.DocumentHost>

     

     

     

     

     

     

     

     

    <radDock:RadSplitContainer Orientation="Vertical" VerticalAlignment="Top"

     

     

     

     

     

     

     

    x:Name="fundContainer" InitialPosition ="DockedLeft" Margin="0,-2,0,0">

     

     

     

     

     

     

     

     

    <radDock:RadPaneGroup x:Name="Group3" Margin="0,0,0,92">

     

     

     

     

     

     

     

     

    <radDock:RadPane x:Name="fundPane" Header="Fund Titles">

     

     

     

     

     

     

     

     

    <controls:TreeView Name="fundTitles"

     

     

     

    HorizontalAlignment="Stretch"

     

     

     

    HorizontalContentAlignment="Stretch"

     

     

     

     

     

     

     

    VerticalAlignment="Stretch"

     

     

     

     

     

     

     

    BorderBrush="{x:Null}"

     

     

     

    Margin="0,0,0,0"

     

     

     

    ItemsSource="{Binding}"

     

     

     

    DataContext="{Binding}"

     

     

     

    SelectedItemChanged="FundTitle_Selected">

     

     

     

     

     

     

     

     

    <controls:TreeView.ItemTemplate>

     

     

     

     

     

     

     

     

    <DataTemplate>

     

     

     

     

     

     

     

     

    <Grid Width="Auto">

     

     

     

     

     

     

     

     

    <TextBlock Foreground="Black" Text="{Binding}" Width="Auto">

     

     

     

     

     

     

     

     

    <ToolTipService.ToolTip>

     

     

     

     

     

     

     

     

    <ToolTip x:Name="ToolTipText">

     

     

     

     

     

     

     

     

    <TextBlock x:Name="hovertext" Text="{Binding}" Height="Auto" Width="Auto"

     

     

     

     

     

     

     

    FontFamily="Verdana" FontSize="11" TextWrapping="Wrap"/>

     

     

     

     

     

     

     

     

    </ToolTip>

     

     

     

     

     

     

     

     

    </ToolTipService.ToolTip>

     

     

     

     

     

     

     

     

    </TextBlock>

     

     

     

     

     

     

     

     

    </Grid>

     

     

     

     

     

     

     

     

    </DataTemplate>

     

     

     

     

     

     

     

     

    </controls:TreeView.ItemTemplate>

     

     

     

     

     

     

     

     

    </controls:TreeView>

     

     

     

     

     

     

     

     

    </radDock:RadPane>

     

     

     

     

     

     

     

     

    </radDock:RadPaneGroup>

     

     

     

     

     

     

     

     

    <radDock:RadPaneGroup x:Name="treeGroup" Margin="0,0,0,-88">

     

     

     

     

     

     

     

     

    <radDock:RadPane x:Name="treePane" Header="XBRL Hierarchy Tree">

     

     

     

     

     

     

     

     

    <local:XBRLHierarchyTree x:Name="xbrlTree" BorderThickness="1" Visibility="Visible" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" >

     

     

     

     

     

     

     

     

    <local:XBRLHierarchyTree.Background>

     

     

     

     

     

     

     

     

    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

     

     

     

     

     

     

     

     

    <GradientStop Color="Black" Offset="0"/>

     

     

     

     

     

     

     

     

    <GradientStop Color="White" Offset="1"/>

     

     

     

     

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

     

     

     

     

    </local:XBRLHierarchyTree.Background>

     

     

     

     

     

     

     

     

    <local:XBRLHierarchyTree.Effect>

     

     

     

     

     

     

     

     

    <DropShadowEffect/>

     

     

     

     

     

     

     

     

    </local:XBRLHierarchyTree.Effect>

     

     

     

     

     

     

     

     

    </local:XBRLHierarchyTree>

     

     

     

     

     

     

     

     

    </radDock:RadPane>

     

     

     

     

     

     

     

     

    </radDock:RadPaneGroup>

     

     

     

     

     

     

     

     

    </radDock:RadSplitContainer>

     

     

     

     

     

     

     

     

    </radDock:RadDocking>

     

     

     

     

     

     

     

     

    </Grid>

     

     

     

     

     

     

     

     

    </Grid>

     

    </

     

     

    telerikNavigation:RadWindow>

    I have tried every suggestion that even remotely applies regarding drag and drop from this forum.  Please help.

     

     

     

     

     

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 19 Apr 2010 Link to this post

    Hi Alan Sauls,

    I noticed that you are setting the Drag Cue when the DragStatus is DropSourceQuery, can you try setting it when the status is DragQuery instead, like this:

    if ( e.Options.Status == DragStatus.DragQuery )
       {
           // The other code here

           _cue.Content = ele.LabelName;
          e.Options.DragCue = _cue;
          e.Options.ArrowCue = _arrow;
    }

    if ( e.Options.Status == DragStatus.DropSourceQuery )
       {
           e.QueryResult = true;
           e.Handled = true;
       }


    You can also take a look at the RadDragAndDropManager sequence of events and the members of the DragStatus enumeration.

    Please give it a try and let me know how it goes.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Alan Sauls
    Alan Sauls avatar
    12 posts
    Member since:
    Dec 2009

    Posted 19 Apr 2010 Link to this post

    Thanks for the reply.  I have tried every kind of DragStatus as well as removing the "if" altogether.  I have scoured over the sequence of events and verfied them multiple times.  I don't get why I can see the arrow but not the Content.
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 22 Apr 2010 Link to this post

    Hello Alan Sauls,

    We couldn't reproduce the issue on or side. Can you please elaborate on your scenario? Where do you subscribe to the DragQuery event? Where do you declare the _cue and _arrow variables?

    If you can send us a project reproducing the issue, that will help us further investigate it.

    Greetings,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Alan Sauls
    Alan Sauls avatar
    12 posts
    Member since:
    Dec 2009

    Posted 22 Apr 2010 Link to this post

    In my code behind for the treeview control I have:

     

    readonly

     

     

    ContentControl _arrow = RadDragAndDropManager.GenerateArrowCue();

     

     

     

    private readonly ContentControl _cue;

     



    I create the new ContentControl, _cue,  in the constructor.

    In the Page_Loaded event handler I hook up the DragQueryEvent like this:

    this

     

     

    .AddHandler(RadDragAndDropManager.DragQueryEvent, new EventHandler<DragDropQueryEventArgs>(OnDragQuery), true);

     



    By the way this alternative doesn't work:

     

     

    RadDragAndDropManager.AddDragQueryHandler(xbrlHierarchyTree, OnDragQuery);

    Unforturnately, the project is just too much code to provide you with a working sample.  The basic idea is that I have a treeview in a common project so that the control can be used by multiple projects.  That control is then included in the xaml for another app.  BTW, this app has a ribbon bar from which items are dragged and it all works fine.  It's just this tree that is the issue. 

    I hope this helps.

    Thanks.

     

  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 27 Apr 2010 Link to this post

    Hi Alan Sauls,

    Can you take a look at this post and try the suggested approach by  handling the DragInfo() event as well and setting the DragCue there.

    Also, the RadTreeView handles internally the OnDraqQuery() event. Therefore, you can only attach the handler as shown below:

    myTreeView.AddHandler(RadDragAndDropManager.DragQueryEvent,
                                                  new EventHandler<DragDropQueryEventArgs>(OnDragQuery),true);


    Please give it a try and let me know how it goes.

    Sincerely yours,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Alan Sauls
    Alan Sauls avatar
    12 posts
    Member since:
    Dec 2009

    Posted 27 Apr 2010 Link to this post

    This example solved my problem.  Thanks so much, Tina!
  9. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 27 Apr 2010 Link to this post

    Hi Alan Sauls,

    I am glad I was able to help.

    Please let us know if we can further assist you.

    Greetings,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
DevCraft banner