private static System.Windows.Point GetCoordinates(System.Windows.Controls.Button item) { if (item != null) { System.Windows.Point locationFromScreen = item.PointToScreen(new System.Windows.Point(0, 0)); return(locationFromScreen); } return(new System.Windows.Point(0, 0)); }
private static System.Windows.Point GetEditButtonCoordinates(System.Windows.Controls.Button button) { if (button != null) { System.Windows.Point locationFromScreen = button.PointToScreen(new System.Windows.Point(0, 0)); return(locationFromScreen); } return(new System.Windows.Point(0, 0)); }