私のアプリケーションはタッチスクリーンで実行されており、透明なメインウィンドウがあるため、サイズを変更する唯一の方法はGripを使用することですが、タッチスクリーンでは非常に困難です。プログラムでサイズを大きくする方法があるのだろうか。
カスタム コマンドを使用してみましたが、ウィンドウが少ししか増えません。これが私のコマンドのコードです:
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;
}