~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to src/dependencyproperty.g.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Automatically generated, do not edit this file directly
 
3
 */
 
4
 
 
5
 
 
6
#ifdef HAVE_CONFIG_H
 
7
#include <config.h>
 
8
#endif
 
9
 
 
10
#include "animation.h"
 
11
#include "brush.h"
 
12
#include "canvas.h"
 
13
#include "clock.h"
 
14
#include "collection.h"
 
15
#include "color.h"
 
16
#include "dependencyobject.h"
 
17
#include "dependencyproperty.h"
 
18
#include "downloader.h"
 
19
#include "frameworkelement.h"
 
20
#include "geometry.h"
 
21
#include "media.h"
 
22
#include "mediaelement.h"
 
23
#include "namescope.h"
 
24
#include "panel.h"
 
25
#include "shape.h"
 
26
#include "stylus.h"
 
27
#include "text.h"
 
28
#include "transform.h"
 
29
#include "trigger.h"
 
30
#include "uielement.h"
 
31
#if SL_2_0
 
32
#include "animation2.h"
 
33
#include "bitmapimage.h"
 
34
#include "border.h"
 
35
#include "contentcontrol.h"
 
36
#include "control.h"
 
37
#include "deployment.h"
 
38
#include "frameworkelement.h"
 
39
#include "geometry.h"
 
40
#include "grid.h"
 
41
#include "multiscaleimage.h"
 
42
#include "multiscalesubimage.h"
 
43
#include "stackpanel.h"
 
44
#include "style.h"
 
45
#include "template.h"
 
46
#include "text.h"
 
47
#include "textbox.h"
 
48
#include "usercontrol.h"
 
49
#endif
 
50
 
 
51
bool dependency_properties_initialized = false;
 
52
void
 
53
dependency_property_g_init (void)
 
54
{
 
55
        if (dependency_properties_initialized)
 
56
                return;
 
57
        dependency_properties_initialized = true;
 
58
#if SL_2_0
 
59
        Application::ResourcesProperty = DependencyProperty::Register (Type::APPLICATION, "Resources", Type::RESOURCE_DICTIONARY);
 
60
#endif
 
61
        ArcSegment::IsLargeArcProperty = DependencyProperty::Register (Type::ARCSEGMENT, "IsLargeArc", new Value (false));
 
62
        ArcSegment::PointProperty = DependencyProperty::Register (Type::ARCSEGMENT, "Point", Type::POINT);
 
63
        ArcSegment::RotationAngleProperty = DependencyProperty::Register (Type::ARCSEGMENT, "RotationAngle", new Value (0.0));
 
64
        ArcSegment::SizeProperty = DependencyProperty::Register (Type::ARCSEGMENT, "Size", Type::POINT);
 
65
        ArcSegment::SweepDirectionProperty = DependencyProperty::Register (Type::ARCSEGMENT, "SweepDirection", new Value (SweepDirectionCounterclockwise));
 
66
#if SL_2_0
 
67
        AssemblyPart::SourceProperty = DependencyProperty::Register (Type::ASSEMBLYPART, "Source", Type::STRING);
 
68
#endif
 
69
        BeginStoryboard::StoryboardProperty = DependencyProperty::Register (Type::BEGINSTORYBOARD, "Storyboard", Type::STORYBOARD);
 
70
        BezierSegment::Point1Property = DependencyProperty::Register (Type::BEZIERSEGMENT, "Point1", Type::POINT);
 
71
        BezierSegment::Point2Property = DependencyProperty::Register (Type::BEZIERSEGMENT, "Point2", Type::POINT);
 
72
        BezierSegment::Point3Property = DependencyProperty::Register (Type::BEZIERSEGMENT, "Point3", Type::POINT);
 
73
#if SL_2_0
 
74
        BitmapImage::UriSourceProperty = DependencyProperty::Register (Type::BITMAPIMAGE, "UriSource", Type::STRING);
 
75
        Border::BackgroundProperty = DependencyProperty::Register (Type::BORDER, "Background", Type::BRUSH);
 
76
        Border::BorderBrushProperty = DependencyProperty::Register (Type::BORDER, "BorderBrush", Type::BRUSH);
 
77
        Border::BorderThicknessProperty = DependencyProperty::Register (Type::BORDER, "BorderThickness", new Value (Thickness(0)));
 
78
        Border::ChildProperty = DependencyProperty::Register (Type::BORDER, "Child", Type::UIELEMENT);
 
79
        Border::CornerRadiusProperty = DependencyProperty::Register (Type::BORDER, "CornerRadius", Type::CORNERRADIUS);
 
80
        Border::PaddingProperty = DependencyProperty::Register (Type::BORDER, "Padding", new Value (Thickness(0)));
 
81
#endif
 
82
        Brush::ChangedProperty = DependencyProperty::Register (Type::BRUSH, "Changed", Type::BOOL);
 
83
        Brush::OpacityProperty = DependencyProperty::Register (Type::BRUSH, "Opacity", new Value (1.0));
 
84
        Brush::RelativeTransformProperty = DependencyProperty::Register (Type::BRUSH, "RelativeTransform", Type::TRANSFORM);
 
85
        Brush::TransformProperty = DependencyProperty::Register (Type::BRUSH, "Transform", Type::TRANSFORM);
 
86
        Canvas::LeftProperty = DependencyProperty::RegisterFull (Type::CANVAS, "Left", new Value (0.0), Type::DOUBLE, true, false);
 
87
        Canvas::TopProperty = DependencyProperty::RegisterFull (Type::CANVAS, "Top", new Value (0.0), Type::DOUBLE, true, false);
 
88
        Canvas::ZIndexProperty = DependencyProperty::RegisterFull (Type::CANVAS, "ZIndex", new Value (0), Type::INT32, true, false);
 
89
        Collection::CountProperty = DependencyProperty::Register (Type::COLLECTION, "Count", new Value (0));
 
90
        ColorAnimation::ByProperty = DependencyProperty::RegisterNullable (Type::COLORANIMATION, "By", Type::COLOR);
 
91
        ColorAnimation::FromProperty = DependencyProperty::RegisterNullable (Type::COLORANIMATION, "From", Type::COLOR);
 
92
        ColorAnimation::ToProperty = DependencyProperty::RegisterNullable (Type::COLORANIMATION, "To", Type::COLOR);
 
93
        ColorAnimationUsingKeyFrames::KeyFramesProperty = DependencyProperty::Register (Type::COLORANIMATIONUSINGKEYFRAMES, "KeyFrames", Type::COLORKEYFRAME_COLLECTION);
 
94
        ColorKeyFrame::KeyTimeProperty = DependencyProperty::RegisterNullable (Type::COLORKEYFRAME, "KeyTime", Type::KEYTIME);
 
95
        ColorKeyFrame::ValueProperty = DependencyProperty::RegisterNullable (Type::COLORKEYFRAME, "Value", Type::COLOR);
 
96
#if SL_2_0
 
97
        ColumnDefinition::MaxWidthProperty = DependencyProperty::Register (Type::COLUMNDEFINITION, "MaxWidth", new Value (INFINITY));
 
98
        ColumnDefinition::MinWidthProperty = DependencyProperty::Register (Type::COLUMNDEFINITION, "MinWidth", new Value (0.0));
 
99
        ColumnDefinition::WidthProperty = DependencyProperty::Register (Type::COLUMNDEFINITION, "Width", Type::GRIDLENGTH);
 
100
        ContentControl::ContentProperty = DependencyProperty::Register (Type::CONTENTCONTROL, "Content", Type::DEPENDENCY_OBJECT);
 
101
        ContentControl::ContentTemplateProperty = DependencyProperty::Register (Type::CONTENTCONTROL, "ContentTemplate", Type::DEPENDENCY_OBJECT);
 
102
        ContentControl::IsEnabledProperty = DependencyProperty::Register (Type::CONTENTCONTROL, "IsEnabled", new Value (true));
 
103
        ContentControl::TextAlignmentProperty = DependencyProperty::Register (Type::CONTENTCONTROL, "TextAlignment", new Value (TextAlignmentLeft));
 
104
        ContentControl::TextDecorationsProperty = DependencyProperty::Register (Type::CONTENTCONTROL, "TextDecorations", new Value (TextDecorationsNone));
 
105
        ContentControl::TextWrappingProperty = DependencyProperty::Register (Type::CONTENTCONTROL, "TextWrapping", new Value (TextWrappingNoWrap));
 
106
        Control::BackgroundProperty = DependencyProperty::Register (Type::CONTROL, "Background", Type::BRUSH);
 
107
        Control::BorderBrushProperty = DependencyProperty::Register (Type::CONTROL, "BorderBrush", Type::BRUSH);
 
108
        Control::BorderThicknessProperty = DependencyProperty::Register (Type::CONTROL, "BorderThickness", new Value (Thickness(0.0)));
 
109
        Control::FontFamilyProperty = DependencyProperty::Register (Type::CONTROL, "FontFamily", new Value (CONTROL_FONT_FAMILY));
 
110
        Control::FontSizeProperty = DependencyProperty::Register (Type::CONTROL, "FontSize", new Value (CONTROL_FONT_SIZE));
 
111
        Control::FontStretchProperty = DependencyProperty::Register (Type::CONTROL, "FontStretch", new Value (CONTROL_FONT_STRETCH));
 
112
        Control::FontStyleProperty = DependencyProperty::Register (Type::CONTROL, "FontStyle", new Value (CONTROL_FONT_STYLE));
 
113
        Control::FontWeightProperty = DependencyProperty::Register (Type::CONTROL, "FontWeight", new Value (CONTROL_FONT_WEIGHT));
 
114
        Control::ForegroundProperty = DependencyProperty::Register (Type::CONTROL, "Foreground", Type::BRUSH);
 
115
        Control::HorizontalContentAlignmentProperty = DependencyProperty::Register (Type::CONTROL, "HorizontalContentAlignment", new Value (HorizontalAlignmentCenter));
 
116
        Control::IsTabStopProperty = DependencyProperty::Register (Type::CONTROL, "IsTabStop", new Value (true));
 
117
        Control::PaddingProperty = DependencyProperty::Register (Type::CONTROL, "Padding", new Value (Thickness(0.0)));
 
118
        Control::TabIndexProperty = DependencyProperty::Register (Type::CONTROL, "TabIndex", new Value (INT_MAX));
 
119
        Control::TabNavigationProperty = DependencyProperty::Register (Type::CONTROL, "TabNavigation", new Value (KeyboardNavigationModeLocal));
 
120
        Control::TemplateProperty = DependencyProperty::Register (Type::CONTROL, "Template", Type::CONTROLTEMPLATE);
 
121
        Control::VerticalContentAlignmentProperty = DependencyProperty::Register (Type::CONTROL, "VerticalContentAlignment", new Value (VerticalAlignmentCenter));
 
122
        ControlTemplate::TargetTypeProperty = DependencyProperty::Register (Type::CONTROLTEMPLATE, "TargetType", Type::MANAGED);
 
123
#endif
 
124
        DependencyObject::NameProperty = DependencyProperty::Register (Type::DEPENDENCY_OBJECT, "Name", Type::STRING);
 
125
#if SL_2_0
 
126
        Deployment::EntryPointAssemblyProperty = DependencyProperty::Register (Type::DEPLOYMENT, "EntryPointAssembly", Type::STRING);
 
127
        Deployment::EntryPointTypeProperty = DependencyProperty::Register (Type::DEPLOYMENT, "EntryPointType", Type::STRING);
 
128
        Deployment::ExternalCallersFromCrossDomainProperty = DependencyProperty::Register (Type::DEPLOYMENT, "ExternalCallersFromCrossDomain", new Value (CrossDomainAccessNoAccess));
 
129
        Deployment::PartsProperty = DependencyProperty::Register (Type::DEPLOYMENT, "Parts", Type::ASSEMBLYPART_COLLECTION);
 
130
        Deployment::RuntimeVersionProperty = DependencyProperty::Register (Type::DEPLOYMENT, "RuntimeVersion", Type::STRING);
 
131
#endif
 
132
        DoubleAnimation::ByProperty = DependencyProperty::RegisterNullable (Type::DOUBLEANIMATION, "By", Type::DOUBLE);
 
133
        DoubleAnimation::FromProperty = DependencyProperty::RegisterNullable (Type::DOUBLEANIMATION, "From", Type::DOUBLE);
 
134
        DoubleAnimation::ToProperty = DependencyProperty::RegisterNullable (Type::DOUBLEANIMATION, "To", Type::DOUBLE);
 
135
        DoubleAnimationUsingKeyFrames::KeyFramesProperty = DependencyProperty::Register (Type::DOUBLEANIMATIONUSINGKEYFRAMES, "KeyFrames", Type::DOUBLEKEYFRAME_COLLECTION);
 
136
        DoubleKeyFrame::KeyTimeProperty = DependencyProperty::RegisterNullable (Type::DOUBLEKEYFRAME, "KeyTime", Type::KEYTIME);
 
137
        DoubleKeyFrame::ValueProperty = DependencyProperty::RegisterNullable (Type::DOUBLEKEYFRAME, "Value", Type::DOUBLE);
 
138
        Downloader::DownloadProgressProperty = DependencyProperty::Register (Type::DOWNLOADER, "DownloadProgress", new Value (0.0));
 
139
        Downloader::ResponseTextProperty = DependencyProperty::Register (Type::DOWNLOADER, "ResponseText", Type::STRING);
 
140
        Downloader::StatusProperty = DependencyProperty::Register (Type::DOWNLOADER, "Status", new Value (0));
 
141
        Downloader::StatusTextProperty = DependencyProperty::Register (Type::DOWNLOADER, "StatusText", new Value (""));
 
142
        Downloader::UriProperty = DependencyProperty::Register (Type::DOWNLOADER, "Uri", Type::STRING);
 
143
        DrawingAttributes::ColorProperty = DependencyProperty::Register (Type::DRAWINGATTRIBUTES, "Color", new Value (Color (0xFF000000)));
 
144
        DrawingAttributes::HeightProperty = DependencyProperty::Register (Type::DRAWINGATTRIBUTES, "Height", new Value (3.0));
 
145
        DrawingAttributes::OutlineColorProperty = DependencyProperty::Register (Type::DRAWINGATTRIBUTES, "OutlineColor", new Value (Color (0x00000000)));
 
146
        DrawingAttributes::WidthProperty = DependencyProperty::Register (Type::DRAWINGATTRIBUTES, "Width", new Value (3.0));
 
147
        EllipseGeometry::CenterProperty = DependencyProperty::Register (Type::ELLIPSEGEOMETRY, "Center", Type::POINT);
 
148
        EllipseGeometry::RadiusXProperty = DependencyProperty::Register (Type::ELLIPSEGEOMETRY, "RadiusX", new Value (0.0));
 
149
        EllipseGeometry::RadiusYProperty = DependencyProperty::Register (Type::ELLIPSEGEOMETRY, "RadiusY", new Value (0.0));
 
150
        EventTrigger::ActionsProperty = DependencyProperty::Register (Type::EVENTTRIGGER, "Actions", Type::TRIGGERACTION_COLLECTION);
 
151
        EventTrigger::RoutedEventProperty = DependencyProperty::Register (Type::EVENTTRIGGER, "RoutedEvent", Type::STRING);
 
152
#if SL_2_0
 
153
        FrameworkElement::ActualHeightProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "ActualHeight", new Value (0.0));
 
154
        FrameworkElement::ActualWidthProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "ActualWidth", new Value (0.0));
 
155
        FrameworkElement::DataContextProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "DataContext", Type::MANAGED);
 
156
#endif
 
157
        FrameworkElement::HeightProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "Height", new Value (0.0));
 
158
#if SL_2_0
 
159
        FrameworkElement::HorizontalAlignmentProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "HorizontalAlignment", new Value (HorizontalAlignmentStretch));
 
160
        FrameworkElement::LanguageProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "Language", new Value ("en-US"));
 
161
        FrameworkElement::MarginProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "Margin", new Value (Thickness (0)));
 
162
        FrameworkElement::MaxHeightProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "MaxHeight", new Value (INFINITY));
 
163
        FrameworkElement::MaxWidthProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "MaxWidth", new Value (INFINITY));
 
164
        FrameworkElement::MinHeightProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "MinHeight", new Value (0.0));
 
165
        FrameworkElement::MinWidthProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "MinWidth", new Value (0.0));
 
166
        FrameworkElement::StyleProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "Style", Type::STYLE);
 
167
        FrameworkElement::VerticalAlignmentProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "VerticalAlignment", new Value (VerticalAlignmentStretch));
 
168
#endif
 
169
        FrameworkElement::WidthProperty = DependencyProperty::Register (Type::FRAMEWORKELEMENT, "Width", new Value (0.0));
 
170
        Geometry::FillRuleProperty = DependencyProperty::Register (Type::GEOMETRY, "FillRule", new Value (FillRuleEvenOdd));
 
171
        Geometry::TransformProperty = DependencyProperty::Register (Type::GEOMETRY, "Transform", Type::TRANSFORM);
 
172
        GeometryGroup::ChildrenProperty = DependencyProperty::Register (Type::GEOMETRYGROUP, "Children", Type::GEOMETRY_COLLECTION);
 
173
        Glyphs::FillProperty = DependencyProperty::Register (Type::GLYPHS, "Fill", Type::BRUSH);
 
174
        Glyphs::FontRenderingEmSizeProperty = DependencyProperty::Register (Type::GLYPHS, "FontRenderingEmSize", new Value (0.0));
 
175
        Glyphs::FontUriProperty = DependencyProperty::Register (Type::GLYPHS, "FontUri", Type::STRING);
 
176
        Glyphs::IndicesProperty = DependencyProperty::Register (Type::GLYPHS, "Indices", Type::STRING);
 
177
        Glyphs::OriginXProperty = DependencyProperty::Register (Type::GLYPHS, "OriginX", new Value (0.0));
 
178
        Glyphs::OriginYProperty = DependencyProperty::Register (Type::GLYPHS, "OriginY", new Value (0.0));
 
179
        Glyphs::StyleSimulationsProperty = DependencyProperty::Register (Type::GLYPHS, "StyleSimulations", new Value (StyleSimulationsNone));
 
180
        Glyphs::UnicodeStringProperty = DependencyProperty::Register (Type::GLYPHS, "UnicodeString", Type::STRING);
 
181
        GradientBrush::ColorInterpolationModeProperty = DependencyProperty::Register (Type::GRADIENTBRUSH, "ColorInterpolationMode", new Value (ColorInterpolationModeSRgbLinearInterpolation));
 
182
        GradientBrush::GradientStopsProperty = DependencyProperty::Register (Type::GRADIENTBRUSH, "GradientStops", Type::GRADIENTSTOP_COLLECTION);
 
183
        GradientBrush::MappingModeProperty = DependencyProperty::Register (Type::GRADIENTBRUSH, "MappingMode", new Value (BrushMappingModeRelativeToBoundingBox));
 
184
        GradientBrush::SpreadMethodProperty = DependencyProperty::Register (Type::GRADIENTBRUSH, "SpreadMethod", new Value (GradientSpreadMethodPad));
 
185
        GradientStop::ColorProperty = DependencyProperty::Register (Type::GRADIENTSTOP, "Color", new Value (Color (0x00000000)));
 
186
        GradientStop::OffsetProperty = DependencyProperty::Register (Type::GRADIENTSTOP, "Offset", new Value (0.0));
 
187
#if SL_2_0
 
188
        Grid::ColumnDefinitionsProperty = DependencyProperty::Register (Type::GRID, "ColumnDefinitions", Type::COLUMNDEFINITION_COLLECTION);
 
189
        Grid::ColumnProperty = DependencyProperty::RegisterFull (Type::GRID, "Column", new Value (0), Type::INT32, true, false);
 
190
        Grid::ColumnSpanProperty = DependencyProperty::RegisterFull (Type::GRID, "ColumnSpan", new Value (1), Type::INT32, true, false);
 
191
        Grid::RowDefinitionsProperty = DependencyProperty::Register (Type::GRID, "RowDefinitions", Type::ROWDEFINITION_COLLECTION);
 
192
        Grid::RowProperty = DependencyProperty::RegisterFull (Type::GRID, "Row", new Value (0), Type::INT32, true, false);
 
193
        Grid::RowSpanProperty = DependencyProperty::RegisterFull (Type::GRID, "RowSpan", new Value (1), Type::INT32, true, false);
 
194
        Grid::ShowGridLinesProperty = DependencyProperty::Register (Type::GRID, "ShowGridLines", new Value (false));
 
195
#endif
 
196
        ImageBrush::DownloadProgressProperty = DependencyProperty::Register (Type::IMAGEBRUSH, "DownloadProgress", new Value (0.0));
 
197
        ImageBrush::ImageSourceProperty = DependencyProperty::Register (Type::IMAGEBRUSH, "ImageSource", new Value (""));
 
198
        InkPresenter::StrokesProperty = DependencyProperty::Register (Type::INKPRESENTER, "Strokes", Type::STROKE_COLLECTION);
 
199
        Inline::FontFamilyProperty = DependencyProperty::Register (Type::INLINE, "FontFamily", new Value (TEXTBLOCK_FONT_FAMILY));
 
200
        Inline::FontSizeProperty = DependencyProperty::Register (Type::INLINE, "FontSize", new Value (TEXTBLOCK_FONT_SIZE));
 
201
        Inline::FontStretchProperty = DependencyProperty::Register (Type::INLINE, "FontStretch", new Value (TEXTBLOCK_FONT_STRETCH));
 
202
        Inline::FontStyleProperty = DependencyProperty::Register (Type::INLINE, "FontStyle", new Value (TEXTBLOCK_FONT_STYLE));
 
203
        Inline::FontWeightProperty = DependencyProperty::Register (Type::INLINE, "FontWeight", new Value (TEXTBLOCK_FONT_WEIGHT));
 
204
        Inline::ForegroundProperty = DependencyProperty::Register (Type::INLINE, "Foreground", Type::BRUSH);
 
205
#if SL_2_0
 
206
        Inline::LanguageProperty = DependencyProperty::Register (Type::INLINE, "Language", new Value ("en-US"));
 
207
#endif
 
208
        Inline::TextDecorationsProperty = DependencyProperty::Register (Type::INLINE, "TextDecorations", new Value (TextDecorationsNone));
 
209
        KeySpline::ControlPoint1Property = DependencyProperty::Register (Type::KEYSPLINE, "ControlPoint1", new Value (Point (0,0)));
 
210
        KeySpline::ControlPoint2Property = DependencyProperty::Register (Type::KEYSPLINE, "ControlPoint2", new Value (Point (1.0, 1.0)));
 
211
        Line::X1Property = DependencyProperty::Register (Type::LINE, "X1", new Value (0.0));
 
212
        Line::X2Property = DependencyProperty::Register (Type::LINE, "X2", new Value (0.0));
 
213
        Line::Y1Property = DependencyProperty::Register (Type::LINE, "Y1", new Value (0.0));
 
214
        Line::Y2Property = DependencyProperty::Register (Type::LINE, "Y2", new Value (0.0));
 
215
        LinearGradientBrush::EndPointProperty = DependencyProperty::Register (Type::LINEARGRADIENTBRUSH, "EndPoint", Type::POINT);
 
216
        LinearGradientBrush::StartPointProperty = DependencyProperty::Register (Type::LINEARGRADIENTBRUSH, "StartPoint", Type::POINT);
 
217
        LineGeometry::EndPointProperty = DependencyProperty::Register (Type::LINEGEOMETRY, "EndPoint", Type::POINT);
 
218
        LineGeometry::StartPointProperty = DependencyProperty::Register (Type::LINEGEOMETRY, "StartPoint", Type::POINT);
 
219
        LineSegment::PointProperty = DependencyProperty::Register (Type::LINESEGMENT, "Point", Type::POINT);
 
220
        Matrix::M11Property = DependencyProperty::Register (Type::MATRIX, "M11", new Value (1.0));
 
221
        Matrix::M12Property = DependencyProperty::Register (Type::MATRIX, "M12", new Value (0.0));
 
222
        Matrix::M21Property = DependencyProperty::Register (Type::MATRIX, "M21", new Value (0.0));
 
223
        Matrix::M22Property = DependencyProperty::Register (Type::MATRIX, "M22", new Value (1.0));
 
224
        Matrix::OffsetXProperty = DependencyProperty::Register (Type::MATRIX, "OffsetX", new Value (0.0));
 
225
        Matrix::OffsetYProperty = DependencyProperty::Register (Type::MATRIX, "OffsetY", new Value (0.0));
 
226
        MatrixTransform::MatrixProperty = DependencyProperty::Register (Type::MATRIXTRANSFORM, "Matrix", Type::MATRIX);
 
227
        MediaAttribute::ValueProperty = DependencyProperty::Register (Type::MEDIAATTRIBUTE, "Value", Type::STRING);
 
228
        MediaBase::DownloadProgressProperty = DependencyProperty::Register (Type::MEDIABASE, "DownloadProgress", new Value (0.0));
 
229
        MediaBase::SourceProperty = DependencyProperty::RegisterFull (Type::MEDIABASE, "Source", NULL, Type::STRING, false, false, true, NULL);
 
230
        MediaBase::StretchProperty = DependencyProperty::Register (Type::MEDIABASE, "Stretch", new Value (StretchUniform));
 
231
        MediaElement::AttributesProperty = DependencyProperty::Register (Type::MEDIAELEMENT, "Attributes", Type::MEDIAATTRIBUTE_COLLECTION);
 
232
        MediaElement::AudioStreamCountProperty = DependencyProperty::RegisterFull (Type::MEDIAELEMENT, "AudioStreamCount", new Value (0), Type::INT32, false, true);
 
233
        MediaElement::AudioStreamIndexProperty = DependencyProperty::RegisterNullable (Type::MEDIAELEMENT, "AudioStreamIndex", Type::INT32);
 
234
        MediaElement::AutoPlayProperty = DependencyProperty::Register (Type::MEDIAELEMENT, "AutoPlay", new Value (true));
 
235
        MediaElement::BalanceProperty = DependencyProperty::Register (Type::MEDIAELEMENT, "Balance", new Value (0.0));
 
236
        MediaElement::BufferingProgressProperty = DependencyProperty::RegisterFull (Type::MEDIAELEMENT, "BufferingProgress", new Value (0.0), Type::DOUBLE, false, true);
 
237
        MediaElement::BufferingTimeProperty = DependencyProperty::Register (Type::MEDIAELEMENT, "BufferingTime", new Value (TimeSpan_FromSeconds (5),Type::TIMESPAN));
 
238
        MediaElement::CanPauseProperty = DependencyProperty::RegisterFull (Type::MEDIAELEMENT, "CanPause", new Value (false), Type::BOOL, false, true);
 
239
        MediaElement::CanSeekProperty = DependencyProperty::RegisterFull (Type::MEDIAELEMENT, "CanSeek", new Value (false), Type::BOOL, false, true);
 
240
        MediaElement::CurrentStateProperty = DependencyProperty::RegisterFull (Type::MEDIAELEMENT, "CurrentState", NULL, Type::STRING, false, true);
 
241
        MediaElement::IsMutedProperty = DependencyProperty::Register (Type::MEDIAELEMENT, "IsMuted", new Value (false));
 
242
        MediaElement::MarkersProperty = DependencyProperty::Register (Type::MEDIAELEMENT, "Markers", Type::TIMELINEMARKER_COLLECTION);
 
243
        MediaElement::NaturalDurationProperty = DependencyProperty::RegisterFull (Type::MEDIAELEMENT, "NaturalDuration", new Value (Duration::FromSeconds (0)), Type::DURATION, false, true);
 
244
        MediaElement::NaturalVideoHeightProperty = DependencyProperty::RegisterFull (Type::MEDIAELEMENT, "NaturalVideoHeight", new Value (0.0), Type::DOUBLE, false, true);
 
245
        MediaElement::NaturalVideoWidthProperty = DependencyProperty::RegisterFull (Type::MEDIAELEMENT, "NaturalVideoWidth", new Value (0.0), Type::DOUBLE, false, true);
 
246
        MediaElement::PositionProperty = DependencyProperty::Register (Type::MEDIAELEMENT, "Position", Type::TIMESPAN);
 
247
        MediaElement::VolumeProperty = DependencyProperty::Register (Type::MEDIAELEMENT, "Volume", new Value (0.5));
 
