public static bool GetSelectAll(YourControl target) { return((bool)target.GetValue(IsDraggingAttachedProperty)); }
public static void SetSelectAll(YourControl target, bool value) { target.SetValue(IsDraggingAttachedProperty, value); }
private void MainWindow_ContentRendered(object sender, EventArgs e) { locationOfYourControl = YourControl.PointToScreen(new Point(0, 0)); }