I am getting an error 'Object reference not set to an instance of an object. while dropping a dynamically created object in a grid.. the error occurring in below code
private void Control_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
isDragging = false;
var draggable = sender as UserControl;
draggable.ReleaseMouseCapture();
}
need your great help.. thanks