Skip to content

Commit

Permalink
Ensure Attachment button visibility is updated on UI load (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotMorten authored Aug 1, 2024
1 parent 94dbc05 commit e36b7f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -87,4 +88,4 @@ private void AddAttachmentButton_Click(object sender, RoutedEventArgs e)
}
}
}
#endif
#endif

0 comments on commit e36b7f3

Please sign in to comment.