From 2fce5062dbffdecb171f3e35cc3d63c846f0588f Mon Sep 17 00:00:00 2001 From: Holger Schmidt Date: Mon, 13 May 2024 18:43:25 +0200 Subject: [PATCH 01/11] cleaned up to simplify --- samples/Gallery/Pages/GesturesPage.fs | 3 --- samples/Gallery/Pages/Pointers/PointersPage.fs | 6 ------ samples/Gallery/Pages/PopupPage.fs | 2 -- samples/Gallery/Pages/TreeDataGrid/FilesPage.fs | 6 +----- 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/samples/Gallery/Pages/GesturesPage.fs b/samples/Gallery/Pages/GesturesPage.fs index f3c5ed48..03c3d78b 100644 --- a/samples/Gallery/Pages/GesturesPage.fs +++ b/samples/Gallery/Pages/GesturesPage.fs @@ -17,8 +17,6 @@ module GesturesPage = let init () = { CurrentScale = 0 }, Cmd.none - let topBallBorderRef = ViewRef() - let update msg model = match msg with | Reset -> model, Cmd.none @@ -61,7 +59,6 @@ module GesturesPage = .dock(Dock.Top) .margin(2.) .name("TopPullZone") - .reference(topBallBorderRef) .background(SolidColorBrush(Colors.Transparent)) .borderBrush(SolidColorBrush(Colors.Red)) .horizontalAlignment(HorizontalAlignment.Stretch) diff --git a/samples/Gallery/Pages/Pointers/PointersPage.fs b/samples/Gallery/Pages/Pointers/PointersPage.fs index 535475db..979b467c 100644 --- a/samples/Gallery/Pages/Pointers/PointersPage.fs +++ b/samples/Gallery/Pages/Pointers/PointersPage.fs @@ -25,18 +25,12 @@ module PointersPage = | Border_PointerCaptureLost of PointerCaptureLostEventArgs | Border_PointerUpdated of PointerEventArgs - let pointerCanvasRef = ViewRef() - let init () = { ThreadSleep = 0 Status = "" Status2 = "" }, Cmd.none - let border1 = ViewRef() - - let border2 = ViewRef() - let update msg model = match msg with | ThreadSleepSliderChanged v -> { model with ThreadSleep = int v }, Cmd.none diff --git a/samples/Gallery/Pages/PopupPage.fs b/samples/Gallery/Pages/PopupPage.fs index f91fecc4..167dc0dc 100644 --- a/samples/Gallery/Pages/PopupPage.fs +++ b/samples/Gallery/Pages/PopupPage.fs @@ -26,8 +26,6 @@ module PopupPage = | OnOpened -> model, Cmd.none | OnClosed -> model, Cmd.none - let buttonRef = ViewRef