248
#if SL_2_0
 
249
        MultiScaleImage::AspectRatioProperty = DependencyProperty::Register (Type::MULTISCALEIMAGE, "AspectRatio", new Value (1.0));
 
250
        MultiScaleImage::SourceProperty = DependencyProperty::Register (Type::MULTISCALEIMAGE, "Source", Type::MULTISCALETILESOURCE);
 
251
        MultiScaleImage::UseSpringsProperty = DependencyProperty::Register (Type::MULTISCALEIMAGE, "UseSprings", new Value (true));
 
252
        MultiScaleImage::ViewportOriginProperty = DependencyProperty::Register (Type::MULTISCALEIMAGE, "ViewportOrigin", new Value (Point(0,0)));
 
253
        MultiScaleImage::ViewportWidthProperty = DependencyProperty::Register (Type::MULTISCALEIMAGE, "ViewportWidth", new Value (1.0));
 
254
        MultiScaleSubImage::AspectRatioProperty = DependencyProperty::RegisterFull (Type::MULTISCALESUBIMAGE, "AspectRatio", new Value (1.0), Type::DOUBLE, false, true);
 
255
        MultiScaleSubImage::OpacityProperty = DependencyProperty::Register (Type::MULTISCALESUBIMAGE, "Opacity", Type::DOUBLE);
 
256
        MultiScaleSubImage::ViewportOriginProperty = DependencyProperty::Register (Type::MULTISCALESUBIMAGE, "ViewportOrigin", Type::POINT);
 
257
        MultiScaleSubImage::ViewportWidthProperty = DependencyProperty::Register (Type::MULTISCALESUBIMAGE, "ViewportWidth", Type::DOUBLE);
 
258
        MultiScaleSubImage::ZIndexProperty = DependencyProperty::Register (Type::MULTISCALESUBIMAGE, "ZIndex", Type::INT32);
 
259
#endif
 
260
        NameScope::NameScopeProperty = DependencyProperty::RegisterFull (Type::NAMESCOPE, "NameScope", NULL, Type::NAMESCOPE, true, false);
 
261
#if SL_2_0
 
262
        ObjectAnimationUsingKeyFrames::KeyFramesProperty = DependencyProperty::Register (Type::OBJECTANIMATIONUSINGKEYFRAMES, "KeyFrames", Type::OBJECTKEYFRAME_COLLECTION);
 
263
        ObjectKeyFrame::KeyTimeProperty = DependencyProperty::RegisterNullable (Type::OBJECTKEYFRAME, "KeyTime", Type::KEYTIME);
 
264
        ObjectKeyFrame::ValueProperty = DependencyProperty::Register (Type::OBJECTKEYFRAME, "Value", Type::DEPENDENCY_OBJECT);
 
265
#endif
 
266
        Panel::BackgroundProperty = DependencyProperty::Register (Type::PANEL, "Background", Type::BRUSH);
 
267
        Panel::ChildrenProperty = DependencyProperty::Register (Type::PANEL, "Children", Type::UIELEMENT_COLLECTION);
 
268
        Path::DataProperty = DependencyProperty::Register (Type::PATH, "Data", Type::GEOMETRY);
 
269
        PathFigure::IsClosedProperty = DependencyProperty::Register (Type::PATHFIGURE, "IsClosed", new Value (false));
 
270
#if SL_2_0
 
271
        PathFigure::IsFilledProperty = DependencyProperty::Register (Type::PATHFIGURE, "IsFilled", Type::BOOL);
 
272
#endif
 
273
        PathFigure::SegmentsProperty = DependencyProperty::Register (Type::PATHFIGURE, "Segments", Type::PATHSEGMENT_COLLECTION);
 
274
        PathFigure::StartPointProperty = DependencyProperty::Register (Type::PATHFIGURE, "StartPoint", Type::POINT);
 
275
        PathGeometry::FiguresProperty = DependencyProperty::Register (Type::PATHGEOMETRY, "Figures", Type::PATHFIGURE_COLLECTION);
 
276
        PointAnimation::ByProperty = DependencyProperty::RegisterNullable (Type::POINTANIMATION, "By", Type::POINT);
 
277
        PointAnimation::FromProperty = DependencyProperty::RegisterNullable (Type::POINTANIMATION, "From", Type::POINT);
 
278
        PointAnimation::ToProperty = DependencyProperty::RegisterNullable (Type::POINTANIMATION, "To", Type::POINT);
 
279
        PointAnimationUsingKeyFrames::KeyFramesProperty = DependencyProperty::Register (Type::POINTANIMATIONUSINGKEYFRAMES, "KeyFrames", Type::POINTKEYFRAME_COLLECTION);
 
280
        PointKeyFrame::KeyTimeProperty = DependencyProperty::RegisterNullable (Type::POINTKEYFRAME, "KeyTime", Type::KEYTIME);
 
281
        PointKeyFrame::ValueProperty = DependencyProperty::RegisterNullable (Type::POINTKEYFRAME, "Value", Type::POINT);
 
282
        PolyBezierSegment::PointsProperty = DependencyProperty::Register (Type::POLYBEZIERSEGMENT, "Points", Type::POINT_COLLECTION);
 
283
        Polygon::FillRuleProperty = DependencyProperty::Register (Type::POLYGON, "FillRule", new Value (FillRuleEvenOdd));
 
284
        Polygon::PointsProperty = DependencyProperty::Register (Type::POLYGON, "Points", Type::POINT_COLLECTION);
 
285
        Polyline::FillRuleProperty = DependencyProperty::Register (Type::POLYLINE, "FillRule", new Value (FillRuleEvenOdd));
 
286
        Polyline::PointsProperty = DependencyProperty::Register (Type::POLYLINE, "Points", Type::POINT_COLLECTION);
 
287
        PolyLineSegment::PointsProperty = DependencyProperty::Register (Type::POLYLINESEGMENT, "Points", Type::POINT_COLLECTION);
 
288
        PolyQuadraticBezierSegment::PointsProperty = DependencyProperty::Register (Type::POLYQUADRATICBEZIERSEGMENT, "Points", Type::POINT_COLLECTION);
 
289
        QuadraticBezierSegment::Point1Property = DependencyProperty::Register (Type::QUADRATICBEZIERSEGMENT, "Point1", Type::POINT);
 
290
        QuadraticBezierSegment::Point2Property = DependencyProperty::Register (Type::QUADRATICBEZIERSEGMENT, "Point2", Type::POINT);
 
291
        RadialGradientBrush::CenterProperty = DependencyProperty::Register (Type::RADIALGRADIENTBRUSH, "Center", Type::POINT);
 
292
        RadialGradientBrush::GradientOriginProperty = DependencyProperty::Register (Type::RADIALGRADIENTBRUSH, "GradientOrigin", Type::POINT);
 
293
        RadialGradientBrush::RadiusXProperty = DependencyProperty::Register (Type::RADIALGRADIENTBRUSH, "RadiusX", new Value (0.5));
 
294
        RadialGradientBrush::RadiusYProperty = DependencyProperty::Register (Type::RADIALGRADIENTBRUSH, "RadiusY", new Value (0.5));
 
295
        Rectangle::RadiusXProperty = DependencyProperty::Register (Type::RECTANGLE, "RadiusX", new Value (0.0));
 
296
        Rectangle::RadiusYProperty = DependencyProperty::Register (Type::RECTANGLE, "RadiusY", new Value (0.0));
 
297
        RectangleGeometry::RadiusXProperty = DependencyProperty::Register (Type::RECTANGLEGEOMETRY, "RadiusX", new Value (0.0));
 
298
        RectangleGeometry::RadiusYProperty = DependencyProperty::Register (Type::RECTANGLEGEOMETRY, "RadiusY", new Value (0.0));
 
299
        RectangleGeometry::RectProperty = DependencyProperty::Register (Type::RECTANGLEGEOMETRY, "Rect", Type::RECT);
 
300
        RotateTransform::AngleProperty = DependencyProperty::Register (Type::ROTATETRANSFORM, "Angle", new Value (0.0));
 
301
        RotateTransform::CenterXProperty = DependencyProperty::Register (Type::ROTATETRANSFORM, "CenterX", new Value (0.0));
 
302
        RotateTransform::CenterYProperty = DependencyProperty::Register (Type::ROTATETRANSFORM, "CenterY", new Value (0.0));
 
303
#if SL_2_0
 
304
        RowDefinition::HeightProperty = DependencyProperty::Register (Type::ROWDEFINITION, "Height", Type::GRIDLENGTH);
 
305
        RowDefinition::MaxHeightProperty = DependencyProperty::Register (Type::ROWDEFINITION, "MaxHeight", new Value (INFINITY));
 
306
        RowDefinition::MinHeightProperty = DependencyProperty::Register (Type::ROWDEFINITION, "MinHeight", new Value (0.0));
 
307
#endif
 
308
        Run::TextProperty = DependencyProperty::Register (Type::RUN, "Text", Type::STRING);
 
309
        ScaleTransform::CenterXProperty = DependencyProperty::Register (Type::SCALETRANSFORM, "CenterX", new Value (0.0));
 
310
        ScaleTransform::CenterYProperty = DependencyProperty::Register (Type::SCALETRANSFORM, "CenterY", new Value (0.0));
 
311
        ScaleTransform::ScaleXProperty = DependencyProperty::Register (Type::SCALETRANSFORM, "ScaleX", new Value (1.0));
 
312
        ScaleTransform::ScaleYProperty = DependencyProperty::Register (Type::SCALETRANSFORM, "ScaleY", new Value (1.0));
 
313
#if SL_2_0
 
314
        Setter::DependencyPropertyProperty = DependencyProperty::Register (Type::SETTER, "DependencyProperty", Type::DEPENDENCYPROPERTY);
 
315
        Setter::PropertyProperty = DependencyProperty::Register (Type::SETTER, "Property", Type::STRING);
 
316
        Setter::ValueProperty = DependencyProperty::Register (Type::SETTER, "Value", Type::OBJECT);
 
317
#endif
 
318
        Shape::FillProperty = DependencyProperty::Register (Type::SHAPE, "Fill", Type::BRUSH);
 
319
        Shape::StretchProperty = DependencyProperty::Register (Type::SHAPE, "Stretch", new Value (StretchNone));
 
320
        Shape::StrokeDashArrayProperty = DependencyProperty::Register (Type::SHAPE, "StrokeDashArray", Type::DOUBLE_COLLECTION);
 
321
        Shape::StrokeDashCapProperty = DependencyProperty::Register (Type::SHAPE, "StrokeDashCap", new Value (PenLineCapFlat));
 
322
        Shape::StrokeDashOffsetProperty = DependencyProperty::Register (Type::SHAPE, "StrokeDashOffset", new Value (0.0));
 
323
        Shape::StrokeEndLineCapProperty = DependencyProperty::Register (Type::SHAPE, "StrokeEndLineCap", new Value (PenLineCapFlat));
 
324
        Shape::StrokeLineJoinProperty = DependencyProperty::Register (Type::SHAPE, "StrokeLineJoin", new Value (PenLineJoinMiter));
 
325
        Shape::StrokeMiterLimitProperty = DependencyProperty::Register (Type::SHAPE, "StrokeMiterLimit", new Value (10.0));
 
326
        Shape::StrokeProperty = DependencyProperty::Register (Type::SHAPE, "Stroke", Type::BRUSH);
 
327
        Shape::StrokeStartLineCapProperty = DependencyProperty::Register (Type::SHAPE, "StrokeStartLineCap", new Value (PenLineCapFlat));
 
328
        Shape::StrokeThicknessProperty = DependencyProperty::Register (Type::SHAPE, "StrokeThickness", new Value (1.0));
 
329
        SkewTransform::AngleXProperty = DependencyProperty::Register (Type::SKEWTRANSFORM, "AngleX", new Value (0.0));
 
330
        SkewTransform::AngleYProperty = DependencyProperty::Register (Type::SKEWTRANSFORM, "AngleY", new Value (0.0));
 
331
        SkewTransform::CenterXProperty = DependencyProperty::Register (Type::SKEWTRANSFORM, "CenterX", new Value (0.0));
 
332
        SkewTransform::CenterYProperty = DependencyProperty::Register (Type::SKEWTRANSFORM, "CenterY", new Value (0.0));
 
333
        SolidColorBrush::ColorProperty = DependencyProperty::Register (Type::SOLIDCOLORBRUSH, "Color", new Value (Color (0x00000000)));
 
334
        SplineColorKeyFrame::KeySplineProperty = DependencyProperty::Register (Type::SPLINECOLORKEYFRAME, "KeySpline", Type::KEYSPLINE);
 
335
        SplineDoubleKeyFrame::KeySplineProperty = DependencyProperty::Register (Type::SPLINEDOUBLEKEYFRAME, "KeySpline", Type::KEYSPLINE);
 
336
        SplinePointKeyFrame::KeySplineProperty = DependencyProperty::Register (Type::SPLINEPOINTKEYFRAME, "KeySpline", Type::KEYSPLINE);
 
337
#if SL_2_0
 
338
        StackPanel::OrientationProperty = DependencyProperty::Register (Type::STACKPANEL, "Orientation", Type::INT32);
 
339
#endif
 
340
        Storyboard::TargetNameProperty = DependencyProperty::RegisterFull (Type::STORYBOARD, "TargetName", NULL, Type::STRING, true, false);
 
341
        Storyboard::TargetPropertyProperty = DependencyProperty::RegisterFull (Type::STORYBOARD, "TargetProperty", NULL, Type::STRING, true, false);
 
342
        Stroke::DrawingAttributesProperty = DependencyProperty::Register (Type::STROKE, "DrawingAttributes", Type::DRAWINGATTRIBUTES);
 
343
        Stroke::StylusPointsProperty = DependencyProperty::Register (Type::STROKE, "StylusPoints", Type::STYLUSPOINT_COLLECTION);
 
344
#if SL_2_0
 
345
        Style::SettersProperty = DependencyProperty::Register (Type::STYLE, "Setters", Type::SETTERBASE_COLLECTION);
 
346
        Style::TargetTypeProperty = DependencyProperty::Register (Type::STYLE, "TargetType", Type::MANAGED);
 
347
#endif
 
348
        StylusInfo::DeviceTypeProperty = DependencyProperty::Register (Type::STYLUSINFO, "DeviceType", new Value (TabletDeviceTypeMouse));
 
349
        StylusInfo::IsInvertedProperty = DependencyProperty::Register (Type::STYLUSINFO, "IsInverted", new Value (false));
 
350
        StylusPoint::PressureFactorProperty = DependencyProperty::Register (Type::STYLUSPOINT, "PressureFactor", new Value (0.5));
 
351
        StylusPoint::XProperty = DependencyProperty::Register (Type::STYLUSPOINT, "X", new Value (0.0));
 
352
        StylusPoint::YProperty = DependencyProperty::Register (Type::STYLUSPOINT, "Y", new Value (0.0));
 
353
        TextBlock::ActualHeightProperty = DependencyProperty::RegisterFull (Type::TEXTBLOCK, "ActualHeight", NULL, Type::DOUBLE, false, true);
 
354
        TextBlock::ActualWidthProperty = DependencyProperty::RegisterFull (Type::TEXTBLOCK, "ActualWidth", NULL, Type::DOUBLE, false, true);
 
355
        TextBlock::FontFamilyProperty = DependencyProperty::Register (Type::TEXTBLOCK, "FontFamily", new Value (TEXTBLOCK_FONT_FAMILY));
 
356
        TextBlock::FontSizeProperty = DependencyProperty::Register (Type::TEXTBLOCK, "FontSize", new Value (TEXTBLOCK_FONT_SIZE));
 
357
        TextBlock::FontStretchProperty = DependencyProperty::Register (Type::TEXTBLOCK, "FontStretch", new Value (TEXTBLOCK_FONT_STRETCH));
 
358
        TextBlock::FontStyleProperty = DependencyProperty::Register (Type::TEXTBLOCK, "FontStyle", new Value (TEXTBLOCK_FONT_STYLE));
 
359
        TextBlock::FontWeightProperty = DependencyProperty::Register (Type::TEXTBLOCK, "FontWeight", new Value (TEXTBLOCK_FONT_WEIGHT));
 
360
        TextBlock::ForegroundProperty = DependencyProperty::Register (Type::TEXTBLOCK, "Foreground", Type::BRUSH);
 
361
        TextBlock::InlinesProperty = DependencyProperty::Register (Type::TEXTBLOCK, "Inlines", Type::INLINE_COLLECTION);
 
362
#if SL_2_0
 
363
        TextBlock::LineHeightProperty = DependencyProperty::Register (Type::TEXTBLOCK, "LineHeight", new Value (NAN));
 
364
        TextBlock::LineStackingStrategyProperty = DependencyProperty::Register (Type::TEXTBLOCK, "LineStackingStrategy", new Value (LineStackingStrategyMaxHeight));
 
365
        TextBlock::PaddingProperty = DependencyProperty::Register (Type::TEXTBLOCK, "Padding", new Value (Thickness (0)));
 
366
        TextBlock::TextAlignmentProperty = DependencyProperty::Register (Type::TEXTBLOCK, "TextAlignment", new Value (TextAlignmentLeft));
 
367
#endif
 
368
        TextBlock::TextDecorationsProperty = DependencyProperty::Register (Type::TEXTBLOCK, "TextDecorations", new Value (TextDecorationsNone));
 
369
        TextBlock::TextProperty = DependencyProperty::Register (Type::TEXTBLOCK, "Text", Type::STRING);
 
370
        TextBlock::TextWrappingProperty = DependencyProperty::Register (Type::TEXTBLOCK, "TextWrapping", new Value (TextWrappingNoWrap));
 
371
#if SL_2_0
 
372
        TextBox::AcceptsReturnProperty = DependencyProperty::Register (Type::TEXTBOX, "AcceptsReturn", new Value (false));
 
373
        TextBox::HorizontalScrollBarVisibilityProperty = DependencyProperty::Register (Type::TEXTBOX, "HorizontalScrollBarVisibility", new Value (ScrollBarVisibilityHidden));
 
374
        TextBox::IsReadOnlyProperty = DependencyProperty::Register (Type::TEXTBOX, "IsReadOnly", new Value (false));
 
375
        TextBox::MaxLengthProperty = DependencyProperty::Register (Type::TEXTBOX, "MaxLength", new Value (0));
 
376
        TextBox::SelectedTextProperty = DependencyProperty::Register (Type::TEXTBOX, "SelectedText", Type::STRING);
 
377
        TextBox::SelectionBackgroundProperty = DependencyProperty::Register (Type::TEXTBOX, "SelectionBackground", new Value (0));
 
378
        TextBox::SelectionForegroundProperty = DependencyProperty::Register (Type::TEXTBOX, "SelectionForeground", new Value (0));
 
379
        TextBox::SelectionLengthProperty = DependencyProperty::Register (Type::TEXTBOX, "SelectionLength", new Value (0));
 
380
        TextBox::SelectionStartProperty = DependencyProperty::Register (Type::TEXTBOX, "SelectionStart", new Value (0));
 
381
        TextBox::TextAlignmentProperty = DependencyProperty::Register (Type::TEXTBOX, "TextAlignment", new Value (TextAlignmentLeft));
 
382
        TextBox::TextProperty = DependencyProperty::Register (Type::TEXTBOX, "Text", Type::STRING);
 
383
        TextBox::TextWrappingProperty = DependencyProperty::Register (Type::TEXTBOX, "TextWrapping", new Value (TextWrappingNoWrap));
 
384
        TextBox::VerticalScrollBarVisibilityProperty = DependencyProperty::Register (Type::TEXTBOX, "VerticalScrollBarVisibility", new Value (ScrollBarVisibilityHidden));
 
385
#endif
 
386
        TileBrush::AlignmentXProperty = DependencyProperty::Register (Type::TILEBRUSH, "AlignmentX", new Value (AlignmentXCenter));
 
387
        TileBrush::AlignmentYProperty = DependencyProperty::Register (Type::TILEBRUSH, "AlignmentY", new Value (AlignmentYCenter));
 
388
        TileBrush::StretchProperty = DependencyProperty::Register (Type::TILEBRUSH, "Stretch", new Value (StretchFill));
 
389
        Timeline::AutoReverseProperty = DependencyProperty::Register (Type::TIMELINE, "AutoReverse", new Value (false));
 
390
        Timeline::BeginTimeProperty = DependencyProperty::RegisterNullable (Type::TIMELINE, "BeginTime", Type::TIMESPAN);
 
391
        Timeline::DurationProperty = DependencyProperty::Register (Type::TIMELINE, "Duration", new Value (Duration::Automatic));
 
392
        Timeline::FillBehaviorProperty = DependencyProperty::Register (Type::TIMELINE, "FillBehavior", new Value (FillBehaviorHoldEnd));
 
393
        Timeline::RepeatBehaviorProperty = DependencyProperty::Register (Type::TIMELINE, "RepeatBehavior", new Value (RepeatBehavior ((double) 1)));
 
394
        Timeline::SpeedRatioProperty = DependencyProperty::Register (Type::TIMELINE, "SpeedRatio", new Value (1.0));
 
395
        TimelineGroup::ChildrenProperty = DependencyProperty::Register (Type::TIMELINEGROUP, "Children", Type::TIMELINE_COLLECTION);
 
396
        TimelineMarker::TextProperty = DependencyProperty::Register (Type::TIMELINEMARKER, "Text", Type::STRING);
 
397
        TimelineMarker::TimeProperty = DependencyProperty::Register (Type::TIMELINEMARKER, "Time", Type::TIMESPAN);
 
398
        TimelineMarker::TypeProperty = DependencyProperty::Register (Type::TIMELINEMARKER, "Type", Type::STRING);
 
399
        TransformGroup::ChildrenProperty = DependencyProperty::Register (Type::TRANSFORMGROUP, "Children", Type::TRANSFORM_COLLECTION);
 
400
        TranslateTransform::XProperty = DependencyProperty::Register (Type::TRANSLATETRANSFORM, "X", new Value (0.0));
 
401
        TranslateTransform::YProperty = DependencyProperty::Register (Type::TRANSLATETRANSFORM, "Y", new Value (0.0));
 
402
        UIElement::ClipProperty = DependencyProperty::Register (Type::UIELEMENT, "Clip", Type::GEOMETRY);
 
403
        UIElement::CursorProperty = DependencyProperty::Register (Type::UIELEMENT, "Cursor", new Value (MouseCursorDefault));
 
404
        UIElement::IsHitTestVisibleProperty = DependencyProperty::Register (Type::UIELEMENT, "IsHitTestVisible", new Value (true));
 
405
        UIElement::OpacityMaskProperty = DependencyProperty::Register (Type::UIELEMENT, "OpacityMask", Type::BRUSH);
 
406
        UIElement::OpacityProperty = DependencyProperty::Register (Type::UIELEMENT, "Opacity", new Value (1.0));
 
407
        UIElement::RenderTransformOriginProperty = DependencyProperty::Register (Type::UIELEMENT, "RenderTransformOrigin", new Value (Point (0,0)));
 
408
        UIElement::RenderTransformProperty = DependencyProperty::Register (Type::UIELEMENT, "RenderTransform", Type::TRANSFORM);
 
409
        UIElement::ResourcesProperty = DependencyProperty::Register (Type::UIELEMENT, "Resources", Type::RESOURCE_DICTIONARY);
 
410
        UIElement::TagProperty = DependencyProperty::Register (Type::UIELEMENT, "Tag", Type::STRING);
 
411
        UIElement::TriggersProperty = DependencyProperty::Register (Type::UIELEMENT, "Triggers", Type::TRIGGER_COLLECTION);
 
412
        UIElement::VisibilityProperty = DependencyProperty::Register (Type::UIELEMENT, "Visibility", new Value (VisibilityVisible));
 
413
#if SL_2_0
 
414
        UserControl::ContentProperty = DependencyProperty::Register (Type::USERCONTROL, "Content", Type::UIELEMENT);
 
415
#endif
 
416
        VideoBrush::SourceNameProperty = DependencyProperty::Register (Type::VIDEOBRUSH, "SourceName", new Value (""));
 
417
        VisualBrush::VisualProperty = DependencyProperty::Register (Type::VISUALBRUSH, "Visual", Type::UIELEMENT);
 
418
}
 
419
 
 
420
#if SL_2_0
 
421
DependencyProperty *Application::ResourcesProperty = NULL;
 
422
#endif
 
423
DependencyProperty *ArcSegment::IsLargeArcProperty = NULL;
 
424
DependencyProperty *ArcSegment::PointProperty = NULL;
 
425
DependencyProperty *ArcSegment::RotationAngleProperty = NULL;
 
426
DependencyProperty *ArcSegment::SizeProperty = NULL;
 
427
DependencyProperty *ArcSegment::SweepDirectionProperty = NULL;
 
428
#if SL_2_0
 
429
DependencyProperty *AssemblyPart::SourceProperty = NULL;
 
430
#endif
 
431
DependencyProperty *BeginStoryboard::StoryboardProperty = NULL;
 
432
DependencyProperty *BezierSegment::Point1Property = NULL;
 
433
DependencyProperty *BezierSegment::Point2Property = NULL;
 
434
DependencyProperty *BezierSegment::Point3Property = NULL;
 
435
#if SL_2_0
 
436
DependencyProperty *BitmapImage::UriSourceProperty = NULL;
 
437
DependencyProperty *Border::BackgroundProperty = NULL;
 
438
DependencyProperty *Border::BorderBrushProperty = NULL;
 
439
DependencyProperty *Border::BorderThicknessProperty = NULL;
 
440
DependencyProperty *Border::ChildProperty = NULL;
 
441
DependencyProperty *Border::CornerRadiusProperty = NULL;
 
442
DependencyProperty *Border::PaddingProperty = NULL;
 
443
#endif
 
444
DependencyProperty *Brush::ChangedProperty = NULL;
 
445
DependencyProperty *Brush::OpacityProperty = NULL;
 
446
DependencyProperty *Brush::RelativeTransformProperty = NULL;
 
447
DependencyProperty *Brush::TransformProperty = NULL;
 
448
DependencyProperty *Canvas::LeftProperty = NULL;
 
449
DependencyProperty *Canvas::TopProperty = NULL;
 
450
DependencyProperty *Canvas::ZIndexProperty = NULL;
 
451
DependencyProperty *Collection::CountProperty = NULL;
 
452
DependencyProperty *ColorAnimation::ByProperty = NULL;
 
453
DependencyProperty *ColorAnimation::FromProperty = NULL;
 
454
DependencyProperty *ColorAnimation::ToProperty = NULL;
 
455
DependencyProperty *ColorAnimationUsingKeyFrames::KeyFramesProperty = NULL;
 
456
DependencyProperty *ColorKeyFrame::KeyTimeProperty = NULL;
 
457
DependencyProperty *ColorKeyFrame::ValueProperty = NULL;
 
458
#if SL_2_0
 
459
DependencyProperty *ColumnDefinition::MaxWidthProperty = NULL;
 
460
DependencyProperty *ColumnDefinition::MinWidthProperty = NULL;
 
461
DependencyProperty *ColumnDefinition::WidthProperty = NULL;
 
462
DependencyProperty *ContentControl::ContentProperty = NULL;
 
463
DependencyProperty *ContentControl::ContentTemplateProperty = NULL;
 
464
DependencyProperty *ContentControl::IsEnabledProperty = NULL;
 
465
DependencyProperty *ContentControl::TextAlignmentProperty = NULL;
 
466
DependencyProperty *ContentControl::TextDecorationsProperty = NULL;
 
467
DependencyProperty *ContentControl::TextWrappingProperty = NULL;
 
468
DependencyProperty *Control::BackgroundProperty = NULL;
 
469
DependencyProperty *Control::BorderBrushProperty = NULL;
 
470
DependencyProperty *Control::BorderThicknessProperty = NULL;
 
471
DependencyProperty *Control::FontFamilyProperty = NULL;
 
472
DependencyProperty *Control::FontSizeProperty = NULL;
 
473
DependencyProperty *Control::FontStretchProperty = NULL;
 
474
DependencyProperty *Control::FontStyleProperty = NULL;
 
475
DependencyProperty *Control::FontWeightProperty = NULL;
 
476
DependencyProperty *Control::ForegroundProperty = NULL;
 
