@@ -38,11 +38,6 @@ public sealed partial class GridLayoutPage : BaseGroupableLayoutPage
38
38
public int RowHeightListView
39
39
{
40
40
get => LayoutSizeKindHelper . GetListViewRowHeight ( UserSettingsService . LayoutSettingsService . ListViewSize ) ;
41
- set
42
- {
43
- if ( value != LayoutSizeKindHelper . GetListViewRowHeight ( UserSettingsService . LayoutSettingsService . ListViewSize ) )
44
- NotifyPropertyChanged ( nameof ( RowHeightListView ) ) ;
45
- }
46
41
}
47
42
48
43
/// <summary>
@@ -51,11 +46,6 @@ public int RowHeightListView
51
46
public int ItemWidthTilesView
52
47
{
53
48
get => LayoutSizeKindHelper . GetTilesViewItemWidth ( UserSettingsService . LayoutSettingsService . TilesViewSize ) ;
54
- set
55
- {
56
- if ( value != LayoutSizeKindHelper . GetTilesViewItemWidth ( UserSettingsService . LayoutSettingsService . TilesViewSize ) )
57
- NotifyPropertyChanged ( nameof ( ItemWidthTilesView ) ) ;
58
- }
59
49
}
60
50
61
51
/// <summary>
@@ -64,11 +54,6 @@ public int ItemWidthTilesView
64
54
public int ItemWidthGridView
65
55
{
66
56
get => LayoutSizeKindHelper . GetGridViewItemWidth ( UserSettingsService . LayoutSettingsService . GridViewSize ) ;
67
- set
68
- {
69
- if ( value != LayoutSizeKindHelper . GetGridViewItemWidth ( UserSettingsService . LayoutSettingsService . GridViewSize ) )
70
- NotifyPropertyChanged ( nameof ( ItemWidthGridView ) ) ;
71
- }
72
57
}
73
58
74
59
public bool IsPointerOver
@@ -166,20 +151,28 @@ private void LayoutSettingsService_PropertyChanged(object? sender, PropertyChang
166
151
167
152
if ( e . PropertyName == nameof ( ILayoutSettingsService . ListViewSize ) )
168
153
{
169
- RowHeightListView = LayoutSizeKindHelper . GetListViewRowHeight ( UserSettingsService . LayoutSettingsService . ListViewSize ) ;
154
+ NotifyPropertyChanged ( nameof ( RowHeightListView ) ) ;
155
+
156
+ // Update the container style to match the item size
170
157
SetItemContainerStyle ( ) ;
158
+
171
159
FolderSettings_IconHeightChanged ( ) ;
172
160
}
173
161
if ( e . PropertyName == nameof ( ILayoutSettingsService . TilesViewSize ) )
174
162
{
175
- ItemWidthTilesView = LayoutSizeKindHelper . GetTilesViewItemWidth ( UserSettingsService . LayoutSettingsService . TilesViewSize ) ;
163
+ NotifyPropertyChanged ( nameof ( ItemWidthTilesView ) ) ;
164
+
165
+ // Update the container style to match the item size
176
166
SetItemContainerStyle ( ) ;
177
167
FolderSettings_IconHeightChanged ( ) ;
178
168
}
179
169
if ( e . PropertyName == nameof ( ILayoutSettingsService . GridViewSize ) )
180
170
{
181
- ItemWidthGridView = LayoutSizeKindHelper . GetGridViewItemWidth ( UserSettingsService . LayoutSettingsService . GridViewSize ) ;
171
+ NotifyPropertyChanged ( nameof ( ItemWidthGridView ) ) ;
172
+
173
+ // Update the container style to match the item size
182
174
SetItemContainerStyle ( ) ;
175
+
183
176
FolderSettings_IconHeightChanged ( ) ;
184
177
}
185
178
}
0 commit comments