- March 24, 2007
- 12,070
- 7,459
- Home Country
-
Germany
- Moderator
- #1
I found that I cannot use the "GradientStopCollection" from xaml code like:
I think there is a registration entry missing:
Doing this requires a parameterless constructor, isn't it?
Is it enough to add it? Where we get the parent reference in this case?
Morpheus
Code:
<RadialGradientBrush>
[B] <GradientStopCollection>[/B]
<GradientStop Color="#3FFFFFFF" Offset="0"/>
<GradientStop Color="#14FFFFFF" Offset="0.344"/>
<GradientStop Color="#07FFFFFF" Offset="0.442"/>
<GradientStop Color="#00FFFFFF" Offset="0.549"/>
[B]</GradientStopCollection>[/B]
</RadialGradientBrush>
I think there is a registration entry missing:
Code:
_objectClassRegistrations.Add("GradientStop", typeof(SkinEngine.Controls.Brushes.GradientStop));
[B] _objectClassRegistrations.Add("GradientStopCollection", typeof(SkinEngine.Controls.Brushes.GradientStopCollection));[/B]
Doing this requires a parameterless constructor, isn't it?
Is it enough to add it? Where we get the parent reference in this case?
Morpheus