477
DependencyProperty *Control::HorizontalContentAlignmentProperty = NULL;
 
478
DependencyProperty *Control::IsTabStopProperty = NULL;
 
479
DependencyProperty *Control::PaddingProperty = NULL;
 
480
DependencyProperty *Control::TabIndexProperty = NULL;
 
481
DependencyProperty *Control::TabNavigationProperty = NULL;
 
482
DependencyProperty *Control::TemplateProperty = NULL;
 
483
DependencyProperty *Control::VerticalContentAlignmentProperty = NULL;
 
484
DependencyProperty *ControlTemplate::TargetTypeProperty = NULL;
 
485
#endif
 
486
DependencyProperty *DependencyObject::NameProperty = NULL;
 
487
#if SL_2_0
 
488
DependencyProperty *Deployment::EntryPointAssemblyProperty = NULL;
 
489
DependencyProperty *Deployment::EntryPointTypeProperty = NULL;
 
490
DependencyProperty *Deployment::ExternalCallersFromCrossDomainProperty = NULL;
 
491
DependencyProperty *Deployment::PartsProperty = NULL;
 
492
DependencyProperty *Deployment::RuntimeVersionProperty = NULL;
 
493
#endif
 
494
DependencyProperty *DoubleAnimation::ByProperty = NULL;
 
495
DependencyProperty *DoubleAnimation::FromProperty = NULL;
 
496
DependencyProperty *DoubleAnimation::ToProperty = NULL;
 
497
DependencyProperty *DoubleAnimationUsingKeyFrames::KeyFramesProperty = NULL;
 
498
DependencyProperty *DoubleKeyFrame::KeyTimeProperty = NULL;
 
499
DependencyProperty *DoubleKeyFrame::ValueProperty = NULL;
 
500
DependencyProperty *Downloader::DownloadProgressProperty = NULL;
 
501
DependencyProperty *Downloader::ResponseTextProperty = NULL;
 
502
DependencyProperty *Downloader::StatusProperty = NULL;
 
503
DependencyProperty *Downloader::StatusTextProperty = NULL;
 
504
DependencyProperty *Downloader::UriProperty = NULL;
 
505
DependencyProperty *DrawingAttributes::ColorProperty = NULL;
 
506
DependencyProperty *DrawingAttributes::HeightProperty = NULL;
 
507
DependencyProperty *DrawingAttributes::OutlineColorProperty = NULL;
 
508
DependencyProperty *DrawingAttributes::WidthProperty = NULL;
 
509
DependencyProperty *EllipseGeometry::CenterProperty = NULL;
 
510
DependencyProperty *EllipseGeometry::RadiusXProperty = NULL;
 
511
DependencyProperty *EllipseGeometry::RadiusYProperty = NULL;
 
512
DependencyProperty *EventTrigger::ActionsProperty = NULL;
 
513
DependencyProperty *EventTrigger::RoutedEventProperty = NULL;
 
514
#if SL_2_0
 
515
DependencyProperty *FrameworkElement::ActualHeightProperty = NULL;
 
516
DependencyProperty *FrameworkElement::ActualWidthProperty = NULL;
 
517
DependencyProperty *FrameworkElement::DataContextProperty = NULL;
 
518
#endif
 
519
DependencyProperty *FrameworkElement::HeightProperty = NULL;
 
520
#if SL_2_0
 
521
DependencyProperty *FrameworkElement::HorizontalAlignmentProperty = NULL;
 
522
DependencyProperty *FrameworkElement::LanguageProperty = NULL;
 
523
DependencyProperty *FrameworkElement::MarginProperty = NULL;
 
524
DependencyProperty *FrameworkElement::MaxHeightProperty = NULL;
 
525
DependencyProperty *FrameworkElement::MaxWidthProperty = NULL;
 
526
DependencyProperty *FrameworkElement::MinHeightProperty = NULL;
 
527
DependencyProperty *FrameworkElement::MinWidthProperty = NULL;
 
528
DependencyProperty *FrameworkElement::StyleProperty = NULL;
 
529
DependencyProperty *FrameworkElement::VerticalAlignmentProperty = NULL;
 
530
#endif
 
531
DependencyProperty *FrameworkElement::WidthProperty = NULL;
 
532
DependencyProperty *Geometry::FillRuleProperty = NULL;
 
533
DependencyProperty *Geometry::TransformProperty = NULL;
 
534
DependencyProperty *GeometryGroup::ChildrenProperty = NULL;
 
535
DependencyProperty *Glyphs::FillProperty = NULL;
 
536
DependencyProperty *Glyphs::FontRenderingEmSizeProperty = NULL;
 
537
DependencyProperty *Glyphs::FontUriProperty = NULL;
 
538
DependencyProperty *Glyphs::IndicesProperty = NULL;
 
539
DependencyProperty *Glyphs::OriginXProperty = NULL;
 
540
DependencyProperty *Glyphs::OriginYProperty = NULL;
 
541
DependencyProperty *Glyphs::StyleSimulationsProperty = NULL;
 
542
DependencyProperty *Glyphs::UnicodeStringProperty = NULL;
 
543
DependencyProperty *GradientBrush::ColorInterpolationModeProperty = NULL;
 
544
DependencyProperty *GradientBrush::GradientStopsProperty = NULL;
 
545
DependencyProperty *GradientBrush::MappingModeProperty = NULL;
 
546
DependencyProperty *GradientBrush::SpreadMethodProperty = NULL;
 
547
DependencyProperty *GradientStop::ColorProperty = NULL;
 
548
DependencyProperty *GradientStop::OffsetProperty = NULL;
 
549
#if SL_2_0
 
550
DependencyProperty *Grid::ColumnDefinitionsProperty = NULL;
 
551
DependencyProperty *Grid::ColumnProperty = NULL;
 
552
DependencyProperty *Grid::ColumnSpanProperty = NULL;
 
553
DependencyProperty *Grid::RowDefinitionsProperty = NULL;
 
554
DependencyProperty *Grid::RowProperty = NULL;
 
555
DependencyProperty *Grid::RowSpanProperty = NULL;
 
556
DependencyProperty *Grid::ShowGridLinesProperty = NULL;
 
557
#endif
 
558
DependencyProperty *ImageBrush::DownloadProgressProperty = NULL;
 
559
DependencyProperty *ImageBrush::ImageSourceProperty = NULL;
 
560
DependencyProperty *InkPresenter::StrokesProperty = NULL;
 
561
DependencyProperty *Inline::FontFamilyProperty = NULL;
 
562
DependencyProperty *Inline::FontSizeProperty = NULL;
 
563
DependencyProperty *Inline::FontStretchProperty = NULL;
 
564
DependencyProperty *Inline::FontStyleProperty = NULL;
 
565
DependencyProperty *Inline::FontWeightProperty = NULL;
 
566
DependencyProperty *Inline::ForegroundProperty = NULL;
 
567
#if SL_2_0
 
568
DependencyProperty *Inline::LanguageProperty = NULL;
 
569
#endif
 
570
DependencyProperty *Inline::TextDecorationsProperty = NULL;
 
571
DependencyProperty *KeySpline::ControlPoint1Property = NULL;
 
572
DependencyProperty *KeySpline::ControlPoint2Property = NULL;
 
573
DependencyProperty *Line::X1Property = NULL;
 
574
DependencyProperty *Line::X2Property = NULL;
 
575
DependencyProperty *Line::Y1Property = NULL;
 
576
DependencyProperty *Line::Y2Property = NULL;
 
577
DependencyProperty *LinearGradientBrush::EndPointProperty = NULL;
 
578
DependencyProperty *LinearGradientBrush::StartPointProperty = NULL;
 
579
DependencyProperty *LineGeometry::EndPointProperty = NULL;
 
580
DependencyProperty *LineGeometry::StartPointProperty = NULL;
 
581
DependencyProperty *LineSegment::PointProperty = NULL;
 
582
DependencyProperty *Matrix::M11Property = NULL;
 
583
DependencyProperty *Matrix::M12Property = NULL;
 
584
DependencyProperty *Matrix::M21Property = NULL;
 
585
DependencyProperty *Matrix::M22Property = NULL;
 
586
DependencyProperty *Matrix::OffsetXProperty = NULL;
 
587
DependencyProperty *Matrix::OffsetYProperty = NULL;
 
588
DependencyProperty *MatrixTransform::MatrixProperty = NULL;
 
589
DependencyProperty *MediaAttribute::ValueProperty = NULL;
 
590
DependencyProperty *MediaBase::DownloadProgressProperty = NULL;
 
591
DependencyProperty *MediaBase::SourceProperty = NULL;
 
592
DependencyProperty *MediaBase::StretchProperty = NULL;
 
593
DependencyProperty *MediaElement::AttributesProperty = NULL;
 
594
DependencyProperty *MediaElement::AudioStreamCountProperty = NULL;
 
595
DependencyProperty *MediaElement::AudioStreamIndexProperty = NULL;
 
596
DependencyProperty *MediaElement::AutoPlayProperty = NULL;
 
597
DependencyProperty *MediaElement::BalanceProperty = NULL;
 
598
DependencyProperty *MediaElement::BufferingProgressProperty = NULL;
 
599
DependencyProperty *MediaElement::BufferingTimeProperty = NULL;
 
600
DependencyProperty *MediaElement::CanPauseProperty = NULL;
 
601
DependencyProperty *MediaElement::CanSeekProperty = NULL;
 
602
DependencyProperty *MediaElement::CurrentStateProperty = NULL;
 
603
DependencyProperty *MediaElement::IsMutedProperty = NULL;
 
604
DependencyProperty *MediaElement::MarkersProperty = NULL;
 
605
DependencyProperty *MediaElement::NaturalDurationProperty = NULL;
 
606
DependencyProperty *MediaElement::NaturalVideoHeightProperty = NULL;
 
607
DependencyProperty *MediaElement::NaturalVideoWidthProperty = NULL;
 
608
DependencyProperty *MediaElement::PositionProperty = NULL;
 
609
DependencyProperty *MediaElement::VolumeProperty = NULL;
 
610
#if SL_2_0
 
611
DependencyProperty *MultiScaleImage::AspectRatioProperty = NULL;
 
612
DependencyProperty *MultiScaleImage::SourceProperty = NULL;
 
613
DependencyProperty *MultiScaleImage::UseSpringsProperty = NULL;
 
614
DependencyProperty *MultiScaleImage::ViewportOriginProperty = NULL;
 
615
DependencyProperty *MultiScaleImage::ViewportWidthProperty = NULL;
 
616
DependencyProperty *MultiScaleSubImage::AspectRatioProperty = NULL;
 
617
DependencyProperty *MultiScaleSubImage::OpacityProperty = NULL;
 
618
DependencyProperty *MultiScaleSubImage::ViewportOriginProperty = NULL;
 
619
DependencyProperty *MultiScaleSubImage::ViewportWidthProperty = NULL;
 
620
DependencyProperty *MultiScaleSubImage::ZIndexProperty = NULL;
 
621
#endif
 
622
DependencyProperty *NameScope::NameScopeProperty = NULL;
 
623
#if SL_2_0
 
624
DependencyProperty *ObjectAnimationUsingKeyFrames::KeyFramesProperty = NULL;
 
625
DependencyProperty *ObjectKeyFrame::KeyTimeProperty = NULL;
 
626
DependencyProperty *ObjectKeyFrame::ValueProperty = NULL;
 
627
#endif
 
628
DependencyProperty *Panel::BackgroundProperty = NULL;
 
629
DependencyProperty *Panel::ChildrenProperty = NULL;
 
630
DependencyProperty *Path::DataProperty = NULL;
 
631
DependencyProperty *PathFigure::IsClosedProperty = NULL;
 
632
#if SL_2_0
 
633
DependencyProperty *PathFigure::IsFilledProperty = NULL;
 
634
#endif
 
635
DependencyProperty *PathFigure::SegmentsProperty = NULL;
 
636
DependencyProperty *PathFigure::StartPointProperty = NULL;
 
637
DependencyProperty *PathGeometry::FiguresProperty = NULL;
 
638
DependencyProperty *PointAnimation::ByProperty = NULL;
 
639
DependencyProperty *PointAnimation::FromProperty = NULL;
 
640
DependencyProperty *PointAnimation::ToProperty = NULL;
 
641
DependencyProperty *PointAnimationUsingKeyFrames::KeyFramesProperty = NULL;
 
642
DependencyProperty *PointKeyFrame::KeyTimeProperty = NULL;
 
643
DependencyProperty *PointKeyFrame::ValueProperty = NULL;
 
644
DependencyProperty *PolyBezierSegment::PointsProperty = NULL;
 
645
DependencyProperty *Polygon::FillRuleProperty = NULL;
 
646
DependencyProperty *Polygon::PointsProperty = NULL;
 
647
DependencyProperty *Polyline::FillRuleProperty = NULL;
 
648
DependencyProperty *Polyline::PointsProperty = NULL;
 
649
DependencyProperty *PolyLineSegment::PointsProperty = NULL;
 
650
DependencyProperty *PolyQuadraticBezierSegment::PointsProperty = NULL;
 
651
DependencyProperty *QuadraticBezierSegment::Point1Property = NULL;
 
652
DependencyProperty *QuadraticBezierSegment::Point2Property = NULL;
 
653
DependencyProperty *RadialGradientBrush::CenterProperty = NULL;
 
654
DependencyProperty *RadialGradientBrush::GradientOriginProperty = NULL;
 
655
DependencyProperty *RadialGradientBrush::RadiusXProperty = NULL;
 
656
DependencyProperty *RadialGradientBrush::RadiusYProperty = NULL;
 
657
DependencyProperty *Rectangle::RadiusXProperty = NULL;
 
658
DependencyProperty *Rectangle::RadiusYProperty = NULL;
 
659
DependencyProperty *RectangleGeometry::RadiusXProperty = NULL;
 
660
DependencyProperty *RectangleGeometry::RadiusYProperty = NULL;
 
661
DependencyProperty *RectangleGeometry::RectProperty = NULL;
 
662
DependencyProperty *RotateTransform::AngleProperty = NULL;
 
663
DependencyProperty *RotateTransform::CenterXProperty = NULL;
 
664
DependencyProperty *RotateTransform::CenterYProperty = NULL;
 
665
#if SL_2_0
 
666
DependencyProperty *RowDefinition::HeightProperty = NULL;
 
667
DependencyProperty *RowDefinition::MaxHeightProperty = NULL;
 
668
DependencyProperty *RowDefinition::MinHeightProperty = NULL;
 
669
#endif
 
670
DependencyProperty *Run::TextProperty = NULL;
 
671
DependencyProperty *ScaleTransform::CenterXProperty = NULL;
 
672
DependencyProperty *ScaleTransform::CenterYProperty = NULL;
 
673
DependencyProperty *ScaleTransform::ScaleXProperty = NULL;
 
674
DependencyProperty *ScaleTransform::ScaleYProperty = NULL;
 
675
#if SL_2_0
 
676
DependencyProperty *Setter::DependencyPropertyProperty = NULL;
 
677
DependencyProperty *Setter::PropertyProperty = NULL;
 
678
DependencyProperty *Setter::ValueProperty = NULL;
 
679
#endif
 
680
DependencyProperty *Shape::FillProperty = NULL;
 
681
DependencyProperty *Shape::StretchProperty = NULL;
 
682
DependencyProperty *Shape::StrokeDashArrayProperty = NULL;
 
683
DependencyProperty *Shape::StrokeDashCapProperty = NULL;
 
684
DependencyProperty *Shape::StrokeDashOffsetProperty = NULL;
 
685
DependencyProperty *Shape::StrokeEndLineCapProperty = NULL;
 
686
DependencyProperty *Shape::StrokeLineJoinProperty = NULL;
 
687
DependencyProperty *Shape::StrokeMiterLimitProperty = NULL;
 
688
DependencyProperty *Shape::StrokeProperty = NULL;
 
689
DependencyProperty *Shape::StrokeStartLineCapProperty = NULL;
 
690
DependencyProperty *Shape::StrokeThicknessProperty = NULL;
 
691
DependencyProperty *SkewTransform::AngleXProperty = NULL;
 
692
DependencyProperty *SkewTransform::AngleYProperty = NULL;
 
693
DependencyProperty *SkewTransform::CenterXProperty = NULL;
 
694
DependencyProperty *SkewTransform::CenterYProperty = NULL;
 
695
DependencyProperty *SolidColorBrush::ColorProperty = NULL;
 
696
DependencyProperty *SplineColorKeyFrame::KeySplineProperty = NULL;
 
697
DependencyProperty *SplineDoubleKeyFrame::KeySplineProperty = NULL;
 
698
DependencyProperty *SplinePointKeyFrame::KeySplineProperty = NULL;
 
699
#if SL_2_0
 
700
DependencyProperty *StackPanel::OrientationProperty = NULL;
 
701
#endif
 
702
DependencyProperty *Storyboard::TargetNameProperty = NULL;
 
703
DependencyProperty *Storyboard::TargetPropertyProperty = NULL;
 
704
DependencyProperty *Stroke::DrawingAttributesProperty = NULL;
 
705
DependencyProperty *Stroke::StylusPointsProperty = NULL;
 
706
#if SL_2_0
 
707
DependencyProperty *Style::SettersProperty = NULL;
 
708
DependencyProperty *Style::TargetTypeProperty = NULL;
 
709
#endif
 
710
DependencyProperty *StylusInfo::DeviceTypeProperty = NULL;
 
711
DependencyProperty *StylusInfo::IsInvertedProperty = NULL;
 
712
DependencyProperty *StylusPoint::PressureFactorProperty = NULL;
 
713
DependencyProperty *StylusPoint::XProperty = NULL;
 
714
DependencyProperty *StylusPoint::YProperty = NULL;
 
715
DependencyProperty *TextBlock::ActualHeightProperty = NULL;
 
716
DependencyProperty *TextBlock::ActualWidthProperty = NULL;
 
717
DependencyProperty *TextBlock::FontFamilyProperty = NULL;
 
718
DependencyProperty *TextBlock::FontSizeProperty = NULL;
 
719
DependencyProperty *TextBlock::FontStretchProperty = NULL;
 
720
DependencyProperty *TextBlock::FontStyleProperty = NULL;
 
721
DependencyProperty *TextBlock::FontWeightProperty = NULL;
 
722
DependencyProperty *TextBlock::ForegroundProperty = NULL;
 
723
DependencyProperty *TextBlock::InlinesProperty = NULL;
 
724
#if SL_2_0
 
725
DependencyProperty *TextBlock::LineHeightProperty = NULL;
 
726
DependencyProperty *TextBlock::LineStackingStrategyProperty = NULL;
 
727
DependencyProperty *TextBlock::PaddingProperty = NULL;
 
728
DependencyProperty *TextBlock::TextAlignmentProperty = NULL;
 
729
#endif
 
730
DependencyProperty *TextBlock::TextDecorationsProperty = NULL;
 
731
DependencyProperty *TextBlock::TextProperty = NULL;
 
732
DependencyProperty *TextBlock::TextWrappingProperty = NULL;
 
733
#if SL_2_0
 
734
DependencyProperty *TextBox::AcceptsReturnProperty = NULL;
 
735
DependencyProperty *TextBox::HorizontalScrollBarVisibilityProperty = NULL;
 
736
DependencyProperty *TextBox::IsReadOnlyProperty = NULL;
 
737
DependencyProperty *TextBox::MaxLengthProperty = NULL;
 
738
DependencyProperty *TextBox::SelectedTextProperty = NULL;
 
739
DependencyProperty *TextBox::SelectionBackgroundProperty = NULL;
 
740
DependencyProperty *TextBox::SelectionForegroundProperty = NULL;
 
741
DependencyProperty *TextBox::SelectionLengthProperty = NULL;
 
742
DependencyProperty *TextBox::SelectionStartProperty = NULL;
 
743
DependencyProperty *TextBox::TextAlignmentProperty = NULL;
 
744
DependencyProperty *TextBox::TextProperty = NULL;
 
745
DependencyProperty *TextBox::TextWrappingProperty = NULL;
 
746
DependencyProperty *TextBox::VerticalScrollBarVisibilityProperty = NULL;
 
747
#endif
 
748
DependencyProperty *TileBrush::AlignmentXProperty = NULL;
 
749
DependencyProperty *TileBrush::AlignmentYProperty = NULL;
 
750
DependencyProperty *TileBrush::StretchProperty = NULL;
 
751
DependencyProperty *Timeline::AutoReverseProperty = NULL;
 
752
DependencyProperty *Timeline::BeginTimeProperty = NULL;
 
753
DependencyProperty *Timeline::DurationProperty = NULL;
 
754
DependencyProperty *Timeline::FillBehaviorProperty = NULL;
 
755
DependencyProperty *Timeline::RepeatBehaviorProperty = NULL;
 
756
DependencyProperty *Timeline::SpeedRatioProperty = NULL;
 
757
DependencyProperty *TimelineGroup::ChildrenProperty = NULL;
 
758
DependencyProperty *TimelineMarker::TextProperty = NULL;
 
759
DependencyProperty *TimelineMarker::TimeProperty = NULL;
 
760
DependencyProperty *TimelineMarker::TypeProperty = NULL;
 
761
DependencyProperty *TransformGroup::ChildrenProperty = NULL;
 
762
DependencyProperty *TranslateTransform::XProperty = NULL;
 
763
DependencyProperty *TranslateTransform::YProperty = NULL;
 
764
DependencyProperty *UIElement::ClipProperty = NULL;
 
765
DependencyProperty *UIElement::CursorProperty = NULL;
 
766
DependencyProperty *UIElement::IsHitTestVisibleProperty = NULL;
 
767
DependencyProperty *UIElement::OpacityMaskProperty = NULL;
 
768
DependencyProperty *UIElement::OpacityProperty = NULL;
 
769
DependencyProperty *UIElement::RenderTransformOriginProperty = NULL;
 
770
DependencyProperty *UIElement::RenderTransformProperty = NULL;
 
771
DependencyProperty *UIElement::ResourcesProperty = NULL;
 
772
DependencyProperty *UIElement::TagProperty = NULL;
 
773
DependencyProperty *UIElement::TriggersProperty = NULL;
 
774
DependencyProperty *UIElement::VisibilityProperty = NULL;
 
775
#if SL_2_0
 
776
DependencyProperty *UserControl::ContentProperty = NULL;
 
777
#endif
 
778
DependencyProperty *VideoBrush::SourceNameProperty = NULL;
 
779
DependencyProperty *VisualBrush::VisualProperty = NULL;
 
780
 
 
781
bool
 
782
ArcSegment::GetIsLargeArc ()
 
783
{
 
784
        Value *value = GetValue (ArcSegment::IsLargeArcProperty);
 
785
        return value->AsBool ();
 
786
}
 
787
 
 
788
void
 
789
ArcSegment::SetIsLargeArc (bool value)
 
790
{
 
791
        SetValue (ArcSegment::IsLargeArcProperty, Value (value));
 
792
}
 
793
 
 
794
Point *
 
795
ArcSegment::GetPoint ()
 
796
{
 
797
        Value *value = GetValue (ArcSegment::PointProperty);
 
798
        return value ? value->AsPoint () : NULL;
 
799
}
 
800
 
 
801
void
 
802
ArcSegment::SetPoint (Point * value)
 
803
{
 
804
        if (!value) return;
 
805
        SetValue (ArcSegment::PointProperty, Value (*value));
 
806
}
 
807
 
 
808
double
 
809
ArcSegment::GetRotationAngle ()
 
810
{
 
811
        Value *value = GetValue (ArcSegment::RotationAngleProperty);
 
812
        return value->AsDouble ();
 
813
}
 
814
 
 
815
void
 
816
ArcSegment::SetRotationAngle (double value)
 
817
{
 
818
        SetValue (ArcSegment::RotationAngleProperty, Value (value));
 
819
}
 
820
 
 
821
Point *
 
822
ArcSegment::GetSize ()
 
823
{
 
824
        Value *value = GetValue (ArcSegment::SizeProperty);
 
825
        return value ? value->AsPoint () : NULL;
 
826
}
 
827
 
 
828
void
 
829
ArcSegment::SetSize (Point * value)
 
830
{
 
831
        if (!value) return;
 
832
        SetValue (ArcSegment::SizeProperty, Value (*value));
 
833
}
 
834
 
 
835
SweepDirection
 
836
ArcSegment::GetSweepDirection ()
 
837
{
 
838
        Value *value = GetValue (ArcSegment::SweepDirectionProperty);
 
839
        return (SweepDirection) value->AsInt32 ();
 
840
}
 
841
 
 
842
void
 
843
ArcSegment::SetSweepDirection (SweepDirection value)
 
844
{
 
845
        SetValue (ArcSegment::SweepDirectionProperty, Value (value));
 
846
}
 
847
 
 
848
Storyboard *
 
849
BeginStoryboard::GetStoryboard ()
 
850
{
 
851
        Value *value = GetValue (BeginStoryboard::StoryboardProperty);
 
852
        return value ? value->AsStoryboard () : NULL;
 
853
}
 
854
 
 
855
void
 
856
BeginStoryboard::SetStoryboard (Storyboard * value)
 
857
{
 
858
        SetValue (BeginStoryboard::StoryboardProperty, Value (value));
 
859
}
 
860
 
 
861
Point *
 
862
BezierSegment::GetPoint1 ()
 
863
{
 
864
        Value *value = GetValue (BezierSegment::Point1Property);
 
865
        return value ? value->AsPoint () : NULL;
 
866
}
 
867
 
 
868
void
 
869
BezierSegment::SetPoint1 (Point * value)
 
870
{
 
871
        if (!value) return;
 
872
        SetValue (BezierSegment::Point1Property, Value (*value));
 
873
}
 
874
 
 
875
Point *
 
876
BezierSegment::GetPoint2 ()
 
877
{
 
878
        Value *value = GetValue (BezierSegment::Point2Property);
 
879
        return value ? value->AsPoint () : NULL;
 
880
}
 
881
 
 
882
void
 
883
BezierSegment::SetPoint2 (Point * value)
 
884
{
 
885
        if (!value) return;
 
886
        SetValue (BezierSegment::Point2Property, Value (*value));
 
887
}
 
888
 
 
889
Point *
 
890
BezierSegment::GetPoint3 ()
 
891
{
 
892
        Value *value = GetValue (BezierSegment::Point3Property);
 
893
        return value ? value->AsPoint () : NULL;
 
894
}
 
895
 
 
896
void
 
897
BezierSegment::SetPoint3 (Point * value)
 
898
{
 
899
        if (!value) return;
 
900
        SetValue (BezierSegment::Point3Property, Value (*value));
 
901
}
 
902
 
 
903
#if SL_2_0
 
904
Brush *
 
905
Border::GetBackground ()
 
906
{
 
907
        Value *value = GetValue (Border::BackgroundProperty);
 
908
        return value ? value->AsBrush () : NULL;
 
909
}
 
910
 
 
911
void
 
912
Border::SetBackground (Brush * value)
 
913
{
 
914
        SetValue (Border::BackgroundProperty, Value (value));
 
915
}
 
916
 
 
917
#endif
 
918
#if SL_2_0
 
919
Brush *
 
920
Border::GetBorderBrush ()
 
921
{
 
922
        Value *value = GetValue (Border::BorderBrushProperty);
 
923
        return value ? value->AsBrush () : NULL;
 
924
}
 
925
 
 
926
void
 
927
Border::SetBorderBrush (Brush * value)
 
928
{
 
929
        SetValue (Border::BorderBrushProperty, Value (value));
 
930
}
 
931
 
 
932
#endif
 
933
#if SL_2_0
 
934
Thickness *
 
935
Border::GetBorderThickness ()
 
936
{
 
937
        Value *value = GetValue (Border::BorderThicknessProperty);
 
938
        return value ? value->AsThickness () : NULL;
 
939
}
 
940
 
 
941
void
 
942
Border::SetBorderThickness (Thickness * value)
 
943
{
 
944
        if (!value) return;
 
945
        SetValue (Border::BorderThicknessProperty, Value (*value));
 
946
}
 
947
 
 
948
#endif
 
949
#if SL_2_0
 
950
UIElement *
 
951
Border::GetChild ()
 
952
{
 
953
        Value *value = GetValue (Border::ChildProperty);
 
954
        return value ? value->AsUIElement () : NULL;
 
955
}
 
