diff --git a/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Presentation/SampleChooserViewMode.Properties.cs b/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Presentation/SampleChooserViewMode.Properties.cs index 98689c22f676..ae8ff1259625 100644 --- a/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Presentation/SampleChooserViewMode.Properties.cs +++ b/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Presentation/SampleChooserViewMode.Properties.cs @@ -452,11 +452,17 @@ public bool UseRtl #if HAS_UNO public bool SimulateTouch { +#if DEBUG get => WinRTFeatureConfiguration.DebugOptions.SimulateTouch; +#else + get => false; +#endif set { +#if DEBUG WinRTFeatureConfiguration.DebugOptions.SimulateTouch = value; RaisePropertyChanged(); +#endif } }