diff --git a/src/Tools/StressTest/StressTest/UserControl.xaml b/src/Tools/StressTest/StressTest/UserControl.xaml
index ae89b142e4..5f91320f7e 100644
--- a/src/Tools/StressTest/StressTest/UserControl.xaml
+++ b/src/Tools/StressTest/StressTest/UserControl.xaml
@@ -4,22 +4,34 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Tools/StressTest/StressTest/UserControl.xaml.cs b/src/Tools/StressTest/StressTest/UserControl.xaml.cs
index 327adb942c..3aeb627ab7 100644
--- a/src/Tools/StressTest/StressTest/UserControl.xaml.cs
+++ b/src/Tools/StressTest/StressTest/UserControl.xaml.cs
@@ -136,5 +136,20 @@ namespace StressTest
}
vc.WorkbenchWindow.CloseWindow(true);
}
+
+ void SwitchLayoutButton_Click(object sender, RoutedEventArgs e)
+ {
+ Run("Switch Layout", SwitchLayout());
+ }
+
+ IEnumerable SwitchLayout()
+ {
+ for (int i = 0; i < Repetitions; i++) {
+ LayoutConfiguration.CurrentLayoutName = "Debug";
+ yield return DispatcherPriority.SystemIdle;
+ LayoutConfiguration.CurrentLayoutName = "Default";
+ yield return DispatcherPriority.SystemIdle;
+ }
+ }
}
}
\ No newline at end of file