956
 
 
957
void
 
958
Border::SetChild (UIElement * value)
 
959
{
 
960
        SetValue (Border::ChildProperty, Value (value));
 
961
}
 
962
 
 
963
#endif
 
964
#if SL_2_0
 
965
CornerRadius *
 
966
Border::GetCornerRadius ()
 
967
{
 
968
        Value *value = GetValue (Border::CornerRadiusProperty);
 
969
        return value ? value->AsCornerRadius () : NULL;
 
970
}
 
971
 
 
972
void
 
973
Border::SetCornerRadius (CornerRadius * value)
 
974
{
 
975
        if (!value) return;
 
976
        SetValue (Border::CornerRadiusProperty, Value (*value));
 
977
}
 
978
 
 
979
#endif
 
980
#if SL_2_0
 
981
Thickness *
 
982
Border::GetPadding ()
 
983
{
 
984
        Value *value = GetValue (Border::PaddingProperty);
 
985
        return value ? value->AsThickness () : NULL;
 
986
}
 
987
 
 
988
void
 
989
Border::SetPadding (Thickness * value)
 
990
{
 
991
        if (!value) return;
 
992
        SetValue (Border::PaddingProperty, Value (*value));
 
993
}
 
994
 
 
995
#endif
 
996
double
 
997
Brush::GetOpacity ()
 
998
{
 
999
        Value *value = GetValue (Brush::OpacityProperty);
 
1000
        return value->AsDouble ();
 
1001
}
 
1002
 
 
1003
void
 
1004
Brush::SetOpacity (double value)
 
1005
{
 
1006
        SetValue (Brush::OpacityProperty, Value (value));
 
1007
}
 
1008
 
 
1009
Transform *
 
1010
Brush::GetRelativeTransform ()
 
1011
{
 
1012
        Value *value = GetValue (Brush::RelativeTransformProperty);
 
1013
        return value ? value->AsTransform () : NULL;
 
1014
}
 
1015
 
 
1016
void
 
1017
Brush::SetRelativeTransform (Transform * value)
 
1018
{
 
1019
        SetValue (Brush::RelativeTransformProperty, Value (value));
 
1020
}
 
1021
 
 
1022
Transform *
 
1023
Brush::GetTransform ()
 
1024
{
 
1025
        Value *value = GetValue (Brush::TransformProperty);
 
1026
        return value ? value->AsTransform () : NULL;
 
1027
}
 
1028
 
 
1029
void
 
1030
Brush::SetTransform (Transform * value)
 
1031
{
 
1032
        SetValue (Brush::TransformProperty, Value (value));
 
1033
}
 
1034
 
 
1035
double
 
1036
Canvas::GetLeft (DependencyObject *obj)
 
1037
{
 
1038
        Value *value = (!obj) ? NULL : obj->GetValue (Canvas::LeftProperty);
 
1039
        if (!value) value = Canvas::LeftProperty->GetDefaultValue();
 
1040
        return value->AsDouble ();
 
1041
}
 
1042
 
 
1043
void
 
1044
Canvas::SetLeft (DependencyObject *obj, double value)
 
1045
{
 
1046
        if (!obj) return;
 
1047
        obj->SetValue (Canvas::LeftProperty, Value (value));
 
1048
}
 
1049
 
 
1050
double
 
1051
Canvas::GetTop (DependencyObject *obj)
 
1052
{
 
1053
        Value *value = (!obj) ? NULL : obj->GetValue (Canvas::TopProperty);
 
1054
        if (!value) value = Canvas::TopProperty->GetDefaultValue();
 
1055
        return value->AsDouble ();
 
1056
}
 
1057
 
 
1058
void
 
1059
Canvas::SetTop (DependencyObject *obj, double value)
 
1060
{
 
1061
        if (!obj) return;
 
1062
        obj->SetValue (Canvas::TopProperty, Value (value));
 
1063
}
 
1064
 
 
1065
gint32
 
1066
Canvas::GetZIndex (DependencyObject *obj)
 
1067
{
 
1068
        Value *value = (!obj) ? NULL : obj->GetValue (Canvas::ZIndexProperty);
 
1069
        if (!value) value = Canvas::ZIndexProperty->GetDefaultValue();
 
1070
        return value->AsInt32 ();
 
1071
}
 
1072
 
 
1073
void
 
1074
Canvas::SetZIndex (DependencyObject *obj, gint32 value)
 
1075
{
 
1076
        if (!obj) return;
 
1077
        obj->SetValue (Canvas::ZIndexProperty, Value (value));
 
1078
}
 
1079
 
 
1080
gint32
 
1081
Collection::GetCount ()
 
1082
{
 
1083
        Value *value = GetValue (Collection::CountProperty);
 
1084
        return value->AsInt32 ();
 
1085
}
 
1086
 
 
1087
void
 
1088
Collection::SetCount (gint32 value)
 
1089
{
 
1090
        SetValue (Collection::CountProperty, Value (value));
 
1091
}
 
1092
 
 
1093
Color *
 
1094
ColorAnimation::GetBy ()
 
1095
{
 
1096
        Value *value = GetValue (ColorAnimation::ByProperty);
 
1097
        return value ? value->AsColor () : NULL;
 
1098
}
 
1099
 
 
1100
void
 
1101
ColorAnimation::SetBy (Color value)
 
1102
{
 
1103
        SetValue (ColorAnimation::ByProperty, Value (value));
 
1104
}
 
1105
 
 
1106
void
 
1107
ColorAnimation::SetBy (Color * value)
 
1108
{
 
1109
        if (!value)
 
1110
                SetValue (ColorAnimation::ByProperty, NULL);
 
1111
        else
 
1112
                SetValue (ColorAnimation::ByProperty, Value (*value));
 
1113
}
 
1114
 
 
1115
Color *
 
1116
ColorAnimation::GetFrom ()
 
1117
{
 
1118
        Value *value = GetValue (ColorAnimation::FromProperty);
 
1119
        return value ? value->AsColor () : NULL;
 
1120
}
 
1121
 
 
1122
void
 
1123
ColorAnimation::SetFrom (Color value)
 
1124
{
 
1125
        SetValue (ColorAnimation::FromProperty, Value (value));
 
1126
}
 
1127
 
 
1128
void
 
1129
ColorAnimation::SetFrom (Color * value)
 
1130
{
 
1131
        if (!value)
 
1132
                SetValue (ColorAnimation::FromProperty, NULL);
 
1133
        else
 
1134
                SetValue (ColorAnimation::FromProperty, Value (*value));
 
1135
}
 
1136
 
 
1137
Color *
 
1138
ColorAnimation::GetTo ()
 
1139
{
 
1140
        Value *value = GetValue (ColorAnimation::ToProperty);
 
1141
        return value ? value->AsColor () : NULL;
 
1142
}
 
1143
 
 
1144
void
 
1145
ColorAnimation::SetTo (Color value)
 
1146
{
 
1147
        SetValue (ColorAnimation::ToProperty, Value (value));
 
1148
}
 
1149
 
 
1150
void
 
1151
ColorAnimation::SetTo (Color * value)
 
1152
{
 
1153
        if (!value)
 
1154
                SetValue (ColorAnimation::ToProperty, NULL);
 
1155
        else
 
1156
                SetValue (ColorAnimation::ToProperty, Value (*value));
 
1157
}
 
1158
 
 
1159
ColorKeyFrameCollection *
 
1160
ColorAnimationUsingKeyFrames::GetKeyFrames ()
 
1161
{
 
1162
        Value *value = GetValue (ColorAnimationUsingKeyFrames::KeyFramesProperty);
 
1163
        return value ? value->AsColorKeyFrameCollection () : NULL;
 
1164
}
 
1165
 
 
1166
void
 
1167
ColorAnimationUsingKeyFrames::SetKeyFrames (ColorKeyFrameCollection * value)
 
1168
{
 
1169
        SetValue (ColorAnimationUsingKeyFrames::KeyFramesProperty, Value (value));
 
1170
}
 
1171
 
 
1172
KeyTime *
 
1173
ColorKeyFrame::GetKeyTime ()
 
1174
{
 
1175
        Value *value = DependencyObject::GetValue (ColorKeyFrame::KeyTimeProperty);
 
1176
        return value ? value->AsKeyTime () : NULL;
 
1177
}
 
1178
 
 
1179
void
 
1180
ColorKeyFrame::SetKeyTime (KeyTime value)
 
1181
{
 
1182
        DependencyObject::SetValue (ColorKeyFrame::KeyTimeProperty, Value (value));
 
1183
}
 
1184
 
 
1185
void
 
1186
ColorKeyFrame::SetKeyTime (KeyTime * value)
 
1187
{
 
1188
        if (!value)
 
1189
                DependencyObject::SetValue (ColorKeyFrame::KeyTimeProperty, NULL);
 
1190
        else
 
1191
                DependencyObject::SetValue (ColorKeyFrame::KeyTimeProperty, Value (*value));
 
1192
}
 
1193
 
 
1194
Color *
 
1195
ColorKeyFrame::GetValue ()
 
1196
{
 
1197
        Value *value = DependencyObject::GetValue (ColorKeyFrame::ValueProperty);
 
1198
        return value ? value->AsColor () : NULL;
 
1199
}
 
1200
 
 
1201
void
 
1202
ColorKeyFrame::SetValue (Color value)
 
1203
{
 
1204
        DependencyObject::SetValue (ColorKeyFrame::ValueProperty, Value (value));
 
1205
}
 
1206
 
 
1207
void
 
1208
ColorKeyFrame::SetValue (Color * value)
 
1209
{
 
1210
        if (!value)
 
1211
                DependencyObject::SetValue (ColorKeyFrame::ValueProperty, NULL);
 
1212
        else
 
1213
                DependencyObject::SetValue (ColorKeyFrame::ValueProperty, Value (*value));
 
1214
}
 
1215
 
 
1216
#if SL_2_0
 
1217
double
 
1218
ColumnDefinition::GetMaxWidth ()
 
1219
{
 
1220
        Value *value = GetValue (ColumnDefinition::MaxWidthProperty);
 
1221
        return value->AsDouble ();
 
1222
}
 
1223
 
 
1224
void
 
1225
ColumnDefinition::SetMaxWidth (double value)
 
1226
{
 
1227
        SetValue (ColumnDefinition::MaxWidthProperty, Value (value));
 
1228
}
 
1229
 
 
1230
#endif
 
1231
#if SL_2_0
 
1232
double
 
1233
ColumnDefinition::GetMinWidth ()
 
1234
{
 
1235
        Value *value = GetValue (ColumnDefinition::MinWidthProperty);
 
1236
        return value->AsDouble ();
 
1237
}
 
1238
 
 
1239
void
 
1240
ColumnDefinition::SetMinWidth (double value)
 
1241
{
 
1242
        SetValue (ColumnDefinition::MinWidthProperty, Value (value));
 
1243
}
 
1244
 
 
1245
#endif
 
1246
#if SL_2_0
 
1247
GridLength *
 
1248
ColumnDefinition::GetWidth ()
 
1249
{
 
1250
        Value *value = GetValue (ColumnDefinition::WidthProperty);
 
1251
        return value ? value->AsGridLength () : NULL;
 
1252
}
 
1253
 
 
1254
void
 
1255
ColumnDefinition::SetWidth (GridLength * value)
 
1256
{
 
1257
        if (!value) return;
 
1258
        SetValue (ColumnDefinition::WidthProperty, Value (*value));
 
1259
}
 
1260
 
 
1261
#endif
 
1262
#if SL_2_0
 
1263
Brush *
 
1264
Control::GetBackground ()
 
1265
{
 
1266
        Value *value = GetValue (Control::BackgroundProperty);
 
1267
        return value ? value->AsBrush () : NULL;
 
1268
}
 
1269
 
 
1270
void
 
1271
Control::SetBackground (Brush * value)
 
1272
{
 
1273
        SetValue (Control::BackgroundProperty, Value (value));
 
1274
}
 
1275
 
 
1276
#endif
 
1277
#if SL_2_0
 
1278
Brush *
 
1279
Control::GetBorderBrush ()
 
1280
{
 
1281
        Value *value = GetValue (Control::BorderBrushProperty);
 
1282
        return value ? value->AsBrush () : NULL;
 
1283
}
 
1284
 
 
1285
void
 
1286
Control::SetBorderBrush (Brush * value)
 
1287
{
 
1288
        SetValue (Control::BorderBrushProperty, Value (value));
 
1289
}
 
1290
 
 
1291
#endif
 
1292
#if SL_2_0
 
1293
Thickness *
 
1294
Control::GetBorderThickness ()
 
1295
{
 
1296
        Value *value = GetValue (Control::BorderThicknessProperty);
 
1297
        return value ? value->AsThickness () : NULL;
 
1298
}
 
1299
 
 
1300
void
 
1301
Control::SetBorderThickness (Thickness * value)
 
1302
{
 
1303
        if (!value) return;
 
1304
        SetValue (Control::BorderThicknessProperty, Value (*value));
 
1305
}
 
1306
 
 
1307
#endif
 
1308
#if SL_2_0
 
1309
const char *
 
1310
Control::GetFontFamily ()
 
1311
{
 
1312
        Value *value = GetValue (Control::FontFamilyProperty);
 
1313
        return value ? value->AsString () : NULL;
 
1314
}
 
1315
 
 
1316
void
 
1317
Control::SetFontFamily (const char * value)
 
1318
{
 
1319
        SetValue (Control::FontFamilyProperty, Value (value));
 
1320
}
 
1321
 
 
1322
#endif
 
1323
#if SL_2_0
 
1324
double
 
1325
Control::GetFontSize ()
 
1326
{
 
1327
        Value *value = GetValue (Control::FontSizeProperty);
 
1328
        return value->AsDouble ();
 
1329
}
 
1330
 
 
1331
void
 
1332
Control::SetFontSize (double value)
 
1333
{
 
1334
        SetValue (Control::FontSizeProperty, Value (value));
 
1335
}
 
1336
 
 
1337
#endif
 
1338
#if SL_2_0
 
1339
FontStretches
 
1340
Control::GetFontStretch ()
 
1341
{
 
1342
        Value *value = GetValue (Control::FontStretchProperty);
 
1343
        return (FontStretches) value->AsInt32 ();
 
1344
}
 
1345
 
 
1346
void
 
1347
Control::SetFontStretch (FontStretches value)
 
1348
{
 
1349
        SetValue (Control::FontStretchProperty, Value (value));
 
1350
}
 
1351
 
 
1352
#endif
 
1353
#if SL_2_0
 
1354
FontStyles
 
1355
Control::GetFontStyle ()
 
1356
{
 
1357
        Value *value = GetValue (Control::FontStyleProperty);
 
1358
        return (FontStyles) value->AsInt32 ();
 
1359
}
 
1360
 
 
1361
void
 
1362
Control::SetFontStyle (FontStyles value)
 
1363
{
 
1364
        SetValue (Control::FontStyleProperty, Value (value));
 
1365
}
 
1366
 
 
1367
#endif
 
1368
#if SL_2_0
 
1369
FontWeights
 
1370
Control::GetFontWeight ()
 
1371
{
 
1372
        Value *value = GetValue (Control::FontWeightProperty);
 
1373
        return (FontWeights) value->AsInt32 ();
 
1374
}
 
1375
 
 
1376
void
 
1377
Control::SetFontWeight (FontWeights value)
 
1378
{
 
1379
        SetValue (Control::FontWeightProperty, Value (value));
 
1380
}
 
1381
 
 
1382
#endif
 
1383
#if SL_2_0
 
1384
Brush *
 
1385
Control::GetForeground ()
 
1386
{
 
1387
        Value *value = GetValue (Control::ForegroundProperty);
 
1388
        return value ? value->AsBrush () : NULL;
 
1389
}
 
1390
 
 
1391
void
 
1392
Control::SetForeground (Brush * value)
 
1393
{
 
1394
        SetValue (Control::ForegroundProperty, Value (value));
 
1395
}
 
1396
 
 
1397
#endif
 
1398
#if SL_2_0
 
1399
HorizontalAlignment
 
1400
Control::GetHorizontalContentAlignment ()
 
1401
{
 
1402
        Value *value = GetValue (Control::HorizontalContentAlignmentProperty);
 
1403
        return (HorizontalAlignment) value->AsInt32 ();
 
1404
}
 
1405
 
 
1406
void
 
1407
Control::SetHorizontalContentAlignment (HorizontalAlignment value)
 
1408
{
 
1409
        SetValue (Control::HorizontalContentAlignmentProperty, Value (value));
 
1410
}
 
1411
 
 
1412
#endif
 
1413
#if SL_2_0
 
1414
bool
 
1415
Control::GetIsTabStop ()
 
1416
{
 
1417
        Value *value = GetValue (Control::IsTabStopProperty);
 
1418
        return value->AsBool ();
 
1419
}
 
1420
 
 
1421
void
 
1422
Control::SetIsTabStop (bool value)
 
1423
{
 
1424
        SetValue (Control::IsTabStopProperty, Value (value));
 
1425
}
 
1426
 
 
1427
#endif
 
1428
#if SL_2_0
 
1429
Thickness *
 
1430
Control::GetPadding ()
 
1431
{
 
1432
        Value *value = GetValue (Control::PaddingProperty);
 
1433
        return value ? value->AsThickness () : NULL;
 
1434
}
 
1435
 
 
1436
void
 
1437
Control::SetPadding (Thickness * value)
 
1438
{
 
1439
        if (!value) return;
 
1440
        SetValue (Control::PaddingProperty, Value (*value));
 
1441
}
 
1442
 
 
1443
#endif
 
1444
#if SL_2_0
 
1445
gint32
 
1446
Control::GetTabIndex ()
 
1447
{
 
1448
        Value *value = GetValue (Control::TabIndexProperty);
 
1449
        return value->AsInt32 ();
 
1450
}
 
1451
 
 
1452
void
 
1453
Control::SetTabIndex (gint32 value)
 
1454
{
 
1455
        SetValue (Control::TabIndexProperty, Value (value));
 
1456
}
 
1457
 
 
1458
#endif
 
1459
#if SL_2_0
 
1460
KeyboardNavigationMode
 
1461
Control::GetTabNavigation ()
 
1462
{
 
1463
        Value *value = GetValue (Control::TabNavigationProperty);
 
1464
        return (KeyboardNavigationMode) value->AsInt32 ();
 
1465
}
 
1466
 
 
1467
void
 
1468
Control::SetTabNavigation (KeyboardNavigationMode value)
 
1469
{
 
1470
        SetValue (Control::TabNavigationProperty, Value (value));
 
1471
}
 
1472
 
 
1473
#endif
 
1474
#if SL_2_0
 
1475
ControlTemplate *
 
1476
Control::GetTemplate ()
 
1477
{
 
1478
        Value *value = GetValue (Control::TemplateProperty);
 
1479
        return value ? value->AsControlTemplate () : NULL;
 
1480
}
 
1481
 
 
1482
void
 
1483
Control::SetTemplate (ControlTemplate * value)
 
1484
{
 
1485
        SetValue (Control::TemplateProperty, Value (value));
 
1486
}
 
1487
 
 
1488
#endif
 
1489
#if SL_2_0
 
1490
VerticalAlignment
 
1491
Control::GetVerticalContentAlignment ()
 
1492
{
 
1493
        Value *value = GetValue (Control::VerticalContentAlignmentProperty);
 
1494
        return (VerticalAlignment) value->AsInt32 ();
 
1495
}
 
1496
 
 
1497
void
 
1498
Control::SetVerticalContentAlignment (VerticalAlignment value)
 
1499
{
 
1500
        SetValue (Control::VerticalContentAlignmentProperty, Value (value));
 
1501
}
 
1502
 
 
1503
#endif
 
1504
const char *
 
1505
DependencyObject::GetName ()
 
1506
{
 
1507
        Value *value = GetValue (DependencyObject::NameProperty);
 
1508
        return value ? value->AsString () : NULL;
 
1509
}
 
1510
 
 
1511
void
 
1512
DependencyObject::SetName (const char * value)
 
1513
{
 
1514
        SetValue (DependencyObject::NameProperty, Value (value));
 
1515
}
 
1516
 
 
1517
double *
 
1518
DoubleAnimation::GetBy ()
 
1519
{
 
1520
        Value *value = GetValue (DoubleAnimation::ByProperty);
 
1521
        return value ? value->AsNullableDouble () : NULL;
 
1522
}
 
1523
 
 
1524
void
 
1525
DoubleAnimation::SetBy (double value)
 
1526
{
 
1527
        SetValue (DoubleAnimation::ByProperty, Value (value));
 
1528
}
 
1529
 
 
1530
void
 
1531
DoubleAnimation::SetBy (double * value)
 
1532
{
 
1533
        if (!value)
 
1534
                SetValue (DoubleAnimation::ByProperty, NULL);
 
1535
        else
 
1536
                SetValue (DoubleAnimation::ByProperty, Value (*value));
 
1537
}
 
1538
 
 
1539
double *
 
1540
DoubleAnimation::GetFrom ()
 
1541
{
 
1542
        Value *value = GetValue (DoubleAnimation::FromProperty);
 
1543
        return value ? value->AsNullableDouble () : NULL;
 
1544
}
 
1545
 
 
1546
void
 
1547
DoubleAnimation::SetFrom (double value)
 
1548
{
 
1549
        SetValue (DoubleAnimation::FromProperty, Value (value));
 
1550
}
 
1551
 
 
1552
void
 
1553
DoubleAnimation::SetFrom (double * value)
 
1554
{
 
1555
        if (!value)
 
1556
                SetValue (DoubleAnimation::FromProperty, NULL);
 
1557
        else
 
1558
                SetValue (DoubleAnimation::FromProperty, Value (*value));
 
1559
}
 
1560
 
 
1561
double *
 
1562
DoubleAnimation::GetTo ()
 
1563
{
 
1564
        Value *value = GetValue (DoubleAnimation::ToProperty);
 
1565
        return value ? value->AsNullableDouble () : NULL;
 
1566
}
 
1567
 
 
1568
void
 
1569
DoubleAnimation::SetTo (double value)
 
1570
{
 
1571
        SetValue (DoubleAnimation::ToProperty, Value (value));
 
1572
}
 
1573
 
 
1574
void
 
1575
DoubleAnimation::SetTo (double * value)
 
1576
{
 
1577
        if (!value)
 
1578
                SetValue (DoubleAnimation::ToProperty, NULL);
 
1579
        else
 
1580
                SetValue (DoubleAnimation::ToProperty, Value (*value));
 
1581
}
 
1582
 
 
1583
DoubleKeyFrameCollection *
 
1584
DoubleAnimationUsingKeyFrames::GetKeyFrames ()
 
1585
{
 
1586
        Value *value = GetValue (DoubleAnimationUsingKeyFrames::KeyFramesProperty);
 
1587
        return value ? value->AsDoubleKeyFrameCollection () : NULL;
 
1588
}
 
1589
 
 
1590
void
 
1591
DoubleAnimationUsingKeyFrames::SetKeyFrames (DoubleKeyFrameCollection * value)
 
1592
{
 
1593
        SetValue (DoubleAnimationUsingKeyFrames::KeyFramesProperty, Value (value));
 
1594
}
 
1595
 
 
1596
KeyTime *
 
1597
DoubleKeyFrame::GetKeyTime ()
 
1598
{
 
1599
        Value *value = DependencyObject::GetValue (DoubleKeyFrame::KeyTimeProperty);
 
1600
        return value ? value->AsKeyTime () : NULL;
 
1601
}
 
1602
 
 
1603
void
 
1604
DoubleKeyFrame::SetKeyTime (KeyTime value)
 
1605
{
 
1606
        DependencyObject::SetValue (DoubleKeyFrame::KeyTimeProperty, Value (value));
 
1607
}
 
1608
 
 
1609
void
 
1610
DoubleKeyFrame::SetKeyTime (KeyTime * value)
 
1611
{
 
1612
        if (!value)
 
1613
                DependencyObject::SetValue (DoubleKeyFrame::KeyTimeProperty, NULL);
 
1614
        else
 
1615
                DependencyObject::SetValue (DoubleKeyFrame::KeyTimeProperty, Value (*value));
 
1616
}
 
1617
 
 
1618
double *
 
1619
DoubleKeyFrame::GetValue ()
 
1620
{
 
1621
        Value *value = DependencyObject::GetValue (DoubleKeyFrame::ValueProperty);
 
1622
        return value ? value->AsNullableDouble () : NULL;
 
1623
}
 
1624
 
 
1625
void
 
1626
DoubleKeyFrame::SetValue (double value)
 
1627
{
 
1628
        DependencyObject::SetValue (DoubleKeyFrame::ValueProperty, Value (value));
 
1629
}
 
1630
 
 
1631
void
 
1632
DoubleKeyFrame::SetValue (double * value)
 
1633
{
 
1634
        if (!value)
 
1635
                DependencyObject::SetValue (DoubleKeyFrame::ValueProperty, NULL);
 
1636
        else
 
1637
                DependencyObject::SetValue (DoubleKeyFrame::ValueProperty, Value (*value));
 
1638
}
 
1639
 
 
1640
Color *
 
1641
DrawingAttributes::GetColor ()
 
1642
{
 
1643
        Value *value = GetValue (DrawingAttributes::ColorProperty);
 
1644
        return value ? value->AsColor () : NULL;
 
1645
}
 
1646
 
 
1647
void
 
1648
DrawingAttributes::SetColor (Color * value)
 
1649
{
 
1650
        if (!value) return;
 
1651
        SetValue (DrawingAttributes::ColorProperty, Value (*value));
 
1652
}
 
1653
 
 
1654
double
 
1655
DrawingAttributes::GetHeight ()
 
1656
{
 
1657
        Value *value = GetValue (DrawingAttributes::HeightProperty);
 
1658
        return value->AsDouble ();
 
1659
}
 
1660
 
 
1661
void
 
1662
DrawingAttributes::SetHeight (double value)
 
1663
{
 
1664
        SetValue (DrawingAttributes::HeightProperty, Value (value));
 
1665
}
 
1666
 
 
1667
Color *
 
1668
DrawingAttributes::GetOutlineColor ()
 
1669
{
 
1670
        Value *value = GetValue (DrawingAttributes::OutlineColorProperty);
 
1671
        return value ? value->AsColor () : NULL;
 
1672
}
 
1673
 
 
1674
void
 
1675
DrawingAttributes::SetOutlineColor (Color * value)
 
1676
{
 
1677
        if (!value) return;
 
1678
        SetValue (DrawingAttributes::OutlineColorProperty, Value (*value));
 
1679
}
 
1680
 
 
1681
double
 
1682
DrawingAttributes::GetWidth ()
 
1683
{
 
1684
        Value *value = GetValue (DrawingAttributes::WidthProperty);
 
1685
        return value->AsDouble ();
 
1686
}
 
1687
 
 
1688
void
 
1689
DrawingAttributes::SetWidth (double value)
 
1690
{
 
1691
        SetValue (DrawingAttributes::WidthProperty, Value (value));
 
1692
}
 
1693
 
 
1694
Point *
 
1695
EllipseGeometry::GetCenter ()
 
1696
{
 
1697
        Value *value = GetValue (EllipseGeometry::CenterProperty);
 
1698
        return value ? value->AsPoint () : NULL;
 
1699
}
 
1700
 
 
1701
void
 
1702
EllipseGeometry::SetCenter (Point * value)
 
1703
{
 
1704
        if (!value) return;
 
1705
        SetValue (EllipseGeometry::CenterProperty, Value (*value));
 
1706
}
 
1707
 
 
1708
double
 
1709
EllipseGeometry::GetRadiusX ()
 
1710
{
 
1711
        Value *value = GetValue (EllipseGeometry::RadiusXProperty);
 
1712
        return value->AsDouble ();
 
1713
}
 
1714
 
 
1715
void
 
1716
EllipseGeometry::SetRadiusX (double value)
 
1717
{
 
1718
        SetValue (EllipseGeometry::RadiusXProperty, Value (value));
 
1719
}
 
1720
 
 
1721
double
 
1722
EllipseGeometry::GetRadiusY ()
 
1723
{
 
1724
        Value *value = GetValue (EllipseGeometry::RadiusYProperty);
 
1725
        return value->AsDouble ();
 
1726
}
 
1727
 
 
1728
void
 
