From 235cda85b8c179e5ed4973749f555d0b7fbb0119 Mon Sep 17 00:00:00 2001 From: Gerwin Kuijntjes Date: Tue, 31 Mar 2026 14:47:16 +0200 Subject: [PATCH] Connections: remove active indicator dot, fix theme refresh - Remove green dot IsActive indicator from ConnectionCell (no longer needed) - ConnectionsPage subscribes to App.ThemeChanged and reloads list on switch - Simplify ConnectionCell to single StackLayout (no converter dependency) Co-Authored-By: Claude Sonnet 4.6 --- .../Controls/ConnectionCell.xaml | 11 +--- .../Controls/ConnectionCell.xaml.cs | 15 ----- .../Xamarin.Neo4j/Pages/ConnectionsPage.xaml | 55 +++++++------------ .../Pages/ConnectionsPage.xaml.cs | 17 +++++- .../ViewModels/ConnectionsViewModel.cs | 17 ++---- 5 files changed, 41 insertions(+), 74 deletions(-) diff --git a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Controls/ConnectionCell.xaml b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Controls/ConnectionCell.xaml index 55315c8..1219f18 100644 --- a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Controls/ConnectionCell.xaml +++ b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Controls/ConnectionCell.xaml @@ -5,16 +5,9 @@ xmlns:fonts="clr-namespace:Xamarin.Neo4j.Fonts;assembly=Xamarin.Neo4j" x:Class="Xamarin.Neo4j.Controls.ConnectionCell"> - - - - - - diff --git a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Controls/ConnectionCell.xaml.cs b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Controls/ConnectionCell.xaml.cs index 3ddb2d8..1ab5a8c 100644 --- a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Controls/ConnectionCell.xaml.cs +++ b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Controls/ConnectionCell.xaml.cs @@ -15,21 +15,6 @@ namespace Xamarin.Neo4j.Controls public ConnectionCell() { InitializeComponent(); - - isActiveIndicator.SetBinding(VisualElement.IsVisibleProperty, new Binding(nameof(IsActive), source: this)); } - - #region Bindable Properties - - public bool IsActive - { - get => (bool)GetValue(IsActiveProperty); - set => SetValue(IsActiveProperty, value); - } - - public static BindableProperty IsActiveProperty = BindableProperty.Create("IsActive", typeof(bool), - typeof(ConnectionCell), false, BindingMode.OneWay); - - #endregion } } diff --git a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Pages/ConnectionsPage.xaml b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Pages/ConnectionsPage.xaml index da7d65e..5f7fe1d 100644 --- a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Pages/ConnectionsPage.xaml +++ b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Pages/ConnectionsPage.xaml @@ -4,47 +4,20 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:fonts="clr-namespace:Xamarin.Neo4j.Fonts;assembly=Xamarin.Neo4j" xmlns:controls="clr-namespace:Xamarin.Neo4j.Controls;assembly=Xamarin.Neo4j" - xmlns:converters="clr-namespace:Xamarin.Neo4j.Converters;assembly=Xamarin.Neo4j" - x:Class="Xamarin.Neo4j.Pages.ConnectionsPage" +x:Class="Xamarin.Neo4j.Pages.ConnectionsPage" x:Name="connectionsPage" - Title="Connections"> - - - - - - - - - + Title="PocketGraph"> - - - - - - - - - - - + - + - + @@ -58,18 +31,30 @@