private void GridSizeBorder_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { GridSizeContextMenu.PlacementTarget = GridSizeBorder; GridSizeContextMenu.IsOpen = true; }