1729
EllipseGeometry::SetRadiusY (double value)
 
1730
{
 
1731
        SetValue (EllipseGeometry::RadiusYProperty, Value (value));
 
1732
}
 
1733
 
 
1734
TriggerActionCollection *
 
1735
EventTrigger::GetActions ()
 
1736
{
 
1737
        Value *value = GetValue (EventTrigger::ActionsProperty);
 
1738
        return value ? value->AsTriggerActionCollection () : NULL;
 
1739
}
 
1740
 
 
1741
void
 
1742
EventTrigger::SetActions (TriggerActionCollection * value)
 
1743
{
 
1744
        SetValue (EventTrigger::ActionsProperty, Value (value));
 
1745
}
 
1746
 
 
1747
const char *
 
1748
EventTrigger::GetRoutedEvent ()
 
1749
{
 
1750
        Value *value = GetValue (EventTrigger::RoutedEventProperty);
 
1751
        return value ? value->AsString () : NULL;
 
1752
}
 
1753
 
 
1754
void
 
1755
EventTrigger::SetRoutedEvent (const char * value)
 
1756
{
 
1757
        SetValue (EventTrigger::RoutedEventProperty, Value (value));
 
1758
}
 
1759
 
 
1760
#if SL_2_0
 
1761
double
 
1762
FrameworkElement::GetActualHeight ()
 
1763
{
 
1764
        Value *value = GetValue (FrameworkElement::ActualHeightProperty);
 
1765
        return value->AsDouble ();
 
1766
}
 
1767
 
 
1768
void
 
1769
FrameworkElement::SetActualHeight (double value)
 
1770
{
 
1771
        SetValue (FrameworkElement::ActualHeightProperty, Value (value));
 
1772
}
 
1773
 
 
1774
#endif
 
1775
#if SL_2_0
 
1776
double
 
1777
FrameworkElement::GetActualWidth ()
 
1778
{
 
1779
        Value *value = GetValue (FrameworkElement::ActualWidthProperty);
 
1780
        return value->AsDouble ();
 
1781
}
 
1782
 
 
1783
void
 
1784
FrameworkElement::SetActualWidth (double value)
 
1785
{
 
1786
        SetValue (FrameworkElement::ActualWidthProperty, Value (value));
 
1787
}
 
1788
 
 
1789
#endif
 
1790
double
 
1791
FrameworkElement::GetHeight ()
 
1792
{
 
1793
        Value *value = GetValue (FrameworkElement::HeightProperty);
 
1794
        return value->AsDouble ();
 
1795
}
 
1796
 
 
1797
void
 
1798
FrameworkElement::SetHeight (double value)
 
1799
{
 
1800
        SetValue (FrameworkElement::HeightProperty, Value (value));
 
1801
}
 
1802
 
 
1803
#if SL_2_0
 
1804
HorizontalAlignment
 
1805
FrameworkElement::GetHorizontalAlignment ()
 
1806
{
 
1807
        Value *value = GetValue (FrameworkElement::HorizontalAlignmentProperty);
 
1808
        return (HorizontalAlignment) value->AsInt32 ();
 
1809
}
 
1810
 
 
1811
void
 
1812
FrameworkElement::SetHorizontalAlignment (HorizontalAlignment value)
 
1813
{
 
1814
        SetValue (FrameworkElement::HorizontalAlignmentProperty, Value (value));
 
1815
}
 
1816
 
 
1817
#endif
 
1818
#if SL_2_0
 
1819
Thickness *
 
1820
FrameworkElement::GetMargin ()
 
1821
{
 
1822
        Value *value = GetValue (FrameworkElement::MarginProperty);
 
1823
        return value ? value->AsThickness () : NULL;
 
1824
}
 
1825
 
 
1826
void
 
1827
FrameworkElement::SetMargin (Thickness * value)
 
1828
{
 
1829
        if (!value) return;
 
1830
        SetValue (FrameworkElement::MarginProperty, Value (*value));
 
1831
}
 
1832
 
 
1833
#endif
 
1834
#if SL_2_0
 
1835
double
 
1836
FrameworkElement::GetMaxHeight ()
 
1837
{
 
1838
        Value *value = GetValue (FrameworkElement::MaxHeightProperty);
 
1839
        return value->AsDouble ();
 
1840
}
 
1841
 
 
1842
void
 
1843
FrameworkElement::SetMaxHeight (double value)
 
1844
{
 
1845
        SetValue (FrameworkElement::MaxHeightProperty, Value (value));
 
1846
}
 
1847
 
 
1848
#endif
 
1849
#if SL_2_0
 
1850
double
 
1851
FrameworkElement::GetMaxWidth ()
 
1852
{
 
1853
        Value *value = GetValue (FrameworkElement::MaxWidthProperty);
 
1854
        return value->AsDouble ();
 
1855
}
 
1856
 
 
1857
void
 
1858
FrameworkElement::SetMaxWidth (double value)
 
1859
{
 
1860
        SetValue (FrameworkElement::MaxWidthProperty, Value (value));
 
1861
}
 
1862
 
 
1863
#endif
 
1864
#if SL_2_0
 
1865
double
 
1866
FrameworkElement::GetMinHeight ()
 
1867
{
 
1868
        Value *value = GetValue (FrameworkElement::MinHeightProperty);
 
1869
        return value->AsDouble ();
 
1870
}
 
1871
 
 
1872
void
 
1873
FrameworkElement::SetMinHeight (double value)
 
1874
{
 
1875
        SetValue (FrameworkElement::MinHeightProperty, Value (value));
 
1876
}
 
1877
 
 
1878
#endif
 
1879
#if SL_2_0
 
1880
double
 
1881
FrameworkElement::GetMinWidth ()
 
1882
{
 
1883
        Value *value = GetValue (FrameworkElement::MinWidthProperty);
 
1884
        return value->AsDouble ();
 
1885
}
 
1886
 
 
1887
void
 
1888
FrameworkElement::SetMinWidth (double value)
 
1889
{
 
1890
        SetValue (FrameworkElement::MinWidthProperty, Value (value));
 
1891
}
 
1892
 
 
1893
#endif
 
1894
#if SL_2_0
 
1895
Style *
 
1896
FrameworkElement::GetStyle ()
 
1897
{
 
1898
        Value *value = GetValue (FrameworkElement::StyleProperty);
 
1899
        return value ? value->AsStyle () : NULL;
 
1900
}
 
1901
 
 
1902
void
 
1903
FrameworkElement::SetStyle (Style * value)
 
1904
{
 
1905
        SetValue (FrameworkElement::StyleProperty, Value (value));
 
1906
}
 
1907
 
 
1908
#endif
 
1909
#if SL_2_0
 
1910
VerticalAlignment
 
1911
FrameworkElement::GetVerticalAlignment ()
 
1912
{
 
1913
        Value *value = GetValue (FrameworkElement::VerticalAlignmentProperty);
 
1914
        return (VerticalAlignment) value->AsInt32 ();
 
1915
}
 
1916
 
 
1917
void
 
1918
FrameworkElement::SetVerticalAlignment (VerticalAlignment value)
 
1919
{
 
1920
        SetValue (FrameworkElement::VerticalAlignmentProperty, Value (value));
 
1921
}
 
1922
 
 
1923
#endif
 
1924
double
 
1925
FrameworkElement::GetWidth ()
 
1926
{
 
1927
        Value *value = GetValue (FrameworkElement::WidthProperty);
 
1928
        return value->AsDouble ();
 
1929
}
 
1930
 
 
1931
void
 
1932
FrameworkElement::SetWidth (double value)
 
1933
{
 
1934
        SetValue (FrameworkElement::WidthProperty, Value (value));
 
1935
}
 
1936
 
 
1937
FillRule
 
1938
Geometry::GetFillRule ()
 
1939
{
 
1940
        Value *value = GetValue (Geometry::FillRuleProperty);
 
1941
        return (FillRule) value->AsInt32 ();
 
1942
}
 
1943
 
 
1944
void
 
1945
Geometry::SetFillRule (FillRule value)
 
1946
{
 
1947
        SetValue (Geometry::FillRuleProperty, Value (value));
 
1948
}
 
1949
 
 
1950
Transform *
 
1951
Geometry::GetTransform ()
 
1952
{
 
1953
        Value *value = GetValue (Geometry::TransformProperty);
 
1954
        return value ? value->AsTransform () : NULL;
 
1955
}
 
1956
 
 
1957
void
 
1958
Geometry::SetTransform (Transform * value)
 
1959
{
 
1960
        SetValue (Geometry::TransformProperty, Value (value));
 
1961
}
 
1962
 
 
1963
GeometryCollection *
 
1964
GeometryGroup::GetChildren ()
 
1965
{
 
1966
        Value *value = GetValue (GeometryGroup::ChildrenProperty);
 
1967
        return value ? value->AsGeometryCollection () : NULL;
 
1968
}
 
1969
 
 
1970
void
 
1971
GeometryGroup::SetChildren (GeometryCollection * value)
 
1972
{
 
1973
        SetValue (GeometryGroup::ChildrenProperty, Value (value));
 
1974
}
 
1975
 
 
1976
double
 
1977
Glyphs::GetFontRenderingEmSize ()
 
1978
{
 
1979
        Value *value = GetValue (Glyphs::FontRenderingEmSizeProperty);
 
1980
        return value->AsDouble ();
 
1981
}
 
1982
 
 
1983
void
 
1984
Glyphs::SetFontRenderingEmSize (double value)
 
1985
{
 
1986
        SetValue (Glyphs::FontRenderingEmSizeProperty, Value (value));
 
1987
}
 
1988
 
 
1989
const char *
 
1990
Glyphs::GetFontUri ()
 
1991
{
 
1992
        Value *value = GetValue (Glyphs::FontUriProperty);
 
1993
        return value ? value->AsString () : NULL;
 
1994
}
 
1995
 
 
1996
void
 
1997
Glyphs::SetFontUri (const char * value)
 
1998
{
 
1999
        SetValue (Glyphs::FontUriProperty, Value (value));
 
2000
}
 
2001
 
 
2002
const char *
 
2003
Glyphs::GetIndices ()
 
2004
{
 
2005
        Value *value = GetValue (Glyphs::IndicesProperty);
 
2006
        return value ? value->AsString () : NULL;
 
2007
}
 
2008
 
 
2009
void
 
2010
Glyphs::SetIndices (const char * value)
 
2011
{
 
2012
        SetValue (Glyphs::IndicesProperty, Value (value));
 
2013
}
 
2014
 
 
2015
double
 
2016
Glyphs::GetOriginX ()
 
2017
{
 
2018
        Value *value = GetValue (Glyphs::OriginXProperty);
 
2019
        return value->AsDouble ();
 
2020
}
 
2021
 
 
2022
void
 
2023
Glyphs::SetOriginX (double value)
 
2024
{
 
2025
        SetValue (Glyphs::OriginXProperty, Value (value));
 
2026
}
 
2027
 
 
2028
double
 
2029
Glyphs::GetOriginY ()
 
2030
{
 
2031
        Value *value = GetValue (Glyphs::OriginYProperty);
 
2032
        return value->AsDouble ();
 
2033
}
 
2034
 
 
2035
void
 
2036
Glyphs::SetOriginY (double value)
 
2037
{
 
2038
        SetValue (Glyphs::OriginYProperty, Value (value));
 
2039
}
 
2040
 
 
2041
StyleSimulations
 
2042
Glyphs::GetStyleSimulations ()
 
2043
{
 
2044
        Value *value = GetValue (Glyphs::StyleSimulationsProperty);
 
2045
        return (StyleSimulations) value->AsInt32 ();
 
2046
}
 
2047
 
 
2048
void
 
2049
Glyphs::SetStyleSimulations (StyleSimulations value)
 
2050
{
 
2051
        SetValue (Glyphs::StyleSimulationsProperty, Value (value));
 
2052
}
 
2053
 
 
2054
const char *
 
2055
Glyphs::GetUnicodeString ()
 
2056
{
 
2057
        Value *value = GetValue (Glyphs::UnicodeStringProperty);
 
2058
        return value ? value->AsString () : NULL;
 
2059
}
 
2060
 
 
2061
void
 
2062
Glyphs::SetUnicodeString (const char * value)
 
2063
{
 
2064
        SetValue (Glyphs::UnicodeStringProperty, Value (value));
 
2065
}
 
2066
 
 
2067
ColorInterpolationMode
 
2068
GradientBrush::GetColorInterpolationMode ()
 
2069
{
 
2070
        Value *value = GetValue (GradientBrush::ColorInterpolationModeProperty);
 
2071
        return (ColorInterpolationMode) value->AsInt32 ();
 
2072
}
 
2073
 
 
2074
void
 
2075
GradientBrush::SetColorInterpolationMode (ColorInterpolationMode value)
 
2076
{
 
2077
        SetValue (GradientBrush::ColorInterpolationModeProperty, Value (value));
 
2078
}
 
2079
 
 
2080
GradientStopCollection *
 
2081
GradientBrush::GetGradientStops ()
 
2082
{
 
2083
        Value *value = GetValue (GradientBrush::GradientStopsProperty);
 
2084
        return value ? value->AsGradientStopCollection () : NULL;
 
2085
}
 
2086
 
 
2087
void
 
2088
GradientBrush::SetGradientStops (GradientStopCollection * value)
 
2089
{
 
2090
        SetValue (GradientBrush::GradientStopsProperty, Value (value));
 
2091
}
 
2092
 
 
2093
BrushMappingMode
 
2094
GradientBrush::GetMappingMode ()
 
2095
{
 
2096
        Value *value = GetValue (GradientBrush::MappingModeProperty);
 
2097
        return (BrushMappingMode) value->AsInt32 ();
 
2098
}
 
2099
 
 
2100
void
 
2101
GradientBrush::SetMappingMode (BrushMappingMode value)
 
2102
{
 
2103
        SetValue (GradientBrush::MappingModeProperty, Value (value));
 
2104
}
 
2105
 
 
2106
GradientSpreadMethod
 
2107
GradientBrush::GetSpreadMethod ()
 
2108
{
 
2109
        Value *value = GetValue (GradientBrush::SpreadMethodProperty);
 
2110
        return (GradientSpreadMethod) value->AsInt32 ();
 
2111
}
 
2112
 
 
2113
void
 
2114
GradientBrush::SetSpreadMethod (GradientSpreadMethod value)
 
2115
{
 
2116
        SetValue (GradientBrush::SpreadMethodProperty, Value (value));
 
2117
}
 
2118
 
 
2119
Color *
 
2120
GradientStop::GetColor ()
 
2121
{
 
2122
        Value *value = GetValue (GradientStop::ColorProperty);
 
2123
        return value ? value->AsColor () : NULL;
 
2124
}
 
2125
 
 
2126
void
 
2127
GradientStop::SetColor (Color * value)
 
2128
{
 
2129
        if (!value) return;
 
2130
        SetValue (GradientStop::ColorProperty, Value (*value));
 
2131
}
 
2132
 
 
2133
double
 
2134
GradientStop::GetOffset ()
 
2135
{
 
2136
        Value *value = GetValue (GradientStop::OffsetProperty);
 
2137
        return value->AsDouble ();
 
2138
}
 
2139
 
 
2140
void
 
2141
GradientStop::SetOffset (double value)
 
2142
{
 
2143
        SetValue (GradientStop::OffsetProperty, Value (value));
 
2144
}
 
2145
 
 
2146
#if SL_2_0
 
2147
ColumnDefinitionCollection *
 
2148
Grid::GetColumnDefinitions ()
 
2149
{
 
2150
        Value *value = GetValue (Grid::ColumnDefinitionsProperty);
 
2151
        return value ? value->AsColumnDefinitionCollection () : NULL;
 
2152
}
 
2153
 
 
2154
void
 
2155
Grid::SetColumnDefinitions (ColumnDefinitionCollection * value)
 
2156
{
 
2157
        SetValue (Grid::ColumnDefinitionsProperty, Value (value));
 
2158
}
 
2159
 
 
2160
#endif
 
2161
#if SL_2_0
 
2162
gint32
 
2163
Grid::GetColumn (DependencyObject *obj)
 
2164
{
 
2165
        Value *value = (!obj) ? NULL : obj->GetValue (Grid::ColumnProperty);
 
2166
        if (!value) value = Grid::ColumnProperty->GetDefaultValue();
 
2167
        return value->AsInt32 ();
 
2168
}
 
2169
 
 
2170
void
 
2171
Grid::SetColumn (DependencyObject *obj, gint32 value)
 
2172
{
 
2173
        if (!obj) return;
 
2174
        obj->SetValue (Grid::ColumnProperty, Value (value));
 
2175
}
 
2176
 
 
2177
#endif
 
2178
#if SL_2_0
 
2179
gint32
 
2180
Grid::GetColumnSpan (DependencyObject *obj)
 
2181
{
 
2182
        Value *value = (!obj) ? NULL : obj->GetValue (Grid::ColumnSpanProperty);
 
2183
        if (!value) value = Grid::ColumnSpanProperty->GetDefaultValue();
 
2184
        return value->AsInt32 ();
 
2185
}
 
2186
 
 
2187
void
 
2188
Grid::SetColumnSpan (DependencyObject *obj, gint32 value)
 
2189
{
 
2190
        if (!obj) return;
 
2191
        obj->SetValue (Grid::ColumnSpanProperty, Value (value));
 
2192
}
 
2193
 
 
2194
#endif
 
2195
#if SL_2_0
 
2196
RowDefinitionCollection *
 
2197
Grid::GetRowDefinitions ()
 
2198
{
 
2199
        Value *value = GetValue (Grid::RowDefinitionsProperty);
 
2200
        return value ? value->AsRowDefinitionCollection () : NULL;
 
2201
}
 
2202
 
 
2203
void
 
2204
Grid::SetRowDefinitions (RowDefinitionCollection * value)
 
2205
{
 
2206
        SetValue (Grid::RowDefinitionsProperty, Value (value));
 
2207
}
 
2208
 
 
2209
#endif
 
2210
#if SL_2_0
 
2211
gint32
 
2212
Grid::GetRow (DependencyObject *obj)
 
2213
{
 
2214
        Value *value = (!obj) ? NULL : obj->GetValue (Grid::RowProperty);
 
2215
        if (!value) value = Grid::RowProperty->GetDefaultValue();
 
2216
        return value->AsInt32 ();
 
2217
}
 
2218
 
 
2219
void
 
2220
Grid::SetRow (DependencyObject *obj, gint32 value)
 
2221
{
 
2222
        if (!obj) return;
 
2223
        obj->SetValue (Grid::RowProperty, Value (value));
 
2224
}
 
2225
 
 
2226
#endif
 
2227
#if SL_2_0
 
2228
gint32
 
2229
Grid::GetRowSpan (DependencyObject *obj)
 
2230
{
 
2231
        Value *value = (!obj) ? NULL : obj->GetValue (Grid::RowSpanProperty);
 
2232
        if (!value) value = Grid::RowSpanProperty->GetDefaultValue();
 
2233
        return value->AsInt32 ();
 
2234
}
 
2235
 
 
2236
void
 
2237
Grid::SetRowSpan (DependencyObject *obj, gint32 value)
 
2238
{
 
2239
        if (!obj) return;
 
2240
        obj->SetValue (Grid::RowSpanProperty, Value (value));
 
2241
}
 
2242
 
 
2243
#endif
 
2244
#if SL_2_0
 
2245
bool
 
2246
Grid::GetShowGridLines ()
 
2247
{
 
2248
        Value *value = GetValue (Grid::ShowGridLinesProperty);
 
2249
        return value->AsBool ();
 
2250
}
 
2251
 
 
2252
void
 
2253
Grid::SetShowGridLines (bool value)
 
2254
{
 
2255
        SetValue (Grid::ShowGridLinesProperty, Value (value));
 
2256
}
 
2257
 
 
2258
#endif
 
2259
double
 
2260
ImageBrush::GetDownloadProgress ()
 
2261
{
 
2262
        Value *value = GetValue (ImageBrush::DownloadProgressProperty);
 
2263
        return value->AsDouble ();
 
2264
}
 
2265
 
 
2266
void
 
2267
ImageBrush::SetDownloadProgress (double value)
 
2268
{
 
2269
        SetValue (ImageBrush::DownloadProgressProperty, Value (value));
 
2270
}
 
2271
 
 
2272
const char *
 
2273
ImageBrush::GetImageSource ()
 
2274
{
 
2275
        Value *value = GetValue (ImageBrush::ImageSourceProperty);
 
2276
        return value ? value->AsString () : NULL;
 
2277
}
 
2278
 
 
2279
void
 
2280
ImageBrush::SetImageSource (const char * value)
 
2281
{
 
2282
        SetValue (ImageBrush::ImageSourceProperty, Value (value));
 
2283
}
 
2284
 
 
2285
StrokeCollection *
 
2286
InkPresenter::GetStrokes ()
 
2287
{
 
2288
        Value *value = GetValue (InkPresenter::StrokesProperty);
 
2289
        return value ? value->AsStrokeCollection () : NULL;
 
2290
}
 
2291
 
 
2292
void
 
2293
InkPresenter::SetStrokes (StrokeCollection * value)
 
2294
{
 
2295
        SetValue (InkPresenter::StrokesProperty, Value (value));
 
2296
}
 
2297
 
 
2298
double
 
2299
Inline::GetFontSize ()
 
2300
{
 
2301
        Value *value = GetValue (Inline::FontSizeProperty);
 
2302
        return value->AsDouble ();
 
2303
}
 
2304
 
 
2305
void
 
2306
Inline::SetFontSize (double value)
 
2307
{
 
2308
        SetValue (Inline::FontSizeProperty, Value (value));
 
2309
}
 
2310
 
 
2311
FontStretches
 
2312
Inline::GetFontStretch ()
 
2313
{
 
2314
        Value *value = GetValue (Inline::FontStretchProperty);
 
2315
        return (FontStretches) value->AsInt32 ();
 
2316
}
 
2317
 
 
2318
void
 
2319
Inline::SetFontStretch (FontStretches value)
 
2320
{
 
2321
        SetValue (Inline::FontStretchProperty, Value (value));
 
2322
}
 
2323
 
 
2324
FontStyles
 
2325
Inline::GetFontStyle ()
 
2326
{
 
2327
        Value *value = GetValue (Inline::FontStyleProperty);
 
2328
        return (FontStyles) value->AsInt32 ();
 
2329
}
 
2330
 
 
2331
void
 
2332
Inline::SetFontStyle (FontStyles value)
 
2333
{
 
2334
        SetValue (Inline::FontStyleProperty, Value (value));
 
2335
}
 
2336
 
 
2337
FontWeights
 
2338
Inline::GetFontWeight ()
 
2339
{
 
2340
        Value *value = GetValue (Inline::FontWeightProperty);
 
2341
        return (FontWeights) value->AsInt32 ();
 
2342
}
 
2343
 
 
2344
void
 
2345
Inline::SetFontWeight (FontWeights value)
 
2346
{
 
2347
        SetValue (Inline::FontWeightProperty, Value (value));
 
2348
}
 
2349
 
 
2350
Brush *
 
2351
Inline::GetForeground ()
 
2352
{
 
2353
        Value *value = GetValue (Inline::ForegroundProperty);
 
2354
        return value ? value->AsBrush () : NULL;
 
2355
}
 
2356
 
 
2357
void
 
2358
Inline::SetForeground (Brush * value)
 
2359
{
 
2360
        SetValue (Inline::ForegroundProperty, Value (value));
 
2361
}
 
2362
 
 
2363
Point *
 
2364
KeySpline::GetControlPoint1 ()
 
2365
{
 
2366
        Value *value = GetValue (KeySpline::ControlPoint1Property);
 
2367
        return value ? value->AsPoint () : NULL;
 
2368
}
 
2369
 
 
2370
void
 
2371
KeySpline::SetControlPoint1 (Point * value)
 
2372
{
 
2373
        if (!value) return;
 
2374
        SetValue (KeySpline::ControlPoint1Property, Value (*value));
 
2375
}
 
2376
 
 
2377
Point *
 
2378
KeySpline::GetControlPoint2 ()
 
2379
{
 
2380
        Value *value = GetValue (KeySpline::ControlPoint2Property);
 
2381
        return value ? value->AsPoint () : NULL;
 
2382
}
 
2383
 
 
2384
void
 
2385
KeySpline::SetControlPoint2 (Point * value)
 
2386
{
 
2387
        if (!value) return;
 
2388
        SetValue (KeySpline::ControlPoint2Property, Value (*value));
 
2389
}
 
2390
 
 
2391
double
 
2392
Line::GetX1 ()
 
2393
{
 
2394
        Value *value = GetValue (Line::X1Property);
 
2395
        return value->AsDouble ();
 
2396
}
 
2397
 
 
2398
void
 
2399
Line::SetX1 (double value)
 
2400
{
 
2401
        SetValue (Line::X1Property, Value (value));
 
2402
}
 
2403
 
 
2404
double
 
2405
Line::GetX2 ()
 
2406
{
 
2407
        Value *value = GetValue (Line::X2Property);
 
2408
        return value->AsDouble ();
 
2409
}
 
2410
 
 
2411
void
 
2412
Line::SetX2 (double value)
 
2413
{
 
2414
        SetValue (Line::X2Property, Value (value));
 
2415
}
 
2416
 
 
2417
double
 
2418
Line::GetY1 ()
 
2419
{
 
2420
        Value *value = GetValue (Line::Y1Property);
 
2421
        return value->AsDouble ();
 
2422
}
 
2423
 
 
2424
void
 
2425
Line::SetY1 (double value)
 
2426
{
 
2427
        SetValue (Line::Y1Property, Value (value));
 
2428
}
 
2429
 
 
2430
double
 
2431
Line::GetY2 ()
 
2432
{
 
2433
        Value *value = GetValue (Line::Y2Property);
 
2434
        return value->AsDouble ();
 
2435
}
 
2436
 
 
2437
void
 
2438
Line::SetY2 (double value)
 
2439
{
 
2440
        SetValue (Line::Y2Property, Value (value));
 
2441
}
 
2442
 
 
2443
Point *
 
2444
LinearGradientBrush::GetEndPoint ()
 
2445
{
 
2446
        Value *value = GetValue (LinearGradientBrush::EndPointProperty);
 
2447
        return value ? value->AsPoint () : NULL;
 
2448
}
 
2449
 
 
2450
void
 
2451
LinearGradientBrush::SetEndPoint (Point * value)
 
2452
{
 
2453
        if (!value) return;
 
2454
        SetValue (LinearGradientBrush::EndPointProperty, Value (*value));
 
2455
}
 
2456
 
 
2457
Point *
 
2458
LinearGradientBrush::GetStartPoint ()
 
2459
{
 
2460
        Value *value = GetValue (LinearGradientBrush::StartPointProperty);
 
2461
        return value ? value->AsPoint () : NULL;
 
2462
}
 
2463
 
 
2464
void
 
2465
LinearGradientBrush::SetStartPoint (Point * value)
 
2466
{
 
2467
        if (!value) return;
 
2468
        SetValue (LinearGradientBrush::StartPointProperty, Value (*value));
 
2469
}
 
2470
 
 
2471
Point *
 
2472
LineGeometry::GetEndPoint ()
 
2473
{
 
2474
        Value *value = GetValue (LineGeometry::EndPointProperty);
 
2475
        return value ? value->AsPoint () : NULL;
 
2476
}
 
2477
 
 
2478
void
 
2479
LineGeometry::SetEndPoint (Point * value)
 
2480
{
 
2481
        if (!value) return;
 
2482
        SetValue (LineGeometry::EndPointProperty, Value (*value));
 
2483
}
 
2484
 
 
2485
Point *
 
2486
LineGeometry::GetStartPoint ()
 
2487
{
 
2488
        Value *value = GetValue (LineGeometry::StartPointProperty);
 
2489
        return value ? value->AsPoint () : NULL;
 
2490
}
 
2491
 
 
2492
void
 
2493
LineGeometry::SetStartPoint (Point * value)
 
2494
{
 
2495
        if (!value) return;
 
2496
        SetValue (LineGeometry::StartPointProperty, Value (*value));
 
2497
}
 
2498
 
 
2499
Point *
 
2500
LineSegment::GetPoint ()
 
2501
{
 
2502
        Value *value = GetValue (LineSegment::PointProperty);
 
2503
        return value ? value->AsPoint () : NULL;
 
2504
}
 
