@@ -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 StretchItemContainerDirectionProperty = DependencyProperty . RegisterAttached ( "StretchItemContainerDirection " , typeof ( StretchDirection ) , typeof ( ListViewExtensions ) , new PropertyMetadata ( null , OnStretchItemContainerDirectionPropertyChanged ) ) ;
34
+ public static readonly DependencyProperty ItemContainerStretchDirectionProperty = DependencyProperty . RegisterAttached ( "ItemContainerStretchDirection " , typeof ( ItemContainerStretchDirection ) , typeof ( ListViewExtensions ) , new PropertyMetadata ( null , OnStretchItemContainerDirectionPropertyChanged ) ) ;
35
35
36
36
/// <summary>
37
37
/// Gets the alternate <see cref="Brush"/> associated with the specified <see cref="Windows.UI.Xaml.Controls.ListViewBase"/>
@@ -74,23 +74,23 @@ public static void SetAlternateItemTemplate(Windows.UI.Xaml.Controls.ListViewBas
74
74
}
75
75
76
76
/// <summary>
77
- /// Gets the stretch <see cref="StretchDirection "/> associated with the specified <see cref="Windows.UI.Xaml.Controls.ListViewBase"/>
77
+ /// Gets the stretch <see cref="ItemContainerStretchDirection "/> associated with the specified <see cref="Windows.UI.Xaml.Controls.ListViewBase"/>
78
78
/// </summary>
79
- /// <param name="obj">The <see cref="Windows.UI.Xaml.Controls.ListViewBase"/> to get the associated <see cref="StretchDirection "/> from</param>
80
- /// <returns>The <see cref="StretchDirection "/> associated with the <see cref="Windows.UI.Xaml.Controls.ListViewBase"/></returns>
81
- public static StretchDirection GetStretchItemContainerDirection ( Windows . UI . Xaml . Controls . ListViewBase obj )
79
+ /// <param name="obj">The <see cref="Windows.UI.Xaml.Controls.ListViewBase"/> to get the associated <see cref="ItemContainerStretchDirection "/> from</param>
80
+ /// <returns>The <see cref="ItemContainerStretchDirection "/> associated with the <see cref="Windows.UI.Xaml.Controls.ListViewBase"/></returns>
81
+ public static ItemContainerStretchDirection GetItemContainerStretchDirection ( Windows . UI . Xaml . Controls . ListViewBase obj )
82
82
{
83
- return ( StretchDirection ) obj . GetValue ( StretchItemContainerDirectionProperty ) ;
83
+ return ( ItemContainerStretchDirection ) obj . GetValue ( ItemContainerStretchDirectionProperty ) ;
84
84
}
85
85
86
86
/// <summary>
87
- /// Sets the stretch <see cref="StretchDirection "/> associated with the specified <see cref="Windows.UI.Xaml.Controls.ListViewBase"/>
87
+ /// Sets the stretch <see cref="ItemContainerStretchDirection "/> associated with the specified <see cref="Windows.UI.Xaml.Controls.ListViewBase"/>
88
88
/// </summary>
89
- /// <param name="obj">The <see cref="Windows.UI.Xaml.Controls.ListViewBase"/> to associate the <see cref="StretchDirection "/> with</param>
90
- /// <param name="value">The <see cref="StretchDirection "/> for binding to the <see cref="Windows.UI.Xaml.Controls.ListViewBase"/></param>
91
- public static void SetStretchItemContainerDirection ( Windows . UI . Xaml . Controls . ListViewBase obj , StretchDirection value )
89
+ /// <param name="obj">The <see cref="Windows.UI.Xaml.Controls.ListViewBase"/> to associate the <see cref="ItemContainerStretchDirection "/> with</param>
90
+ /// <param name="value">The <see cref="ItemContainerStretchDirection "/> for binding to the <see cref="Windows.UI.Xaml.Controls.ListViewBase"/></param>
91
+ public static void SetItemContainerStretchDirection ( Windows . UI . Xaml . Controls . ListViewBase obj , ItemContainerStretchDirection value )
92
92
{
93
- obj . SetValue ( StretchItemContainerDirectionProperty , value ) ;
93
+ obj . SetValue ( ItemContainerStretchDirectionProperty , value ) ;
94
94
}
95
95
96
96
private static void OnAlternateColorPropertyChanged ( DependencyObject sender , DependencyPropertyChangedEventArgs args )
@@ -166,7 +166,7 @@ private static void OnStretchItemContainerDirectionPropertyChanged(DependencyObj
166
166
listViewBase . ContainerContentChanging -= StretchItemContainerDirectionChanging ;
167
167
listViewBase . Unloaded -= OnListViewBaseUnloaded ;
168
168
169
- if ( StretchItemContainerDirectionProperty != null )
169
+ if ( ItemContainerStretchDirectionProperty != null )
170
170
{
171
171
listViewBase . ContainerContentChanging += StretchItemContainerDirectionChanging ;
172
172
listViewBase . Unloaded += OnListViewBaseUnloaded ;
@@ -176,14 +176,14 @@ private static void OnStretchItemContainerDirectionPropertyChanged(DependencyObj
176
176
private static void StretchItemContainerDirectionChanging ( Windows . UI . Xaml . Controls . ListViewBase sender , ContainerContentChangingEventArgs args )
177
177
{
178
178
var itemContainer = args . ItemContainer as SelectorItem ;
179
- var stretchDirection = GetStretchItemContainerDirection ( sender ) ;
179
+ var stretchDirection = GetItemContainerStretchDirection ( sender ) ;
180
180
181
- if ( stretchDirection == StretchDirection . Vertical || stretchDirection == StretchDirection . Both )
181
+ if ( stretchDirection == ItemContainerStretchDirection . Vertical || stretchDirection == ItemContainerStretchDirection . Both )
182
182
{
183
183
itemContainer . VerticalContentAlignment = VerticalAlignment . Stretch ;
184
184
}
185
185
186
- if ( stretchDirection == StretchDirection . Horizontal || stretchDirection == StretchDirection . Both )
186
+ if ( stretchDirection == ItemContainerStretchDirection . Horizontal || stretchDirection == ItemContainerStretchDirection . Both )
187
187
{
188
188
itemContainer . HorizontalContentAlignment = HorizontalAlignment . Stretch ;
189
189
}
0 commit comments