From e36b7f3689ff8c5e83e66530ae082fbd3b6e4bf6 Mon Sep 17 00:00:00 2001 From: Morten Nielsen Date: Thu, 1 Aug 2024 09:18:57 -0700 Subject: [PATCH] Ensure Attachment button visibility is updated on UI load (#590) --- .../Controls/FeatureForm/AttachmentsFormElementView.Windows.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Toolkit/Toolkit/UI/Controls/FeatureForm/AttachmentsFormElementView.Windows.cs b/src/Toolkit/Toolkit/UI/Controls/FeatureForm/AttachmentsFormElementView.Windows.cs index 6f8d67464..2ed8abf53 100644 --- a/src/Toolkit/Toolkit/UI/Controls/FeatureForm/AttachmentsFormElementView.Windows.cs +++ b/src/Toolkit/Toolkit/UI/Controls/FeatureForm/AttachmentsFormElementView.Windows.cs @@ -52,6 +52,7 @@ public override void OnApplyTemplate() } if(GetTemplateChild("ItemsScrollView") is ScrollViewer scrollViewer) scrollViewer.ScrollChanged += ScrollViewer_ScrollChanged; + UpdateVisibility(); } private void ScrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e) @@ -87,4 +88,4 @@ private void AddAttachmentButton_Click(object sender, RoutedEventArgs e) } } } -#endif \ No newline at end of file +#endif