-
-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when using items deriving from ContentControl #42
Comments
Hi, are you going to address this issue? I have a dirty fix with a special property for root ItemsControl that defines a UID of the items container that should be taken for the drag&drop operations (in GetVisualAncestor method). Are you interested in a pull request with this fix? Thanks! |
@MrZoidberg hi, feel free to push a pr. i hope your fix is not too dirty... ;-) |
now we can have items deriving from ContentControl
fixed with version 0.1.3.8 |
The change break my case. <ItemsControl.Template>
<ControlTemplate>
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="{TemplateBinding Padding}">
<ItemsPresenter />
</ScrollViewer>
</ControlTemplate>
</ItemsControl.Template> in Changing to
terminate at ItemsPresenter fix my problem. |
Original author: [email protected] (December 15, 2011 10:10:19)
What steps will reproduce the problem?
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
It all happens in DragInfo's constructor.
This line fails to retrieve the correct container:
UIElement item = itemsControl.GetItemContainer((UIElement)e.OriginalSource);
Therefore itemParent is null:
ItemsControl itemParent = ItemsControl.ItemsControlFromItemContainer(item);
Original issue: http://code.google.com/p/gong-wpf-dragdrop/issues/detail?id=42
The text was updated successfully, but these errors were encountered: