Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Drag & Drop functionality getting disabled...
posted

I have an Item Template that contains drag drop as well as add command functionality, Drag & Drop works fine until I use the add command. Once I used the add command Drag & Drop is being disabled in the whole application. I have reload the application to use drag drop.

Here is the Code:

 

<

 

 

DataTemplate x:Key="ConceptPagesDataTemplate">

 

 

 

 

<StackPanel VerticalAlignment="Center"> 

 

 

 

 

<Grid> 

<igg:DragDropManager.DragSource>

 

 

 

 

 

 

 

<igg:DragSource IsDraggable="True" DragChannels="ChannelRequiredPages">

 

 

 

 

 

 

<i:Interaction.Triggers>

 

 

 

 

<i:EventTrigger EventName="Drop">

 

 

 

 

<i:InvokeCommandAction Command="{Binding DataContext.ConceptDragCommand, ElementName=ucPublishScenario}" CommandParameter="{Binding .}"/>

 

 

 

 

 

</i:EventTrigger>

 

 

 

 

</i:Interaction.Triggers>

 

 

 

 

</igg:DragSource>

 

 

 

 

</igg:DragDropManager.DragSource>

 

 

 

 

<Path Data="F1M336.694,194L333.136,194C331.956,194,331,194.956,331,196.134L331,196.134L331,270.159C331,271.338,331.956,272.294,333.136,272.294L333.136,272.294L389.364,272.294C390.544,272.294,391.499,271.338,391.499,270.159L391.499,270.159L391.499,229.588L391.499,206.099C391.499,205.317,391.047,204.224,390.494,203.669L390.494,203.669L381.83,195.007C381.276,194.452,380.183,194,379.4,194L379.4,194z" Height="78" Canvas.Left="130.531" Stretch="Fill" UseLayoutRounding="False">

 

 

 

 

<Path.Fill>

 

 

 

 

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

 

 

 

 

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

 

 

 

 

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

 

 

 

 

</LinearGradientBrush >

 

 

 

 

</Path.Fill>

 

 

 

 

</Path>

 

 

 

 

<Path Data="F1M379.3999,194L336.6939,194L333.1359,194C331.9559,194,330.9999,194.956,330.9999,196.135L330.9999,270.158C330.9999,271.338,331.9559,272.294,333.1359,272.294L389.3639,272.294C390.5439,272.294,391.4999,271.338,391.4999,270.158L391.4999,229.588L391.4999,206.1C391.4999,205.317,391.0469,204.223,390.4939,203.669L381.8299,195.006C381.2759,194.453,380.1829,194,379.3999,194 M379.3999,194.711C379.9909,194.711,380.9089,195.091,381.3259,195.509L389.9899,204.173C390.4079,204.591,390.7879,205.509,390.7879,206.1L390.7879,229.588L390.7879,270.158C390.7879,270.943,390.1499,271.582,389.3639,271.582L333.1359,271.582C332.3499,271.582,331.7119,270.943,331.7119,270.158L331.7119,196.135C331.7119,195.35,332.3499,194.711,333.1359,194.711L336.6939,194.711L379.3999,194.711" Stroke="#FF654320" Fill="#FF654320" Height="78.294" Canvas.Left="130.531" Stretch="Fill" Width="60.5"/>

 

 

 

 

 

<Path Data="F1M378.688,194.7114L378.688,204.8114C378.688,205.9114,379.588,206.8114,380.688,206.8114L390.788,206.8114" Fill="White" Height="12.101" Canvas.Left="178.219" Stretch="Fill" Canvas.Top="101.711" Width="12.1" HorizontalAlignment="Right" UseLayoutRounding="False" VerticalAlignment="Top" Margin="0,0.714,0.712,0"/>

 

 

 

 

