My application is running on a touch-screen and it has a transparent main window, so only way to resize is using grip, but on the touch-screen it is quite hard to do. I wonder if there is a way to increase the size programmatically.
I have tried using custom commands but the window increases only by a small amount. Here is the code for my command:
private const int sizeIncreaseThreshold = 50;
private double aspectRatio = 2.45;
private void IncreaseSizeExecuted(object sender, ExecutedRoutedEventArgs e)
{
this.Width = this.Width + sizeIncreaseThreshold * aspectRatio;
this.Height = this.Height + sizeIncreaseThreshold;
e.Handled = true;
}