2505
 
 
2506
void
 
2507
LineSegment::SetPoint (Point * value)
 
2508
{
 
2509
        if (!value) return;
 
2510
        SetValue (LineSegment::PointProperty, Value (*value));
 
2511
}
 
2512
 
 
2513
double
 
2514
Matrix::GetM11 ()
 
2515
{
 
2516
        Value *value = GetValue (Matrix::M11Property);
 
2517
        return value->AsDouble ();
 
2518
}
 
2519
 
 
2520
void
 
2521
Matrix::SetM11 (double value)
 
2522
{
 
2523
        SetValue (Matrix::M11Property, Value (value));
 
2524
}
 
2525
 
 
2526
double
 
2527
Matrix::GetM12 ()
 
2528
{
 
2529
        Value *value = GetValue (Matrix::M12Property);
 
2530
        return value->AsDouble ();
 
2531
}
 
2532
 
 
2533
void
 
2534
Matrix::SetM12 (double value)
 
2535
{
 
2536
        SetValue (Matrix::M12Property, Value (value));
 
2537
}
 
2538
 
 
2539
double
 
2540
Matrix::GetM21 ()
 
2541
{
 
2542
        Value *value = GetValue (Matrix::M21Property);
 
2543
        return value->AsDouble ();
 
2544
}
 
2545
 
 
2546
void
 
2547
Matrix::SetM21 (double value)
 
2548
{
 
2549
        SetValue (Matrix::M21Property, Value (value));
 
2550
}
 
2551
 
 
2552
double
 
2553
Matrix::GetM22 ()
 
2554
{
 
2555
        Value *value = GetValue (Matrix::M22Property);
 
2556
        return value->AsDouble ();
 
2557
}
 
2558
 
 
2559
void
 
2560
Matrix::SetM22 (double value)
 
2561
{
 
2562
        SetValue (Matrix::M22Property, Value (value));
 
2563
}
 
2564
 
 
2565
double
 
2566
Matrix::GetOffsetX ()
 
2567
{
 
2568
        Value *value = GetValue (Matrix::OffsetXProperty);
 
2569
        return value->AsDouble ();
 
2570
}
 
2571
 
 
2572
void
 
2573
Matrix::SetOffsetX (double value)
 
2574
{
 
2575
        SetValue (Matrix::OffsetXProperty, Value (value));
 
2576
}
 
2577
 
 
2578
double
 
2579
Matrix::GetOffsetY ()
 
2580
{
 
2581
        Value *value = GetValue (Matrix::OffsetYProperty);
 
2582
        return value->AsDouble ();
 
2583
}
 
2584
 
 
2585
void
 
2586
Matrix::SetOffsetY (double value)
 
2587
{
 
2588
        SetValue (Matrix::OffsetYProperty, Value (value));
 
2589
}
 
2590
 
 
2591
Matrix *
 
2592
MatrixTransform::GetMatrix ()
 
2593
{
 
2594
        Value *value = GetValue (MatrixTransform::MatrixProperty);
 
2595
        return value ? value->AsMatrix () : NULL;
 
2596
}
 
2597
 
 
2598
void
 
2599
MatrixTransform::SetMatrix (Matrix * value)
 
2600
{
 
2601
        SetValue (MatrixTransform::MatrixProperty, Value (value));
 
2602
}
 
2603
 
 
2604
const char *
 
2605
MediaAttribute::GetValue ()
 
2606
{
 
2607
        Value *value = DependencyObject::GetValue (MediaAttribute::ValueProperty);
 
2608
        return value ? value->AsString () : NULL;
 
2609
}
 
2610
 
 
2611
void
 
2612
MediaAttribute::SetValue (const char * value)
 
2613
{
 
2614
        DependencyObject::SetValue (MediaAttribute::ValueProperty, Value (value));
 
2615
}
 
2616
 
 
2617
double
 
2618
MediaBase::GetDownloadProgress ()
 
2619
{
 
2620
        Value *value = GetValue (MediaBase::DownloadProgressProperty);
 
2621
        return value->AsDouble ();
 
2622
}
 
2623
 
 
2624
void
 
2625
MediaBase::SetDownloadProgress (double value)
 
2626
{
 
2627
        SetValue (MediaBase::DownloadProgressProperty, Value (value));
 
2628
}
 
2629
 
 
2630
Stretch
 
2631
MediaBase::GetStretch ()
 
2632
{
 
2633
        Value *value = GetValue (MediaBase::StretchProperty);
 
2634
        return (Stretch) value->AsInt32 ();
 
2635
}
 
2636
 
 
2637
void
 
2638
MediaBase::SetStretch (Stretch value)
 
2639
{
 
2640
        SetValue (MediaBase::StretchProperty, Value (value));
 
2641
}
 
2642
 
 
2643
MediaAttributeCollection *
 
2644
MediaElement::GetAttributes ()
 
2645
{
 
2646
        Value *value = GetValue (MediaElement::AttributesProperty);
 
2647
        return value ? value->AsMediaAttributeCollection () : NULL;
 
2648
}
 
2649
 
 
2650
void
 
2651
MediaElement::SetAttributes (MediaAttributeCollection * value)
 
2652
{
 
2653
        SetValue (MediaElement::AttributesProperty, Value (value));
 
2654
}
 
2655
 
 
2656
gint32
 
2657
MediaElement::GetAudioStreamCount ()
 
2658
{
 
2659
        Value *value = GetValue (MediaElement::AudioStreamCountProperty);
 
2660
        return value->AsInt32 ();
 
2661
}
 
2662
 
 
2663
void
 
2664
MediaElement::SetAudioStreamCount (gint32 value)
 
2665
{
 
2666
        SetValue (MediaElement::AudioStreamCountProperty, Value (value));
 
2667
}
 
2668
 
 
2669
gint32 *
 
2670
MediaElement::GetAudioStreamIndex ()
 
2671
{
 
2672
        Value *value = GetValue (MediaElement::AudioStreamIndexProperty);
 
2673
        return value ? value->AsNullableInt32 () : NULL;
 
2674
}
 
2675
 
 
2676
void
 
2677
MediaElement::SetAudioStreamIndex (gint32 value)
 
2678
{
 
2679
        SetValue (MediaElement::AudioStreamIndexProperty, Value (value));
 
2680
}
 
2681
 
 
2682
void
 
2683
MediaElement::SetAudioStreamIndex (gint32 * value)
 
2684
{
 
2685
        if (!value)
 
2686
                SetValue (MediaElement::AudioStreamIndexProperty, NULL);
 
2687
        else
 
2688
                SetValue (MediaElement::AudioStreamIndexProperty, Value (*value));
 
2689
}
 
2690
 
 
2691
bool
 
2692
MediaElement::GetAutoPlay ()
 
2693
{
 
2694
        Value *value = GetValue (MediaElement::AutoPlayProperty);
 
2695
        return value->AsBool ();
 
2696
}
 
2697
 
 
2698
void
 
2699
MediaElement::SetAutoPlay (bool value)
 
2700
{
 
2701
        SetValue (MediaElement::AutoPlayProperty, Value (value));
 
2702
}
 
2703
 
 
2704
double
 
2705
MediaElement::GetBalance ()
 
2706
{
 
2707
        Value *value = GetValue (MediaElement::BalanceProperty);
 
2708
        return value->AsDouble ();
 
2709
}
 
2710
 
 
2711
void
 
2712
MediaElement::SetBalance (double value)
 
2713
{
 
2714
        SetValue (MediaElement::BalanceProperty, Value (value));
 
2715
}
 
2716
 
 
2717
double
 
2718
MediaElement::GetBufferingProgress ()
 
2719
{
 
2720
        Value *value = GetValue (MediaElement::BufferingProgressProperty);
 
2721
        return value->AsDouble ();
 
2722
}
 
2723
 
 
2724
void
 
2725
MediaElement::SetBufferingProgress (double value)
 
2726
{
 
2727
        SetValue (MediaElement::BufferingProgressProperty, Value (value));
 
2728
}
 
2729
 
 
2730
TimeSpan
 
2731
MediaElement::GetBufferingTime ()
 
2732
{
 
2733
        Value *value = GetValue (MediaElement::BufferingTimeProperty);
 
2734
        return value->AsTimeSpan ();
 
2735
}
 
2736
 
 
2737
void
 
2738
MediaElement::SetBufferingTime (TimeSpan value)
 
2739
{
 
2740
        SetValue (MediaElement::BufferingTimeProperty, Value (value, Type::TIMESPAN));
 
2741
}
 
2742
 
 
2743
bool
 
2744
MediaElement::GetCanPause ()
 
2745
{
 
2746
        Value *value = GetValue (MediaElement::CanPauseProperty);
 
2747
        return value->AsBool ();
 
2748
}
 
2749
 
 
2750
void
 
2751
MediaElement::SetCanPause (bool value)
 
2752
{
 
2753
        SetValue (MediaElement::CanPauseProperty, Value (value));
 
2754
}
 
2755
 
 
2756
bool
 
2757
MediaElement::GetCanSeek ()
 
2758
{
 
2759
        Value *value = GetValue (MediaElement::CanSeekProperty);
 
2760
        return value->AsBool ();
 
2761
}
 
2762
 
 
2763
void
 
2764
MediaElement::SetCanSeek (bool value)
 
2765
{
 
2766
        SetValue (MediaElement::CanSeekProperty, Value (value));
 
2767
}
 
2768
 
 
2769
const char *
 
2770
MediaElement::GetCurrentState ()
 
2771
{
 
2772
        Value *value = GetValue (MediaElement::CurrentStateProperty);
 
2773
        return value ? value->AsString () : NULL;
 
2774
}
 
2775
 
 
2776
void
 
2777
MediaElement::SetCurrentState (const char * value)
 
2778
{
 
2779
        SetValue (MediaElement::CurrentStateProperty, Value (value));
 
2780
}
 
2781
 
 
2782
bool
 
2783
MediaElement::GetIsMuted ()
 
2784
{
 
2785
        Value *value = GetValue (MediaElement::IsMutedProperty);
 
2786
        return value->AsBool ();
 
2787
}
 
2788
 
 
2789
void
 
2790
MediaElement::SetIsMuted (bool value)
 
2791
{
 
2792
        SetValue (MediaElement::IsMutedProperty, Value (value));
 
2793
}
 
2794
 
 
2795
TimelineMarkerCollection *
 
2796
MediaElement::GetMarkers ()
 
2797
{
 
2798
        Value *value = GetValue (MediaElement::MarkersProperty);
 
2799
        return value ? value->AsTimelineMarkerCollection () : NULL;
 
2800
}
 
2801
 
 
2802
void
 
2803
MediaElement::SetMarkers (TimelineMarkerCollection * value)
 
2804
{
 
2805
        SetValue (MediaElement::MarkersProperty, Value (value));
 
2806
}
 
2807
 
 
2808
Duration *
 
2809
MediaElement::GetNaturalDuration ()
 
2810
{
 
2811
        Value *value = GetValue (MediaElement::NaturalDurationProperty);
 
2812
        return value ? value->AsDuration () : NULL;
 
2813
}
 
2814
 
 
2815
double
 
2816
MediaElement::GetNaturalVideoHeight ()
 
2817
{
 
2818
        Value *value = GetValue (MediaElement::NaturalVideoHeightProperty);
 
2819
        return value->AsDouble ();
 
2820
}
 
2821
 
 
2822
void
 
2823
MediaElement::SetNaturalVideoHeight (double value)
 
2824
{
 
2825
        SetValue (MediaElement::NaturalVideoHeightProperty, Value (value));
 
2826
}
 
2827
 
 
2828
double
 
2829
MediaElement::GetNaturalVideoWidth ()
 
2830
{
 
2831
        Value *value = GetValue (MediaElement::NaturalVideoWidthProperty);
 
2832
        return value->AsDouble ();
 
2833
}
 
2834
 
 
2835
void
 
2836
MediaElement::SetNaturalVideoWidth (double value)
 
2837
{
 
2838
        SetValue (MediaElement::NaturalVideoWidthProperty, Value (value));
 
2839
}
 
2840
 
 
2841
TimeSpan
 
2842
MediaElement::GetPosition ()
 
2843
{
 
2844
        Value *value = GetValue (MediaElement::PositionProperty);
 
2845
        return value->AsTimeSpan ();
 
2846
}
 
2847
 
 
2848
void
 
2849
MediaElement::SetPosition (TimeSpan value)
 
2850
{
 
2851
        SetValue (MediaElement::PositionProperty, Value (value, Type::TIMESPAN));
 
2852
}
 
2853
 
 
2854
double
 
2855
MediaElement::GetVolume ()
 
2856
{
 
2857
        Value *value = GetValue (MediaElement::VolumeProperty);
 
2858
        return value->AsDouble ();
 
2859
}
 
2860
 
 
2861
void
 
2862
MediaElement::SetVolume (double value)
 
2863
{
 
2864
        SetValue (MediaElement::VolumeProperty, Value (value));
 
2865
}
 
2866
 
 
2867
#if SL_2_0
 
2868
double
 
2869
MultiScaleImage::GetAspectRatio ()
 
2870
{
 
2871
        Value *value = GetValue (MultiScaleImage::AspectRatioProperty);
 
2872
        return value->AsDouble ();
 
2873
}
 
2874
 
 
2875
#endif
 
2876
#if SL_2_0
 
2877
MultiScaleTileSource *
 
2878
MultiScaleImage::GetSource ()
 
2879
{
 
2880
        Value *value = GetValue (MultiScaleImage::SourceProperty);
 
2881
        return value ? value->AsMultiScaleTileSource () : NULL;
 
2882
}
 
2883
 
 
2884
void
 
2885
MultiScaleImage::SetSource (MultiScaleTileSource * value)
 
2886
{
 
2887
        SetValue (MultiScaleImage::SourceProperty, Value (value));
 
2888
}
 
2889
 
 
2890
#endif
 
2891
#if SL_2_0
 
2892
bool
 
2893
MultiScaleImage::GetUseSprings ()
 
2894
{
 
2895
        Value *value = GetValue (MultiScaleImage::UseSpringsProperty);
 
2896
        return value->AsBool ();
 
2897
}
 
2898
 
 
2899
void
 
2900
MultiScaleImage::SetUseSprings (bool value)
 
2901
{
 
2902
        SetValue (MultiScaleImage::UseSpringsProperty, Value (value));
 
2903
}
 
2904
 
 
2905
#endif
 
2906
#if SL_2_0
 
2907
Point *
 
2908
MultiScaleImage::GetViewportOrigin ()
 
2909
{
 
2910
        Value *value = GetValue (MultiScaleImage::ViewportOriginProperty);
 
2911
        return value ? value->AsPoint () : NULL;
 
2912
}
 
2913
 
 
2914
void
 
2915
MultiScaleImage::SetViewportOrigin (Point * value)
 
2916
{
 
2917
        if (!value) return;
 
2918
        SetValue (MultiScaleImage::ViewportOriginProperty, Value (*value));
 
2919
}
 
2920
 
 
2921
#endif
 
2922
#if SL_2_0
 
2923
double
 
2924
MultiScaleImage::GetViewportWidth ()
 
2925
{
 
2926
        Value *value = GetValue (MultiScaleImage::ViewportWidthProperty);
 
2927
        return value->AsDouble ();
 
2928
}
 
2929
 
 
2930
void
 
2931
MultiScaleImage::SetViewportWidth (double value)
 
2932
{
 
2933
        SetValue (MultiScaleImage::ViewportWidthProperty, Value (value));
 
2934
}
 
2935
 
 
2936
#endif
 
2937
#if SL_2_0
 
2938
double
 
2939
MultiScaleSubImage::GetAspectRatio ()
 
2940
{
 
2941
        Value *value = GetValue (MultiScaleSubImage::AspectRatioProperty);
 
2942
        return value->AsDouble ();
 
2943
}
 
2944
 
 
2945
#endif
 
2946
#if SL_2_0
 
2947
double
 
2948
MultiScaleSubImage::GetOpacity ()
 
2949
{
 
2950
        Value *value = GetValue (MultiScaleSubImage::OpacityProperty);
 
2951
        return value->AsDouble ();
 
2952
}
 
2953
 
 
2954
void
 
2955
MultiScaleSubImage::SetOpacity (double value)
 
2956
{
 
2957
        SetValue (MultiScaleSubImage::OpacityProperty, Value (value));
 
2958
}
 
2959
 
 
2960
#endif
 
2961
#if SL_2_0
 
2962
Point *
 
2963
MultiScaleSubImage::GetViewportOrigin ()
 
2964
{
 
2965
        Value *value = GetValue (MultiScaleSubImage::ViewportOriginProperty);
 
2966
        return value ? value->AsPoint () : NULL;
 
2967
}
 
2968
 
 
2969
void
 
2970
MultiScaleSubImage::SetViewportOrigin (Point * value)
 
2971
{
 
2972
        if (!value) return;
 
2973
        SetValue (MultiScaleSubImage::ViewportOriginProperty, Value (*value));
 
2974
}
 
2975
 
 
2976
#endif
 
2977
#if SL_2_0
 
2978
double
 
2979
MultiScaleSubImage::GetViewportWidth ()
 
2980
{
 
2981
        Value *value = GetValue (MultiScaleSubImage::ViewportWidthProperty);
 
2982
        return value->AsDouble ();
 
2983
}
 
2984
 
 
2985
void
 
2986
MultiScaleSubImage::SetViewportWidth (double value)
 
2987
{
 
2988
        SetValue (MultiScaleSubImage::ViewportWidthProperty, Value (value));
 
2989
}
 
2990
 
 
2991
#endif
 
2992
#if SL_2_0
 
2993
gint32
 
2994
MultiScaleSubImage::GetZIndex ()
 
2995
{
 
2996
        Value *value = GetValue (MultiScaleSubImage::ZIndexProperty);
 
2997
        return value->AsInt32 ();
 
2998
}
 
2999
 
 
3000
void
 
3001
MultiScaleSubImage::SetZIndex (gint32 value)
 
3002
{
 
3003
        SetValue (MultiScaleSubImage::ZIndexProperty, Value (value));
 
3004
}
 
3005
 
 
3006
#endif
 
3007
NameScope *
 
3008
NameScope::GetNameScope (DependencyObject *obj)
 
3009
{
 
3010
        Value *value = (!obj) ? NULL : obj->GetValue (NameScope::NameScopeProperty);
 
3011
        if (!value) value = NameScope::NameScopeProperty->GetDefaultValue();
 
3012
        return value ? value->AsNameScope () : NULL;
 
3013
}
 
3014
 
 
3015
void
 
3016
NameScope::SetNameScope (DependencyObject *obj, NameScope * value)
 
3017
{
 
3018
        if (!obj) return;
 
3019
        obj->SetValue (NameScope::NameScopeProperty, Value (value));
 
3020
}
 
3021
 
 
3022
#if SL_2_0
 
3023
ObjectKeyFrameCollection *
 
3024
ObjectAnimationUsingKeyFrames::GetKeyFrames ()
 
3025
{
 
3026
        Value *value = GetValue (ObjectAnimationUsingKeyFrames::KeyFramesProperty);
 
3027
        return value ? value->AsObjectKeyFrameCollection () : NULL;
 
3028
}
 
3029
 
 
3030
void
 
3031
ObjectAnimationUsingKeyFrames::SetKeyFrames (ObjectKeyFrameCollection * value)
 
3032
{
 
3033
        SetValue (ObjectAnimationUsingKeyFrames::KeyFramesProperty, Value (value));
 
3034
}
 
3035
 
 
3036
#endif
 
3037
#if SL_2_0
 
3038
KeyTime *
 
3039
ObjectKeyFrame::GetKeyTime ()
 
3040
{
 
3041
        Value *value = DependencyObject::GetValue (ObjectKeyFrame::KeyTimeProperty);
 
3042
        return value ? value->AsKeyTime () : NULL;
 
3043
}
 
3044
 
 
3045
void
 
3046
ObjectKeyFrame::SetKeyTime (KeyTime value)
 
3047
{
 
3048
        DependencyObject::SetValue (ObjectKeyFrame::KeyTimeProperty, Value (value));
 
3049
}
 
3050
 
 
3051
void
 
3052
ObjectKeyFrame::SetKeyTime (KeyTime * value)
 
3053
{
 
3054
        if (!value)
 
3055
                DependencyObject::SetValue (ObjectKeyFrame::KeyTimeProperty, NULL);
 
3056
        else
 
3057
                DependencyObject::SetValue (ObjectKeyFrame::KeyTimeProperty, Value (*value));
 
3058
}
 
3059
 
 
3060
#endif
 
3061
#if SL_2_0
 
3062
DependencyObject *
 
3063
ObjectKeyFrame::GetValue ()
 
3064
{
 
3065
        Value *value = DependencyObject::GetValue (ObjectKeyFrame::ValueProperty);
 
3066
        return value ? value->AsDependencyObject () : NULL;
 
3067
}
 
3068
 
 
3069
void
 
3070
ObjectKeyFrame::SetValue (DependencyObject * value)
 
3071
{
 
3072
        DependencyObject::SetValue (ObjectKeyFrame::ValueProperty, Value (value));
 
3073
}
 
3074
 
 
3075
#endif
 
3076
Brush *
 
3077
Panel::GetBackground ()
 
3078
{
 
3079
        Value *value = GetValue (Panel::BackgroundProperty);
 
3080
        return value ? value->AsBrush () : NULL;
 
3081
}
 
3082
 
 
3083
void
 
3084
Panel::SetBackground (Brush * value)
 
3085
{
 
3086
        SetValue (Panel::BackgroundProperty, Value (value));
 
3087
}
 
3088
 
 
3089
UIElementCollection *
 
3090
Panel::GetChildren ()
 
3091
{
 
3092
        Value *value = GetValue (Panel::ChildrenProperty);
 
3093
        return value ? value->AsUIElementCollection () : NULL;
 
3094
}
 
3095
 
 
3096
void
 
3097
Panel::SetChildren (UIElementCollection * value)
 
3098
{
 
3099
        SetValue (Panel::ChildrenProperty, Value (value));
 
3100
}
 
3101
 
 
3102
Geometry *
 
3103
Path::GetData ()
 
3104
{
 
3105
        Value *value = GetValue (Path::DataProperty);
 
3106
        return value ? value->AsGeometry () : NULL;
 
3107
}
 
3108
 
 
3109
void
 
3110
Path::SetData (Geometry * value)
 
3111
{
 
3112
        SetValue (Path::DataProperty, Value (value));
 
3113
}
 
3114
 
 
3115
bool
 
3116
PathFigure::GetIsClosed ()
 
3117
{
 
3118
        Value *value = GetValue (PathFigure::IsClosedProperty);
 
3119
        return value->AsBool ();
 
3120
}
 
3121
 
 
3122
void
 
3123
PathFigure::SetIsClosed (bool value)
 
3124
{
 
3125
        SetValue (PathFigure::IsClosedProperty, Value (value));
 
3126
}
 
3127
 
 
3128
#if SL_2_0
 
3129
bool
 
3130
PathFigure::GetIsFilled ()
 
3131
{
 
3132
        Value *value = GetValue (PathFigure::IsFilledProperty);
 
3133
        return value->AsBool ();
 
3134
}
 
3135
 
 
3136
void
 
3137
PathFigure::SetIsFilled (bool value)
 
3138
{
 
3139
        SetValue (PathFigure::IsFilledProperty, Value (value));
 
3140
}
 
3141
 
 
3142
#endif
 
3143
PathSegmentCollection *
 
3144
PathFigure::GetSegments ()
 
3145
{
 
3146
        Value *value = GetValue (PathFigure::SegmentsProperty);
 
3147
        return value ? value->AsPathSegmentCollection () : NULL;
 
3148
}
 
3149
 
 
3150
void
 
3151
PathFigure::SetSegments (PathSegmentCollection * value)
 
3152
{
 
3153
        SetValue (PathFigure::SegmentsProperty, Value (value));
 
3154
}
 
3155
 
 
3156
Point *
 
3157
PathFigure::GetStartPoint ()
 
3158
{
 
3159
        Value *value = GetValue (PathFigure::StartPointProperty);
 
3160
        return value ? value->AsPoint () : NULL;
 
3161
}
 
3162
 
 
3163
void
 
3164
PathFigure::SetStartPoint (Point * value)
 
3165
{
 
3166
        if (!value) return;
 
3167
        SetValue (PathFigure::StartPointProperty, Value (*value));
 
3168
}
 
3169
 
 
3170
PathFigureCollection *
 
3171
PathGeometry::GetFigures ()
 
3172
{
 
3173
        Value *value = GetValue (PathGeometry::FiguresProperty);
 
3174
        return value ? value->AsPathFigureCollection () : NULL;
 
3175
}
 
3176
 
 
3177
void
 
3178
PathGeometry::SetFigures (PathFigureCollection * value)
 
3179
{
 
3180
        SetValue (PathGeometry::FiguresProperty, Value (value));
 
3181
}
 
3182
 
 
3183
Point *
 
3184
PointAnimation::GetBy ()
 
3185
{
 
3186
        Value *value = GetValue (PointAnimation::ByProperty);
 
3187
        return value ? value->AsPoint () : NULL;
 
3188
}
 
3189
 
 
3190
void
 
3191
PointAnimation::SetBy (Point value)
 
3192
{
 
3193
        SetValue (PointAnimation::ByProperty, Value (value));
 
3194
}
 
3195
 
 
3196
void
 
3197
PointAnimation::SetBy (Point * value)
 
3198
{
 
3199
        if (!value)
 
3200
                SetValue (PointAnimation::ByProperty, NULL);
 
3201
        else
 
3202
                SetValue (PointAnimation::ByProperty, Value (*value));
 
3203
}
 
3204
 
 
3205
Point *
 
3206
PointAnimation::GetFrom ()
 
3207
{
 
3208
        Value *value = GetValue (PointAnimation::FromProperty);
 
3209
        return value ? value->AsPoint () : NULL;
 
3210
}
 
3211
 
 
3212
void
 
3213
PointAnimation::SetFrom (Point value)
 
3214
{
 
3215
        SetValue (PointAnimation::FromProperty, Value (value));
 
3216
}
 
3217
 
 
3218
void
 
3219
PointAnimation::SetFrom (Point * value)
 
3220
{
 
3221
        if (!value)
 
3222
                SetValue (PointAnimation::FromProperty, NULL);
 
3223
        else
 
3224
                SetValue (PointAnimation::FromProperty, Value (*value));
 
3225
}
 
3226
 
 
3227
Point *
 
3228
PointAnimation::GetTo ()
 
3229
{
 
3230
        Value *value = GetValue (PointAnimation::ToProperty);
 
3231
        return value ? value->AsPoint () : NULL;
 
3232
}
 
3233
 
 
3234
void
 
3235
PointAnimation::SetTo (Point value)
 
3236
{
 
3237
        SetValue (PointAnimation::ToProperty, Value (value));
 
3238
}
 
3239
 
 
3240
void
 
3241
PointAnimation::SetTo (Point * value)
 
3242
{
 
3243
        if (!value)
 
3244
                SetValue (PointAnimation::ToProperty, NULL);
 
3245
        else
 
3246
                SetValue (PointAnimation::ToProperty, Value (*value));
 
3247
}
 
3248
 
 
3249
PointKeyFrameCollection *
 
3250
PointAnimationUsingKeyFrames::GetKeyFrames ()
 
3251
{
 
3252
        Value *value = GetValue (PointAnimationUsingKeyFrames::KeyFramesProperty);
 
3253
        return value ? value->AsPointKeyFrameCollection () : NULL;
 
3254
}
 
3255
 
 
3256
void
 
3257
PointAnimationUsingKeyFrames::SetKeyFrames (PointKeyFrameCollection * value)
 
3258
{
 
3259
        SetValue (PointAnimationUsingKeyFrames::KeyFramesProperty, Value (value));
 
3260
}
 
3261
 
 
3262
KeyTime *
 
3263
PointKeyFrame::GetKeyTime ()
 
3264
{
 
3265
        Value *value = DependencyObject::GetValue (PointKeyFrame::KeyTimeProperty);
 
3266
        return value ? value->AsKeyTime () : NULL;
 
3267
}
 
3268
 
 
3269
void
 
3270
PointKeyFrame::SetKeyTime (KeyTime value)
 
