@@ -15,7 +15,7 @@ namespace winrt::Microsoft::UI::Xaml::Media
15
15
16
16
GlobalDependencyProperty RadialGradientBrushProperties::s_EllipseCenterProperty{ nullptr };
17
17
GlobalDependencyProperty RadialGradientBrushProperties::s_EllipseRadiusProperty{ nullptr };
18
- GlobalDependencyProperty RadialGradientBrushProperties::s_GradientOriginOffsetProperty { nullptr };
18
+ GlobalDependencyProperty RadialGradientBrushProperties::s_GradientOriginProperty { nullptr };
19
19
GlobalDependencyProperty RadialGradientBrushProperties::s_InterpolationSpaceProperty{ nullptr };
20
20
GlobalDependencyProperty RadialGradientBrushProperties::s_MappingModeProperty{ nullptr };
21
21
GlobalDependencyProperty RadialGradientBrushProperties::s_SpreadMethodProperty{ nullptr };
@@ -49,16 +49,16 @@ void RadialGradientBrushProperties::EnsureProperties()
49
49
ValueHelper<winrt::Point >::BoxValueIfNecessary (winrt::Point (0.5 ,0.5 )),
50
50
winrt::PropertyChangedCallback (&OnEllipseRadiusPropertyChanged));
51
51
}
52
- if (!s_GradientOriginOffsetProperty )
52
+ if (!s_GradientOriginProperty )
53
53
{
54
- s_GradientOriginOffsetProperty =
54
+ s_GradientOriginProperty =
55
55
InitializeDependencyProperty (
56
- L" GradientOriginOffset " ,
56
+ L" GradientOrigin " ,
57
57
winrt::name_of<winrt::Point >(),
58
58
winrt::name_of<winrt::RadialGradientBrush>(),
59
59
false /* isAttached */ ,
60
- ValueHelper<winrt::Point >::BoxedDefaultValue ( ),
61
- winrt::PropertyChangedCallback (&OnGradientOriginOffsetPropertyChanged ));
60
+ ValueHelper<winrt::Point >::BoxValueIfNecessary ( winrt::Point ( 0.5 , 0.5 ) ),
61
+ winrt::PropertyChangedCallback (&OnGradientOriginPropertyChanged ));
62
62
}
63
63
if (!s_InterpolationSpaceProperty)
64
64
{
@@ -99,7 +99,7 @@ void RadialGradientBrushProperties::ClearProperties()
99
99
{
100
100
s_EllipseCenterProperty = nullptr ;
101
101
s_EllipseRadiusProperty = nullptr ;
102
- s_GradientOriginOffsetProperty = nullptr ;
102
+ s_GradientOriginProperty = nullptr ;
103
103
s_InterpolationSpaceProperty = nullptr ;
104
104
s_MappingModeProperty = nullptr ;
105
105
s_SpreadMethodProperty = nullptr ;
@@ -121,12 +121,12 @@ void RadialGradientBrushProperties::OnEllipseRadiusPropertyChanged(
121
121
winrt::get_self<RadialGradientBrush>(owner)->OnEllipseRadiusPropertyChanged (args);
122
122
}
123
123
124
- void RadialGradientBrushProperties::OnGradientOriginOffsetPropertyChanged (
124
+ void RadialGradientBrushProperties::OnGradientOriginPropertyChanged (
125
125
winrt::DependencyObject const & sender,
126
126
winrt::DependencyPropertyChangedEventArgs const & args)
127
127
{
128
128
auto owner = sender.as <winrt::RadialGradientBrush>();
129
- winrt::get_self<RadialGradientBrush>(owner)->OnGradientOriginOffsetPropertyChanged (args);
129
+ winrt::get_self<RadialGradientBrush>(owner)->OnGradientOriginPropertyChanged (args);
130
130
}
131
131
132
132
void RadialGradientBrushProperties::OnInterpolationSpacePropertyChanged (
@@ -173,14 +173,14 @@ winrt::Point RadialGradientBrushProperties::EllipseRadius()
173
173
return ValueHelper<winrt::Point >::CastOrUnbox (static_cast <RadialGradientBrush*>(this )->GetValue (s_EllipseRadiusProperty));
174
174
}
175
175
176
- void RadialGradientBrushProperties::GradientOriginOffset (winrt::Point const & value)
176
+ void RadialGradientBrushProperties::GradientOrigin (winrt::Point const & value)
177
177
{
178
- static_cast <RadialGradientBrush*>(this )->SetValue (s_GradientOriginOffsetProperty , ValueHelper<winrt::Point >::BoxValueIfNecessary (value));
178
+ static_cast <RadialGradientBrush*>(this )->SetValue (s_GradientOriginProperty , ValueHelper<winrt::Point >::BoxValueIfNecessary (value));
179
179
}
180
180
181
- winrt::Point RadialGradientBrushProperties::GradientOriginOffset ()
181
+ winrt::Point RadialGradientBrushProperties::GradientOrigin ()
182
182
{
183
- return ValueHelper<winrt::Point >::CastOrUnbox (static_cast <RadialGradientBrush*>(this )->GetValue (s_GradientOriginOffsetProperty ));
183
+ return ValueHelper<winrt::Point >::CastOrUnbox (static_cast <RadialGradientBrush*>(this )->GetValue (s_GradientOriginProperty ));
184
184
}
185
185
186
186
void RadialGradientBrushProperties::InterpolationSpace (winrt::CompositionColorSpace const & value)
0 commit comments