@@ -31,7 +31,7 @@ public static partial class ListViewExtensions
31
31
/// <summary>
32
32
/// Attached <see cref="DependencyProperty"/> for setting the container content stretch direction on the <see cref="Windows.UI.Xaml.Controls.ListViewBase"/>
33
33
/// </summary>
34
- public static readonly DependencyProperty ItemContainerStretchDirectionProperty = DependencyProperty . RegisterAttached ( "ItemContainerStretchDirection" , typeof ( ItemContainerStretchDirection ) , typeof ( ListViewExtensions ) , new PropertyMetadata ( null , OnStretchItemContainerDirectionPropertyChanged ) ) ;
34
+ public static readonly DependencyProperty ItemContainerStretchDirectionProperty = DependencyProperty . RegisterAttached ( "ItemContainerStretchDirection" , typeof ( ItemContainerStretchDirection ) , typeof ( ListViewExtensions ) , new PropertyMetadata ( null , OnItemContainerStretchDirectionPropertyChanged ) ) ;
35
35
36
36
/// <summary>
37
37
/// Gets the alternate <see cref="Brush"/> associated with the specified <see cref="Windows.UI.Xaml.Controls.ListViewBase"/>
@@ -154,7 +154,7 @@ private static void ItemTemplateContainerContentChanging(Windows.UI.Xaml.Control
154
154
}
155
155
}
156
156
157
- private static void OnStretchItemContainerDirectionPropertyChanged ( DependencyObject sender , DependencyPropertyChangedEventArgs args )
157
+ private static void OnItemContainerStretchDirectionPropertyChanged ( DependencyObject sender , DependencyPropertyChangedEventArgs args )
158
158
{
159
159
Windows . UI . Xaml . Controls . ListViewBase listViewBase = sender as Windows . UI . Xaml . Controls . ListViewBase ;
160
160
@@ -163,17 +163,17 @@ private static void OnStretchItemContainerDirectionPropertyChanged(DependencyObj
163
163
return ;
164
164
}
165
165
166
- listViewBase . ContainerContentChanging -= StretchItemContainerDirectionChanging ;
166
+ listViewBase . ContainerContentChanging -= ItemContainerStretchDirectionChanging ;
167
167
listViewBase . Unloaded -= OnListViewBaseUnloaded ;
168
168
169
169
if ( ItemContainerStretchDirectionProperty != null )
170
170
{
171
- listViewBase . ContainerContentChanging += StretchItemContainerDirectionChanging ;
171
+ listViewBase . ContainerContentChanging += ItemContainerStretchDirectionChanging ;
172
172
listViewBase . Unloaded += OnListViewBaseUnloaded ;
173
173
}
174
174
}
175
175
176
- private static void StretchItemContainerDirectionChanging ( Windows . UI . Xaml . Controls . ListViewBase sender , ContainerContentChangingEventArgs args )
176
+ private static void ItemContainerStretchDirectionChanging ( Windows . UI . Xaml . Controls . ListViewBase sender , ContainerContentChangingEventArgs args )
177
177
{
178
178
var itemContainer = args . ItemContainer as SelectorItem ;
179
179
var stretchDirection = GetItemContainerStretchDirection ( sender ) ;
@@ -194,7 +194,7 @@ private static void OnListViewBaseUnloaded(object sender, RoutedEventArgs e)
194
194
Windows . UI . Xaml . Controls . ListViewBase listViewBase = sender as Windows . UI . Xaml . Controls . ListViewBase ;
195
195
_itemsForList . Remove ( listViewBase . Items ) ;
196
196
197
- listViewBase . ContainerContentChanging -= StretchItemContainerDirectionChanging ;
197
+ listViewBase . ContainerContentChanging -= ItemContainerStretchDirectionChanging ;
198
198
listViewBase . ContainerContentChanging -= ItemTemplateContainerContentChanging ;
199
199
listViewBase . ContainerContentChanging -= ColorContainerContentChanging ;
200
200
listViewBase . Items . VectorChanged -= ColorItemsVectorChanged ;
0 commit comments