3271
{
 
3272
        DependencyObject::SetValue (PointKeyFrame::KeyTimeProperty, Value (value));
 
3273
}
 
3274
 
 
3275
void
 
3276
PointKeyFrame::SetKeyTime (KeyTime * value)
 
3277
{
 
3278
        if (!value)
 
3279
                DependencyObject::SetValue (PointKeyFrame::KeyTimeProperty, NULL);
 
3280
        else
 
3281
                DependencyObject::SetValue (PointKeyFrame::KeyTimeProperty, Value (*value));
 
3282
}
 
3283
 
 
3284
Point *
 
3285
PointKeyFrame::GetValue ()
 
3286
{
 
3287
        Value *value = DependencyObject::GetValue (PointKeyFrame::ValueProperty);
 
3288
        return value ? value->AsPoint () : NULL;
 
3289
}
 
3290
 
 
3291
void
 
3292
PointKeyFrame::SetValue (Point value)
 
3293
{
 
3294
        DependencyObject::SetValue (PointKeyFrame::ValueProperty, Value (value));
 
3295
}
 
3296
 
 
3297
void
 
3298
PointKeyFrame::SetValue (Point * value)
 
3299
{
 
3300
        if (!value)
 
3301
                DependencyObject::SetValue (PointKeyFrame::ValueProperty, NULL);
 
3302
        else
 
3303
                DependencyObject::SetValue (PointKeyFrame::ValueProperty, Value (*value));
 
3304
}
 
3305
 
 
3306
PointCollection *
 
3307
PolyBezierSegment::GetPoints ()
 
3308
{
 
3309
        Value *value = GetValue (PolyBezierSegment::PointsProperty);
 
3310
        return value ? value->AsPointCollection () : NULL;
 
3311
}
 
3312
 
 
3313
void
 
3314
PolyBezierSegment::SetPoints (PointCollection * value)
 
3315
{
 
3316
        SetValue (PolyBezierSegment::PointsProperty, Value (value));
 
3317
}
 
3318
 
 
3319
FillRule
 
3320
Polygon::GetFillRule ()
 
3321
{
 
3322
        Value *value = GetValue (Polygon::FillRuleProperty);
 
3323
        return (FillRule) value->AsInt32 ();
 
3324
}
 
3325
 
 
3326
void
 
3327
Polygon::SetFillRule (FillRule value)
 
3328
{
 
3329
        SetValue (Polygon::FillRuleProperty, Value (value));
 
3330
}
 
3331
 
 
3332
PointCollection *
 
3333
Polygon::GetPoints ()
 
3334
{
 
3335
        Value *value = GetValue (Polygon::PointsProperty);
 
3336
        return value ? value->AsPointCollection () : NULL;
 
3337
}
 
3338
 
 
3339
void
 
3340
Polygon::SetPoints (PointCollection * value)
 
3341
{
 
3342
        SetValue (Polygon::PointsProperty, Value (value));
 
3343
}
 
3344
 
 
3345
FillRule
 
3346
Polyline::GetFillRule ()
 
3347
{
 
3348
        Value *value = GetValue (Polyline::FillRuleProperty);
 
3349
        return (FillRule) value->AsInt32 ();
 
3350
}
 
3351
 
 
3352
void
 
3353
Polyline::SetFillRule (FillRule value)
 
3354
{
 
3355
        SetValue (Polyline::FillRuleProperty, Value (value));
 
3356
}
 
3357
 
 
3358
PointCollection *
 
3359
Polyline::GetPoints ()
 
3360
{
 
3361
        Value *value = GetValue (Polyline::PointsProperty);
 
3362
        return value ? value->AsPointCollection () : NULL;
 
3363
}
 
3364
 
 
3365
void
 
3366
Polyline::SetPoints (PointCollection * value)
 
3367
{
 
3368
        SetValue (Polyline::PointsProperty, Value (value));
 
3369
}
 
3370
 
 
3371
PointCollection *
 
3372
PolyLineSegment::GetPoints ()
 
3373
{
 
3374
        Value *value = GetValue (PolyLineSegment::PointsProperty);
 
3375
        return value ? value->AsPointCollection () : NULL;
 
3376
}
 
3377
 
 
3378
void
 
3379
PolyLineSegment::SetPoints (PointCollection * value)
 
3380
{
 
3381
        SetValue (PolyLineSegment::PointsProperty, Value (value));
 
3382
}
 
3383
 
 
3384
PointCollection *
 
3385
PolyQuadraticBezierSegment::GetPoints ()
 
3386
{
 
3387
        Value *value = GetValue (PolyQuadraticBezierSegment::PointsProperty);
 
3388
        return value ? value->AsPointCollection () : NULL;
 
3389
}
 
3390
 
 
3391
void
 
3392
PolyQuadraticBezierSegment::SetPoints (PointCollection * value)
 
3393
{
 
3394
        SetValue (PolyQuadraticBezierSegment::PointsProperty, Value (value));
 
3395
}
 
3396
 
 
3397
Point *
 
3398
QuadraticBezierSegment::GetPoint1 ()
 
3399
{
 
3400
        Value *value = GetValue (QuadraticBezierSegment::Point1Property);
 
3401
        return value ? value->AsPoint () : NULL;
 
3402
}
 
3403
 
 
3404
void
 
3405
QuadraticBezierSegment::SetPoint1 (Point * value)
 
3406
{
 
3407
        if (!value) return;
 
3408
        SetValue (QuadraticBezierSegment::Point1Property, Value (*value));
 
3409
}
 
3410
 
 
3411
Point *
 
3412
QuadraticBezierSegment::GetPoint2 ()
 
3413
{
 
3414
        Value *value = GetValue (QuadraticBezierSegment::Point2Property);
 
3415
        return value ? value->AsPoint () : NULL;
 
3416
}
 
3417
 
 
3418
void
 
3419
QuadraticBezierSegment::SetPoint2 (Point * value)
 
3420
{
 
3421
        if (!value) return;
 
3422
        SetValue (QuadraticBezierSegment::Point2Property, Value (*value));
 
3423
}
 
3424
 
 
3425
Point *
 
3426
RadialGradientBrush::GetCenter ()
 
3427
{
 
3428
        Value *value = GetValue (RadialGradientBrush::CenterProperty);
 
3429
        return value ? value->AsPoint () : NULL;
 
3430
}
 
3431
 
 
3432
void
 
3433
RadialGradientBrush::SetCenter (Point * value)
 
3434
{
 
3435
        if (!value) return;
 
3436
        SetValue (RadialGradientBrush::CenterProperty, Value (*value));
 
3437
}
 
3438
 
 
3439
Point *
 
3440
RadialGradientBrush::GetGradientOrigin ()
 
3441
{
 
3442
        Value *value = GetValue (RadialGradientBrush::GradientOriginProperty);
 
3443
        return value ? value->AsPoint () : NULL;
 
3444
}
 
3445
 
 
3446
void
 
3447
RadialGradientBrush::SetGradientOrigin (Point * value)
 
3448
{
 
3449
        if (!value) return;
 
3450
        SetValue (RadialGradientBrush::GradientOriginProperty, Value (*value));
 
3451
}
 
3452
 
 
3453
double
 
3454
RadialGradientBrush::GetRadiusX ()
 
3455
{
 
3456
        Value *value = GetValue (RadialGradientBrush::RadiusXProperty);
 
3457
        return value->AsDouble ();
 
3458
}
 
3459
 
 
3460
void
 
3461
RadialGradientBrush::SetRadiusX (double value)
 
3462
{
 
3463
        SetValue (RadialGradientBrush::RadiusXProperty, Value (value));
 
3464
}
 
3465
 
 
3466
double
 
3467
RadialGradientBrush::GetRadiusY ()
 
3468
{
 
3469
        Value *value = GetValue (RadialGradientBrush::RadiusYProperty);
 
3470
        return value->AsDouble ();
 
3471
}
 
3472
 
 
3473
void
 
3474
RadialGradientBrush::SetRadiusY (double value)
 
3475
{
 
3476
        SetValue (RadialGradientBrush::RadiusYProperty, Value (value));
 
3477
}
 
3478
 
 
3479
double
 
3480
Rectangle::GetRadiusX ()
 
3481
{
 
3482
        Value *value = GetValue (Rectangle::RadiusXProperty);
 
3483
        return value->AsDouble ();
 
3484
}
 
3485
 
 
3486
void
 
3487
Rectangle::SetRadiusX (double value)
 
3488
{
 
3489
        SetValue (Rectangle::RadiusXProperty, Value (value));
 
3490
}
 
3491
 
 
3492
double
 
3493
Rectangle::GetRadiusY ()
 
3494
{
 
3495
        Value *value = GetValue (Rectangle::RadiusYProperty);
 
3496
        return value->AsDouble ();
 
3497
}
 
3498
 
 
3499
void
 
3500
Rectangle::SetRadiusY (double value)
 
3501
{
 
3502
        SetValue (Rectangle::RadiusYProperty, Value (value));
 
3503
}
 
3504
 
 
3505
double
 
3506
RectangleGeometry::GetRadiusX ()
 
3507
{
 
3508
        Value *value = GetValue (RectangleGeometry::RadiusXProperty);
 
3509
        return value->AsDouble ();
 
3510
}
 
3511
 
 
3512
void
 
3513
RectangleGeometry::SetRadiusX (double value)
 
3514
{
 
3515
        SetValue (RectangleGeometry::RadiusXProperty, Value (value));
 
3516
}
 
3517
 
 
3518
double
 
3519
RectangleGeometry::GetRadiusY ()
 
3520
{
 
3521
        Value *value = GetValue (RectangleGeometry::RadiusYProperty);
 
3522
        return value->AsDouble ();
 
3523
}
 
3524
 
 
3525
void
 
3526
RectangleGeometry::SetRadiusY (double value)
 
3527
{
 
3528
        SetValue (RectangleGeometry::RadiusYProperty, Value (value));
 
3529
}
 
3530
 
 
3531
Rect *
 
3532
RectangleGeometry::GetRect ()
 
3533
{
 
3534
        Value *value = GetValue (RectangleGeometry::RectProperty);
 
3535
        return value ? value->AsRect () : NULL;
 
3536
}
 
3537
 
 
3538
void
 
3539
RectangleGeometry::SetRect (Rect * value)
 
3540
{
 
3541
        if (!value) return;
 
3542
        SetValue (RectangleGeometry::RectProperty, Value (*value));
 
3543
}
 
3544
 
 
3545
double
 
3546
RotateTransform::GetAngle ()
 
3547
{
 
3548
        Value *value = GetValue (RotateTransform::AngleProperty);
 
3549
        return value->AsDouble ();
 
3550
}
 
3551
 
 
3552
void
 
3553
RotateTransform::SetAngle (double value)
 
3554
{
 
3555
        SetValue (RotateTransform::AngleProperty, Value (value));
 
3556
}
 
3557
 
 
3558
double
 
3559
RotateTransform::GetCenterX ()
 
3560
{
 
3561
        Value *value = GetValue (RotateTransform::CenterXProperty);
 
3562
        return value->AsDouble ();
 
3563
}
 
3564
 
 
3565
void
 
3566
RotateTransform::SetCenterX (double value)
 
3567
{
 
3568
        SetValue (RotateTransform::CenterXProperty, Value (value));
 
3569
}
 
3570
 
 
3571
double
 
3572
RotateTransform::GetCenterY ()
 
3573
{
 
3574
        Value *value = GetValue (RotateTransform::CenterYProperty);
 
3575
        return value->AsDouble ();
 
3576
}
 
3577
 
 
3578
void
 
3579
RotateTransform::SetCenterY (double value)
 
3580
{
 
3581
        SetValue (RotateTransform::CenterYProperty, Value (value));
 
3582
}
 
3583
 
 
3584
#if SL_2_0
 
3585
GridLength *
 
3586
RowDefinition::GetHeight ()
 
3587
{
 
3588
        Value *value = GetValue (RowDefinition::HeightProperty);
 
3589
        return value ? value->AsGridLength () : NULL;
 
3590
}
 
3591
 
 
3592
void
 
3593
RowDefinition::SetHeight (GridLength * value)
 
3594
{
 
3595
        if (!value) return;
 
3596
        SetValue (RowDefinition::HeightProperty, Value (*value));
 
3597
}
 
3598
 
 
3599
#endif
 
3600
#if SL_2_0
 
3601
double
 
3602
RowDefinition::GetMaxHeight ()
 
3603
{
 
3604
        Value *value = GetValue (RowDefinition::MaxHeightProperty);
 
3605
        return value->AsDouble ();
 
3606
}
 
3607
 
 
3608
void
 
3609
RowDefinition::SetMaxHeight (double value)
 
3610
{
 
3611
        SetValue (RowDefinition::MaxHeightProperty, Value (value));
 
3612
}
 
3613
 
 
3614
#endif
 
3615
#if SL_2_0
 
3616
double
 
3617
RowDefinition::GetMinHeight ()
 
3618
{
 
3619
        Value *value = GetValue (RowDefinition::MinHeightProperty);
 
3620
        return value->AsDouble ();
 
3621
}
 
3622
 
 
3623
void
 
3624
RowDefinition::SetMinHeight (double value)
 
3625
{
 
3626
        SetValue (RowDefinition::MinHeightProperty, Value (value));
 
3627
}
 
3628
 
 
3629
#endif
 
3630
const char *
 
3631
Run::GetText ()
 
3632
{
 
3633
        Value *value = GetValue (Run::TextProperty);
 
3634
        return value ? value->AsString () : NULL;
 
3635
}
 
3636
 
 
3637
void
 
3638
Run::SetText (const char * value)
 
3639
{
 
3640
        SetValue (Run::TextProperty, Value (value));
 
3641
}
 
3642
 
 
3643
double
 
3644
ScaleTransform::GetCenterX ()
 
3645
{
 
3646
        Value *value = GetValue (ScaleTransform::CenterXProperty);
 
3647
        return value->AsDouble ();
 
3648
}
 
3649
 
 
3650
void
 
3651
ScaleTransform::SetCenterX (double value)
 
3652
{
 
3653
        SetValue (ScaleTransform::CenterXProperty, Value (value));
 
3654
}
 
3655
 
 
3656
double
 
3657
ScaleTransform::GetCenterY ()
 
3658
{
 
3659
        Value *value = GetValue (ScaleTransform::CenterYProperty);
 
3660
        return value->AsDouble ();
 
3661
}
 
3662
 
 
3663
void
 
3664
ScaleTransform::SetCenterY (double value)
 
3665
{
 
3666
        SetValue (ScaleTransform::CenterYProperty, Value (value));
 
3667
}
 
3668
 
 
3669
double
 
3670
ScaleTransform::GetScaleX ()
 
3671
{
 
3672
        Value *value = GetValue (ScaleTransform::ScaleXProperty);
 
3673
        return value->AsDouble ();
 
3674
}
 
3675
 
 
3676
void
 
3677
ScaleTransform::SetScaleX (double value)
 
3678
{
 
3679
        SetValue (ScaleTransform::ScaleXProperty, Value (value));
 
3680
}
 
3681
 
 
3682
double
 
3683
ScaleTransform::GetScaleY ()
 
3684
{
 
3685
        Value *value = GetValue (ScaleTransform::ScaleYProperty);
 
3686
        return value->AsDouble ();
 
3687
}
 
3688
 
 
3689
void
 
3690
ScaleTransform::SetScaleY (double value)
 
3691
{
 
3692
        SetValue (ScaleTransform::ScaleYProperty, Value (value));
 
3693
}
 
3694
 
 
3695
Brush *
 
3696
Shape::GetFill ()
 
3697
{
 
3698
        Value *value = GetValue (Shape::FillProperty);
 
3699
        return value ? value->AsBrush () : NULL;
 
3700
}
 
3701
 
 
3702
void
 
3703
Shape::SetFill (Brush * value)
 
3704
{
 
3705
        SetValue (Shape::FillProperty, Value (value));
 
3706
}
 
3707
 
 
3708
Stretch
 
3709
Shape::GetStretch ()
 
3710
{
 
3711
        Value *value = GetValue (Shape::StretchProperty);
 
3712
        return (Stretch) value->AsInt32 ();
 
3713
}
 
3714
 
 
3715
void
 
3716
Shape::SetStretch (Stretch value)
 
3717
{
 
3718
        SetValue (Shape::StretchProperty, Value (value));
 
3719
}
 
3720
 
 
3721
DoubleCollection *
 
3722
Shape::GetStrokeDashArray ()
 
3723
{
 
3724
        Value *value = GetValue (Shape::StrokeDashArrayProperty);
 
3725
        return value ? value->AsDoubleCollection () : NULL;
 
3726
}
 
3727
 
 
3728
void
 
3729
Shape::SetStrokeDashArray (DoubleCollection * value)
 
3730
{
 
3731
        SetValue (Shape::StrokeDashArrayProperty, Value (value));
 
3732
}
 
3733
 
 
3734
PenLineCap
 
3735
Shape::GetStrokeDashCap ()
 
3736
{
 
3737
        Value *value = GetValue (Shape::StrokeDashCapProperty);
 
3738
        return (PenLineCap) value->AsInt32 ();
 
3739
}
 
3740
 
 
3741
void
 
3742
Shape::SetStrokeDashCap (PenLineCap value)
 
3743
{
 
3744
        SetValue (Shape::StrokeDashCapProperty, Value (value));
 
3745
}
 
3746
 
 
3747
double
 
3748
Shape::GetStrokeDashOffset ()
 
3749
{
 
3750
        Value *value = GetValue (Shape::StrokeDashOffsetProperty);
 
3751
        return value->AsDouble ();
 
3752
}
 
3753
 
 
3754
void
 
3755
Shape::SetStrokeDashOffset (double value)
 
3756
{
 
3757
        SetValue (Shape::StrokeDashOffsetProperty, Value (value));
 
3758
}
 
3759
 
 
3760
PenLineCap
 
3761
Shape::GetStrokeEndLineCap ()
 
3762
{
 
3763
        Value *value = GetValue (Shape::StrokeEndLineCapProperty);
 
3764
        return (PenLineCap) value->AsInt32 ();
 
3765
}
 
3766
 
 
3767
void
 
3768
Shape::SetStrokeEndLineCap (PenLineCap value)
 
3769
{
 
3770
        SetValue (Shape::StrokeEndLineCapProperty, Value (value));
 
3771
}
 
3772
 
 
3773
PenLineJoin
 
3774
Shape::GetStrokeLineJoin ()
 
3775
{
 
3776
        Value *value = GetValue (Shape::StrokeLineJoinProperty);
 
3777
        return (PenLineJoin) value->AsInt32 ();
 
3778
}
 
3779
 
 
3780
void
 
3781
Shape::SetStrokeLineJoin (PenLineJoin value)
 
3782
{
 
3783
        SetValue (Shape::StrokeLineJoinProperty, Value (value));
 
3784
}
 
3785
 
 
3786
double
 
3787
Shape::GetStrokeMiterLimit ()
 
3788
{
 
3789
        Value *value = GetValue (Shape::StrokeMiterLimitProperty);
 
3790
        return value->AsDouble ();
 
3791
}
 
3792
 
 
3793
void
 
3794
Shape::SetStrokeMiterLimit (double value)
 
3795
{
 
3796
        SetValue (Shape::StrokeMiterLimitProperty, Value (value));
 
3797
}
 
3798
 
 
3799
Brush *
 
3800
Shape::GetStroke ()
 
3801
{
 
3802
        Value *value = GetValue (Shape::StrokeProperty);
 
3803
        return value ? value->AsBrush () : NULL;
 
3804
}
 
3805
 
 
3806
void
 
3807
Shape::SetStroke (Brush * value)
 
3808
{
 
3809
        SetValue (Shape::StrokeProperty, Value (value));
 
3810
}
 
3811
 
 
3812
PenLineCap
 
3813
Shape::GetStrokeStartLineCap ()
 
3814
{
 
3815
        Value *value = GetValue (Shape::StrokeStartLineCapProperty);
 
3816
        return (PenLineCap) value->AsInt32 ();
 
3817
}
 
3818
 
 
3819
void
 
3820
Shape::SetStrokeStartLineCap (PenLineCap value)
 
3821
{
 
3822
        SetValue (Shape::StrokeStartLineCapProperty, Value (value));
 
3823
}
 
3824
 
 
3825
double
 
3826
Shape::GetStrokeThickness ()
 
3827
{
 
3828
        Value *value = GetValue (Shape::StrokeThicknessProperty);
 
3829
        return value->AsDouble ();
 
3830
}
 
3831
 
 
3832
void
 
3833
Shape::SetStrokeThickness (double value)
 
3834
{
 
3835
        SetValue (Shape::StrokeThicknessProperty, Value (value));
 
3836
}
 
3837
 
 
3838
double
 
3839
SkewTransform::GetAngleX ()
 
3840
{
 
3841
        Value *value = GetValue (SkewTransform::AngleXProperty);
 
3842
        return value->AsDouble ();
 
3843
}
 
3844
 
 
3845
void
 
3846
SkewTransform::SetAngleX (double value)
 
3847
{
 
3848
        SetValue (SkewTransform::AngleXProperty, Value (value));
 
3849
}
 
3850
 
 
3851
double
 
3852
SkewTransform::GetAngleY ()
 
3853
{
 
3854
        Value *value = GetValue (SkewTransform::AngleYProperty);
 
3855
        return value->AsDouble ();
 
3856
}
 
3857
 
 
3858
void
 
3859
SkewTransform::SetAngleY (double value)
 
3860
{
 
3861
        SetValue (SkewTransform::AngleYProperty, Value (value));
 
3862
}
 
3863
 
 
3864
double
 
3865
SkewTransform::GetCenterX ()
 
3866
{
 
3867
        Value *value = GetValue (SkewTransform::CenterXProperty);
 
3868
        return value->AsDouble ();
 
3869
}
 
3870
 
 
3871
void
 
3872
SkewTransform::SetCenterX (double value)
 
3873
{
 
3874
        SetValue (SkewTransform::CenterXProperty, Value (value));
 
3875
}
 
3876
 
 
3877
double
 
3878
SkewTransform::GetCenterY ()
 
3879
{
 
3880
        Value *value = GetValue (SkewTransform::CenterYProperty);
 
3881
        return value->AsDouble ();
 
3882
}
 
3883
 
 
3884
void
 
3885
SkewTransform::SetCenterY (double value)
 
3886
{
 
3887
        SetValue (SkewTransform::CenterYProperty, Value (value));
 
3888
}
 
3889
 
 
3890
Color *
 
3891
SolidColorBrush::GetColor ()
 
3892
{
 
3893
        Value *value = GetValue (SolidColorBrush::ColorProperty);
 
3894
        return value ? value->AsColor () : NULL;
 
3895
}
 
3896
 
 
3897
void
 
3898
SolidColorBrush::SetColor (Color * value)
 
3899
{
 
3900
        if (!value) return;
 
3901
        SetValue (SolidColorBrush::ColorProperty, Value (*value));
 
3902
}
 
3903
 
 
3904
KeySpline *
 
3905
SplineColorKeyFrame::GetKeySpline ()
 
3906
{
 
3907
        Value *value = DependencyObject::GetValue (SplineColorKeyFrame::KeySplineProperty);
 
3908
        return value ? value->AsKeySpline () : NULL;
 
3909
}
 
3910
 
 
3911
void
 
3912
SplineColorKeyFrame::SetKeySpline (KeySpline * value)
 
3913
{
 
3914
        DependencyObject::SetValue (SplineColorKeyFrame::KeySplineProperty, Value (value));
 
3915
}
 
3916
 
 
3917
KeySpline *
 
3918
SplineDoubleKeyFrame::GetKeySpline ()
 
3919
{
 
3920
        Value *value = DependencyObject::GetValue (SplineDoubleKeyFrame::KeySplineProperty);
 
3921
        return value ? value->AsKeySpline () : NULL;
 
3922
}
 
3923
 
 
3924
void
 
3925
SplineDoubleKeyFrame::SetKeySpline (KeySpline * value)
 
3926
{
 
3927
        DependencyObject::SetValue (SplineDoubleKeyFrame::KeySplineProperty, Value (value));
 
3928
}
 
3929
 
 
3930
KeySpline *
 
3931
SplinePointKeyFrame::GetKeySpline ()
 
3932
{
 
3933
        Value *value = DependencyObject::GetValue (SplinePointKeyFrame::KeySplineProperty);
 
3934
        return value ? value->AsKeySpline () : NULL;
 
3935
}
 
3936
 
 
3937
void
 
3938
SplinePointKeyFrame::SetKeySpline (KeySpline * value)
 
3939
{
 
3940
        DependencyObject::SetValue (SplinePointKeyFrame::KeySplineProperty, Value (value));
 
3941
}
 
3942
 
 
3943
#if SL_2_0
 
3944
Orientation
 
3945
StackPanel::GetOrientation ()
 
3946
{
 
3947
        Value *value = GetValue (StackPanel::OrientationProperty);
 
3948
        return (Orientation) value->AsInt32 ();
 
3949
}
 
3950
 
 
3951
void
 
3952
StackPanel::SetOrientation (Orientation value)
 
3953
{
 
3954
        SetValue (StackPanel::OrientationProperty, Value (value));
 
3955
}
 
3956
 
 
3957
#endif
 
3958
const char *
 
3959
Storyboard::GetTargetName (DependencyObject *obj)
 
3960
{
 
3961
        Value *value = (!obj) ? NULL : obj->GetValue (Storyboard::TargetNameProperty);
 
3962
        if (!value) value = Storyboard::TargetNameProperty->GetDefaultValue();
 
3963
        return value ? value->AsString () : NULL;
 
3964
}
 
3965
 
 
3966
void
 
3967
Storyboard::SetTargetName (DependencyObject *obj, const char * value)
 
3968
{
 
3969
        if (!obj) return;
 
3970
        obj->SetValue (Storyboard::TargetNameProperty, Value (value));
 
3971
}
 
3972
 
 
3973
const char *
 
3974
Storyboard::GetTargetProperty (DependencyObject *obj)
 
3975
{
 
3976
        Value *value = (!obj) ? NULL : obj->GetValue (Storyboard::TargetPropertyProperty);
 
3977
        if (!value) value = Storyboard::TargetPropertyProperty->GetDefaultValue();
 
3978
        return value ? value->AsString () : NULL;
 
3979
}
 
3980
 
 
3981
void
 
3982
Storyboard::SetTargetProperty (DependencyObject *obj, const char * value)
 
3983
{
 
3984
        if (!obj) return;
 
3985
        obj->SetValue (Storyboard::TargetPropertyProperty, Value (value));
 
3986
}
 
3987
 
 
3988
DrawingAttributes *
 
3989
Stroke::GetDrawingAttributes ()
 
3990
{
 
3991
        Value *value = GetValue (Stroke::DrawingAttributesProperty);
 
3992
        return value ? value->AsDrawingAttributes () : NULL;
 
3993
}
 
3994
 
 
3995
void
 
3996
Stroke::SetDrawingAttributes (DrawingAttributes * value)
 
3997
{
 
3998
        SetValue (Stroke::DrawingAttributesProperty, Value (value));
 
3999
}
 
4000
 
 
4001
StylusPointCollection *
 
4002
Stroke::GetStylusPoints ()
 
4003
{
 
4004
        Value *value = GetValue (Stroke::StylusPointsProperty);
 
4005
        return value ? value->AsStylusPointCollection () : NULL;
 
4006
}
 
4007
 
 
4008
void
 
4009
Stroke::SetStylusPoints (StylusPointCollection * value)
 
4010
{
 
4011
        SetValue (Stroke::StylusPointsProperty, Value (value));
 
4012
}
 
4013
 
 
4014
#if SL_2_0
 
4015
SetterBaseCollection *
 
4016
Style::GetSetters ()
 
4017
{
 
4018
        Value *value = GetValue (Style::SettersProperty);
 
4019
        return value ? value->AsSetterBaseCollection () : NULL;
 
4020
}
 
4021
 
 
4022
void
 
4023
Style::SetSetters (SetterBaseCollection * value)
 
4024
{
 
4025
        SetValue (Style::SettersProperty, Value (value));
 
4026
}
 
4027
 
 
4028
#endif
 
4029
TabletDeviceType
 
4030
StylusInfo::GetDeviceType ()
 
