@@ -14,8 +14,8 @@ namespace winrt::Microsoft::UI::Xaml::Controls
1414#include " FlowLayout.g.cpp"
1515
1616GlobalDependencyProperty FlowLayoutProperties::s_LineAlignmentProperty{ nullptr };
17- GlobalDependencyProperty FlowLayoutProperties::s_MinColumnSpacingProperty { nullptr };
18- GlobalDependencyProperty FlowLayoutProperties::s_MinRowSpacingProperty { nullptr };
17+ GlobalDependencyProperty FlowLayoutProperties::s_LineSpacingProperty { nullptr };
18+ GlobalDependencyProperty FlowLayoutProperties::s_MinItemSpacingProperty { nullptr };
1919GlobalDependencyProperty FlowLayoutProperties::s_OrientationProperty{ nullptr };
2020
2121FlowLayoutProperties::FlowLayoutProperties ()
@@ -36,27 +36,27 @@ void FlowLayoutProperties::EnsureProperties()
3636 ValueHelper<winrt::FlowLayoutLineAlignment>::BoxValueIfNecessary (winrt::FlowLayoutLineAlignment::Start),
3737 winrt::PropertyChangedCallback (&OnLineAlignmentPropertyChanged));
3838 }
39- if (!s_MinColumnSpacingProperty )
39+ if (!s_LineSpacingProperty )
4040 {
41- s_MinColumnSpacingProperty =
41+ s_LineSpacingProperty =
4242 InitializeDependencyProperty (
43- L" MinColumnSpacing " ,
43+ L" LineSpacing " ,
4444 winrt::name_of<double >(),
4545 winrt::name_of<winrt::FlowLayout>(),
4646 false /* isAttached */ ,
4747 ValueHelper<double >::BoxValueIfNecessary (0.0 ),
48- winrt::PropertyChangedCallback (&OnMinColumnSpacingPropertyChanged ));
48+ winrt::PropertyChangedCallback (&OnLineSpacingPropertyChanged ));
4949 }
50- if (!s_MinRowSpacingProperty )
50+ if (!s_MinItemSpacingProperty )
5151 {
52- s_MinRowSpacingProperty =
52+ s_MinItemSpacingProperty =
5353 InitializeDependencyProperty (
54- L" MinRowSpacing " ,
54+ L" MinItemSpacing " ,
5555 winrt::name_of<double >(),
5656 winrt::name_of<winrt::FlowLayout>(),
5757 false /* isAttached */ ,
5858 ValueHelper<double >::BoxValueIfNecessary (0.0 ),
59- winrt::PropertyChangedCallback (&OnMinRowSpacingPropertyChanged ));
59+ winrt::PropertyChangedCallback (&OnMinItemSpacingPropertyChanged ));
6060 }
6161 if (!s_OrientationProperty)
6262 {
@@ -74,8 +74,8 @@ void FlowLayoutProperties::EnsureProperties()
7474void FlowLayoutProperties::ClearProperties ()
7575{
7676 s_LineAlignmentProperty = nullptr ;
77- s_MinColumnSpacingProperty = nullptr ;
78- s_MinRowSpacingProperty = nullptr ;
77+ s_LineSpacingProperty = nullptr ;
78+ s_MinItemSpacingProperty = nullptr ;
7979 s_OrientationProperty = nullptr ;
8080}
8181
@@ -87,15 +87,15 @@ void FlowLayoutProperties::OnLineAlignmentPropertyChanged(
8787 winrt::get_self<FlowLayout>(owner)->OnPropertyChanged (args);
8888}
8989
90- void FlowLayoutProperties::OnMinColumnSpacingPropertyChanged (
90+ void FlowLayoutProperties::OnLineSpacingPropertyChanged (
9191 winrt::DependencyObject const & sender,
9292 winrt::DependencyPropertyChangedEventArgs const & args)
9393{
9494 auto owner = sender.as <winrt::FlowLayout>();
9595 winrt::get_self<FlowLayout>(owner)->OnPropertyChanged (args);
9696}
9797
98- void FlowLayoutProperties::OnMinRowSpacingPropertyChanged (
98+ void FlowLayoutProperties::OnMinItemSpacingPropertyChanged (
9999 winrt::DependencyObject const & sender,
100100 winrt::DependencyPropertyChangedEventArgs const & args)
101101{
@@ -124,30 +124,30 @@ winrt::FlowLayoutLineAlignment FlowLayoutProperties::LineAlignment()
124124 return ValueHelper<winrt::FlowLayoutLineAlignment>::CastOrUnbox (static_cast <FlowLayout*>(this )->GetValue (s_LineAlignmentProperty));
125125}
126126
127- void FlowLayoutProperties::MinColumnSpacing (double value)
127+ void FlowLayoutProperties::LineSpacing (double value)
128128{
129129 [[gsl::suppress (con)]]
130130 {
131- static_cast <FlowLayout*>(this )->SetValue (s_MinColumnSpacingProperty , ValueHelper<double >::BoxValueIfNecessary (value));
131+ static_cast <FlowLayout*>(this )->SetValue (s_LineSpacingProperty , ValueHelper<double >::BoxValueIfNecessary (value));
132132 }
133133}
134134
135- double FlowLayoutProperties::MinColumnSpacing ()
135+ double FlowLayoutProperties::LineSpacing ()
136136{
137- return ValueHelper<double >::CastOrUnbox (static_cast <FlowLayout*>(this )->GetValue (s_MinColumnSpacingProperty ));
137+ return ValueHelper<double >::CastOrUnbox (static_cast <FlowLayout*>(this )->GetValue (s_LineSpacingProperty ));
138138}
139139
140- void FlowLayoutProperties::MinRowSpacing (double value)
140+ void FlowLayoutProperties::MinItemSpacing (double value)
141141{
142142 [[gsl::suppress (con)]]
143143 {
144- static_cast <FlowLayout*>(this )->SetValue (s_MinRowSpacingProperty , ValueHelper<double >::BoxValueIfNecessary (value));
144+ static_cast <FlowLayout*>(this )->SetValue (s_MinItemSpacingProperty , ValueHelper<double >::BoxValueIfNecessary (value));
145145 }
146146}
147147
148- double FlowLayoutProperties::MinRowSpacing ()
148+ double FlowLayoutProperties::MinItemSpacing ()
149149{
150- return ValueHelper<double >::CastOrUnbox (static_cast <FlowLayout*>(this )->GetValue (s_MinRowSpacingProperty ));
150+ return ValueHelper<double >::CastOrUnbox (static_cast <FlowLayout*>(this )->GetValue (s_MinItemSpacingProperty ));
151151}
152152
153153void FlowLayoutProperties::Orientation (winrt::Orientation const & value)
0 commit comments