<Path Data="F1M390.7881,207.5239L380.1121,207.5239C378.9341,207.5239,377.9761,206.5659,377.9761,205.3879L377.9761,194.7109L379.4001,194.7109L379.4001,205.3879C379.4001,205.7809,379.7191,206.0999,380.1121,206.0999L390.7881,206.0999z" Fill="#FFE6E6E6" Height="12.812" Canvas.Left="177.507" Stretch="Fill" Canvas.Top="101.711" Width="12.812" HorizontalAlignment="Right" Margin="0,0.714,0.712,0" UseLayoutRounding="False" VerticalAlignment="Top"/>

 

 

 

 

 

<Path Data="F1M379.3999,194.7114L379.3999,204.0994C379.3999,205.1994,380.2999,206.0994,381.3999,206.0994L390.7879,206.0994" Fill="White" Height="11.387" Canvas.Left="178.931" Stretch="Fill" Canvas.Top="101.711" Width="11.388" HorizontalAlignment="Right" Margin="0,0.714,0.712,0" UseLayoutRounding="False" VerticalAlignment="Top"/>

 

 

 

 

 

<Path Data="F1M391.144,206.4551L380.824,206.4551C379.842,206.4551,379.044,205.6571,379.044,204.6761L379.044,194.3551L379.756,194.3551L379.756,204.6761C379.756,205.2651,380.234,205.7441,380.824,205.7441L391.144,205.7441z" Fill="#FF654320" Height="12.1" Canvas.Left="178.575" Stretch="Fill" Stroke="#FF654320" Canvas.Top="101.355" Width="12.1" RenderTransformOrigin="2.583,-2.25" HorizontalAlignment="Right" UseLayoutRounding="False" VerticalAlignment="Top" Margin="0,0.333,0.333,0"/>

 

 

 

 

 

<TextBlock Grid.Row="0" TextWrapping="Wrap" Text="{Binding Name}" VerticalAlignment="Center" FontFamily="Tahoma" FontSize="9.333" HorizontalAlignment="Center" Foreground="#FF69696A" TextAlignment="Center" Tag="{Binding PageID}" Width="50"/>

 

 

 

 

 

<Grid Width="10" Height="10" HorizontalAlignment="Right" Cursor="Hand" ToolTipService.ToolTip="Add" VerticalAlignment="Bottom" Margin="0,0,4,4">

 

 

 

 

 

<i:Interaction.Triggers>

 

 

 

 

 

<i:EventTrigger EventName="MouseLeftButtonDown">

 

 

 

 

 

<i:InvokeCommandAction Command="{Binding DataContext.ConceptClickCommand, ElementName=ucPublishScenario}"

 

 

 

 

CommandParameter="{Binding.}"/>

 

 

 

 

 

</i:EventTrigger>

 

 

 

 

 

</i:Interaction.Triggers>

 

 

 

 

 

<Path Data="F1M389,267.2939C389,268.3979,388.104,269.2939,387,269.2939L381,269.2939C379.896,269.2939,379,268.3979,379,267.2939L379,261.2939C379,260.1899,379.896,259.2939,381,259.2939L387,259.2939C388.104,259.2939,389,260.1899,389,261.2939z" Fill="#FF654320" Height="10" Canvas.Left="178.531" Stretch="Fill" Canvas.Top="166.294" Width="10"/>

 

 

 

 

 

<Path Data="F1M383.3096,267.0415L383.3096,265.0005L381.2466,265.0005L381.2466,263.5875L383.3096,263.5875L383.3096,261.5465L384.6846,261.5465L384.6846,263.5875L386.7526,263.5875L386.7526,265.0005L384.6846,265.0005L384.6846,267.0415z" Fill="White" Height="5.495" Canvas.Left="180.778" Stretch="Fill" Canvas.Top="168.547" Width="5.506"/>

 

 

 

 

</Grid>

 

 

 

 

</Grid>

 

 

 

 

</StackPanel>

 

 

 

 

</DataTemplate>

 

 

 

Parents
No Data
Reply
  • 21382
    posted

    Without being able to reproduce this issue, it's going to be very difficult to determine what is going on.  

    Do you have a running sample that would show this?

Children
No Data