4031
{
 
4032
        Value *value = GetValue (StylusInfo::DeviceTypeProperty);
 
4033
        return (TabletDeviceType) value->AsInt32 ();
 
4034
}
 
4035
 
 
4036
void
 
4037
StylusInfo::SetDeviceType (TabletDeviceType value)
 
4038
{
 
4039
        SetValue (StylusInfo::DeviceTypeProperty, Value (value));
 
4040
}
 
4041
 
 
4042
bool
 
4043
StylusInfo::GetIsInverted ()
 
4044
{
 
4045
        Value *value = GetValue (StylusInfo::IsInvertedProperty);
 
4046
        return value->AsBool ();
 
4047
}
 
4048
 
 
4049
void
 
4050
StylusInfo::SetIsInverted (bool value)
 
4051
{
 
4052
        SetValue (StylusInfo::IsInvertedProperty, Value (value));
 
4053
}
 
4054
 
 
4055
double
 
4056
StylusPoint::GetPressureFactor ()
 
4057
{
 
4058
        Value *value = GetValue (StylusPoint::PressureFactorProperty);
 
4059
        return value->AsDouble ();
 
4060
}
 
4061
 
 
4062
void
 
4063
StylusPoint::SetPressureFactor (double value)
 
4064
{
 
4065
        SetValue (StylusPoint::PressureFactorProperty, Value (value));
 
4066
}
 
4067
 
 
4068
double
 
4069
StylusPoint::GetX ()
 
4070
{
 
4071
        Value *value = GetValue (StylusPoint::XProperty);
 
4072
        return value->AsDouble ();
 
4073
}
 
4074
 
 
4075
void
 
4076
StylusPoint::SetX (double value)
 
4077
{
 
4078
        SetValue (StylusPoint::XProperty, Value (value));
 
4079
}
 
4080
 
 
4081
double
 
4082
StylusPoint::GetY ()
 
4083
{
 
4084
        Value *value = GetValue (StylusPoint::YProperty);
 
4085
        return value->AsDouble ();
 
4086
}
 
4087
 
 
4088
void
 
4089
StylusPoint::SetY (double value)
 
4090
{
 
4091
        SetValue (StylusPoint::YProperty, Value (value));
 
4092
}
 
4093
 
 
4094
const char *
 
4095
TextBlock::GetFontFamily ()
 
4096
{
 
4097
        Value *value = GetValue (TextBlock::FontFamilyProperty);
 
4098
        return value ? value->AsString () : NULL;
 
4099
}
 
4100
 
 
4101
void
 
4102
TextBlock::SetFontFamily (const char * value)
 
4103
{
 
4104
        SetValue (TextBlock::FontFamilyProperty, Value (value));
 
4105
}
 
4106
 
 
4107
double
 
4108
TextBlock::GetFontSize ()
 
4109
{
 
4110
        Value *value = GetValue (TextBlock::FontSizeProperty);
 
4111
        return value->AsDouble ();
 
4112
}
 
4113
 
 
4114
void
 
4115
TextBlock::SetFontSize (double value)
 
4116
{
 
4117
        SetValue (TextBlock::FontSizeProperty, Value (value));
 
4118
}
 
4119
 
 
4120
FontStretches
 
4121
TextBlock::GetFontStretch ()
 
4122
{
 
4123
        Value *value = GetValue (TextBlock::FontStretchProperty);
 
4124
        return (FontStretches) value->AsInt32 ();
 
4125
}
 
4126
 
 
4127
void
 
4128
TextBlock::SetFontStretch (FontStretches value)
 
4129
{
 
4130
        SetValue (TextBlock::FontStretchProperty, Value (value));
 
4131
}
 
4132
 
 
4133
FontStyles
 
4134
TextBlock::GetFontStyle ()
 
4135
{
 
4136
        Value *value = GetValue (TextBlock::FontStyleProperty);
 
4137
        return (FontStyles) value->AsInt32 ();
 
4138
}
 
4139
 
 
4140
void
 
4141
TextBlock::SetFontStyle (FontStyles value)
 
4142
{
 
4143
        SetValue (TextBlock::FontStyleProperty, Value (value));
 
4144
}
 
4145
 
 
4146
FontWeights
 
4147
TextBlock::GetFontWeight ()
 
4148
{
 
4149
        Value *value = GetValue (TextBlock::FontWeightProperty);
 
4150
        return (FontWeights) value->AsInt32 ();
 
4151
}
 
4152
 
 
4153
void
 
4154
TextBlock::SetFontWeight (FontWeights value)
 
4155
{
 
4156
        SetValue (TextBlock::FontWeightProperty, Value (value));
 
4157
}
 
4158
 
 
4159
Brush *
 
4160
TextBlock::GetForeground ()
 
4161
{
 
4162
        Value *value = GetValue (TextBlock::ForegroundProperty);
 
4163
        return value ? value->AsBrush () : NULL;
 
4164
}
 
4165
 
 
4166
void
 
4167
TextBlock::SetForeground (Brush * value)
 
4168
{
 
4169
        SetValue (TextBlock::ForegroundProperty, Value (value));
 
4170
}
 
4171
 
 
4172
InlineCollection *
 
4173
TextBlock::GetInlines ()
 
4174
{
 
4175
        Value *value = GetValue (TextBlock::InlinesProperty);
 
4176
        return value ? value->AsInlineCollection () : NULL;
 
4177
}
 
4178
 
 
4179
void
 
4180
TextBlock::SetInlines (InlineCollection * value)
 
4181
{
 
4182
        SetValue (TextBlock::InlinesProperty, Value (value));
 
4183
}
 
4184
 
 
4185
#if SL_2_0
 
4186
double
 
4187
TextBlock::GetLineHeight ()
 
4188
{
 
4189
        Value *value = GetValue (TextBlock::LineHeightProperty);
 
4190
        return value->AsDouble ();
 
4191
}
 
4192
 
 
4193
void
 
4194
TextBlock::SetLineHeight (double value)
 
4195
{
 
4196
        SetValue (TextBlock::LineHeightProperty, Value (value));
 
4197
}
 
4198
 
 
4199
#endif
 
4200
#if SL_2_0
 
4201
LineStackingStrategy
 
4202
TextBlock::GetLineStackingStrategy ()
 
4203
{
 
4204
        Value *value = GetValue (TextBlock::LineStackingStrategyProperty);
 
4205
        return (LineStackingStrategy) value->AsInt32 ();
 
4206
}
 
4207
 
 
4208
void
 
4209
TextBlock::SetLineStackingStrategy (LineStackingStrategy value)
 
4210
{
 
4211
        SetValue (TextBlock::LineStackingStrategyProperty, Value (value));
 
4212
}
 
4213
 
 
4214
#endif
 
4215
#if SL_2_0
 
4216
Thickness *
 
4217
TextBlock::GetPadding ()
 
4218
{
 
4219
        Value *value = GetValue (TextBlock::PaddingProperty);
 
4220
        return value ? value->AsThickness () : NULL;
 
4221
}
 
4222
 
 
4223
void
 
4224
TextBlock::SetPadding (Thickness * value)
 
4225
{
 
4226
        if (!value) return;
 
4227
        SetValue (TextBlock::PaddingProperty, Value (*value));
 
4228
}
 
4229
 
 
4230
#endif
 
4231
#if SL_2_0
 
4232
TextAlignment
 
4233
TextBlock::GetTextAlignment ()
 
4234
{
 
4235
        Value *value = GetValue (TextBlock::TextAlignmentProperty);
 
4236
        return (TextAlignment) value->AsInt32 ();
 
4237
}
 
4238
 
 
4239
void
 
4240
TextBlock::SetTextAlignment (TextAlignment value)
 
4241
{
 
4242
        SetValue (TextBlock::TextAlignmentProperty, Value (value));
 
4243
}
 
4244
 
 
4245
#endif
 
4246
TextDecorations
 
4247
TextBlock::GetTextDecorations ()
 
4248
{
 
4249
        Value *value = GetValue (TextBlock::TextDecorationsProperty);
 
4250
        return (TextDecorations) value->AsInt32 ();
 
4251
}
 
4252
 
 
4253
void
 
4254
TextBlock::SetTextDecorations (TextDecorations value)
 
4255
{
 
4256
        SetValue (TextBlock::TextDecorationsProperty, Value (value));
 
4257
}
 
4258
 
 
4259
const char *
 
4260
TextBlock::GetText ()
 
4261
{
 
4262
        Value *value = GetValue (TextBlock::TextProperty);
 
4263
        return value ? value->AsString () : NULL;
 
4264
}
 
4265
 
 
4266
void
 
4267
TextBlock::SetText (const char * value)
 
4268
{
 
4269
        SetValue (TextBlock::TextProperty, Value (value));
 
4270
}
 
4271
 
 
4272
TextWrapping
 
4273
TextBlock::GetTextWrapping ()
 
4274
{
 
4275
        Value *value = GetValue (TextBlock::TextWrappingProperty);
 
4276
        return (TextWrapping) value->AsInt32 ();
 
4277
}
 
4278
 
 
4279
void
 
4280
TextBlock::SetTextWrapping (TextWrapping value)
 
4281
{
 
4282
        SetValue (TextBlock::TextWrappingProperty, Value (value));
 
4283
}
 
4284
 
 
4285
#if SL_2_0
 
4286
bool
 
4287
TextBox::GetAcceptsReturn ()
 
4288
{
 
4289
        Value *value = GetValue (TextBox::AcceptsReturnProperty);
 
4290
        return value->AsBool ();
 
4291
}
 
4292
 
 
4293
void
 
4294
TextBox::SetAcceptsReturn (bool value)
 
4295
{
 
4296
        SetValue (TextBox::AcceptsReturnProperty, Value (value));
 
4297
}
 
4298
 
 
4299
#endif
 
4300
#if SL_2_0
 
4301
ScrollBarVisibility
 
4302
TextBox::GetHorizontalScrollBarVisibility ()
 
4303
{
 
4304
        Value *value = GetValue (TextBox::HorizontalScrollBarVisibilityProperty);
 
4305
        return (ScrollBarVisibility) value->AsInt32 ();
 
4306
}
 
4307
 
 
4308
void
 
4309
TextBox::SetHorizontalScrollBarVisibility (ScrollBarVisibility value)
 
4310
{
 
4311
        SetValue (TextBox::HorizontalScrollBarVisibilityProperty, Value (value));
 
4312
}
 
4313
 
 
4314
#endif
 
4315
#if SL_2_0
 
4316
bool
 
4317
TextBox::GetIsReadOnly ()
 
4318
{
 
4319
        Value *value = GetValue (TextBox::IsReadOnlyProperty);
 
4320
        return value->AsBool ();
 
4321
}
 
4322
 
 
4323
void
 
4324
TextBox::SetIsReadOnly (bool value)
 
4325
{
 
4326
        SetValue (TextBox::IsReadOnlyProperty, Value (value));
 
4327
}
 
4328
 
 
4329
#endif
 
4330
#if SL_2_0
 
4331
gint32
 
4332
TextBox::GetMaxLength ()
 
4333
{
 
4334
        Value *value = GetValue (TextBox::MaxLengthProperty);
 
4335
        return value->AsInt32 ();
 
4336
}
 
4337
 
 
4338
void
 
4339
TextBox::SetMaxLength (gint32 value)
 
4340
{
 
4341
        SetValue (TextBox::MaxLengthProperty, Value (value));
 
4342
}
 
4343
 
 
4344
#endif
 
4345
#if SL_2_0
 
4346
const char *
 
4347
TextBox::GetSelectedText ()
 
4348
{
 
4349
        Value *value = GetValue (TextBox::SelectedTextProperty);
 
4350
        return value ? value->AsString () : NULL;
 
4351
}
 
4352
 
 
4353
void
 
4354
TextBox::SetSelectedText (const char * value)
 
4355
{
 
4356
        SetValue (TextBox::SelectedTextProperty, Value (value));
 
4357
}
 
4358
 
 
4359
#endif
 
4360
#if SL_2_0
 
4361
Brush *
 
4362
TextBox::GetSelectionBackground ()
 
4363
{
 
4364
        Value *value = GetValue (TextBox::SelectionBackgroundProperty);
 
4365
        return value ? value->AsBrush () : NULL;
 
4366
}
 
4367
 
 
4368
void
 
4369
TextBox::SetSelectionBackground (Brush * value)
 
4370
{
 
4371
        SetValue (TextBox::SelectionBackgroundProperty, Value (value));
 
4372
}
 
4373
 
 
4374
#endif
 
4375
#if SL_2_0
 
4376
Brush *
 
4377
TextBox::GetSelectionForeground ()
 
4378
{
 
4379
        Value *value = GetValue (TextBox::SelectionForegroundProperty);
 
4380
        return value ? value->AsBrush () : NULL;
 
4381
}
 
4382
 
 
4383
void
 
4384
TextBox::SetSelectionForeground (Brush * value)
 
4385
{
 
4386
        SetValue (TextBox::SelectionForegroundProperty, Value (value));
 
4387
}
 
4388
 
 
4389
#endif
 
4390
#if SL_2_0
 
4391
gint32
 
4392
TextBox::GetSelectionLength ()
 
4393
{
 
4394
        Value *value = GetValue (TextBox::SelectionLengthProperty);
 
4395
        return value->AsInt32 ();
 
4396
}
 
4397
 
 
4398
void
 
4399
TextBox::SetSelectionLength (gint32 value)
 
4400
{
 
4401
        SetValue (TextBox::SelectionLengthProperty, Value (value));
 
4402
}
 
4403
 
 
4404
#endif
 
4405
#if SL_2_0
 
4406
gint32
 
4407
TextBox::GetSelectionStart ()
 
4408
{
 
4409
        Value *value = GetValue (TextBox::SelectionStartProperty);
 
4410
        return value->AsInt32 ();
 
4411
}
 
4412
 
 
4413
void
 
4414
TextBox::SetSelectionStart (gint32 value)
 
4415
{
 
4416
        SetValue (TextBox::SelectionStartProperty, Value (value));
 
4417
}
 
4418
 
 
4419
#endif
 
4420
#if SL_2_0
 
4421
TextAlignment
 
4422
TextBox::GetTextAlignment ()
 
4423
{
 
4424
        Value *value = GetValue (TextBox::TextAlignmentProperty);
 
4425
        return (TextAlignment) value->AsInt32 ();
 
4426
}
 
4427
 
 
4428
void
 
4429
TextBox::SetTextAlignment (TextAlignment value)
 
4430
{
 
4431
        SetValue (TextBox::TextAlignmentProperty, Value (value));
 
4432
}
 
4433
 
 
4434
#endif
 
4435
#if SL_2_0
 
4436
const char *
 
4437
TextBox::GetText ()
 
4438
{
 
4439
        Value *value = GetValue (TextBox::TextProperty);
 
4440
        return value ? value->AsString () : NULL;
 
4441
}
 
4442
 
 
4443
void
 
4444
TextBox::SetText (const char * value)
 
4445
{
 
4446
        SetValue (TextBox::TextProperty, Value (value));
 
4447
}
 
4448
 
 
4449
#endif
 
4450
#if SL_2_0
 
4451
TextWrapping
 
4452
TextBox::GetTextWrapping ()
 
4453
{
 
4454
        Value *value = GetValue (TextBox::TextWrappingProperty);
 
4455
        return (TextWrapping) value->AsInt32 ();
 
4456
}
 
4457
 
 
4458
void
 
4459
TextBox::SetTextWrapping (TextWrapping value)
 
4460
{
 
4461
        SetValue (TextBox::TextWrappingProperty, Value (value));
 
4462
}
 
4463
 
 
4464
#endif
 
4465
#if SL_2_0
 
4466
ScrollBarVisibility
 
4467
TextBox::GetVerticalScrollBarVisibility ()
 
4468
{
 
4469
        Value *value = GetValue (TextBox::VerticalScrollBarVisibilityProperty);
 
4470
        return (ScrollBarVisibility) value->AsInt32 ();
 
4471
}
 
4472
 
 
4473
void
 
4474
TextBox::SetVerticalScrollBarVisibility (ScrollBarVisibility value)
 
4475
{
 
4476
        SetValue (TextBox::VerticalScrollBarVisibilityProperty, Value (value));
 
4477
}
 
4478
 
 
4479
#endif
 
4480
AlignmentX
 
4481
TileBrush::GetAlignmentX ()
 
4482
{
 
4483
        Value *value = GetValue (TileBrush::AlignmentXProperty);
 
4484
        return (AlignmentX) value->AsInt32 ();
 
4485
}
 
4486
 
 
4487
void
 
4488
TileBrush::SetAlignmentX (AlignmentX value)
 
4489
{
 
4490
        SetValue (TileBrush::AlignmentXProperty, Value (value));
 
4491
}
 
4492
 
 
4493
AlignmentY
 
4494
TileBrush::GetAlignmentY ()
 
4495
{
 
4496
        Value *value = GetValue (TileBrush::AlignmentYProperty);
 
4497
        return (AlignmentY) value->AsInt32 ();
 
4498
}
 
4499
 
 
4500
void
 
4501
TileBrush::SetAlignmentY (AlignmentY value)
 
4502
{
 
4503
        SetValue (TileBrush::AlignmentYProperty, Value (value));
 
4504
}
 
4505
 
 
4506
Stretch
 
4507
TileBrush::GetStretch ()
 
4508
{
 
4509
        Value *value = GetValue (TileBrush::StretchProperty);
 
4510
        return (Stretch) value->AsInt32 ();
 
4511
}
 
4512
 
 
4513
void
 
4514
TileBrush::SetStretch (Stretch value)
 
4515
{
 
4516
        SetValue (TileBrush::StretchProperty, Value (value));
 
4517
}
 
4518
 
 
4519
bool
 
4520
Timeline::GetAutoReverse ()
 
4521
{
 
4522
        Value *value = GetValue (Timeline::AutoReverseProperty);
 
4523
        return value->AsBool ();
 
4524
}
 
4525
 
 
4526
void
 
4527
Timeline::SetAutoReverse (bool value)
 
4528
{
 
4529
        SetValue (Timeline::AutoReverseProperty, Value (value));
 
4530
}
 
4531
 
 
4532
FillBehavior
 
4533
Timeline::GetFillBehavior ()
 
4534
{
 
4535
        Value *value = GetValue (Timeline::FillBehaviorProperty);
 
4536
        return (FillBehavior) value->AsInt32 ();
 
4537
}
 
4538
 
 
4539
void
 
4540
Timeline::SetFillBehavior (FillBehavior value)
 
4541
{
 
4542
        SetValue (Timeline::FillBehaviorProperty, Value (value));
 
4543
}
 
4544
 
 
4545
double
 
4546
Timeline::GetSpeedRatio ()
 
4547
{
 
4548
        Value *value = GetValue (Timeline::SpeedRatioProperty);
 
4549
        return value->AsDouble ();
 
4550
}
 
4551
 
 
4552
void
 
4553
Timeline::SetSpeedRatio (double value)
 
4554
{
 
4555
        SetValue (Timeline::SpeedRatioProperty, Value (value));
 
4556
}
 
4557
 
 
4558
TimelineCollection *
 
4559
TimelineGroup::GetChildren ()
 
4560
{
 
4561
        Value *value = GetValue (TimelineGroup::ChildrenProperty);
 
4562
        return value ? value->AsTimelineCollection () : NULL;
 
4563
}
 
4564
 
 
4565
void
 
4566
TimelineGroup::SetChildren (TimelineCollection * value)
 
4567
{
 
4568
        SetValue (TimelineGroup::ChildrenProperty, Value (value));
 
4569
}
 
4570
 
 
4571
const char *
 
4572
TimelineMarker::GetText ()
 
4573
{
 
4574
        Value *value = GetValue (TimelineMarker::TextProperty);
 
4575
        return value ? value->AsString () : NULL;
 
4576
}
 
4577
 
 
4578
void
 
4579
TimelineMarker::SetText (const char * value)
 
4580
{
 
4581
        SetValue (TimelineMarker::TextProperty, Value (value));
 
4582
}
 
4583
 
 
4584
TimeSpan
 
4585
TimelineMarker::GetTime ()
 
4586
{
 
4587
        Value *value = GetValue (TimelineMarker::TimeProperty);
 
4588
        return value->AsTimeSpan ();
 
4589
}
 
4590
 
 
4591
void
 
4592
TimelineMarker::SetTime (TimeSpan value)
 
4593
{
 
4594
        SetValue (TimelineMarker::TimeProperty, Value (value, Type::TIMESPAN));
 
4595
}
 
4596
 
 
4597
const char *
 
4598
TimelineMarker::GetType ()
 
4599
{
 
4600
        Value *value = GetValue (TimelineMarker::TypeProperty);
 
4601
        return value ? value->AsString () : NULL;
 
4602
}
 
4603
 
 
4604
void
 
4605
TimelineMarker::SetType (const char * value)
 
4606
{
 
4607
        SetValue (TimelineMarker::TypeProperty, Value (value));
 
4608
}
 
4609
 
 
4610
TransformCollection *
 
4611
TransformGroup::GetChildren ()
 
4612
{
 
4613
        Value *value = GetValue (TransformGroup::ChildrenProperty);
 
4614
        return value ? value->AsTransformCollection () : NULL;
 
4615
}
 
4616
 
 
4617
void
 
4618
TransformGroup::SetChildren (TransformCollection * value)
 
4619
{
 
4620
        SetValue (TransformGroup::ChildrenProperty, Value (value));
 
4621
}
 
4622
 
 
4623
double
 
4624
TranslateTransform::GetX ()
 
4625
{
 
4626
        Value *value = GetValue (TranslateTransform::XProperty);
 
4627
        return value->AsDouble ();
 
4628
}
 
4629
 
 
4630
void
 
4631
TranslateTransform::SetX (double value)
 
4632
{
 
4633
        SetValue (TranslateTransform::XProperty, Value (value));
 
4634
}
 
4635
 
 
4636
double
 
4637
TranslateTransform::GetY ()
 
4638
{
 
4639
        Value *value = GetValue (TranslateTransform::YProperty);
 
4640
        return value->AsDouble ();
 
4641
}
 
4642
 
 
4643
void
 
4644
TranslateTransform::SetY (double value)
 
4645
{
 
4646
        SetValue (TranslateTransform::YProperty, Value (value));
 
4647
}
 
4648
 
 
4649
Geometry *
 
4650
UIElement::GetClip ()
 
4651
{
 
4652
        Value *value = GetValue (UIElement::ClipProperty);
 
4653
        return value ? value->AsGeometry () : NULL;
 
4654
}
 
4655
 
 
4656
void
 
4657
UIElement::SetClip (Geometry * value)
 
4658
{
 
4659
        SetValue (UIElement::ClipProperty, Value (value));
 
4660
}
 
4661
 
 
4662
MouseCursor
 
4663
UIElement::GetCursor ()
 
4664
{
 
4665
        Value *value = GetValue (UIElement::CursorProperty);
 
4666
        return (MouseCursor) value->AsInt32 ();
 
4667
}
 
4668
 
 
4669
void
 
4670
UIElement::SetCursor (MouseCursor value)
 
4671
{
 
4672
        SetValue (UIElement::CursorProperty, Value (value));
 
4673
}
 
4674
 
 
4675
bool
 
4676
UIElement::GetIsHitTestVisible ()
 
4677
{
 
4678
        Value *value = GetValue (UIElement::IsHitTestVisibleProperty);
 
4679
        return value->AsBool ();
 
4680
}
 
4681
 
 
4682
void
 
4683
UIElement::SetIsHitTestVisible (bool value)
 
4684
{
 
4685
        SetValue (UIElement::IsHitTestVisibleProperty, Value (value));
 
4686
}
 
4687
 
 
4688
Brush *
 
4689
UIElement::GetOpacityMask ()
 
4690
{
 
4691
        Value *value = GetValue (UIElement::OpacityMaskProperty);
 
4692
        return value ? value->AsBrush () : NULL;
 
4693
}
 
4694
 
 
4695
void
 
4696
UIElement::SetOpacityMask (Brush * value)
 
4697
{
 
4698
        SetValue (UIElement::OpacityMaskProperty, Value (value));
 
4699
}
 
4700
 
 
4701
double
 
4702
UIElement::GetOpacity ()
 
4703
{
 
4704
        Value *value = GetValue (UIElement::OpacityProperty);
 
4705
        return value->AsDouble ();
 
4706
}
 
4707
 
 
4708
void
 
4709
UIElement::SetOpacity (double value)
 
4710
{
 
4711
        SetValue (UIElement::OpacityProperty, Value (value));
 
4712
}
 
4713
 
 
4714
Point *
 
4715
UIElement::GetRenderTransformOrigin ()
 
4716
{
 
4717
        Value *value = GetValue (UIElement::RenderTransformOriginProperty);
 
4718
        return value ? value->AsPoint () : NULL;
 
4719
}
 
4720
 
 
4721
void
 
4722
UIElement::SetRenderTransformOrigin (Point * value)
 
4723
{
 
4724
        if (!value) return;
 
4725
        SetValue (UIElement::RenderTransformOriginProperty, Value (*value));
 
4726
}
 
4727
 
 
4728
Transform *
 
4729
UIElement::GetRenderTransform ()
 
4730
{
 
4731
        Value *value = GetValue (UIElement::RenderTransformProperty);
 
4732
        return value ? value->AsTransform () : NULL;
 
4733
}
 
4734
 
 
4735
void
 
4736
UIElement::SetRenderTransform (Transform * value)
 
4737
{
 
4738
        SetValue (UIElement::RenderTransformProperty, Value (value));
 
4739
}
 
4740
 
 
4741
ResourceDictionary *
 
4742
UIElement::GetResources ()
 
4743
{
 
4744
        Value *value = GetValue (UIElement::ResourcesProperty);
 
4745
        return value ? value->AsResourceDictionary () : NULL;
 
4746
}
 
4747
 
 
4748
void
 
4749
UIElement::SetResources (ResourceDictionary * value)
 
4750
{
 
4751
        SetValue (UIElement::ResourcesProperty, Value (value));
 
4752
}
 
4753
 
 
4754
const char *
 
4755
UIElement::GetTag ()
 
4756
{
 
4757
        Value *value = GetValue (UIElement::TagProperty);
 
4758
        return value ? value->AsString () : NULL;
 
4759
}
 
4760
 
 
4761
void
 
4762
UIElement::SetTag (const char * value)
 
4763
{
 
4764
        SetValue (UIElement::TagProperty, Value (value));
 
4765
}
 
4766
 
 
4767
TriggerCollection *
 
4768
UIElement::GetTriggers ()
 
4769
{
 
4770
        Value *value = GetValue (UIElement::TriggersProperty);
 
4771
        return value ? value->AsTriggerCollection () : NULL;
 
4772
}
 
4773
 
 
4774
void
 
4775
UIElement::SetTriggers (TriggerCollection * value)
 
4776
{
 
4777
        SetValue (UIElement::TriggersProperty, Value (value));
 
4778
}
 
4779
 
 
4780
Visibility
 
4781
UIElement::GetVisibility ()
 
4782
{
 
4783
        Value *value = GetValue (UIElement::VisibilityProperty);
 
4784
        return (Visibility) value->AsInt32 ();
 
4785
}
 
4786
 
 
4787
void
 
4788
UIElement::SetVisibility (Visibility value)
 
4789
{
 
4790
        SetValue (UIElement::VisibilityProperty, Value (value));
 
4791
}
 
4792
 
 
4793
const char *
 
4794
VideoBrush::GetSourceName ()
 
4795
{
 
4796
        Value *value = GetValue (VideoBrush::SourceNameProperty);
 
4797
        return value ? value->AsString () : NULL;
 
4798
}
 
4799
 
 
4800
void
 
4801
VideoBrush::SetSourceName (const char * value)
 
4802
{
 
4803
        SetValue (VideoBrush::SourceNameProperty, Value (value));
 
4804
}
 
4805
 
 
4806
UIElement *
 
4807
VisualBrush::GetVisual ()
 
4808
{
 
4809
        Value *value = GetValue (VisualBrush::VisualProperty);
 
4810
        return value ? value->AsUIElement () : NULL;
 
4811
}
 
4812
 
 
4813
void
 
4814
VisualBrush::SetVisual (UIElement * value)
 
4815
{
 
4816
        SetValue (VisualBrush::VisualProperty, Value (value));
 
4817
}
 
4818