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
130
DragSnapshotElement not visible
posted

 

Hi,
I try to add a UserControl to DragSnapshotElement but nothing is visible. Do i something wrong?



Handler:
      AddHandler source.DragStart, Sub(s As Object, e As DragDropStartEventArgs)
                                                 Dim dragger As New Dragger
 
                                                 e.DragSnapshotElement = dragger
       End Sub
UserControl:

<UserControl x:Class="WorkflowBrowser.Dragger"
    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"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Width="200" Height="200">
 
    <Grid x:Name="LayoutRoot" Background="Blue">
 
    </Grid>
</UserControl>

 

The Textblock example from documentation works fine. I'm using v11.2.

Many thanks,
Tobias

 

 

Parents Reply Children
No Data