diff --git a/build/TrimmingEnable.props b/build/TrimmingEnable.props
index 3f873e3345..fcd4b45e4b 100644
--- a/build/TrimmingEnable.props
+++ b/build/TrimmingEnable.props
@@ -1,10 +1,12 @@
+
false
true
false
true
+
true
@@ -13,4 +15,11 @@
$(WarningsAsErrors);IL3050;IL3051;IL3052;IL3053;IL3054;IL3055;IL3056
+
+
+
+ true
+ false
+
+
diff --git a/samples/ControlCatalog/MainView.xaml.cs b/samples/ControlCatalog/MainView.xaml.cs
index 801844a43c..31fa54a23a 100644
--- a/samples/ControlCatalog/MainView.xaml.cs
+++ b/samples/ControlCatalog/MainView.xaml.cs
@@ -59,7 +59,7 @@ namespace ControlCatalog
{
if (flowDirections.SelectedItem is FlowDirection flowDirection)
{
- TopLevel.GetTopLevel(this).FlowDirection = flowDirection;
+ TopLevel.GetTopLevel(this)!.FlowDirection = flowDirection;
}
};
diff --git a/samples/ControlCatalog/Pages/GesturePage.cs b/samples/ControlCatalog/Pages/GesturePage.cs
index c81ba4fb17..c276397a4d 100644
--- a/samples/ControlCatalog/Pages/GesturePage.cs
+++ b/samples/ControlCatalog/Pages/GesturePage.cs
@@ -41,12 +41,12 @@ namespace ControlCatalog.Pages
SetPullHandlers(this.Find("RightPullZone"), true);
SetPullHandlers(this.Find("LeftPullZone"), false);
- var image = this.Find("PinchImage");
+ var image = this.Get("PinchImage");
SetPinchHandlers(image);
- var reset = this.Find