stub out things to get the beatles xbox site up and running
[moon.git] / src / dependencyproperty.g.cpp
blob952a708356881fd2212148d4d841e930a877f9f5
1 /*
2 * Automatically generated, do not edit this file directly
3 */
6 #include <config.h>
8 #include "animation.h"
9 #include "application.h"
10 #include "bitmapcache.h"
11 #include "bitmapimage.h"
12 #include "bitmapsource.h"
13 #include "border.h"
14 #include "brush.h"
15 #include "canvas.h"
16 #include "collection.h"
17 #include "color.h"
18 #include "contentcontrol.h"
19 #include "control.h"
20 #include "deepzoomimagetilesource.h"
21 #include "dependencyobject.h"
22 #include "dependencyproperty.h"
23 #include "deployment.h"
24 #include "downloader.h"
25 #include "easing.h"
26 #include "effect.h"
27 #include "frameworkelement.h"
28 #include "geometry.h"
29 #include "glyphs.h"
30 #include "grid.h"
31 #include "layoutinformation.h"
32 #include "managedtypeinfo.h"
33 #include "media.h"
34 #include "mediaelement.h"
35 #include "multiscaleimage.h"
36 #include "multiscalesubimage.h"
37 #include "namescope.h"
38 #include "panel.h"
39 #include "plugin-accessibility.h"
40 #include "popup.h"
41 #include "provider.h"
42 #include "resources.h"
43 #include "shape.h"
44 #include "style.h"
45 #include "stylus.h"
46 #include "template.h"
47 #include "textblock.h"
48 #include "textbox.h"
49 #include "textoptions.h"
50 #include "tilesource.h"
51 #include "timeline.h"
52 #include "transform.h"
53 #include "trigger.h"
54 #include "uielement.h"
55 #include "usercontrol.h"
56 #include "validators.h"
58 void
59 Types::RegisterNativeProperties ()
61 DependencyProperty::Register (this, Type::VISUALBRUSH, "Visual", false, Type::UIELEMENT);
62 DependencyProperty::Register (this, Type::VIDEOBRUSH, "SourceName", false, new Value (""), Type::STRING);
63 DependencyProperty::Register (this, Type::IMAGEBRUSH, "ImageSource", false, Type::IMAGESOURCE);
64 DependencyProperty::Register (this, Type::IMAGEBRUSH, "DownloadProgress", false, new Value (0.0), Type::DOUBLE);
65 DependencyProperty::Register (this, Type::RADIALGRADIENTBRUSH, "RadiusY", false, new Value (0.5), Type::DOUBLE);
66 DependencyProperty::Register (this, Type::RADIALGRADIENTBRUSH, "RadiusX", false, new Value (0.5), Type::DOUBLE);
67 DependencyProperty::Register (this, Type::RADIALGRADIENTBRUSH, "GradientOrigin", false, new Value (Point (0.5, 0.5)), Type::POINT);
68 DependencyProperty::Register (this, Type::RADIALGRADIENTBRUSH, "Center", false, new Value (Point (0.5, 0.5)), Type::POINT);
69 DependencyProperty::Register (this, Type::LINEARGRADIENTBRUSH, "StartPoint", false, Type::POINT);
70 DependencyProperty::Register (this, Type::LINEARGRADIENTBRUSH, "EndPoint", false, new Value (Point(1,1)), Type::POINT);
71 DependencyProperty::Register (this, Type::SOLIDCOLORBRUSH, "Color", false, new Value (Color (0x00000000)), Type::COLOR);
72 DependencyProperty::Register (this, Type::TILEBRUSH, "Stretch", false, new Value (StretchFill), Type::INT32);
73 DependencyProperty::Register (this, Type::TILEBRUSH, "AlignmentY", false, new Value (AlignmentYCenter), Type::INT32);
74 DependencyProperty::Register (this, Type::TILEBRUSH, "AlignmentX", false, new Value (AlignmentXCenter), Type::INT32);
75 DependencyProperty::Register (this, Type::GRADIENTBRUSH, "SpreadMethod", false, new Value (GradientSpreadMethodPad), Type::INT32);
76 DependencyProperty::Register (this, Type::GRADIENTBRUSH, "MappingMode", false, new Value (BrushMappingModeRelativeToBoundingBox), Type::INT32);
77 DependencyProperty::RegisterFull (this, Type::GRADIENTBRUSH, "GradientStops", false, NULL, Type::GRADIENTSTOP_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
78 DependencyProperty::Register (this, Type::GRADIENTBRUSH, "ColorInterpolationMode", false, new Value (ColorInterpolationModeSRgbLinearInterpolation), Type::INT32);
79 DependencyProperty::RegisterFull (this, Type::INKPRESENTER, "Strokes", false, NULL, Type::STROKE_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
80 DependencyProperty::Register (this, Type::BRUSH, "Transform", false, Value::CreateUnrefPtr (new MatrixTransform ()), Type::TRANSFORM);
81 DependencyProperty::Register (this, Type::BRUSH, "RelativeTransform", false, Value::CreateUnrefPtr (new MatrixTransform ()), Type::TRANSFORM);
82 DependencyProperty::Register (this, Type::BRUSH, "Opacity", false, new Value (1.0), Type::DOUBLE);
83 DependencyProperty::Register (this, Type::BRUSH, "Changed", false, Type::BOOL);
84 DependencyProperty::Register (this, Type::RECTANGLE, "RadiusY", false, new Value (0.0), Type::DOUBLE);
85 DependencyProperty::Register (this, Type::RECTANGLE, "RadiusX", false, new Value (0.0), Type::DOUBLE);
86 DependencyProperty::RegisterFull (this, Type::POLYLINE, "Points", false, NULL, Type::POINT_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
87 DependencyProperty::Register (this, Type::POLYLINE, "FillRule", false, new Value (FillRuleEvenOdd), Type::INT32);
88 DependencyProperty::RegisterFull (this, Type::POLYGON, "Points", false, NULL, Type::POINT_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
89 DependencyProperty::Register (this, Type::POLYGON, "FillRule", false, new Value (FillRuleEvenOdd), Type::INT32);
90 DependencyProperty::Register (this, Type::PATH, "Data", false, Type::GEOMETRY);
91 DependencyProperty::Register (this, Type::LINE, "Y2", false, new Value (0.0), Type::DOUBLE);
92 DependencyProperty::Register (this, Type::LINE, "Y1", false, new Value (0.0), Type::DOUBLE);
93 DependencyProperty::Register (this, Type::LINE, "X2", false, new Value (0.0), Type::DOUBLE);
94 DependencyProperty::Register (this, Type::LINE, "X1", false, new Value (0.0), Type::DOUBLE);
95 DependencyProperty::RegisterFull (this, Type::MULTISCALEIMAGE, "ViewportWidth", false, new Value (1.0), Type::DOUBLE, false, false, true, NULL, NULL, NULL, false);
96 DependencyProperty::RegisterFull (this, Type::MULTISCALEIMAGE, "ViewportOrigin", false, new Value (Point(0,0)), Type::POINT, false, false, true, NULL, NULL, NULL, false);
97 DependencyProperty::Register (this, Type::MULTISCALEIMAGE, "UseSprings", false, new Value (true), Type::BOOL);
98 DependencyProperty::Register (this, Type::MULTISCALEIMAGE, "TileFade", false, new Value (0.0), Type::DOUBLE);
99 DependencyProperty::RegisterFull (this, Type::MULTISCALEIMAGE, "SubImages", false, NULL, Type::MULTISCALESUBIMAGE_COLLECTION, false, true, false, NULL, NULL, AutoCreators::default_autocreator, false);
100 DependencyProperty::Register (this, Type::MULTISCALEIMAGE, "Source", false, Type::MULTISCALETILESOURCE);
101 DependencyProperty::RegisterFull (this, Type::MULTISCALEIMAGE, "IsIdle", false, new Value (true), Type::BOOL, false, true, false, NULL, NULL, NULL, false);
102 DependencyProperty::RegisterFull (this, Type::MULTISCALEIMAGE, "IsDownloading", false, new Value (false), Type::BOOL, false, true, false, NULL, NULL, NULL, false);
103 DependencyProperty::Register (this, Type::MULTISCALEIMAGE, "InternalViewportWidth", false, new Value (1.0), Type::DOUBLE);
104 DependencyProperty::Register (this, Type::MULTISCALEIMAGE, "InternalViewportOrigin", false, new Value (Point(0,0)), Type::POINT);
105 DependencyProperty::Register (this, Type::MULTISCALEIMAGE, "BlurFactor", false, new Value (1.0), Type::DOUBLE);
106 DependencyProperty::RegisterFull (this, Type::MULTISCALEIMAGE, "AspectRatio", false, new Value (1.0), Type::DOUBLE, false, true, false, NULL, NULL, NULL, false);
107 DependencyProperty::Register (this, Type::MULTISCALEIMAGE, "AllowDownloading", false, new Value (true), Type::BOOL);
108 DependencyProperty::RegisterFull (this, Type::IMAGE, "Source", false, NULL, Type::IMAGESOURCE, false, false, false, NULL, NULL, Image::CreateDefaultImageSource, false);
109 DependencyProperty::Register (this, Type::USERCONTROL, "Content", false, Type::UIELEMENT);
110 DependencyProperty::Register (this, Type::CONTENTCONTROL, "ContentTemplate", false, Type::DATATEMPLATE);
111 DependencyProperty::RegisterFull (this, Type::CONTENTCONTROL, "Content", false, NULL, Type::OBJECT, false, false, false, NULL, Validators::ContentControlContentValidator, NULL, false);
112 DependencyProperty::Register (this, Type::GRID, "ShowGridLines", false, new Value (false), Type::BOOL);
113 DependencyProperty::RegisterFull (this, Type::GRID, "RowSpan", false, new Value (1), Type::INT32, true, false, false, NULL, Validators::IntGreaterThanZeroValidator, NULL, false);
114 DependencyProperty::RegisterFull (this, Type::GRID, "Row", false, new Value (0), Type::INT32, true, false, false, NULL, Validators::PositiveIntValidator, NULL, false);
115 DependencyProperty::RegisterFull (this, Type::GRID, "RowDefinitions", false, NULL, Type::ROWDEFINITION_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
116 DependencyProperty::RegisterFull (this, Type::GRID, "ColumnSpan", false, new Value (1), Type::INT32, true, false, false, NULL, Validators::IntGreaterThanZeroValidator, NULL, false);
117 DependencyProperty::RegisterFull (this, Type::GRID, "Column", false, new Value (0), Type::INT32, true, false, false, NULL, Validators::PositiveIntValidator, NULL, false);
118 DependencyProperty::RegisterFull (this, Type::GRID, "ColumnDefinitions", false, NULL, Type::COLUMNDEFINITION_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
119 DependencyProperty::RegisterFull (this, Type::CANVAS, "ZIndex", false, new Value (0), Type::INT32, true, false, false, NULL, NULL, NULL, false);
120 DependencyProperty::RegisterFull (this, Type::CANVAS, "Top", false, new Value (0.0), Type::DOUBLE, true, false, false, NULL, NULL, NULL, false);
121 DependencyProperty::RegisterFull (this, Type::CANVAS, "Left", false, new Value (0.0), Type::DOUBLE, true, false, false, NULL, NULL, NULL, false);
122 DependencyProperty::Register (this, Type::TEXTBLOCK, "TextWrapping", false, new Value (TextWrappingNoWrap), Type::INT32);
123 DependencyProperty::Register (this, Type::TEXTBLOCK, "Text", false, new Value (""), Type::STRING);
124 DependencyProperty::Register (this, Type::TEXTBLOCK, "TextDecorations", false, new Value (TextDecorationsNone), Type::INT32);
125 DependencyProperty::Register (this, Type::TEXTBLOCK, "TextAlignment", false, new Value (TextAlignmentLeft), Type::INT32);
126 DependencyProperty::Register (this, Type::TEXTBLOCK, "Padding", false, new Value (Thickness (0)), Type::THICKNESS);
127 DependencyProperty::Register (this, Type::TEXTBLOCK, "LineStackingStrategy", false, new Value (LineStackingStrategyMaxHeight), Type::INT32);
128 DependencyProperty::Register (this, Type::TEXTBLOCK, "LineHeight", false, new Value (0.0), Type::DOUBLE);
129 DependencyProperty::RegisterFull (this, Type::TEXTBLOCK, "Inlines", false, NULL, Type::INLINE_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
130 DependencyProperty::Register (this, Type::TEXTBLOCK, "Foreground", false, Value::CreateUnrefPtr (new SolidColorBrush("black")), Type::BRUSH);
131 DependencyProperty::Register (this, Type::TEXTBLOCK, "FontWeight", false, new Value (FontWeight(TEXTBLOCK_FONT_WEIGHT)), Type::FONTWEIGHT);
132 DependencyProperty::Register (this, Type::TEXTBLOCK, "FontStyle", false, new Value (FontStyle(TEXTBLOCK_FONT_STYLE)), Type::FONTSTYLE);
133 DependencyProperty::Register (this, Type::TEXTBLOCK, "FontStretch", false, new Value (FontStretch(TEXTBLOCK_FONT_STRETCH)), Type::FONTSTRETCH);
134 DependencyProperty::Register (this, Type::TEXTBLOCK, "FontSource", false, Type::FONTSOURCE);
135 DependencyProperty::RegisterFull (this, Type::TEXTBLOCK, "FontSize", false, NULL, Type::DOUBLE, false, false, false, NULL, NULL, AutoCreators::CreateDefaultFontSize, false);
136 DependencyProperty::Register (this, Type::TEXTBLOCK, "FontFamily", false, new Value (FontFamily(TEXTBLOCK_FONT_FAMILY)), Type::FONTFAMILY);
137 DependencyProperty::Register (this, Type::POPUP, "VerticalOffset", false, new Value (0.0), Type::DOUBLE);
138 DependencyProperty::Register (this, Type::POPUP, "IsOpen", false, new Value (false), Type::BOOL);
139 DependencyProperty::Register (this, Type::POPUP, "HorizontalOffset", false, new Value (0.0), Type::DOUBLE);
140 DependencyProperty::RegisterFull (this, Type::POPUP, "Child", false, NULL, Type::UIELEMENT, false, false, false, NULL, Validators::ContentControlContentValidator, NULL, false);
141 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "Volume", false, new Value (0.5), Type::DOUBLE, false, false, false, NULL, Validators::VolumeValidator, NULL, false);
142 DependencyProperty::Register (this, Type::MEDIAELEMENT, "Stretch", false, new Value (StretchUniform), Type::INT32);
143 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "Source", false, NULL, Type::URI, false, false, true, NULL, NULL, NULL, true);
144 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "RenderedFramesPerSecond", false, new Value (0.0), Type::DOUBLE, false, true, false, NULL, NULL, NULL, false);
145 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "Position", false, NULL, Type::TIMESPAN, false, false, true, NULL, NULL, NULL, false);
146 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "NaturalVideoWidth", false, new Value (0), Type::INT32, false, true, false, NULL, Validators::IntGreaterThanZeroValidator, NULL, false);
147 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "NaturalVideoHeight", false, new Value (0), Type::INT32, false, true, false, NULL, Validators::IntGreaterThanZeroValidator, NULL, false);
148 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "NaturalDuration", false, new Value (Duration::FromSeconds (0)), Type::DURATION, false, true, false, NULL, NULL, NULL, false);
149 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "Markers", false, NULL, Type::TIMELINEMARKER_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
150 DependencyProperty::Register (this, Type::MEDIAELEMENT, "IsMuted", false, new Value (false), Type::BOOL);
151 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "DroppedFramesPerSecond", false, new Value (0.0), Type::DOUBLE, false, true, false, NULL, NULL, NULL, false);
152 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "DownloadProgress", false, new Value (0.0), Type::DOUBLE, false, true, false, NULL, NULL, NULL, false);
153 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "DownloadProgressOffset", false, new Value (0.0), Type::DOUBLE, false, true, false, NULL, NULL, NULL, false);
154 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "CurrentState", false, new Value (MediaStateClosed), Type::INT32, false, true, false, NULL, NULL, NULL, false);
155 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "CanSeek", false, new Value (false), Type::BOOL, false, true, false, NULL, NULL, NULL, false);
156 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "CanPause", false, new Value (false), Type::BOOL, false, true, false, NULL, NULL, NULL, false);
157 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "BufferingTime", false, NULL, Type::TIMESPAN, false, false, false, NULL, Validators::BufferingTimeValidator, NULL, false);
158 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "BufferingProgress", false, new Value (0.0), Type::DOUBLE, false, true, false, NULL, NULL, NULL, false);
159 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "Balance", false, new Value (0.0), Type::DOUBLE, false, false, false, NULL, Validators::BalanceValidator, NULL, false);
160 DependencyProperty::Register (this, Type::MEDIAELEMENT, "AutoPlay", false, new Value (true), Type::BOOL);
161 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "AudioStreamIndex", false, NULL, Type::INT32, false, false, false, NULL, Validators::AudioStreamIndexValidator, NULL, true);
162 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "AudioStreamCount", false, new Value (0), Type::INT32, false, true, false, NULL, NULL, NULL, false);
163 DependencyProperty::RegisterFull (this, Type::MEDIAELEMENT, "Attributes", false, NULL, Type::MEDIAATTRIBUTE_COLLECTION, false, false, false, NULL, Validators::MediaAttributeCollectionValidator, AutoCreators::default_autocreator, false);
164 DependencyProperty::Register (this, Type::SHAPE, "StrokeThickness", false, new Value (1.0), Type::DOUBLE);
165 DependencyProperty::Register (this, Type::SHAPE, "StrokeStartLineCap", false, new Value (PenLineCapFlat), Type::INT32);
166 DependencyProperty::Register (this, Type::SHAPE, "Stroke", false, Type::BRUSH);
167 DependencyProperty::Register (this, Type::SHAPE, "StrokeMiterLimit", false, new Value (10.0), Type::DOUBLE);
168 DependencyProperty::Register (this, Type::SHAPE, "StrokeLineJoin", false, new Value (PenLineJoinMiter), Type::INT32);
169 DependencyProperty::Register (this, Type::SHAPE, "StrokeEndLineCap", false, new Value (PenLineCapFlat), Type::INT32);
170 DependencyProperty::Register (this, Type::SHAPE, "StrokeDashOffset", false, new Value (0.0), Type::DOUBLE);
171 DependencyProperty::Register (this, Type::SHAPE, "StrokeDashCap", false, new Value (PenLineCapFlat), Type::INT32);
172 DependencyProperty::Register (this, Type::SHAPE, "StrokeDashArray", false, Type::DOUBLE_COLLECTION);
173 DependencyProperty::RegisterFull (this, Type::SHAPE, "Stretch", false, NULL, Type::INT32, false, false, false, NULL, NULL, Shape::CreateDefaultStretch, false);
174 DependencyProperty::Register (this, Type::SHAPE, "Fill", false, Type::BRUSH);
175 DependencyProperty::Register (this, Type::MEDIABASE, "Stretch", false, new Value (StretchUniform), Type::INT32);
176 DependencyProperty::RegisterFull (this, Type::MEDIABASE, "Source", false, NULL, Type::STRING, false, false, true, NULL, NULL, NULL, false);
177 DependencyProperty::Register (this, Type::MEDIABASE, "DownloadProgress", false, new Value (0.0), Type::DOUBLE);
178 DependencyProperty::Register (this, Type::GLYPHS, "UnicodeString", false, new Value (""), Type::STRING);
179 DependencyProperty::Register (this, Type::GLYPHS, "StyleSimulations", false, new Value (StyleSimulationsNone), Type::INT32);
180 DependencyProperty::RegisterFull (this, Type::GLYPHS, "OriginY", false, new Value (-HUGE), Type::DOUBLE, false, false, false, NULL, Validators::FloatValidator, NULL, false);
181 DependencyProperty::RegisterFull (this, Type::GLYPHS, "OriginX", false, new Value (-HUGE), Type::DOUBLE, false, false, false, NULL, Validators::FloatValidator, NULL, false);
182 DependencyProperty::Register (this, Type::GLYPHS, "Indices", false, new Value (""), Type::STRING);
183 DependencyProperty::RegisterFull (this, Type::GLYPHS, "FontUri", false, new Value (Uri()), Type::URI, false, false, false, NULL, Validators::NonNullValidator, NULL, false);
184 DependencyProperty::Register (this, Type::GLYPHS, "FontRenderingEmSize", false, new Value (0.0), Type::DOUBLE);
185 DependencyProperty::Register (this, Type::GLYPHS, "Fill", false, Type::BRUSH);
186 DependencyProperty::Register (this, Type::CONTROL, "VerticalContentAlignment", false, new Value (VerticalAlignmentCenter), Type::INT32);
187 DependencyProperty::RegisterFull (this, Type::CONTROL, "Template", false, NULL, Type::CONTROLTEMPLATE, false, false, false, NULL, Validators::TemplateValidator, NULL, false);
188 DependencyProperty::Register (this, Type::CONTROL, "TabNavigation", false, new Value (KeyboardNavigationModeLocal), Type::INT32);
189 DependencyProperty::Register (this, Type::CONTROL, "TabIndex", false, new Value (INT_MAX), Type::INT32);
190 DependencyProperty::Register (this, Type::CONTROL, "Padding", false, new Value (Thickness(0.0)), Type::THICKNESS);
191 DependencyProperty::RegisterFull (this, Type::CONTROL, "IsTemplateItem", false, new Value (false), Type::BOOL, true, false, false, NULL, NULL, NULL, false);
192 DependencyProperty::Register (this, Type::CONTROL, "IsTabStop", false, new Value (true), Type::BOOL);
193 DependencyProperty::Register (this, Type::CONTROL, "IsEnabled", false, new Value (true), Type::BOOL);
194 DependencyProperty::Register (this, Type::CONTROL, "HorizontalContentAlignment", false, new Value (HorizontalAlignmentCenter), Type::INT32);
195 DependencyProperty::Register (this, Type::CONTROL, "Foreground", false, Value::CreateUnrefPtr (new SolidColorBrush("black")), Type::BRUSH);
196 DependencyProperty::Register (this, Type::CONTROL, "FontWeight", false, new Value (FontWeight(CONTROL_FONT_WEIGHT)), Type::FONTWEIGHT);
197 DependencyProperty::Register (this, Type::CONTROL, "FontStyle", false, new Value (FontStyle(CONTROL_FONT_STYLE)), Type::FONTSTYLE);
198 DependencyProperty::Register (this, Type::CONTROL, "FontStretch", false, new Value (FontStretch(CONTROL_FONT_STRETCH)), Type::FONTSTRETCH);
199 DependencyProperty::RegisterFull (this, Type::CONTROL, "FontSize", false, NULL, Type::DOUBLE, false, false, false, NULL, NULL, AutoCreators::CreateDefaultFontSize, false);
200 DependencyProperty::Register (this, Type::CONTROL, "FontFamily", false, new Value (FontFamily(CONTROL_FONT_FAMILY)), Type::FONTFAMILY);
201 DependencyProperty::Register (this, Type::CONTROL, "DefaultStyleKey", false, Type::MANAGEDTYPEINFO);
202 DependencyProperty::Register (this, Type::CONTROL, "BorderThickness", false, new Value (Thickness(0.0)), Type::THICKNESS);
203 DependencyProperty::Register (this, Type::CONTROL, "BorderBrush", false, Type::BRUSH);
204 DependencyProperty::Register (this, Type::CONTROL, "Background", false, Type::BRUSH);
205 DependencyProperty::RegisterFull (this, Type::PANEL, "Children", false, NULL, Type::UIELEMENT_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
206 DependencyProperty::Register (this, Type::PANEL, "Background", false, Type::BRUSH);
207 DependencyProperty::RegisterFull (this, Type::BORDER, "Padding", false, new Value (Thickness(0)), Type::THICKNESS, false, false, false, NULL, Validators::BorderThicknessValidator, NULL, false);
208 DependencyProperty::RegisterFull (this, Type::BORDER, "CornerRadius", false, new Value (CornerRadius(0)), Type::CORNERRADIUS, false, false, false, NULL, Validators::CornerRadiusValidator, NULL, false);
209 DependencyProperty::Register (this, Type::BORDER, "Child", false, Type::UIELEMENT);
210 DependencyProperty::RegisterFull (this, Type::BORDER, "BorderThickness", false, new Value (Thickness(0)), Type::THICKNESS, false, false, false, NULL, Validators::BorderThicknessValidator, NULL, false);
211 DependencyProperty::Register (this, Type::BORDER, "BorderBrush", false, Type::BRUSH);
212 DependencyProperty::Register (this, Type::BORDER, "Background", false, Type::BRUSH);
213 DependencyProperty::RegisterFull (this, Type::TIMELINEGROUP, "Children", false, NULL, Type::TIMELINE_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
214 DependencyProperty::RegisterFull (this, Type::SETTER, "Value", false, NULL, Type::OBJECT, false, false, false, NULL, Validators::IsSetterSealedValidator, NULL, false);
215 DependencyProperty::RegisterFull (this, Type::SETTER, "Property", false, NULL, Type::DEPENDENCYPROPERTY, false, false, false, NULL, Validators::IsSetterSealedValidator, NULL, false);
216 DependencyProperty::Register (this, Type::SETTER, "ConvertedValue", false, Type::OBJECT);
217 DependencyProperty::Register (this, Type::RUN, "Text", false, Type::STRING);
218 DependencyProperty::Register (this, Type::RECTANGLEGEOMETRY, "Rect", false, Type::RECT);
219 DependencyProperty::Register (this, Type::RECTANGLEGEOMETRY, "RadiusY", false, new Value (0.0), Type::DOUBLE);
220 DependencyProperty::Register (this, Type::RECTANGLEGEOMETRY, "RadiusX", false, new Value (0.0), Type::DOUBLE);
221 DependencyProperty::Register (this, Type::PATHGEOMETRY, "FillRule", false, new Value (FillRuleEvenOdd), Type::INT32);
222 DependencyProperty::RegisterFull (this, Type::PATHGEOMETRY, "Figures", false, NULL, Type::PATHFIGURE_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
223 DependencyProperty::Register (this, Type::LINEGEOMETRY, "StartPoint", false, Type::POINT);
224 DependencyProperty::Register (this, Type::LINEGEOMETRY, "EndPoint", false, Type::POINT);
225 DependencyProperty::Register (this, Type::GEOMETRYGROUP, "FillRule", false, new Value (FillRuleEvenOdd), Type::INT32);
226 DependencyProperty::RegisterFull (this, Type::GEOMETRYGROUP, "Children", false, NULL, Type::GEOMETRY_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
227 DependencyProperty::Register (this, Type::ELLIPSEGEOMETRY, "RadiusY", false, new Value (0.0), Type::DOUBLE);
228 DependencyProperty::Register (this, Type::ELLIPSEGEOMETRY, "RadiusX", false, new Value (0.0), Type::DOUBLE);
229 DependencyProperty::Register (this, Type::ELLIPSEGEOMETRY, "Center", false, Type::POINT);
230 DependencyProperty::Register (this, Type::DEEPZOOMIMAGETILESOURCE, "UriSource", false, Type::URI);
231 DependencyProperty::RegisterFull (this, Type::RESOURCE_DICTIONARY, "MergedDictionaries", false, NULL, Type::RESOURCE_DICTIONARY_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
232 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "Width", false, new Value (NAN), Type::DOUBLE);
233 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "VerticalAlignment", false, new Value (VerticalAlignmentStretch), Type::INT32);
234 DependencyProperty::RegisterFull (this, Type::FRAMEWORKELEMENT, "Style", false, NULL, Type::STYLE, false, false, false, NULL, Validators::StyleValidator, NULL, false);
235 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "MinWidth", false, new Value (0.0), Type::DOUBLE);
236 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "MinHeight", false, new Value (0.0), Type::DOUBLE);
237 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "MaxWidth", false, new Value (INFINITY), Type::DOUBLE);
238 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "MaxHeight", false, new Value (INFINITY), Type::DOUBLE);
239 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "Margin", false, new Value (Thickness (0)), Type::THICKNESS);
240 DependencyProperty::RegisterFull (this, Type::FRAMEWORKELEMENT, "Language", false, new Value ("en-US"), Type::STRING, false, false, false, NULL, Validators::NonNullValidator, NULL, false);
241 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "HorizontalAlignment", false, new Value (HorizontalAlignmentStretch), Type::INT32);
242 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "Height", false, new Value (NAN), Type::DOUBLE);
243 DependencyProperty::Register (this, Type::FRAMEWORKELEMENT, "DataContext", false, Type::OBJECT);
244 DependencyProperty::RegisterFull (this, Type::FRAMEWORKELEMENT, "ActualWidth", false, new Value (0.0), Type::DOUBLE, false, true, false, NULL, NULL, NULL, false);
245 DependencyProperty::RegisterFull (this, Type::FRAMEWORKELEMENT, "ActualHeight", false, new Value (0.0), Type::DOUBLE, false, true, false, NULL, NULL, NULL, false);
246 DependencyProperty::Register (this, Type::POWEREASE, "Power", false, new Value (2.0), Type::DOUBLE);
247 DependencyProperty::Register (this, Type::EXPONENTIALEASE, "Exponent", false, new Value (2.0), Type::DOUBLE);
248 DependencyProperty::Register (this, Type::ELASTICEASE, "Springiness", false, new Value (3.0), Type::DOUBLE);
249 DependencyProperty::Register (this, Type::ELASTICEASE, "Oscillations", false, new Value (3), Type::INT32);
250 DependencyProperty::Register (this, Type::BOUNCEEASE, "Bounciness", false, new Value (2.0), Type::DOUBLE);
251 DependencyProperty::Register (this, Type::BOUNCEEASE, "Bounces", false, new Value (3), Type::INT32);
252 DependencyProperty::Register (this, Type::BACKEASE, "Amplitude", false, new Value (1.0), Type::DOUBLE);
253 DependencyProperty::RegisterFull (this, Type::SPLINEPOINTKEYFRAME, "KeySpline", false, NULL, Type::KEYSPLINE, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
254 DependencyProperty::Register (this, Type::EASINGPOINTKEYFRAME, "EasingFunction", false, Type::EASINGFUNCTIONBASE);
255 DependencyProperty::RegisterFull (this, Type::POINTANIMATIONUSINGKEYFRAMES, "KeyFrames", false, NULL, Type::POINTKEYFRAME_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
256 DependencyProperty::RegisterFull (this, Type::SPLINEDOUBLEKEYFRAME, "KeySpline", false, NULL, Type::KEYSPLINE, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
257 DependencyProperty::Register (this, Type::EASINGDOUBLEKEYFRAME, "EasingFunction", false, Type::EASINGFUNCTIONBASE);
258 DependencyProperty::RegisterFull (this, Type::DOUBLEANIMATIONUSINGKEYFRAMES, "KeyFrames", false, NULL, Type::DOUBLEKEYFRAME_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
259 DependencyProperty::Register (this, Type::WINDOWSETTINGS, "Width", false, new Value (""), Type::STRING);
260 DependencyProperty::RegisterFull (this, Type::WINDOWSETTINGS, "Title", false, new Value (""), Type::STRING, false, false, false, NULL, Validators::NonNullValidator, NULL, false);
261 DependencyProperty::Register (this, Type::WINDOWSETTINGS, "Height", false, new Value (""), Type::STRING);
262 DependencyProperty::Register (this, Type::TIMELINEMARKER, "Type", false, Type::STRING);
263 DependencyProperty::Register (this, Type::TIMELINEMARKER, "Time", false, Type::TIMESPAN);
264 DependencyProperty::Register (this, Type::TIMELINEMARKER, "Text", false, Type::STRING);
265 DependencyProperty::Register (this, Type::TIMELINE, "SpeedRatio", false, new Value (1.0), Type::DOUBLE);
266 DependencyProperty::Register (this, Type::TIMELINE, "RepeatBehavior", false, new Value (RepeatBehavior ((double) 1)), Type::REPEATBEHAVIOR);
267 DependencyProperty::Register (this, Type::TIMELINE, "FillBehavior", false, new Value (FillBehaviorHoldEnd), Type::INT32);
268 DependencyProperty::Register (this, Type::TIMELINE, "Duration", false, new Value (Duration::Automatic), Type::DURATION);
269 DependencyProperty::RegisterFull (this, Type::TIMELINE, "BeginTime", false, new Value ((gint64) 0, Type::TIMESPAN), Type::TIMESPAN, false, false, false, NULL, NULL, NULL, true);
270 DependencyProperty::Register (this, Type::TIMELINE, "AutoReverse", false, new Value (false), Type::BOOL);
271 DependencyProperty::Register (this, Type::STYLUSPOINT, "Y", false, new Value (0.0), Type::DOUBLE);
272 DependencyProperty::Register (this, Type::STYLUSPOINT, "X", false, new Value (0.0), Type::DOUBLE);
273 DependencyProperty::Register (this, Type::STYLUSPOINT, "PressureFactor", false, new Value (0.5), Type::DOUBLE);
274 DependencyProperty::Register (this, Type::STYLUSINFO, "IsInverted", false, new Value (false), Type::BOOL);
275 DependencyProperty::Register (this, Type::STYLUSINFO, "DeviceType", false, new Value (TabletDeviceTypeMouse), Type::INT32);
276 DependencyProperty::Register (this, Type::STYLE, "TargetType", false, Type::MANAGEDTYPEINFO);
277 DependencyProperty::RegisterFull (this, Type::STYLE, "Setters", false, NULL, Type::SETTERBASE_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
278 DependencyProperty::Register (this, Type::STYLE, "IsSealed", false, new Value (false), Type::BOOL);
279 DependencyProperty::RegisterFull (this, Type::STROKE, "StylusPoints", false, NULL, Type::STYLUSPOINT_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
280 DependencyProperty::RegisterFull (this, Type::STROKE, "DrawingAttributes", false, NULL, Type::DRAWINGATTRIBUTES, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
281 DependencyProperty::Register (this, Type::SETTERBASE, "IsSealed", false, new Value (false), Type::BOOL);
282 DependencyProperty::Register (this, Type::ROWDEFINITION, "MinHeight", false, new Value (0.0), Type::DOUBLE);
283 DependencyProperty::Register (this, Type::ROWDEFINITION, "MaxHeight", false, new Value (INFINITY), Type::DOUBLE);
284 DependencyProperty::Register (this, Type::ROWDEFINITION, "Height", false, new Value (GridLength (1.0, GridUnitTypeStar)), Type::GRIDLENGTH);
285 DependencyProperty::Register (this, Type::ROWDEFINITION, "ActualHeight", false, new Value (0.0), Type::DOUBLE);
286 DependencyProperty::Register (this, Type::PIXELSHADER, "UriSource", false, Type::URI);
287 DependencyProperty::Register (this, Type::PATHFIGURE, "StartPoint", false, Type::POINT);
288 DependencyProperty::RegisterFull (this, Type::PATHFIGURE, "Segments", false, NULL, Type::PATHSEGMENT_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
289 DependencyProperty::Register (this, Type::PATHFIGURE, "IsFilled", false, new Value (true), Type::BOOL);
290 DependencyProperty::Register (this, Type::PATHFIGURE, "IsClosed", false, new Value (false), Type::BOOL);
291 DependencyProperty::Register (this, Type::OUTOFBROWSERSETTINGS, "WindowSettings", false, Type::WINDOWSETTINGS);
292 DependencyProperty::Register (this, Type::OUTOFBROWSERSETTINGS, "ShowInstallMenuItem", false, new Value (true), Type::BOOL);
293 DependencyProperty::RegisterFull (this, Type::OUTOFBROWSERSETTINGS, "ShortName", false, new Value (""), Type::STRING, false, false, false, NULL, Validators::NonNullValidator, NULL, false);
294 DependencyProperty::Register (this, Type::OUTOFBROWSERSETTINGS, "Icons", false, Type::ICON_COLLECTION);
295 DependencyProperty::Register (this, Type::OUTOFBROWSERSETTINGS, "EnableGPUAcceleration", false, new Value (true), Type::BOOL);
296 DependencyProperty::RegisterFull (this, Type::OUTOFBROWSERSETTINGS, "Blurb", false, new Value (""), Type::STRING, false, false, false, NULL, Validators::NonNullValidator, NULL, false);
297 DependencyProperty::RegisterFull (this, Type::NAMESCOPE, "NameScope", false, NULL, Type::NAMESCOPE, true, false, false, NULL, NULL, NULL, false);
298 DependencyProperty::Register (this, Type::MULTISCALESUBIMAGE, "ZIndex", false, new Value (0), Type::INT32);
299 DependencyProperty::Register (this, Type::MULTISCALESUBIMAGE, "ViewportWidth", false, new Value (1.0), Type::DOUBLE);
300 DependencyProperty::Register (this, Type::MULTISCALESUBIMAGE, "ViewportOrigin", false, new Value (Point(0,0)), Type::POINT);
301 DependencyProperty::Register (this, Type::MULTISCALESUBIMAGE, "Opacity", false, new Value (1.0), Type::DOUBLE);
302 DependencyProperty::RegisterFull (this, Type::MULTISCALESUBIMAGE, "AspectRatio", false, new Value (1.0), Type::DOUBLE, false, true, false, NULL, NULL, NULL, false);
303 DependencyProperty::Register (this, Type::MEDIAATTRIBUTE, "Value", false, Type::STRING);
304 DependencyProperty::Register (this, Type::MATRIX, "OffsetY", false, new Value (0.0), Type::DOUBLE);
305 DependencyProperty::Register (this, Type::MATRIX, "OffsetX", false, new Value (0.0), Type::DOUBLE);
306 DependencyProperty::Register (this, Type::MATRIX, "M22", false, new Value (1.0), Type::DOUBLE);
307 DependencyProperty::Register (this, Type::MATRIX, "M21", false, new Value (0.0), Type::DOUBLE);
308 DependencyProperty::Register (this, Type::MATRIX, "M12", false, new Value (0.0), Type::DOUBLE);
309 DependencyProperty::Register (this, Type::MATRIX, "M11", false, new Value (1.0), Type::DOUBLE);
310 DependencyProperty::Register (this, Type::KEYSPLINE, "ControlPoint2", false, new Value (Point (1.0, 1.0)), Type::POINT);
311 DependencyProperty::Register (this, Type::KEYSPLINE, "ControlPoint1", false, new Value (Point (0,0)), Type::POINT);
312 DependencyProperty::RegisterFull (this, Type::INPUTMETHOD, "IsInputMethodEnabled", false, new Value (true), Type::BOOL, true, false, false, NULL, Validators::IsInputMethodEnabledValidator, NULL, false);
313 DependencyProperty::Register (this, Type::INLINE, "TextDecorations", false, new Value (TextDecorationsNone), Type::INT32);
314 DependencyProperty::RegisterFull (this, Type::INLINE, "Language", false, new Value ("en-US"), Type::STRING, false, false, false, NULL, Validators::NonNullValidator, NULL, false);
315 DependencyProperty::Register (this, Type::INLINE, "Foreground", false, Value::CreateUnrefPtr (new SolidColorBrush("black")), Type::BRUSH);
316 DependencyProperty::Register (this, Type::INLINE, "FontWeight", false, new Value (FontWeight(TEXTBLOCK_FONT_WEIGHT)), Type::FONTWEIGHT);
317 DependencyProperty::Register (this, Type::INLINE, "FontStyle", false, new Value (FontStyle(TEXTBLOCK_FONT_STYLE)), Type::FONTSTYLE);
318 DependencyProperty::Register (this, Type::INLINE, "FontStretch", false, new Value (FontStretch(TEXTBLOCK_FONT_STRETCH)), Type::FONTSTRETCH);
319 DependencyProperty::Register (this, Type::INLINE, "FontSource", false, Type::FONTSOURCE);
320 DependencyProperty::RegisterFull (this, Type::INLINE, "FontSize", false, NULL, Type::DOUBLE, false, false, false, NULL, NULL, AutoCreators::CreateDefaultFontSize, false);
321 DependencyProperty::Register (this, Type::INLINE, "FontFamily", false, new Value (FontFamily(TEXTBLOCK_FONT_FAMILY)), Type::FONTFAMILY);
322 DependencyProperty::Register (this, Type::ICON, "Source", false, Type::URI);
323 DependencyProperty::Register (this, Type::ICON, "Size", false, Type::SIZE);
324 DependencyProperty::Register (this, Type::GRADIENTSTOP, "Offset", false, new Value (0.0), Type::DOUBLE);
325 DependencyProperty::Register (this, Type::GRADIENTSTOP, "Color", false, new Value (Color (0x00000000)), Type::COLOR);
326 DependencyProperty::Register (this, Type::GEOMETRY, "Transform", false, Type::TRANSFORM);
327 DependencyProperty::Register (this, Type::DRAWINGATTRIBUTES, "Width", false, new Value (3.0), Type::DOUBLE);
328 DependencyProperty::Register (this, Type::DRAWINGATTRIBUTES, "OutlineColor", false, new Value (Color (0x00000000)), Type::COLOR);
329 DependencyProperty::Register (this, Type::DRAWINGATTRIBUTES, "Height", false, new Value (3.0), Type::DOUBLE);
330 DependencyProperty::Register (this, Type::DRAWINGATTRIBUTES, "Color", false, new Value (Color (0xFF000000)), Type::COLOR);
331 DependencyProperty::Register (this, Type::DOWNLOADER, "Uri", false, Type::URI);
332 DependencyProperty::Register (this, Type::DOWNLOADER, "StatusText", false, new Value (""), Type::STRING);
333 DependencyProperty::Register (this, Type::DOWNLOADER, "Status", false, new Value (0), Type::INT32);
334 DependencyProperty::Register (this, Type::DOWNLOADER, "ResponseText", false, Type::STRING);
335 DependencyProperty::Register (this, Type::DOWNLOADER, "DownloadProgress", false, new Value (0.0), Type::DOUBLE);
336 DependencyProperty::Register (this, Type::DEPLOYMENT, "Surface", false, Type::SURFACE);
337 DependencyProperty::Register (this, Type::DEPLOYMENT, "RuntimeVersion", false, Type::STRING);
338 DependencyProperty::Register (this, Type::DEPLOYMENT, "Parts", false, Type::ASSEMBLYPART_COLLECTION);
339 DependencyProperty::Register (this, Type::DEPLOYMENT, "OutOfBrowserSettings", false, Type::OUTOFBROWSERSETTINGS);
340 DependencyProperty::RegisterFull (this, Type::DEPLOYMENT, "ExternalParts", false, NULL, Type::EXTERNALPART_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
341 DependencyProperty::RegisterFull (this, Type::DEPLOYMENT, "ExternalCallersFromCrossDomain", false, new Value (CrossDomainAccessNoAccess), Type::INT32, false, false, false, NULL, Validators::CrossDomainValidator, NULL, false);
342 DependencyProperty::Register (this, Type::DEPLOYMENT, "EntryPointType", false, Type::STRING);
343 DependencyProperty::Register (this, Type::DEPLOYMENT, "EntryPointAssembly", false, Type::STRING);
344 DependencyProperty::Register (this, Type::MULTISCALETILESOURCE, "TileWidth", false, Type::INT32);
345 DependencyProperty::Register (this, Type::MULTISCALETILESOURCE, "TileOverlap", false, Type::INT32);
346 DependencyProperty::Register (this, Type::MULTISCALETILESOURCE, "TileHeight", false, Type::INT32);
347 DependencyProperty::Register (this, Type::MULTISCALETILESOURCE, "TileBlendTime", false, new Value ((gint64) TimeSpan_FromSecondsFloat (0.5),Type::TIMESPAN), Type::TIMESPAN);
348 DependencyProperty::Register (this, Type::MULTISCALETILESOURCE, "ImageWidth", false, Type::DOUBLE);
349 DependencyProperty::Register (this, Type::MULTISCALETILESOURCE, "ImageHeight", false, Type::DOUBLE);
350 DependencyProperty::Register (this, Type::COLUMNDEFINITION, "Width", false, new Value (GridLength (1.0, GridUnitTypeStar)), Type::GRIDLENGTH);
351 DependencyProperty::Register (this, Type::COLUMNDEFINITION, "MinWidth", false, new Value (0.0), Type::DOUBLE);
352 DependencyProperty::Register (this, Type::COLUMNDEFINITION, "MaxWidth", false, new Value (INFINITY), Type::DOUBLE);
353 DependencyProperty::Register (this, Type::COLUMNDEFINITION, "ActualWidth", false, new Value (0.0), Type::DOUBLE);
354 DependencyProperty::Register (this, Type::COLLECTION, "Count", false, new Value (0), Type::INT32);
355 DependencyProperty::Register (this, Type::UIELEMENT, "Visibility", false, new Value (VisibilityVisible), Type::INT32);
356 DependencyProperty::Register (this, Type::UIELEMENT, "UseLayoutRounding", false, new Value (true), Type::BOOL);
357 DependencyProperty::RegisterFull (this, Type::UIELEMENT, "Triggers", false, NULL, Type::TRIGGER_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
358 DependencyProperty::Register (this, Type::UIELEMENT, "Tag", true, Type::OBJECT);
359 DependencyProperty::RegisterFull (this, Type::UIELEMENT, "Resources", false, NULL, Type::RESOURCE_DICTIONARY, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
360 DependencyProperty::Register (this, Type::UIELEMENT, "RenderTransform", false, Type::TRANSFORM);
361 DependencyProperty::Register (this, Type::UIELEMENT, "RenderTransformOrigin", false, new Value (Point (0,0)), Type::POINT);
362 DependencyProperty::Register (this, Type::UIELEMENT, "Opacity", false, new Value (1.0), Type::DOUBLE);
363 DependencyProperty::Register (this, Type::UIELEMENT, "OpacityMask", false, Type::BRUSH);
364 DependencyProperty::Register (this, Type::UIELEMENT, "IsHitTestVisible", false, new Value (true), Type::BOOL);
365 DependencyProperty::Register (this, Type::UIELEMENT, "Effect", false, Type::EFFECT);
366 DependencyProperty::RegisterFull (this, Type::UIELEMENT, "Cursor", false, new Value (MouseCursorDefault), Type::INT32, false, false, false, NULL, Validators::CursorValidator, NULL, false);
367 DependencyProperty::Register (this, Type::UIELEMENT, "Clip", false, Type::GEOMETRY);
368 DependencyProperty::Register (this, Type::UIELEMENT, "CacheMode", false, Type::CACHEMODE);
369 DependencyProperty::Register (this, Type::EASINGFUNCTIONBASE, "EasingMode", false, new Value (EasingModeOut), Type::INT32);
370 DependencyProperty::Register (this, Type::ASSEMBLYPART, "Source", false, new Value (""), Type::STRING);
371 DependencyProperty::RegisterFull (this, Type::APPLICATION, "Resources", false, NULL, Type::RESOURCE_DICTIONARY, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
372 DependencyProperty::Register (this, Type::ACCESSIBILITY, "Title", false, new Value ("Silverlight Content"), Type::STRING);
373 DependencyProperty::Register (this, Type::ACCESSIBILITY, "Description", false, new Value (""), Type::STRING);
374 DependencyProperty::Register (this, Type::ACCESSIBILITY, "ActionDescription", false, new Value (""), Type::STRING);
375 DependencyProperty::RegisterFull (this, Type::SPLINECOLORKEYFRAME, "KeySpline", false, NULL, Type::KEYSPLINE, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
376 DependencyProperty::Register (this, Type::EASINGCOLORKEYFRAME, "EasingFunction", false, Type::EASINGFUNCTIONBASE);
377 DependencyProperty::RegisterFull (this, Type::COLORANIMATIONUSINGKEYFRAMES, "KeyFrames", false, NULL, Type::COLORKEYFRAME_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
378 DependencyProperty::RegisterFull (this, Type::BITMAPIMAGE, "UriSource", false, new Value (Uri()), Type::URI, false, false, true, NULL, NULL, NULL, false);
379 DependencyProperty::Register (this, Type::BITMAPIMAGE, "Progress", false, new Value (0.0), Type::DOUBLE);
380 DependencyProperty::Register (this, Type::TRANSLATETRANSFORM, "Y", false, new Value (0.0), Type::DOUBLE);
381 DependencyProperty::Register (this, Type::TRANSLATETRANSFORM, "X", false, new Value (0.0), Type::DOUBLE);
382 DependencyProperty::RegisterFull (this, Type::TRANSFORMGROUP, "Children", false, NULL, Type::TRANSFORM_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
383 DependencyProperty::RegisterFull (this, Type::TEXTOPTIONS, "TextHintingMode", false, NULL, Type::INT32, true, false, false, NULL, NULL, NULL, false);
384 DependencyProperty::Register (this, Type::TEXTBOX, "VerticalScrollBarVisibility", false, new Value (ScrollBarVisibilityHidden), Type::INT32);
385 DependencyProperty::Register (this, Type::TEXTBOX, "TextWrapping", false, new Value (TextWrappingNoWrap), Type::INT32);
386 DependencyProperty::Register (this, Type::TEXTBOX, "Text", false, Type::STRING);
387 DependencyProperty::Register (this, Type::TEXTBOX, "TextAlignment", false, new Value (TextAlignmentLeft), Type::INT32);
388 DependencyProperty::RegisterFull (this, Type::TEXTBOX, "SelectionStart", false, new Value (0), Type::INT32, false, false, true, NULL, Validators::PositiveIntValidator, NULL, false);
389 DependencyProperty::RegisterFull (this, Type::TEXTBOX, "SelectionLength", false, new Value (0), Type::INT32, false, false, true, NULL, Validators::PositiveIntValidator, NULL, false);
390 DependencyProperty::Register (this, Type::TEXTBOX, "SelectionForeground", false, Type::BRUSH);
391 DependencyProperty::Register (this, Type::TEXTBOX, "SelectionBackground", false, Type::BRUSH);
392 DependencyProperty::RegisterFull (this, Type::TEXTBOX, "SelectedText", false, new Value (""), Type::STRING, false, false, true, NULL, NULL, NULL, false);
393 DependencyProperty::RegisterFull (this, Type::TEXTBOX, "MaxLength", false, new Value (0), Type::INT32, false, false, false, NULL, Validators::PositiveIntValidator, NULL, false);
394 DependencyProperty::Register (this, Type::TEXTBOX, "IsReadOnly", false, new Value (false), Type::BOOL);
395 DependencyProperty::Register (this, Type::TEXTBOX, "HorizontalScrollBarVisibility", false, new Value (ScrollBarVisibilityHidden), Type::INT32);
396 DependencyProperty::Register (this, Type::TEXTBOX, "FontSource", false, Type::FONTSOURCE);
397 DependencyProperty::Register (this, Type::TEXTBOX, "CaretBrush", false, Value::CreateUnrefPtr (new SolidColorBrush("black")), Type::BRUSH);
398 DependencyProperty::Register (this, Type::TEXTBOX, "AcceptsReturn", false, new Value (false), Type::BOOL);
399 DependencyProperty::RegisterFull (this, Type::STORYBOARD, "TargetProperty", false, NULL, Type::PROPERTYPATH, true, false, false, NULL, Validators::StoryboardTargetPropertyValidator, NULL, false);
400 DependencyProperty::RegisterFull (this, Type::STORYBOARD, "TargetName", false, NULL, Type::STRING, true, false, false, NULL, Validators::IsTimelineValidator, NULL, false);
401 DependencyProperty::Register (this, Type::SKEWTRANSFORM, "CenterY", false, new Value (0.0), Type::DOUBLE);
402 DependencyProperty::Register (this, Type::SKEWTRANSFORM, "CenterX", false, new Value (0.0), Type::DOUBLE);
403 DependencyProperty::Register (this, Type::SKEWTRANSFORM, "AngleY", false, new Value (0.0), Type::DOUBLE);
404 DependencyProperty::Register (this, Type::SKEWTRANSFORM, "AngleX", false, new Value (0.0), Type::DOUBLE);
405 DependencyProperty::Register (this, Type::SHADEREFFECT, "PixelShader", false, Type::PIXELSHADER);
406 DependencyProperty::Register (this, Type::SHADEREFFECT, "PaddingTop", false, Type::DOUBLE);
407 DependencyProperty::Register (this, Type::SHADEREFFECT, "PaddingRight", false, Type::DOUBLE);
408 DependencyProperty::Register (this, Type::SHADEREFFECT, "PaddingLeft", false, Type::DOUBLE);
409 DependencyProperty::Register (this, Type::SHADEREFFECT, "PaddingBottom", false, Type::DOUBLE);
410 DependencyProperty::Register (this, Type::SHADEREFFECT, "DdxUvDdyUvRegisterIndex", false, Type::INT32);
411 DependencyProperty::Register (this, Type::SETTERBASE_COLLECTION, "IsSealed", false, new Value (false), Type::BOOL);
412 DependencyProperty::Register (this, Type::SCALETRANSFORM, "ScaleY", false, new Value (1.0), Type::DOUBLE);
413 DependencyProperty::Register (this, Type::SCALETRANSFORM, "ScaleX", false, new Value (1.0), Type::DOUBLE);
414 DependencyProperty::Register (this, Type::SCALETRANSFORM, "CenterY", false, new Value (0.0), Type::DOUBLE);
415 DependencyProperty::Register (this, Type::SCALETRANSFORM, "CenterX", false, new Value (0.0), Type::DOUBLE);
416 DependencyProperty::Register (this, Type::ROTATETRANSFORM, "CenterY", false, new Value (0.0), Type::DOUBLE);
417 DependencyProperty::Register (this, Type::ROTATETRANSFORM, "CenterX", false, new Value (0.0), Type::DOUBLE);
418 DependencyProperty::Register (this, Type::ROTATETRANSFORM, "Angle", false, new Value (0.0), Type::DOUBLE);
419 DependencyProperty::Register (this, Type::QUADRATICBEZIERSEGMENT, "Point2", false, Type::POINT);
420 DependencyProperty::Register (this, Type::QUADRATICBEZIERSEGMENT, "Point1", false, Type::POINT);
421 DependencyProperty::RegisterFull (this, Type::POLYQUADRATICBEZIERSEGMENT, "Points", false, NULL, Type::POINT_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
422 DependencyProperty::RegisterFull (this, Type::POLYLINESEGMENT, "Points", false, NULL, Type::POINT_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
423 DependencyProperty::RegisterFull (this, Type::POLYBEZIERSEGMENT, "Points", false, NULL, Type::POINT_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
424 DependencyProperty::RegisterFull (this, Type::POINTKEYFRAME, "Value", false, NULL, Type::POINT, false, false, false, NULL, NULL, NULL, true);
425 DependencyProperty::RegisterFull (this, Type::POINTKEYFRAME, "KeyTime", false, NULL, Type::KEYTIME, false, false, false, NULL, NULL, NULL, true);
426 DependencyProperty::RegisterFull (this, Type::POINTANIMATION, "To", false, NULL, Type::POINT, false, false, false, NULL, NULL, NULL, true);
427 DependencyProperty::RegisterFull (this, Type::POINTANIMATION, "From", false, NULL, Type::POINT, false, false, false, NULL, NULL, NULL, true);
428 DependencyProperty::Register (this, Type::POINTANIMATION, "EasingFunction", false, Type::EASINGFUNCTIONBASE);
429 DependencyProperty::RegisterFull (this, Type::POINTANIMATION, "By", false, NULL, Type::POINT, false, false, false, NULL, NULL, NULL, true);
430 DependencyProperty::RegisterFull (this, Type::PASSWORDBOX, "SelectionStart", false, new Value (0), Type::INT32, false, false, false, NULL, Validators::PositiveIntValidator, NULL, false);
431 DependencyProperty::RegisterFull (this, Type::PASSWORDBOX, "SelectionLength", false, new Value (0), Type::INT32, false, false, false, NULL, Validators::PositiveIntValidator, NULL, false);
432 DependencyProperty::Register (this, Type::PASSWORDBOX, "SelectionForeground", false, Type::BRUSH);
433 DependencyProperty::Register (this, Type::PASSWORDBOX, "SelectionBackground", false, Type::BRUSH);
434 DependencyProperty::Register (this, Type::PASSWORDBOX, "SelectedText", false, new Value (""), Type::STRING);
435 DependencyProperty::RegisterFull (this, Type::PASSWORDBOX, "Password", false, new Value (""), Type::STRING, false, false, true, NULL, Validators::NonNullValidator, NULL, false);
436 DependencyProperty::Register (this, Type::PASSWORDBOX, "PasswordChar", false, new Value ((gunichar) 9679, Type::CHAR), Type::CHAR);
437 DependencyProperty::RegisterFull (this, Type::PASSWORDBOX, "MaxLength", false, new Value (0), Type::INT32, false, false, false, NULL, Validators::PositiveIntValidator, NULL, false);
438 DependencyProperty::Register (this, Type::PASSWORDBOX, "FontSource", false, Type::FONTSOURCE);
439 DependencyProperty::Register (this, Type::PASSWORDBOX, "CaretBrush", false, Value::CreateUnrefPtr (new SolidColorBrush("black")), Type::BRUSH);
440 DependencyProperty::Register (this, Type::OBJECTKEYFRAME, "Value", false, Type::OBJECT);
441 DependencyProperty::RegisterFull (this, Type::OBJECTKEYFRAME, "KeyTime", false, NULL, Type::KEYTIME, false, false, false, NULL, NULL, NULL, true);
442 DependencyProperty::Register (this, Type::OBJECTKEYFRAME, "ConvertedValue", false, Type::OBJECT);
443 DependencyProperty::RegisterFull (this, Type::OBJECTANIMATIONUSINGKEYFRAMES, "KeyFrames", false, NULL, Type::OBJECTKEYFRAME_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
444 DependencyProperty::Register (this, Type::MATRIXTRANSFORM, "Matrix", false, Type::MATRIX);
445 DependencyProperty::Register (this, Type::LINESEGMENT, "Point", false, Type::POINT);
446 DependencyProperty::RegisterFull (this, Type::LAYOUTINFORMATION, "VisualOffset", false, NULL, Type::POINT, true, false, false, NULL, NULL, NULL, false);
447 DependencyProperty::RegisterFull (this, Type::LAYOUTINFORMATION, "PreviousConstraint", false, NULL, Type::SIZE, true, false, false, NULL, NULL, NULL, false);
448 DependencyProperty::RegisterFull (this, Type::LAYOUTINFORMATION, "LayoutSlot", false, NULL, Type::RECT, true, false, false, NULL, NULL, NULL, false);
449 DependencyProperty::RegisterFull (this, Type::LAYOUTINFORMATION, "LayoutClip", false, NULL, Type::GEOMETRY, true, false, false, NULL, NULL, NULL, false);
450 DependencyProperty::RegisterFull (this, Type::LAYOUTINFORMATION, "LastRenderSize", false, NULL, Type::SIZE, true, false, false, NULL, NULL, NULL, false);
451 DependencyProperty::RegisterFull (this, Type::LAYOUTINFORMATION, "FinalRect", false, NULL, Type::SIZE, true, false, false, NULL, NULL, NULL, false);
452 DependencyProperty::RegisterFull (this, Type::EXTENSIONPART, "Source", false, new Value (Uri()), Type::URI, false, false, true, NULL, NULL, NULL, false);
453 DependencyProperty::Register (this, Type::EVENTTRIGGER, "RoutedEvent", false, Type::STRING);
454 DependencyProperty::RegisterFull (this, Type::EVENTTRIGGER, "Actions", false, NULL, Type::TRIGGERACTION_COLLECTION, false, false, false, NULL, NULL, AutoCreators::default_autocreator, false);
455 DependencyProperty::Register (this, Type::DROPSHADOWEFFECT, "ShadowDepth", false, new Value (5), Type::DOUBLE);
456 DependencyProperty::Register (this, Type::DROPSHADOWEFFECT, "Opacity", false, new Value (1.0), Type::DOUBLE);
457 DependencyProperty::Register (this, Type::DROPSHADOWEFFECT, "Direction", false, new Value (315), Type::DOUBLE);
458 DependencyProperty::Register (this, Type::DROPSHADOWEFFECT, "Color", false, new Value (Color(0xFF000000)), Type::COLOR);
459 DependencyProperty::Register (this, Type::DROPSHADOWEFFECT, "BlurRadius", false, new Value (5.0), Type::DOUBLE);
460 DependencyProperty::RegisterFull (this, Type::DOUBLEKEYFRAME, "Value", false, NULL, Type::DOUBLE, false, false, false, NULL, NULL, NULL, true);
461 DependencyProperty::RegisterFull (this, Type::DOUBLEKEYFRAME, "KeyTime", false, NULL, Type::KEYTIME, false, false, false, NULL, NULL, NULL, true);
462 DependencyProperty::RegisterFull (this, Type::DOUBLEANIMATION, "To", false, NULL, Type::DOUBLE, false, false, false, NULL, NULL, NULL, true);
463 DependencyProperty::RegisterFull (this, Type::DOUBLEANIMATION, "From", false, NULL, Type::DOUBLE, false, false, false, NULL, NULL, NULL, true);
464 DependencyProperty::Register (this, Type::DOUBLEANIMATION, "EasingFunction", false, Type::EASINGFUNCTIONBASE);
465 DependencyProperty::RegisterFull (this, Type::DOUBLEANIMATION, "By", false, NULL, Type::DOUBLE, false, false, false, NULL, NULL, NULL, true);
466 DependencyProperty::RegisterFull (this, Type::DEPENDENCY_OBJECT, "Name", false, new Value (""), Type::STRING, false, false, false, NULL, Validators::NameValidator, NULL, false);
467 DependencyProperty::Register (this, Type::CONTROLTEMPLATE, "TargetType", false, Type::MANAGEDTYPEINFO);
468 DependencyProperty::RegisterFull (this, Type::COLORKEYFRAME, "Value", false, NULL, Type::COLOR, false, false, false, NULL, NULL, NULL, true);
469 DependencyProperty::RegisterFull (this, Type::COLORKEYFRAME, "KeyTime", false, NULL, Type::KEYTIME, false, false, false, NULL, NULL, NULL, true);
470 DependencyProperty::RegisterFull (this, Type::COLORANIMATION, "To", false, NULL, Type::COLOR, false, false, false, NULL, NULL, NULL, true);
471 DependencyProperty::RegisterFull (this, Type::COLORANIMATION, "From", false, NULL, Type::COLOR, false, false, false, NULL, NULL, NULL, true);
472 DependencyProperty::Register (this, Type::COLORANIMATION, "EasingFunction", false, Type::EASINGFUNCTIONBASE);
473 DependencyProperty::RegisterFull (this, Type::COLORANIMATION, "By", false, NULL, Type::COLOR, false, false, false, NULL, NULL, NULL, true);
474 DependencyProperty::Register (this, Type::BLUREFFECT, "Radius", false, new Value (5.0), Type::DOUBLE);
475 DependencyProperty::RegisterFull (this, Type::BITMAPSOURCE, "PixelWidth", false, new Value (0), Type::INT32, false, false, false, NULL, Validators::IntGreaterThanZeroValidator, NULL, false);
476 DependencyProperty::RegisterFull (this, Type::BITMAPSOURCE, "PixelHeight", false, new Value (0), Type::INT32, false, false, false, NULL, Validators::IntGreaterThanZeroValidator, NULL, false);
477 DependencyProperty::Register (this, Type::BITMAPSOURCE, "PixelFormat", false, new Value (PixelFormatPbgra32), Type::INT32);
478 DependencyProperty::RegisterFull (this, Type::BITMAPCACHE, "RenderAtScale", false, new Value (1.0), Type::DOUBLE, false, false, false, NULL, Validators::DoubleGreaterThanZeroValidator, NULL, false);
479 DependencyProperty::Register (this, Type::BEZIERSEGMENT, "Point3", false, Type::POINT);
480 DependencyProperty::Register (this, Type::BEZIERSEGMENT, "Point2", false, Type::POINT);
481 DependencyProperty::Register (this, Type::BEZIERSEGMENT, "Point1", false, Type::POINT);
482 DependencyProperty::Register (this, Type::BEGINSTORYBOARD, "Storyboard", false, Type::STORYBOARD);
483 DependencyProperty::Register (this, Type::ARCSEGMENT, "SweepDirection", false, new Value (SweepDirectionCounterclockwise), Type::INT32);
484 DependencyProperty::Register (this, Type::ARCSEGMENT, "Size", false, Type::SIZE);
485 DependencyProperty::Register (this, Type::ARCSEGMENT, "RotationAngle", false, new Value (0.0), Type::DOUBLE);
486 DependencyProperty::Register (this, Type::ARCSEGMENT, "Point", false, Type::POINT);
487 DependencyProperty::Register (this, Type::ARCSEGMENT, "IsLargeArc", false, new Value (false), Type::BOOL);
490 const int VisualBrush::VisualProperty = 0;
491 const int VideoBrush::SourceNameProperty = 1;
492 const int ImageBrush::ImageSourceProperty = 2;
493 const int ImageBrush::DownloadProgressProperty = 3;
494 const int RadialGradientBrush::RadiusYProperty = 4;
495 const int RadialGradientBrush::RadiusXProperty = 5;
496 const int RadialGradientBrush::GradientOriginProperty = 6;
497 const int RadialGradientBrush::CenterProperty = 7;
498 const int LinearGradientBrush::StartPointProperty = 8;
499 const int LinearGradientBrush::EndPointProperty = 9;
500 const int SolidColorBrush::ColorProperty = 10;
501 const int TileBrush::StretchProperty = 11;
502 const int TileBrush::AlignmentYProperty = 12;
503 const int TileBrush::AlignmentXProperty = 13;
504 const int GradientBrush::SpreadMethodProperty = 14;
505 const int GradientBrush::MappingModeProperty = 15;
506 const int GradientBrush::GradientStopsProperty = 16;
507 const int GradientBrush::ColorInterpolationModeProperty = 17;
508 const int InkPresenter::StrokesProperty = 18;
509 const int Brush::TransformProperty = 19;
510 const int Brush::RelativeTransformProperty = 20;
511 const int Brush::OpacityProperty = 21;
512 const int Brush::ChangedProperty = 22;
513 const int Rectangle::RadiusYProperty = 23;
514 const int Rectangle::RadiusXProperty = 24;
515 const int Polyline::PointsProperty = 25;
516 const int Polyline::FillRuleProperty = 26;
517 const int Polygon::PointsProperty = 27;
518 const int Polygon::FillRuleProperty = 28;
519 const int Path::DataProperty = 29;
520 const int Line::Y2Property = 30;
521 const int Line::Y1Property = 31;
522 const int Line::X2Property = 32;
523 const int Line::X1Property = 33;
524 const int MultiScaleImage::ViewportWidthProperty = 34;
525 const int MultiScaleImage::ViewportOriginProperty = 35;
526 const int MultiScaleImage::UseSpringsProperty = 36;
527 const int MultiScaleImage::TileFadeProperty = 37;
528 const int MultiScaleImage::SubImagesProperty = 38;
529 const int MultiScaleImage::SourceProperty = 39;
530 const int MultiScaleImage::IsIdleProperty = 40;
531 const int MultiScaleImage::IsDownloadingProperty = 41;
532 const int MultiScaleImage::InternalViewportWidthProperty = 42;
533 const int MultiScaleImage::InternalViewportOriginProperty = 43;
534 const int MultiScaleImage::BlurFactorProperty = 44;
535 const int MultiScaleImage::AspectRatioProperty = 45;
536 const int MultiScaleImage::AllowDownloadingProperty = 46;
537 const int Image::SourceProperty = 47;
538 const int UserControl::ContentProperty = 48;
539 const int ContentControl::ContentTemplateProperty = 49;
540 const int ContentControl::ContentProperty = 50;
541 const int Grid::ShowGridLinesProperty = 51;
542 const int Grid::RowSpanProperty = 52;
543 const int Grid::RowProperty = 53;
544 const int Grid::RowDefinitionsProperty = 54;
545 const int Grid::ColumnSpanProperty = 55;
546 const int Grid::ColumnProperty = 56;
547 const int Grid::ColumnDefinitionsProperty = 57;
548 const int Canvas::ZIndexProperty = 58;
549 const int Canvas::TopProperty = 59;
550 const int Canvas::LeftProperty = 60;
551 const int TextBlock::TextWrappingProperty = 61;
552 const int TextBlock::TextProperty = 62;
553 const int TextBlock::TextDecorationsProperty = 63;
554 const int TextBlock::TextAlignmentProperty = 64;
555 const int TextBlock::PaddingProperty = 65;
556 const int TextBlock::LineStackingStrategyProperty = 66;
557 const int TextBlock::LineHeightProperty = 67;
558 const int TextBlock::InlinesProperty = 68;
559 const int TextBlock::ForegroundProperty = 69;
560 const int TextBlock::FontWeightProperty = 70;
561 const int TextBlock::FontStyleProperty = 71;
562 const int TextBlock::FontStretchProperty = 72;
563 const int TextBlock::FontSourceProperty = 73;
564 const int TextBlock::FontSizeProperty = 74;
565 const int TextBlock::FontFamilyProperty = 75;
566 const int Popup::VerticalOffsetProperty = 76;
567 const int Popup::IsOpenProperty = 77;
568 const int Popup::HorizontalOffsetProperty = 78;
569 const int Popup::ChildProperty = 79;
570 const int MediaElement::VolumeProperty = 80;
571 const int MediaElement::StretchProperty = 81;
572 const int MediaElement::SourceProperty = 82;
573 const int MediaElement::RenderedFramesPerSecondProperty = 83;
574 const int MediaElement::PositionProperty = 84;
575 const int MediaElement::NaturalVideoWidthProperty = 85;
576 const int MediaElement::NaturalVideoHeightProperty = 86;
577 const int MediaElement::NaturalDurationProperty = 87;
578 const int MediaElement::MarkersProperty = 88;
579 const int MediaElement::IsMutedProperty = 89;
580 const int MediaElement::DroppedFramesPerSecondProperty = 90;
581 const int MediaElement::DownloadProgressProperty = 91;
582 const int MediaElement::DownloadProgressOffsetProperty = 92;
583 const int MediaElement::CurrentStateProperty = 93;
584 const int MediaElement::CanSeekProperty = 94;
585 const int MediaElement::CanPauseProperty = 95;
586 const int MediaElement::BufferingTimeProperty = 96;
587 const int MediaElement::BufferingProgressProperty = 97;
588 const int MediaElement::BalanceProperty = 98;
589 const int MediaElement::AutoPlayProperty = 99;
590 const int MediaElement::AudioStreamIndexProperty = 100;
591 const int MediaElement::AudioStreamCountProperty = 101;
592 const int MediaElement::AttributesProperty = 102;
593 const int Shape::StrokeThicknessProperty = 103;
594 const int Shape::StrokeStartLineCapProperty = 104;
595 const int Shape::StrokeProperty = 105;
596 const int Shape::StrokeMiterLimitProperty = 106;
597 const int Shape::StrokeLineJoinProperty = 107;
598 const int Shape::StrokeEndLineCapProperty = 108;
599 const int Shape::StrokeDashOffsetProperty = 109;
600 const int Shape::StrokeDashCapProperty = 110;
601 const int Shape::StrokeDashArrayProperty = 111;
602 const int Shape::StretchProperty = 112;
603 const int Shape::FillProperty = 113;
604 const int MediaBase::StretchProperty = 114;
605 const int MediaBase::SourceProperty = 115;
606 const int MediaBase::DownloadProgressProperty = 116;
607 const int Glyphs::UnicodeStringProperty = 117;
608 const int Glyphs::StyleSimulationsProperty = 118;
609 const int Glyphs::OriginYProperty = 119;
610 const int Glyphs::OriginXProperty = 120;
611 const int Glyphs::IndicesProperty = 121;
612 const int Glyphs::FontUriProperty = 122;
613 const int Glyphs::FontRenderingEmSizeProperty = 123;
614 const int Glyphs::FillProperty = 124;
615 const int Control::VerticalContentAlignmentProperty = 125;
616 const int Control::TemplateProperty = 126;
617 const int Control::TabNavigationProperty = 127;
618 const int Control::TabIndexProperty = 128;
619 const int Control::PaddingProperty = 129;
620 const int Control::IsTemplateItemProperty = 130;
621 const int Control::IsTabStopProperty = 131;
622 const int Control::IsEnabledProperty = 132;
623 const int Control::HorizontalContentAlignmentProperty = 133;
624 const int Control::ForegroundProperty = 134;
625 const int Control::FontWeightProperty = 135;
626 const int Control::FontStyleProperty = 136;
627 const int Control::FontStretchProperty = 137;
628 const int Control::FontSizeProperty = 138;
629 const int Control::FontFamilyProperty = 139;
630 const int Control::DefaultStyleKeyProperty = 140;
631 const int Control::BorderThicknessProperty = 141;
632 const int Control::BorderBrushProperty = 142;
633 const int Control::BackgroundProperty = 143;
634 const int Panel::ChildrenProperty = 144;
635 const int Panel::BackgroundProperty = 145;
636 const int Border::PaddingProperty = 146;
637 const int Border::CornerRadiusProperty = 147;
638 const int Border::ChildProperty = 148;
639 const int Border::BorderThicknessProperty = 149;
640 const int Border::BorderBrushProperty = 150;
641 const int Border::BackgroundProperty = 151;
642 const int TimelineGroup::ChildrenProperty = 152;
643 const int Setter::ValueProperty = 153;
644 const int Setter::PropertyProperty = 154;
645 const int Setter::ConvertedValueProperty = 155;
646 const int Run::TextProperty = 156;
647 const int RectangleGeometry::RectProperty = 157;
648 const int RectangleGeometry::RadiusYProperty = 158;
649 const int RectangleGeometry::RadiusXProperty = 159;
650 const int PathGeometry::FillRuleProperty = 160;
651 const int PathGeometry::FiguresProperty = 161;
652 const int LineGeometry::StartPointProperty = 162;
653 const int LineGeometry::EndPointProperty = 163;
654 const int GeometryGroup::FillRuleProperty = 164;
655 const int GeometryGroup::ChildrenProperty = 165;
656 const int EllipseGeometry::RadiusYProperty = 166;
657 const int EllipseGeometry::RadiusXProperty = 167;
658 const int EllipseGeometry::CenterProperty = 168;
659 const int DeepZoomImageTileSource::UriSourceProperty = 169;
660 const int ResourceDictionary::MergedDictionariesProperty = 170;
661 const int FrameworkElement::WidthProperty = 171;
662 const int FrameworkElement::VerticalAlignmentProperty = 172;
663 const int FrameworkElement::StyleProperty = 173;
664 const int FrameworkElement::MinWidthProperty = 174;
665 const int FrameworkElement::MinHeightProperty = 175;
666 const int FrameworkElement::MaxWidthProperty = 176;
667 const int FrameworkElement::MaxHeightProperty = 177;
668 const int FrameworkElement::MarginProperty = 178;
669 const int FrameworkElement::LanguageProperty = 179;
670 const int FrameworkElement::HorizontalAlignmentProperty = 180;
671 const int FrameworkElement::HeightProperty = 181;
672 const int FrameworkElement::DataContextProperty = 182;
673 const int FrameworkElement::ActualWidthProperty = 183;
674 const int FrameworkElement::ActualHeightProperty = 184;
675 const int PowerEase::PowerProperty = 185;
676 const int ExponentialEase::ExponentProperty = 186;
677 const int ElasticEase::SpringinessProperty = 187;
678 const int ElasticEase::OscillationsProperty = 188;
679 const int BounceEase::BouncinessProperty = 189;
680 const int BounceEase::BouncesProperty = 190;
681 const int BackEase::AmplitudeProperty = 191;
682 const int SplinePointKeyFrame::KeySplineProperty = 192;
683 const int EasingPointKeyFrame::EasingFunctionProperty = 193;
684 const int PointAnimationUsingKeyFrames::KeyFramesProperty = 194;
685 const int SplineDoubleKeyFrame::KeySplineProperty = 195;
686 const int EasingDoubleKeyFrame::EasingFunctionProperty = 196;
687 const int DoubleAnimationUsingKeyFrames::KeyFramesProperty = 197;
688 const int WindowSettings::WidthProperty = 198;
689 const int WindowSettings::TitleProperty = 199;
690 const int WindowSettings::HeightProperty = 200;
691 const int TimelineMarker::TypeProperty = 201;
692 const int TimelineMarker::TimeProperty = 202;
693 const int TimelineMarker::TextProperty = 203;
694 const int Timeline::SpeedRatioProperty = 204;
695 const int Timeline::RepeatBehaviorProperty = 205;
696 const int Timeline::FillBehaviorProperty = 206;
697 const int Timeline::DurationProperty = 207;
698 const int Timeline::BeginTimeProperty = 208;
699 const int Timeline::AutoReverseProperty = 209;
700 const int StylusPoint::YProperty = 210;
701 const int StylusPoint::XProperty = 211;
702 const int StylusPoint::PressureFactorProperty = 212;
703 const int StylusInfo::IsInvertedProperty = 213;
704 const int StylusInfo::DeviceTypeProperty = 214;
705 const int Style::TargetTypeProperty = 215;
706 const int Style::SettersProperty = 216;
707 const int Style::IsSealedProperty = 217;
708 const int Stroke::StylusPointsProperty = 218;
709 const int Stroke::DrawingAttributesProperty = 219;
710 const int SetterBase::IsSealedProperty = 220;
711 const int RowDefinition::MinHeightProperty = 221;
712 const int RowDefinition::MaxHeightProperty = 222;
713 const int RowDefinition::HeightProperty = 223;
714 const int RowDefinition::ActualHeightProperty = 224;
715 const int PixelShader::UriSourceProperty = 225;
716 const int PathFigure::StartPointProperty = 226;
717 const int PathFigure::SegmentsProperty = 227;
718 const int PathFigure::IsFilledProperty = 228;
719 const int PathFigure::IsClosedProperty = 229;
720 const int OutOfBrowserSettings::WindowSettingsProperty = 230;
721 const int OutOfBrowserSettings::ShowInstallMenuItemProperty = 231;
722 const int OutOfBrowserSettings::ShortNameProperty = 232;
723 const int OutOfBrowserSettings::IconsProperty = 233;
724 const int OutOfBrowserSettings::EnableGPUAccelerationProperty = 234;
725 const int OutOfBrowserSettings::BlurbProperty = 235;
726 const int NameScope::NameScopeProperty = 236;
727 const int MultiScaleSubImage::ZIndexProperty = 237;
728 const int MultiScaleSubImage::ViewportWidthProperty = 238;
729 const int MultiScaleSubImage::ViewportOriginProperty = 239;
730 const int MultiScaleSubImage::OpacityProperty = 240;
731 const int MultiScaleSubImage::AspectRatioProperty = 241;
732 const int MediaAttribute::ValueProperty = 242;
733 const int Matrix::OffsetYProperty = 243;
734 const int Matrix::OffsetXProperty = 244;
735 const int Matrix::M22Property = 245;
736 const int Matrix::M21Property = 246;
737 const int Matrix::M12Property = 247;
738 const int Matrix::M11Property = 248;
739 const int KeySpline::ControlPoint2Property = 249;
740 const int KeySpline::ControlPoint1Property = 250;
741 const int InputMethod::IsInputMethodEnabledProperty = 251;
742 const int Inline::TextDecorationsProperty = 252;
743 const int Inline::LanguageProperty = 253;
744 const int Inline::ForegroundProperty = 254;
745 const int Inline::FontWeightProperty = 255;
746 const int Inline::FontStyleProperty = 256;
747 const int Inline::FontStretchProperty = 257;
748 const int Inline::FontSourceProperty = 258;
749 const int Inline::FontSizeProperty = 259;
750 const int Inline::FontFamilyProperty = 260;
751 const int Icon::SourceProperty = 261;
752 const int Icon::SizeProperty = 262;
753 const int GradientStop::OffsetProperty = 263;
754 const int GradientStop::ColorProperty = 264;
755 const int Geometry::TransformProperty = 265;
756 const int DrawingAttributes::WidthProperty = 266;
757 const int DrawingAttributes::OutlineColorProperty = 267;
758 const int DrawingAttributes::HeightProperty = 268;
759 const int DrawingAttributes::ColorProperty = 269;
760 const int Downloader::UriProperty = 270;
761 const int Downloader::StatusTextProperty = 271;
762 const int Downloader::StatusProperty = 272;
763 const int Downloader::ResponseTextProperty = 273;
764 const int Downloader::DownloadProgressProperty = 274;
765 const int Deployment::SurfaceProperty = 275;
766 const int Deployment::RuntimeVersionProperty = 276;
767 const int Deployment::PartsProperty = 277;
768 const int Deployment::OutOfBrowserSettingsProperty = 278;
769 const int Deployment::ExternalPartsProperty = 279;
770 const int Deployment::ExternalCallersFromCrossDomainProperty = 280;
771 const int Deployment::EntryPointTypeProperty = 281;
772 const int Deployment::EntryPointAssemblyProperty = 282;
773 const int MultiScaleTileSource::TileWidthProperty = 283;
774 const int MultiScaleTileSource::TileOverlapProperty = 284;
775 const int MultiScaleTileSource::TileHeightProperty = 285;
776 const int MultiScaleTileSource::TileBlendTimeProperty = 286;
777 const int MultiScaleTileSource::ImageWidthProperty = 287;
778 const int MultiScaleTileSource::ImageHeightProperty = 288;
779 const int ColumnDefinition::WidthProperty = 289;
780 const int ColumnDefinition::MinWidthProperty = 290;
781 const int ColumnDefinition::MaxWidthProperty = 291;
782 const int ColumnDefinition::ActualWidthProperty = 292;
783 const int Collection::CountProperty = 293;
784 const int UIElement::VisibilityProperty = 294;
785 const int UIElement::UseLayoutRoundingProperty = 295;
786 const int UIElement::TriggersProperty = 296;
787 const int UIElement::TagProperty = 297;
788 const int UIElement::ResourcesProperty = 298;
789 const int UIElement::RenderTransformProperty = 299;
790 const int UIElement::RenderTransformOriginProperty = 300;
791 const int UIElement::OpacityProperty = 301;
792 const int UIElement::OpacityMaskProperty = 302;
793 const int UIElement::IsHitTestVisibleProperty = 303;
794 const int UIElement::EffectProperty = 304;
795 const int UIElement::CursorProperty = 305;
796 const int UIElement::ClipProperty = 306;
797 const int UIElement::CacheModeProperty = 307;
798 const int EasingFunctionBase::EasingModeProperty = 308;
799 const int AssemblyPart::SourceProperty = 309;
800 const int Application::ResourcesProperty = 310;
801 const int Accessibility::TitleProperty = 311;
802 const int Accessibility::DescriptionProperty = 312;
803 const int Accessibility::ActionDescriptionProperty = 313;
804 const int SplineColorKeyFrame::KeySplineProperty = 314;
805 const int EasingColorKeyFrame::EasingFunctionProperty = 315;
806 const int ColorAnimationUsingKeyFrames::KeyFramesProperty = 316;
807 const int BitmapImage::UriSourceProperty = 317;
808 const int BitmapImage::ProgressProperty = 318;
809 const int TranslateTransform::YProperty = 319;
810 const int TranslateTransform::XProperty = 320;
811 const int TransformGroup::ChildrenProperty = 321;
812 const int TextOptions::TextHintingModeProperty = 322;
813 const int TextBox::VerticalScrollBarVisibilityProperty = 323;
814 const int TextBox::TextWrappingProperty = 324;
815 const int TextBox::TextProperty = 325;
816 const int TextBox::TextAlignmentProperty = 326;
817 const int TextBox::SelectionStartProperty = 327;
818 const int TextBox::SelectionLengthProperty = 328;
819 const int TextBox::SelectionForegroundProperty = 329;
820 const int TextBox::SelectionBackgroundProperty = 330;
821 const int TextBox::SelectedTextProperty = 331;
822 const int TextBox::MaxLengthProperty = 332;
823 const int TextBox::IsReadOnlyProperty = 333;
824 const int TextBox::HorizontalScrollBarVisibilityProperty = 334;
825 const int TextBox::FontSourceProperty = 335;
826 const int TextBox::CaretBrushProperty = 336;
827 const int TextBox::AcceptsReturnProperty = 337;
828 const int Storyboard::TargetPropertyProperty = 338;
829 const int Storyboard::TargetNameProperty = 339;
830 const int SkewTransform::CenterYProperty = 340;
831 const int SkewTransform::CenterXProperty = 341;
832 const int SkewTransform::AngleYProperty = 342;
833 const int SkewTransform::AngleXProperty = 343;
834 const int ShaderEffect::PixelShaderProperty = 344;
835 const int ShaderEffect::PaddingTopProperty = 345;
836 const int ShaderEffect::PaddingRightProperty = 346;
837 const int ShaderEffect::PaddingLeftProperty = 347;
838 const int ShaderEffect::PaddingBottomProperty = 348;
839 const int ShaderEffect::DdxUvDdyUvRegisterIndexProperty = 349;
840 const int SetterBaseCollection::IsSealedProperty = 350;
841 const int ScaleTransform::ScaleYProperty = 351;
842 const int ScaleTransform::ScaleXProperty = 352;
843 const int ScaleTransform::CenterYProperty = 353;
844 const int ScaleTransform::CenterXProperty = 354;
845 const int RotateTransform::CenterYProperty = 355;
846 const int RotateTransform::CenterXProperty = 356;
847 const int RotateTransform::AngleProperty = 357;
848 const int QuadraticBezierSegment::Point2Property = 358;
849 const int QuadraticBezierSegment::Point1Property = 359;
850 const int PolyQuadraticBezierSegment::PointsProperty = 360;
851 const int PolyLineSegment::PointsProperty = 361;
852 const int PolyBezierSegment::PointsProperty = 362;
853 const int PointKeyFrame::ValueProperty = 363;
854 const int PointKeyFrame::KeyTimeProperty = 364;
855 const int PointAnimation::ToProperty = 365;
856 const int PointAnimation::FromProperty = 366;
857 const int PointAnimation::EasingFunctionProperty = 367;
858 const int PointAnimation::ByProperty = 368;
859 const int PasswordBox::SelectionStartProperty = 369;
860 const int PasswordBox::SelectionLengthProperty = 370;
861 const int PasswordBox::SelectionForegroundProperty = 371;
862 const int PasswordBox::SelectionBackgroundProperty = 372;
863 const int PasswordBox::SelectedTextProperty = 373;
864 const int PasswordBox::PasswordProperty = 374;
865 const int PasswordBox::PasswordCharProperty = 375;
866 const int PasswordBox::MaxLengthProperty = 376;
867 const int PasswordBox::FontSourceProperty = 377;
868 const int PasswordBox::CaretBrushProperty = 378;
869 const int ObjectKeyFrame::ValueProperty = 379;
870 const int ObjectKeyFrame::KeyTimeProperty = 380;
871 const int ObjectKeyFrame::ConvertedValueProperty = 381;
872 const int ObjectAnimationUsingKeyFrames::KeyFramesProperty = 382;
873 const int MatrixTransform::MatrixProperty = 383;
874 const int LineSegment::PointProperty = 384;
875 const int LayoutInformation::VisualOffsetProperty = 385;
876 const int LayoutInformation::PreviousConstraintProperty = 386;
877 const int LayoutInformation::LayoutSlotProperty = 387;
878 const int LayoutInformation::LayoutClipProperty = 388;
879 const int LayoutInformation::LastRenderSizeProperty = 389;
880 const int LayoutInformation::FinalRectProperty = 390;
881 const int ExtensionPart::SourceProperty = 391;
882 const int EventTrigger::RoutedEventProperty = 392;
883 const int EventTrigger::ActionsProperty = 393;
884 const int DropShadowEffect::ShadowDepthProperty = 394;
885 const int DropShadowEffect::OpacityProperty = 395;
886 const int DropShadowEffect::DirectionProperty = 396;
887 const int DropShadowEffect::ColorProperty = 397;
888 const int DropShadowEffect::BlurRadiusProperty = 398;
889 const int DoubleKeyFrame::ValueProperty = 399;
890 const int DoubleKeyFrame::KeyTimeProperty = 400;
891 const int DoubleAnimation::ToProperty = 401;
892 const int DoubleAnimation::FromProperty = 402;
893 const int DoubleAnimation::EasingFunctionProperty = 403;
894 const int DoubleAnimation::ByProperty = 404;
895 const int DependencyObject::NameProperty = 405;
896 const int ControlTemplate::TargetTypeProperty = 406;
897 const int ColorKeyFrame::ValueProperty = 407;
898 const int ColorKeyFrame::KeyTimeProperty = 408;
899 const int ColorAnimation::ToProperty = 409;
900 const int ColorAnimation::FromProperty = 410;
901 const int ColorAnimation::EasingFunctionProperty = 411;
902 const int ColorAnimation::ByProperty = 412;
903 const int BlurEffect::RadiusProperty = 413;
904 const int BitmapSource::PixelWidthProperty = 414;
905 const int BitmapSource::PixelHeightProperty = 415;
906 const int BitmapSource::PixelFormatProperty = 416;
907 const int BitmapCache::RenderAtScaleProperty = 417;
908 const int BezierSegment::Point3Property = 418;
909 const int BezierSegment::Point2Property = 419;
910 const int BezierSegment::Point1Property = 420;
911 const int BeginStoryboard::StoryboardProperty = 421;
912 const int ArcSegment::SweepDirectionProperty = 422;
913 const int ArcSegment::SizeProperty = 423;
914 const int ArcSegment::RotationAngleProperty = 424;
915 const int ArcSegment::PointProperty = 425;
916 const int ArcSegment::IsLargeArcProperty = 426;
918 UIElement *
919 VisualBrush::GetVisual ()
921 Value *value = GetValue (VisualBrush::VisualProperty);
922 return value ? value->AsUIElement () : NULL;
925 void
926 VisualBrush::SetVisual (UIElement *value)
928 SetValue (VisualBrush::VisualProperty, Value::CreateUnrefPtr (value));
931 const char *
932 VideoBrush::GetSourceName ()
934 Value *value = GetValue (VideoBrush::SourceNameProperty);
935 return value ? value->AsString () : NULL;
938 void
939 VideoBrush::SetSourceName (const char *value)
941 SetValue (VideoBrush::SourceNameProperty, Value (value));
944 ImageSource *
945 ImageBrush::GetImageSource ()
947 Value *value = GetValue (ImageBrush::ImageSourceProperty);
948 return value ? value->AsImageSource () : NULL;
951 void
952 ImageBrush::SetImageSource (ImageSource *value)
954 SetValue (ImageBrush::ImageSourceProperty, Value::CreateUnrefPtr (value));
957 double
958 ImageBrush::GetDownloadProgress ()
960 Value *value = GetValue (ImageBrush::DownloadProgressProperty);
961 return value->AsDouble ();
964 void
965 ImageBrush::SetDownloadProgress (double value)
967 SetValue (ImageBrush::DownloadProgressProperty, Value (value));
970 double
971 RadialGradientBrush::GetRadiusY ()
973 Value *value = GetValue (RadialGradientBrush::RadiusYProperty);
974 return value->AsDouble ();
977 void
978 RadialGradientBrush::SetRadiusY (double value)
980 SetValue (RadialGradientBrush::RadiusYProperty, Value (value));
983 double
984 RadialGradientBrush::GetRadiusX ()
986 Value *value = GetValue (RadialGradientBrush::RadiusXProperty);
987 return value->AsDouble ();
990 void
991 RadialGradientBrush::SetRadiusX (double value)
993 SetValue (RadialGradientBrush::RadiusXProperty, Value (value));
996 Point *
997 RadialGradientBrush::GetGradientOrigin ()
999 Value *value = GetValue (RadialGradientBrush::GradientOriginProperty);
1000 return value ? value->AsPoint () : NULL;
1003 void
1004 RadialGradientBrush::SetGradientOrigin (Point *value)
1006 if (!value) return;
1007 SetValue (RadialGradientBrush::GradientOriginProperty, Value (*value));
1010 Point *
1011 RadialGradientBrush::GetCenter ()
1013 Value *value = GetValue (RadialGradientBrush::CenterProperty);
1014 return value ? value->AsPoint () : NULL;
1017 void
1018 RadialGradientBrush::SetCenter (Point *value)
1020 if (!value) return;
1021 SetValue (RadialGradientBrush::CenterProperty, Value (*value));
1024 Point *
1025 LinearGradientBrush::GetStartPoint ()
1027 Value *value = GetValue (LinearGradientBrush::StartPointProperty);
1028 return value ? value->AsPoint () : NULL;
1031 void
1032 LinearGradientBrush::SetStartPoint (Point *value)
1034 if (!value) return;
1035 SetValue (LinearGradientBrush::StartPointProperty, Value (*value));
1038 Point *
1039 LinearGradientBrush::GetEndPoint ()
1041 Value *value = GetValue (LinearGradientBrush::EndPointProperty);
1042 return value ? value->AsPoint () : NULL;
1045 void
1046 LinearGradientBrush::SetEndPoint (Point *value)
1048 if (!value) return;
1049 SetValue (LinearGradientBrush::EndPointProperty, Value (*value));
1052 Color *
1053 SolidColorBrush::GetColor ()
1055 Value *value = GetValue (SolidColorBrush::ColorProperty);
1056 return value ? value->AsColor () : NULL;
1059 void
1060 SolidColorBrush::SetColor (Color *value)
1062 if (!value) return;
1063 SetValue (SolidColorBrush::ColorProperty, Value (*value));
1066 Stretch
1067 TileBrush::GetStretch ()
1069 Value *value = GetValue (TileBrush::StretchProperty);
1070 return (Stretch) value->AsInt32 ();
1073 void
1074 TileBrush::SetStretch (Stretch value)
1076 SetValue (TileBrush::StretchProperty, Value (value));
1079 AlignmentY
1080 TileBrush::GetAlignmentY ()
1082 Value *value = GetValue (TileBrush::AlignmentYProperty);
1083 return (AlignmentY) value->AsInt32 ();
1086 void
1087 TileBrush::SetAlignmentY (AlignmentY value)
1089 SetValue (TileBrush::AlignmentYProperty, Value (value));
1092 AlignmentX
1093 TileBrush::GetAlignmentX ()
1095 Value *value = GetValue (TileBrush::AlignmentXProperty);
1096 return (AlignmentX) value->AsInt32 ();
1099 void
1100 TileBrush::SetAlignmentX (AlignmentX value)
1102 SetValue (TileBrush::AlignmentXProperty, Value (value));
1105 GradientSpreadMethod
1106 GradientBrush::GetSpreadMethod ()
1108 Value *value = GetValue (GradientBrush::SpreadMethodProperty);
1109 return (GradientSpreadMethod) value->AsInt32 ();
1112 void
1113 GradientBrush::SetSpreadMethod (GradientSpreadMethod value)
1115 SetValue (GradientBrush::SpreadMethodProperty, Value (value));
1118 BrushMappingMode
1119 GradientBrush::GetMappingMode ()
1121 Value *value = GetValue (GradientBrush::MappingModeProperty);
1122 return (BrushMappingMode) value->AsInt32 ();
1125 void
1126 GradientBrush::SetMappingMode (BrushMappingMode value)
1128 SetValue (GradientBrush::MappingModeProperty, Value (value));
1131 GradientStopCollection *
1132 GradientBrush::GetGradientStops ()
1134 Value *value = GetValue (GradientBrush::GradientStopsProperty);
1135 return value ? value->AsGradientStopCollection () : NULL;
1138 void
1139 GradientBrush::SetGradientStops (GradientStopCollection *value)
1141 SetValue (GradientBrush::GradientStopsProperty, Value::CreateUnrefPtr (value));
1144 ColorInterpolationMode
1145 GradientBrush::GetColorInterpolationMode ()
1147 Value *value = GetValue (GradientBrush::ColorInterpolationModeProperty);
1148 return (ColorInterpolationMode) value->AsInt32 ();
1151 void
1152 GradientBrush::SetColorInterpolationMode (ColorInterpolationMode value)
1154 SetValue (GradientBrush::ColorInterpolationModeProperty, Value (value));
1157 StrokeCollection *
1158 InkPresenter::GetStrokes ()
1160 Value *value = GetValue (InkPresenter::StrokesProperty);
1161 return value ? value->AsStrokeCollection () : NULL;
1164 void
1165 InkPresenter::SetStrokes (StrokeCollection *value)
1167 SetValue (InkPresenter::StrokesProperty, Value::CreateUnrefPtr (value));
1170 Transform *
1171 Brush::GetTransform ()
1173 Value *value = GetValue (Brush::TransformProperty);
1174 return value ? value->AsTransform () : NULL;
1177 void
1178 Brush::SetTransform (Transform *value)
1180 SetValue (Brush::TransformProperty, Value::CreateUnrefPtr (value));
1183 Transform *
1184 Brush::GetRelativeTransform ()
1186 Value *value = GetValue (Brush::RelativeTransformProperty);
1187 return value ? value->AsTransform () : NULL;
1190 void
1191 Brush::SetRelativeTransform (Transform *value)
1193 SetValue (Brush::RelativeTransformProperty, Value::CreateUnrefPtr (value));
1196 double
1197 Brush::GetOpacity ()
1199 Value *value = GetValue (Brush::OpacityProperty);
1200 return value->AsDouble ();
1203 void
1204 Brush::SetOpacity (double value)
1206 SetValue (Brush::OpacityProperty, Value (value));
1209 double
1210 Rectangle::GetRadiusY ()
1212 Value *value = GetValue (Rectangle::RadiusYProperty);
1213 return value->AsDouble ();
1216 void
1217 Rectangle::SetRadiusY (double value)
1219 SetValue (Rectangle::RadiusYProperty, Value (value));
1222 double
1223 Rectangle::GetRadiusX ()
1225 Value *value = GetValue (Rectangle::RadiusXProperty);
1226 return value->AsDouble ();
1229 void
1230 Rectangle::SetRadiusX (double value)
1232 SetValue (Rectangle::RadiusXProperty, Value (value));
1235 PointCollection *
1236 Polyline::GetPoints ()
1238 Value *value = GetValue (Polyline::PointsProperty);
1239 return value ? value->AsPointCollection () : NULL;
1242 void
1243 Polyline::SetPoints (PointCollection *value)
1245 SetValue (Polyline::PointsProperty, Value::CreateUnrefPtr (value));
1248 FillRule
1249 Polyline::GetFillRule ()
1251 Value *value = GetValue (Polyline::FillRuleProperty);
1252 return (FillRule) value->AsInt32 ();
1255 void
1256 Polyline::SetFillRule (FillRule value)
1258 SetValue (Polyline::FillRuleProperty, Value (value));
1261 PointCollection *
1262 Polygon::GetPoints ()
1264 Value *value = GetValue (Polygon::PointsProperty);
1265 return value ? value->AsPointCollection () : NULL;
1268 void
1269 Polygon::SetPoints (PointCollection *value)
1271 SetValue (Polygon::PointsProperty, Value::CreateUnrefPtr (value));
1274 FillRule
1275 Polygon::GetFillRule ()
1277 Value *value = GetValue (Polygon::FillRuleProperty);
1278 return (FillRule) value->AsInt32 ();
1281 void
1282 Polygon::SetFillRule (FillRule value)
1284 SetValue (Polygon::FillRuleProperty, Value (value));
1287 Geometry *
1288 Path::GetData ()
1290 Value *value = GetValue (Path::DataProperty);
1291 return value ? value->AsGeometry () : NULL;
1294 void
1295 Path::SetData (Geometry *value)
1297 SetValue (Path::DataProperty, Value::CreateUnrefPtr (value));
1300 double
1301 Line::GetY2 ()
1303 Value *value = GetValue (Line::Y2Property);
1304 return value->AsDouble ();
1307 void
1308 Line::SetY2 (double value)
1310 SetValue (Line::Y2Property, Value (value));
1313 double
1314 Line::GetY1 ()
1316 Value *value = GetValue (Line::Y1Property);
1317 return value->AsDouble ();
1320 void
1321 Line::SetY1 (double value)
1323 SetValue (Line::Y1Property, Value (value));
1326 double
1327 Line::GetX2 ()
1329 Value *value = GetValue (Line::X2Property);
1330 return value->AsDouble ();
1333 void
1334 Line::SetX2 (double value)
1336 SetValue (Line::X2Property, Value (value));
1339 double
1340 Line::GetX1 ()
1342 Value *value = GetValue (Line::X1Property);
1343 return value->AsDouble ();
1346 void
1347 Line::SetX1 (double value)
1349 SetValue (Line::X1Property, Value (value));
1352 double
1353 MultiScaleImage::GetViewportWidth ()
1355 Value *value = GetValue (MultiScaleImage::ViewportWidthProperty);
1356 return value->AsDouble ();
1359 void
1360 MultiScaleImage::SetViewportWidth (double value)
1362 SetValue (MultiScaleImage::ViewportWidthProperty, Value (value));
1365 Point *
1366 MultiScaleImage::GetViewportOrigin ()
1368 Value *value = GetValue (MultiScaleImage::ViewportOriginProperty);
1369 return value ? value->AsPoint () : NULL;
1372 void
1373 MultiScaleImage::SetViewportOrigin (Point *value)
1375 if (!value) return;
1376 SetValue (MultiScaleImage::ViewportOriginProperty, Value (*value));
1379 bool
1380 MultiScaleImage::GetUseSprings ()
1382 Value *value = GetValue (MultiScaleImage::UseSpringsProperty);
1383 return value->AsBool ();
1386 void
1387 MultiScaleImage::SetUseSprings (bool value)
1389 SetValue (MultiScaleImage::UseSpringsProperty, Value (value));
1392 MultiScaleSubImageCollection *
1393 MultiScaleImage::GetSubImages ()
1395 Value *value = GetValue (MultiScaleImage::SubImagesProperty);
1396 return value ? value->AsMultiScaleSubImageCollection () : NULL;
1399 MultiScaleTileSource *
1400 MultiScaleImage::GetSource ()
1402 Value *value = GetValue (MultiScaleImage::SourceProperty);
1403 return value ? value->AsMultiScaleTileSource () : NULL;
1406 void
1407 MultiScaleImage::SetSource (MultiScaleTileSource *value)
1409 SetValue (MultiScaleImage::SourceProperty, Value::CreateUnrefPtr (value));
1412 bool
1413 MultiScaleImage::GetIsIdle ()
1415 Value *value = GetValue (MultiScaleImage::IsIdleProperty);
1416 return value->AsBool ();
1419 bool
1420 MultiScaleImage::GetIsDownloading ()
1422 Value *value = GetValue (MultiScaleImage::IsDownloadingProperty);
1423 return value->AsBool ();
1426 double
1427 MultiScaleImage::GetInternalViewportWidth ()
1429 Value *value = GetValue (MultiScaleImage::InternalViewportWidthProperty);
1430 return value->AsDouble ();
1433 Point *
1434 MultiScaleImage::GetInternalViewportOrigin ()
1436 Value *value = GetValue (MultiScaleImage::InternalViewportOriginProperty);
1437 return value ? value->AsPoint () : NULL;
1440 double
1441 MultiScaleImage::GetBlurFactor ()
1443 Value *value = GetValue (MultiScaleImage::BlurFactorProperty);
1444 return value->AsDouble ();
1447 void
1448 MultiScaleImage::SetBlurFactor (double value)
1450 SetValue (MultiScaleImage::BlurFactorProperty, Value (value));
1453 double
1454 MultiScaleImage::GetAspectRatio ()
1456 Value *value = GetValue (MultiScaleImage::AspectRatioProperty);
1457 return value->AsDouble ();
1460 bool
1461 MultiScaleImage::GetAllowDownloading ()
1463 Value *value = GetValue (MultiScaleImage::AllowDownloadingProperty);
1464 return value->AsBool ();
1467 void
1468 MultiScaleImage::SetAllowDownloading (bool value)
1470 SetValue (MultiScaleImage::AllowDownloadingProperty, Value (value));
1473 ImageSource *
1474 Image::GetSource ()
1476 Value *value = GetValue (Image::SourceProperty);
1477 return value ? value->AsImageSource () : NULL;
1480 void
1481 Image::SetSource (ImageSource *value)
1483 SetValue (Image::SourceProperty, Value::CreateUnrefPtr (value));
1486 DataTemplate *
1487 ContentControl::GetContentTemplate ()
1489 Value *value = GetValue (ContentControl::ContentTemplateProperty);
1490 return value ? value->AsDataTemplate () : NULL;
1493 void
1494 ContentControl::SetContentTemplate (DataTemplate *value)
1496 SetValue (ContentControl::ContentTemplateProperty, Value::CreateUnrefPtr (value));
1499 bool
1500 Grid::GetShowGridLines ()
1502 Value *value = GetValue (Grid::ShowGridLinesProperty);
1503 return value->AsBool ();
1506 void
1507 Grid::SetShowGridLines (bool value)
1509 SetValue (Grid::ShowGridLinesProperty, Value (value));
1512 gint32
1513 Grid::GetRowSpan (DependencyObject *obj)
1515 Value *value = (!obj) ? NULL : obj->GetValue (Grid::RowSpanProperty);
1516 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Grid::RowSpanProperty)->GetDefaultValue();
1517 return value->AsInt32 ();
1520 void
1521 Grid::SetRowSpan (DependencyObject *obj, gint32 value)
1523 if (!obj) return;
1524 obj->SetValue (Grid::RowSpanProperty, Value (value));
1527 gint32
1528 Grid::GetRow (DependencyObject *obj)
1530 Value *value = (!obj) ? NULL : obj->GetValue (Grid::RowProperty);
1531 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Grid::RowProperty)->GetDefaultValue();
1532 return value->AsInt32 ();
1535 void
1536 Grid::SetRow (DependencyObject *obj, gint32 value)
1538 if (!obj) return;
1539 obj->SetValue (Grid::RowProperty, Value (value));
1542 RowDefinitionCollection *
1543 Grid::GetRowDefinitions ()
1545 Value *value = GetValue (Grid::RowDefinitionsProperty);
1546 return value ? value->AsRowDefinitionCollection () : NULL;
1549 void
1550 Grid::SetRowDefinitions (RowDefinitionCollection *value)
1552 SetValue (Grid::RowDefinitionsProperty, Value::CreateUnrefPtr (value));
1555 gint32
1556 Grid::GetColumnSpan (DependencyObject *obj)
1558 Value *value = (!obj) ? NULL : obj->GetValue (Grid::ColumnSpanProperty);
1559 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Grid::ColumnSpanProperty)->GetDefaultValue();
1560 return value->AsInt32 ();
1563 void
1564 Grid::SetColumnSpan (DependencyObject *obj, gint32 value)
1566 if (!obj) return;
1567 obj->SetValue (Grid::ColumnSpanProperty, Value (value));
1570 gint32
1571 Grid::GetColumn (DependencyObject *obj)
1573 Value *value = (!obj) ? NULL : obj->GetValue (Grid::ColumnProperty);
1574 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Grid::ColumnProperty)->GetDefaultValue();
1575 return value->AsInt32 ();
1578 void
1579 Grid::SetColumn (DependencyObject *obj, gint32 value)
1581 if (!obj) return;
1582 obj->SetValue (Grid::ColumnProperty, Value (value));
1585 ColumnDefinitionCollection *
1586 Grid::GetColumnDefinitions ()
1588 Value *value = GetValue (Grid::ColumnDefinitionsProperty);
1589 return value ? value->AsColumnDefinitionCollection () : NULL;
1592 void
1593 Grid::SetColumnDefinitions (ColumnDefinitionCollection *value)
1595 SetValue (Grid::ColumnDefinitionsProperty, Value::CreateUnrefPtr (value));
1598 gint32
1599 Canvas::GetZIndex (DependencyObject *obj)
1601 Value *value = (!obj) ? NULL : obj->GetValue (Canvas::ZIndexProperty);
1602 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Canvas::ZIndexProperty)->GetDefaultValue();
1603 return value->AsInt32 ();
1606 void
1607 Canvas::SetZIndex (DependencyObject *obj, gint32 value)
1609 if (!obj) return;
1610 obj->SetValue (Canvas::ZIndexProperty, Value (value));
1613 double
1614 Canvas::GetTop (DependencyObject *obj)
1616 Value *value = (!obj) ? NULL : obj->GetValue (Canvas::TopProperty);
1617 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Canvas::TopProperty)->GetDefaultValue();
1618 return value->AsDouble ();
1621 void
1622 Canvas::SetTop (DependencyObject *obj, double value)
1624 if (!obj) return;
1625 obj->SetValue (Canvas::TopProperty, Value (value));
1628 double
1629 Canvas::GetLeft (DependencyObject *obj)
1631 Value *value = (!obj) ? NULL : obj->GetValue (Canvas::LeftProperty);
1632 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Canvas::LeftProperty)->GetDefaultValue();
1633 return value->AsDouble ();
1636 void
1637 Canvas::SetLeft (DependencyObject *obj, double value)
1639 if (!obj) return;
1640 obj->SetValue (Canvas::LeftProperty, Value (value));
1643 TextWrapping
1644 TextBlock::GetTextWrapping ()
1646 Value *value = GetValue (TextBlock::TextWrappingProperty);
1647 return (TextWrapping) value->AsInt32 ();
1650 void
1651 TextBlock::SetTextWrapping (TextWrapping value)
1653 SetValue (TextBlock::TextWrappingProperty, Value (value));
1656 const char *
1657 TextBlock::GetText ()
1659 Value *value = GetValue (TextBlock::TextProperty);
1660 return value ? value->AsString () : NULL;
1663 void
1664 TextBlock::SetText (const char *value)
1666 SetValue (TextBlock::TextProperty, Value (value));
1669 TextDecorations
1670 TextBlock::GetTextDecorations ()
1672 Value *value = GetValue (TextBlock::TextDecorationsProperty);
1673 return (TextDecorations) value->AsInt32 ();
1676 void
1677 TextBlock::SetTextDecorations (TextDecorations value)
1679 SetValue (TextBlock::TextDecorationsProperty, Value (value));
1682 TextAlignment
1683 TextBlock::GetTextAlignment ()
1685 Value *value = GetValue (TextBlock::TextAlignmentProperty);
1686 return (TextAlignment) value->AsInt32 ();
1689 void
1690 TextBlock::SetTextAlignment (TextAlignment value)
1692 SetValue (TextBlock::TextAlignmentProperty, Value (value));
1695 Thickness *
1696 TextBlock::GetPadding ()
1698 Value *value = GetValue (TextBlock::PaddingProperty);
1699 return value ? value->AsThickness () : NULL;
1702 void
1703 TextBlock::SetPadding (Thickness *value)
1705 if (!value) return;
1706 SetValue (TextBlock::PaddingProperty, Value (*value));
1709 LineStackingStrategy
1710 TextBlock::GetLineStackingStrategy ()
1712 Value *value = GetValue (TextBlock::LineStackingStrategyProperty);
1713 return (LineStackingStrategy) value->AsInt32 ();
1716 void
1717 TextBlock::SetLineStackingStrategy (LineStackingStrategy value)
1719 SetValue (TextBlock::LineStackingStrategyProperty, Value (value));
1722 double
1723 TextBlock::GetLineHeight ()
1725 Value *value = GetValue (TextBlock::LineHeightProperty);
1726 return value->AsDouble ();
1729 void
1730 TextBlock::SetLineHeight (double value)
1732 SetValue (TextBlock::LineHeightProperty, Value (value));
1735 InlineCollection *
1736 TextBlock::GetInlines ()
1738 Value *value = GetValue (TextBlock::InlinesProperty);
1739 return value ? value->AsInlineCollection () : NULL;
1742 void
1743 TextBlock::SetInlines (InlineCollection *value)
1745 SetValue (TextBlock::InlinesProperty, Value::CreateUnrefPtr (value));
1748 Brush *
1749 TextBlock::GetForeground ()
1751 Value *value = GetValue (TextBlock::ForegroundProperty);
1752 return value ? value->AsBrush () : NULL;
1755 void
1756 TextBlock::SetForeground (Brush *value)
1758 SetValue (TextBlock::ForegroundProperty, Value::CreateUnrefPtr (value));
1761 FontWeight *
1762 TextBlock::GetFontWeight ()
1764 Value *value = GetValue (TextBlock::FontWeightProperty);
1765 return value ? value->AsFontWeight () : NULL;
1768 void
1769 TextBlock::SetFontWeight (FontWeight *value)
1771 if (!value) return;
1772 SetValue (TextBlock::FontWeightProperty, Value (*value));
1775 FontStyle *
1776 TextBlock::GetFontStyle ()
1778 Value *value = GetValue (TextBlock::FontStyleProperty);
1779 return value ? value->AsFontStyle () : NULL;
1782 void
1783 TextBlock::SetFontStyle (FontStyle *value)
1785 if (!value) return;
1786 SetValue (TextBlock::FontStyleProperty, Value (*value));
1789 FontStretch *
1790 TextBlock::GetFontStretch ()
1792 Value *value = GetValue (TextBlock::FontStretchProperty);
1793 return value ? value->AsFontStretch () : NULL;
1796 void
1797 TextBlock::SetFontStretch (FontStretch *value)
1799 if (!value) return;
1800 SetValue (TextBlock::FontStretchProperty, Value (*value));
1803 FontSource *
1804 TextBlock::GetFontSource ()
1806 Value *value = GetValue (TextBlock::FontSourceProperty);
1807 return value ? value->AsFontSource () : NULL;
1810 void
1811 TextBlock::SetFontSource (FontSource *value)
1813 if (!value) return;
1814 SetValue (TextBlock::FontSourceProperty, Value (*value));
1817 double
1818 TextBlock::GetFontSize ()
1820 Value *value = GetValue (TextBlock::FontSizeProperty);
1821 return value->AsDouble ();
1824 void
1825 TextBlock::SetFontSize (double value)
1827 SetValue (TextBlock::FontSizeProperty, Value (value));
1830 FontFamily *
1831 TextBlock::GetFontFamily ()
1833 Value *value = GetValue (TextBlock::FontFamilyProperty);
1834 return value ? value->AsFontFamily () : NULL;
1837 void
1838 TextBlock::SetFontFamily (FontFamily *value)
1840 if (!value) return;
1841 SetValue (TextBlock::FontFamilyProperty, Value (*value));
1844 double
1845 Popup::GetVerticalOffset ()
1847 Value *value = GetValue (Popup::VerticalOffsetProperty);
1848 return value->AsDouble ();
1851 void
1852 Popup::SetVerticalOffset (double value)
1854 SetValue (Popup::VerticalOffsetProperty, Value (value));
1857 bool
1858 Popup::GetIsOpen ()
1860 Value *value = GetValue (Popup::IsOpenProperty);
1861 return value->AsBool ();
1864 void
1865 Popup::SetIsOpen (bool value)
1867 SetValue (Popup::IsOpenProperty, Value (value));
1870 double
1871 Popup::GetHorizontalOffset ()
1873 Value *value = GetValue (Popup::HorizontalOffsetProperty);
1874 return value->AsDouble ();
1877 void
1878 Popup::SetHorizontalOffset (double value)
1880 SetValue (Popup::HorizontalOffsetProperty, Value (value));
1883 UIElement *
1884 Popup::GetChild ()
1886 Value *value = GetValue (Popup::ChildProperty);
1887 return value ? value->AsUIElement () : NULL;
1890 void
1891 Popup::SetChild (UIElement *value)
1893 SetValue (Popup::ChildProperty, Value::CreateUnrefPtr (value));
1896 double
1897 MediaElement::GetVolume ()
1899 Value *value = GetValue (MediaElement::VolumeProperty);
1900 return value->AsDouble ();
1903 void
1904 MediaElement::SetVolume (double value)
1906 SetValue (MediaElement::VolumeProperty, Value (value));
1909 Stretch
1910 MediaElement::GetStretch ()
1912 Value *value = GetValue (MediaElement::StretchProperty);
1913 return (Stretch) value->AsInt32 ();
1916 void
1917 MediaElement::SetStretch (Stretch value)
1919 SetValue (MediaElement::StretchProperty, Value (value));
1922 Uri *
1923 MediaElement::GetSource ()
1925 Value *value = GetValue (MediaElement::SourceProperty);
1926 return value ? value->AsUri () : NULL;
1929 void
1930 MediaElement::SetSource (Uri value)
1932 SetValue (MediaElement::SourceProperty, Value (value));
1935 void
1936 MediaElement::SetSource (Uri *value)
1938 if (!value)
1939 SetValue (MediaElement::SourceProperty, NULL);
1940 else
1941 SetValue (MediaElement::SourceProperty, Value (*value));
1944 double
1945 MediaElement::GetRenderedFramesPerSecond ()
1947 Value *value = GetValue (MediaElement::RenderedFramesPerSecondProperty);
1948 return value->AsDouble ();
1951 void
1952 MediaElement::SetRenderedFramesPerSecond (double value)
1954 SetValue (MediaElement::RenderedFramesPerSecondProperty, Value (value));
1957 TimeSpan
1958 MediaElement::GetPosition ()
1960 Value *value = GetValue (MediaElement::PositionProperty);
1961 return value->AsTimeSpan ();
1964 void
1965 MediaElement::SetPosition (TimeSpan value)
1967 SetValue (MediaElement::PositionProperty, Value (value, Type::TIMESPAN));
1970 gint32
1971 MediaElement::GetNaturalVideoWidth ()
1973 Value *value = GetValue (MediaElement::NaturalVideoWidthProperty);
1974 return value->AsInt32 ();
1977 void
1978 MediaElement::SetNaturalVideoWidth (gint32 value)
1980 SetValue (MediaElement::NaturalVideoWidthProperty, Value (value));
1983 gint32
1984 MediaElement::GetNaturalVideoHeight ()
1986 Value *value = GetValue (MediaElement::NaturalVideoHeightProperty);
1987 return value->AsInt32 ();
1990 void
1991 MediaElement::SetNaturalVideoHeight (gint32 value)
1993 SetValue (MediaElement::NaturalVideoHeightProperty, Value (value));
1996 Duration *
1997 MediaElement::GetNaturalDuration ()
1999 Value *value = GetValue (MediaElement::NaturalDurationProperty);
2000 return value ? value->AsDuration () : NULL;
2003 void
2004 MediaElement::SetNaturalDuration (Duration *value)
2006 if (!value) return;
2007 SetValue (MediaElement::NaturalDurationProperty, Value (*value));
2010 TimelineMarkerCollection *
2011 MediaElement::GetMarkers ()
2013 Value *value = GetValue (MediaElement::MarkersProperty);
2014 return value ? value->AsTimelineMarkerCollection () : NULL;
2017 void
2018 MediaElement::SetMarkers (TimelineMarkerCollection *value)
2020 SetValue (MediaElement::MarkersProperty, Value::CreateUnrefPtr (value));
2023 bool
2024 MediaElement::GetIsMuted ()
2026 Value *value = GetValue (MediaElement::IsMutedProperty);
2027 return value->AsBool ();
2030 void
2031 MediaElement::SetIsMuted (bool value)
2033 SetValue (MediaElement::IsMutedProperty, Value (value));
2036 double
2037 MediaElement::GetDroppedFramesPerSecond ()
2039 Value *value = GetValue (MediaElement::DroppedFramesPerSecondProperty);
2040 return value->AsDouble ();
2043 void
2044 MediaElement::SetDroppedFramesPerSecond (double value)
2046 SetValue (MediaElement::DroppedFramesPerSecondProperty, Value (value));
2049 double
2050 MediaElement::GetDownloadProgress ()
2052 Value *value = GetValue (MediaElement::DownloadProgressProperty);
2053 return value->AsDouble ();
2056 void
2057 MediaElement::SetDownloadProgress (double value)
2059 SetValue (MediaElement::DownloadProgressProperty, Value (value));
2062 double
2063 MediaElement::GetDownloadProgressOffset ()
2065 Value *value = GetValue (MediaElement::DownloadProgressOffsetProperty);
2066 return value->AsDouble ();
2069 void
2070 MediaElement::SetDownloadProgressOffset (double value)
2072 SetValue (MediaElement::DownloadProgressOffsetProperty, Value (value));
2075 MediaState
2076 MediaElement::GetCurrentState ()
2078 Value *value = GetValue (MediaElement::CurrentStateProperty);
2079 return (MediaState) value->AsInt32 ();
2082 void
2083 MediaElement::SetCurrentState (MediaState value)
2085 SetValue (MediaElement::CurrentStateProperty, Value (value));
2088 bool
2089 MediaElement::GetCanSeek ()
2091 Value *value = GetValue (MediaElement::CanSeekProperty);
2092 return value->AsBool ();
2095 void
2096 MediaElement::SetCanSeek (bool value)
2098 SetValue (MediaElement::CanSeekProperty, Value (value));
2101 bool
2102 MediaElement::GetCanPause ()
2104 Value *value = GetValue (MediaElement::CanPauseProperty);
2105 return value->AsBool ();
2108 void
2109 MediaElement::SetCanPause (bool value)
2111 SetValue (MediaElement::CanPauseProperty, Value (value));
2114 TimeSpan
2115 MediaElement::GetBufferingTime ()
2117 Value *value = GetValue (MediaElement::BufferingTimeProperty);
2118 return value->AsTimeSpan ();
2121 void
2122 MediaElement::SetBufferingTime (TimeSpan value)
2124 SetValue (MediaElement::BufferingTimeProperty, Value (value, Type::TIMESPAN));
2127 double
2128 MediaElement::GetBufferingProgress ()
2130 Value *value = GetValue (MediaElement::BufferingProgressProperty);
2131 return value->AsDouble ();
2134 void
2135 MediaElement::SetBufferingProgress (double value)
2137 SetValue (MediaElement::BufferingProgressProperty, Value (value));
2140 double
2141 MediaElement::GetBalance ()
2143 Value *value = GetValue (MediaElement::BalanceProperty);
2144 return value->AsDouble ();
2147 void
2148 MediaElement::SetBalance (double value)
2150 SetValue (MediaElement::BalanceProperty, Value (value));
2153 bool
2154 MediaElement::GetAutoPlay ()
2156 Value *value = GetValue (MediaElement::AutoPlayProperty);
2157 return value->AsBool ();
2160 void
2161 MediaElement::SetAutoPlay (bool value)
2163 SetValue (MediaElement::AutoPlayProperty, Value (value));
2166 gint32 *
2167 MediaElement::GetAudioStreamIndex ()
2169 Value *value = GetValue (MediaElement::AudioStreamIndexProperty);
2170 return value ? value->AsNullableInt32 () : NULL;
2173 void
2174 MediaElement::SetAudioStreamIndex (gint32 value)
2176 SetValue (MediaElement::AudioStreamIndexProperty, Value (value));
2179 void
2180 MediaElement::SetAudioStreamIndex (gint32 * value)
2182 if (!value)
2183 SetValue (MediaElement::AudioStreamIndexProperty, NULL);
2184 else
2185 SetValue (MediaElement::AudioStreamIndexProperty, Value (*value));
2188 gint32
2189 MediaElement::GetAudioStreamCount ()
2191 Value *value = GetValue (MediaElement::AudioStreamCountProperty);
2192 return value->AsInt32 ();
2195 void
2196 MediaElement::SetAudioStreamCount (gint32 value)
2198 SetValue (MediaElement::AudioStreamCountProperty, Value (value));
2201 MediaAttributeCollection *
2202 MediaElement::GetAttributes ()
2204 Value *value = GetValue (MediaElement::AttributesProperty);
2205 return value ? value->AsMediaAttributeCollection () : NULL;
2208 void
2209 MediaElement::SetAttributes (MediaAttributeCollection *value)
2211 SetValue (MediaElement::AttributesProperty, Value::CreateUnrefPtr (value));
2214 double
2215 Shape::GetStrokeThickness ()
2217 Value *value = GetValue (Shape::StrokeThicknessProperty);
2218 return value->AsDouble ();
2221 void
2222 Shape::SetStrokeThickness (double value)
2224 SetValue (Shape::StrokeThicknessProperty, Value (value));
2227 PenLineCap
2228 Shape::GetStrokeStartLineCap ()
2230 Value *value = GetValue (Shape::StrokeStartLineCapProperty);
2231 return (PenLineCap) value->AsInt32 ();
2234 void
2235 Shape::SetStrokeStartLineCap (PenLineCap value)
2237 SetValue (Shape::StrokeStartLineCapProperty, Value (value));
2240 Brush *
2241 Shape::GetStroke ()
2243 Value *value = GetValue (Shape::StrokeProperty);
2244 return value ? value->AsBrush () : NULL;
2247 void
2248 Shape::SetStroke (Brush *value)
2250 SetValue (Shape::StrokeProperty, Value::CreateUnrefPtr (value));
2253 double
2254 Shape::GetStrokeMiterLimit ()
2256 Value *value = GetValue (Shape::StrokeMiterLimitProperty);
2257 return value->AsDouble ();
2260 void
2261 Shape::SetStrokeMiterLimit (double value)
2263 SetValue (Shape::StrokeMiterLimitProperty, Value (value));
2266 PenLineJoin
2267 Shape::GetStrokeLineJoin ()
2269 Value *value = GetValue (Shape::StrokeLineJoinProperty);
2270 return (PenLineJoin) value->AsInt32 ();
2273 void
2274 Shape::SetStrokeLineJoin (PenLineJoin value)
2276 SetValue (Shape::StrokeLineJoinProperty, Value (value));
2279 PenLineCap
2280 Shape::GetStrokeEndLineCap ()
2282 Value *value = GetValue (Shape::StrokeEndLineCapProperty);
2283 return (PenLineCap) value->AsInt32 ();
2286 void
2287 Shape::SetStrokeEndLineCap (PenLineCap value)
2289 SetValue (Shape::StrokeEndLineCapProperty, Value (value));
2292 double
2293 Shape::GetStrokeDashOffset ()
2295 Value *value = GetValue (Shape::StrokeDashOffsetProperty);
2296 return value->AsDouble ();
2299 void
2300 Shape::SetStrokeDashOffset (double value)
2302 SetValue (Shape::StrokeDashOffsetProperty, Value (value));
2305 PenLineCap
2306 Shape::GetStrokeDashCap ()
2308 Value *value = GetValue (Shape::StrokeDashCapProperty);
2309 return (PenLineCap) value->AsInt32 ();
2312 void
2313 Shape::SetStrokeDashCap (PenLineCap value)
2315 SetValue (Shape::StrokeDashCapProperty, Value (value));
2318 DoubleCollection *
2319 Shape::GetStrokeDashArray ()
2321 Value *value = GetValue (Shape::StrokeDashArrayProperty);
2322 return value ? value->AsDoubleCollection () : NULL;
2325 void
2326 Shape::SetStrokeDashArray (DoubleCollection *value)
2328 SetValue (Shape::StrokeDashArrayProperty, Value::CreateUnrefPtr (value));
2331 Stretch
2332 Shape::GetStretch ()
2334 Value *value = GetValue (Shape::StretchProperty);
2335 return (Stretch) value->AsInt32 ();
2338 void
2339 Shape::SetStretch (Stretch value)
2341 SetValue (Shape::StretchProperty, Value (value));
2344 Brush *
2345 Shape::GetFill ()
2347 Value *value = GetValue (Shape::FillProperty);
2348 return value ? value->AsBrush () : NULL;
2351 void
2352 Shape::SetFill (Brush *value)
2354 SetValue (Shape::FillProperty, Value::CreateUnrefPtr (value));
2357 Stretch
2358 MediaBase::GetStretch ()
2360 Value *value = GetValue (MediaBase::StretchProperty);
2361 return (Stretch) value->AsInt32 ();
2364 void
2365 MediaBase::SetStretch (Stretch value)
2367 SetValue (MediaBase::StretchProperty, Value (value));
2370 const char *
2371 MediaBase::GetSource ()
2373 Value *value = GetValue (MediaBase::SourceProperty);
2374 return value ? value->AsString () : NULL;
2377 void
2378 MediaBase::SetSource (const char *value)
2380 SetValue (MediaBase::SourceProperty, Value (value));
2383 double
2384 MediaBase::GetDownloadProgress ()
2386 Value *value = GetValue (MediaBase::DownloadProgressProperty);
2387 return value->AsDouble ();
2390 void
2391 MediaBase::SetDownloadProgress (double value)
2393 SetValue (MediaBase::DownloadProgressProperty, Value (value));
2396 const char *
2397 Glyphs::GetUnicodeString ()
2399 Value *value = GetValue (Glyphs::UnicodeStringProperty);
2400 return value ? value->AsString () : NULL;
2403 void
2404 Glyphs::SetUnicodeString (const char *value)
2406 SetValue (Glyphs::UnicodeStringProperty, Value (value));
2409 StyleSimulations
2410 Glyphs::GetStyleSimulations ()
2412 Value *value = GetValue (Glyphs::StyleSimulationsProperty);
2413 return (StyleSimulations) value->AsInt32 ();
2416 void
2417 Glyphs::SetStyleSimulations (StyleSimulations value)
2419 SetValue (Glyphs::StyleSimulationsProperty, Value (value));
2422 double
2423 Glyphs::GetOriginY ()
2425 Value *value = GetValue (Glyphs::OriginYProperty);
2426 return value->AsDouble ();
2429 void
2430 Glyphs::SetOriginY (double value)
2432 SetValue (Glyphs::OriginYProperty, Value (value));
2435 double
2436 Glyphs::GetOriginX ()
2438 Value *value = GetValue (Glyphs::OriginXProperty);
2439 return value->AsDouble ();
2442 void
2443 Glyphs::SetOriginX (double value)
2445 SetValue (Glyphs::OriginXProperty, Value (value));
2448 const char *
2449 Glyphs::GetIndices ()
2451 Value *value = GetValue (Glyphs::IndicesProperty);
2452 return value ? value->AsString () : NULL;
2455 void
2456 Glyphs::SetIndices (const char *value)
2458 SetValue (Glyphs::IndicesProperty, Value (value));
2461 Uri *
2462 Glyphs::GetFontUri ()
2464 Value *value = GetValue (Glyphs::FontUriProperty);
2465 return value ? value->AsUri () : NULL;
2468 void
2469 Glyphs::SetFontUri (Uri *value)
2471 if (!value) return;
2472 SetValue (Glyphs::FontUriProperty, Value (*value));
2475 double
2476 Glyphs::GetFontRenderingEmSize ()
2478 Value *value = GetValue (Glyphs::FontRenderingEmSizeProperty);
2479 return value->AsDouble ();
2482 void
2483 Glyphs::SetFontRenderingEmSize (double value)
2485 SetValue (Glyphs::FontRenderingEmSizeProperty, Value (value));
2488 Brush *
2489 Glyphs::GetFill ()
2491 Value *value = GetValue (Glyphs::FillProperty);
2492 return value ? value->AsBrush () : NULL;
2495 void
2496 Glyphs::SetFill (Brush *value)
2498 SetValue (Glyphs::FillProperty, Value::CreateUnrefPtr (value));
2501 VerticalAlignment
2502 Control::GetVerticalContentAlignment ()
2504 Value *value = GetValue (Control::VerticalContentAlignmentProperty);
2505 return (VerticalAlignment) value->AsInt32 ();
2508 void
2509 Control::SetVerticalContentAlignment (VerticalAlignment value)
2511 SetValue (Control::VerticalContentAlignmentProperty, Value (value));
2514 ControlTemplate *
2515 Control::GetTemplate ()
2517 Value *value = GetValue (Control::TemplateProperty);
2518 return value ? value->AsControlTemplate () : NULL;
2521 void
2522 Control::SetTemplate (ControlTemplate *value)
2524 SetValue (Control::TemplateProperty, Value::CreateUnrefPtr (value));
2527 KeyboardNavigationMode
2528 Control::GetTabNavigation ()
2530 Value *value = GetValue (Control::TabNavigationProperty);
2531 return (KeyboardNavigationMode) value->AsInt32 ();
2534 void
2535 Control::SetTabNavigation (KeyboardNavigationMode value)
2537 SetValue (Control::TabNavigationProperty, Value (value));
2540 gint32
2541 Control::GetTabIndex ()
2543 Value *value = GetValue (Control::TabIndexProperty);
2544 return value->AsInt32 ();
2547 void
2548 Control::SetTabIndex (gint32 value)
2550 SetValue (Control::TabIndexProperty, Value (value));
2553 Thickness *
2554 Control::GetPadding ()
2556 Value *value = GetValue (Control::PaddingProperty);
2557 return value ? value->AsThickness () : NULL;
2560 void
2561 Control::SetPadding (Thickness *value)
2563 if (!value) return;
2564 SetValue (Control::PaddingProperty, Value (*value));
2567 bool
2568 Control::GetIsTemplateItem (DependencyObject *obj)
2570 Value *value = (!obj) ? NULL : obj->GetValue (Control::IsTemplateItemProperty);
2571 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Control::IsTemplateItemProperty)->GetDefaultValue();
2572 return value->AsBool ();
2575 void
2576 Control::SetIsTemplateItem (DependencyObject *obj, bool value)
2578 if (!obj) return;
2579 obj->SetValue (Control::IsTemplateItemProperty, Value (value));
2582 bool
2583 Control::GetIsTabStop ()
2585 Value *value = GetValue (Control::IsTabStopProperty);
2586 return value->AsBool ();
2589 void
2590 Control::SetIsTabStop (bool value)
2592 SetValue (Control::IsTabStopProperty, Value (value));
2595 bool
2596 Control::GetIsEnabled ()
2598 Value *value = GetValue (Control::IsEnabledProperty);
2599 return value->AsBool ();
2602 void
2603 Control::SetIsEnabled (bool value)
2605 SetValue (Control::IsEnabledProperty, Value (value));
2608 HorizontalAlignment
2609 Control::GetHorizontalContentAlignment ()
2611 Value *value = GetValue (Control::HorizontalContentAlignmentProperty);
2612 return (HorizontalAlignment) value->AsInt32 ();
2615 void
2616 Control::SetHorizontalContentAlignment (HorizontalAlignment value)
2618 SetValue (Control::HorizontalContentAlignmentProperty, Value (value));
2621 Brush *
2622 Control::GetForeground ()
2624 Value *value = GetValue (Control::ForegroundProperty);
2625 return value ? value->AsBrush () : NULL;
2628 void
2629 Control::SetForeground (Brush *value)
2631 SetValue (Control::ForegroundProperty, Value::CreateUnrefPtr (value));
2634 FontWeight *
2635 Control::GetFontWeight ()
2637 Value *value = GetValue (Control::FontWeightProperty);
2638 return value ? value->AsFontWeight () : NULL;
2641 void
2642 Control::SetFontWeight (FontWeight *value)
2644 if (!value) return;
2645 SetValue (Control::FontWeightProperty, Value (*value));
2648 FontStyle *
2649 Control::GetFontStyle ()
2651 Value *value = GetValue (Control::FontStyleProperty);
2652 return value ? value->AsFontStyle () : NULL;
2655 void
2656 Control::SetFontStyle (FontStyle *value)
2658 if (!value) return;
2659 SetValue (Control::FontStyleProperty, Value (*value));
2662 FontStretch *
2663 Control::GetFontStretch ()
2665 Value *value = GetValue (Control::FontStretchProperty);
2666 return value ? value->AsFontStretch () : NULL;
2669 void
2670 Control::SetFontStretch (FontStretch *value)
2672 if (!value) return;
2673 SetValue (Control::FontStretchProperty, Value (*value));
2676 double
2677 Control::GetFontSize ()
2679 Value *value = GetValue (Control::FontSizeProperty);
2680 return value->AsDouble ();
2683 void
2684 Control::SetFontSize (double value)
2686 SetValue (Control::FontSizeProperty, Value (value));
2689 FontFamily *
2690 Control::GetFontFamily ()
2692 Value *value = GetValue (Control::FontFamilyProperty);
2693 return value ? value->AsFontFamily () : NULL;
2696 void
2697 Control::SetFontFamily (FontFamily *value)
2699 if (!value) return;
2700 SetValue (Control::FontFamilyProperty, Value (*value));
2703 ManagedTypeInfo *
2704 Control::GetDefaultStyleKey ()
2706 Value *value = GetValue (Control::DefaultStyleKeyProperty);
2707 return value ? value->AsManagedTypeInfo () : NULL;
2710 void
2711 Control::SetDefaultStyleKey (ManagedTypeInfo *value)
2713 if (!value) return;
2714 SetValue (Control::DefaultStyleKeyProperty, Value (*value));
2717 Thickness *
2718 Control::GetBorderThickness ()
2720 Value *value = GetValue (Control::BorderThicknessProperty);
2721 return value ? value->AsThickness () : NULL;
2724 void
2725 Control::SetBorderThickness (Thickness *value)
2727 if (!value) return;
2728 SetValue (Control::BorderThicknessProperty, Value (*value));
2731 Brush *
2732 Control::GetBorderBrush ()
2734 Value *value = GetValue (Control::BorderBrushProperty);
2735 return value ? value->AsBrush () : NULL;
2738 void
2739 Control::SetBorderBrush (Brush *value)
2741 SetValue (Control::BorderBrushProperty, Value::CreateUnrefPtr (value));
2744 Brush *
2745 Control::GetBackground ()
2747 Value *value = GetValue (Control::BackgroundProperty);
2748 return value ? value->AsBrush () : NULL;
2751 void
2752 Control::SetBackground (Brush *value)
2754 SetValue (Control::BackgroundProperty, Value::CreateUnrefPtr (value));
2757 UIElementCollection *
2758 Panel::GetChildren ()
2760 Value *value = GetValue (Panel::ChildrenProperty);
2761 return value ? value->AsUIElementCollection () : NULL;
2764 void
2765 Panel::SetChildren (UIElementCollection *value)
2767 SetValue (Panel::ChildrenProperty, Value::CreateUnrefPtr (value));
2770 Brush *
2771 Panel::GetBackground ()
2773 Value *value = GetValue (Panel::BackgroundProperty);
2774 return value ? value->AsBrush () : NULL;
2777 void
2778 Panel::SetBackground (Brush *value)
2780 SetValue (Panel::BackgroundProperty, Value::CreateUnrefPtr (value));
2783 Thickness *
2784 Border::GetPadding ()
2786 Value *value = GetValue (Border::PaddingProperty);
2787 return value ? value->AsThickness () : NULL;
2790 void
2791 Border::SetPadding (Thickness *value)
2793 if (!value) return;
2794 SetValue (Border::PaddingProperty, Value (*value));
2797 CornerRadius *
2798 Border::GetCornerRadius ()
2800 Value *value = GetValue (Border::CornerRadiusProperty);
2801 return value ? value->AsCornerRadius () : NULL;
2804 void
2805 Border::SetCornerRadius (CornerRadius *value)
2807 if (!value) return;
2808 SetValue (Border::CornerRadiusProperty, Value (*value));
2811 UIElement *
2812 Border::GetChild ()
2814 Value *value = GetValue (Border::ChildProperty);
2815 return value ? value->AsUIElement () : NULL;
2818 void
2819 Border::SetChild (UIElement *value)
2821 SetValue (Border::ChildProperty, Value::CreateUnrefPtr (value));
2824 Thickness *
2825 Border::GetBorderThickness ()
2827 Value *value = GetValue (Border::BorderThicknessProperty);
2828 return value ? value->AsThickness () : NULL;
2831 void
2832 Border::SetBorderThickness (Thickness *value)
2834 if (!value) return;
2835 SetValue (Border::BorderThicknessProperty, Value (*value));
2838 Brush *
2839 Border::GetBorderBrush ()
2841 Value *value = GetValue (Border::BorderBrushProperty);
2842 return value ? value->AsBrush () : NULL;
2845 void
2846 Border::SetBorderBrush (Brush *value)
2848 SetValue (Border::BorderBrushProperty, Value::CreateUnrefPtr (value));
2851 Brush *
2852 Border::GetBackground ()
2854 Value *value = GetValue (Border::BackgroundProperty);
2855 return value ? value->AsBrush () : NULL;
2858 void
2859 Border::SetBackground (Brush *value)
2861 SetValue (Border::BackgroundProperty, Value::CreateUnrefPtr (value));
2864 TimelineCollection *
2865 TimelineGroup::GetChildren ()
2867 Value *value = GetValue (TimelineGroup::ChildrenProperty);
2868 return value ? value->AsTimelineCollection () : NULL;
2871 void
2872 TimelineGroup::SetChildren (TimelineCollection *value)
2874 SetValue (TimelineGroup::ChildrenProperty, Value::CreateUnrefPtr (value));
2877 const char *
2878 Run::GetText ()
2880 Value *value = GetValue (Run::TextProperty);
2881 return value ? value->AsString () : NULL;
2884 void
2885 Run::SetText (const char *value)
2887 SetValue (Run::TextProperty, Value (value));
2890 Rect *
2891 RectangleGeometry::GetRect ()
2893 Value *value = GetValue (RectangleGeometry::RectProperty);
2894 return value ? value->AsRect () : NULL;
2897 void
2898 RectangleGeometry::SetRect (Rect *value)
2900 if (!value) return;
2901 SetValue (RectangleGeometry::RectProperty, Value (*value));
2904 double
2905 RectangleGeometry::GetRadiusY ()
2907 Value *value = GetValue (RectangleGeometry::RadiusYProperty);
2908 return value->AsDouble ();
2911 void
2912 RectangleGeometry::SetRadiusY (double value)
2914 SetValue (RectangleGeometry::RadiusYProperty, Value (value));
2917 double
2918 RectangleGeometry::GetRadiusX ()
2920 Value *value = GetValue (RectangleGeometry::RadiusXProperty);
2921 return value->AsDouble ();
2924 void
2925 RectangleGeometry::SetRadiusX (double value)
2927 SetValue (RectangleGeometry::RadiusXProperty, Value (value));
2930 FillRule
2931 PathGeometry::GetFillRule ()
2933 Value *value = GetValue (PathGeometry::FillRuleProperty);
2934 return (FillRule) value->AsInt32 ();
2937 void
2938 PathGeometry::SetFillRule (FillRule value)
2940 SetValue (PathGeometry::FillRuleProperty, Value (value));
2943 PathFigureCollection *
2944 PathGeometry::GetFigures ()
2946 Value *value = GetValue (PathGeometry::FiguresProperty);
2947 return value ? value->AsPathFigureCollection () : NULL;
2950 void
2951 PathGeometry::SetFigures (PathFigureCollection *value)
2953 SetValue (PathGeometry::FiguresProperty, Value::CreateUnrefPtr (value));
2956 Point *
2957 LineGeometry::GetStartPoint ()
2959 Value *value = GetValue (LineGeometry::StartPointProperty);
2960 return value ? value->AsPoint () : NULL;
2963 void
2964 LineGeometry::SetStartPoint (Point *value)
2966 if (!value) return;
2967 SetValue (LineGeometry::StartPointProperty, Value (*value));
2970 Point *
2971 LineGeometry::GetEndPoint ()
2973 Value *value = GetValue (LineGeometry::EndPointProperty);
2974 return value ? value->AsPoint () : NULL;
2977 void
2978 LineGeometry::SetEndPoint (Point *value)
2980 if (!value) return;
2981 SetValue (LineGeometry::EndPointProperty, Value (*value));
2984 FillRule
2985 GeometryGroup::GetFillRule ()
2987 Value *value = GetValue (GeometryGroup::FillRuleProperty);
2988 return (FillRule) value->AsInt32 ();
2991 void
2992 GeometryGroup::SetFillRule (FillRule value)
2994 SetValue (GeometryGroup::FillRuleProperty, Value (value));
2997 GeometryCollection *
2998 GeometryGroup::GetChildren ()
3000 Value *value = GetValue (GeometryGroup::ChildrenProperty);
3001 return value ? value->AsGeometryCollection () : NULL;
3004 void
3005 GeometryGroup::SetChildren (GeometryCollection *value)
3007 SetValue (GeometryGroup::ChildrenProperty, Value::CreateUnrefPtr (value));
3010 double
3011 EllipseGeometry::GetRadiusY ()
3013 Value *value = GetValue (EllipseGeometry::RadiusYProperty);
3014 return value->AsDouble ();
3017 void
3018 EllipseGeometry::SetRadiusY (double value)
3020 SetValue (EllipseGeometry::RadiusYProperty, Value (value));
3023 double
3024 EllipseGeometry::GetRadiusX ()
3026 Value *value = GetValue (EllipseGeometry::RadiusXProperty);
3027 return value->AsDouble ();
3030 void
3031 EllipseGeometry::SetRadiusX (double value)
3033 SetValue (EllipseGeometry::RadiusXProperty, Value (value));
3036 Point *
3037 EllipseGeometry::GetCenter ()
3039 Value *value = GetValue (EllipseGeometry::CenterProperty);
3040 return value ? value->AsPoint () : NULL;
3043 void
3044 EllipseGeometry::SetCenter (Point *value)
3046 if (!value) return;
3047 SetValue (EllipseGeometry::CenterProperty, Value (*value));
3050 Uri *
3051 DeepZoomImageTileSource::GetUriSource ()
3053 Value *value = GetValue (DeepZoomImageTileSource::UriSourceProperty);
3054 return value ? value->AsUri () : NULL;
3057 void
3058 DeepZoomImageTileSource::SetUriSource (Uri *value)
3060 if (!value) return;
3061 SetValue (DeepZoomImageTileSource::UriSourceProperty, Value (*value));
3064 ResourceDictionaryCollection *
3065 ResourceDictionary::GetMergedDictionaries ()
3067 Value *value = GetValue (ResourceDictionary::MergedDictionariesProperty);
3068 return value ? value->AsResourceDictionaryCollection () : NULL;
3071 void
3072 ResourceDictionary::SetMergedDictionaries (ResourceDictionaryCollection *value)
3074 SetValue (ResourceDictionary::MergedDictionariesProperty, Value::CreateUnrefPtr (value));
3077 double
3078 FrameworkElement::GetWidth ()
3080 Value *value = GetValue (FrameworkElement::WidthProperty);
3081 return value->AsDouble ();
3084 void
3085 FrameworkElement::SetWidth (double value)
3087 SetValue (FrameworkElement::WidthProperty, Value (value));
3090 VerticalAlignment
3091 FrameworkElement::GetVerticalAlignment ()
3093 Value *value = GetValue (FrameworkElement::VerticalAlignmentProperty);
3094 return (VerticalAlignment) value->AsInt32 ();
3097 void
3098 FrameworkElement::SetVerticalAlignment (VerticalAlignment value)
3100 SetValue (FrameworkElement::VerticalAlignmentProperty, Value (value));
3103 Style *
3104 FrameworkElement::GetStyle ()
3106 Value *value = GetValue (FrameworkElement::StyleProperty);
3107 return value ? value->AsStyle () : NULL;
3110 void
3111 FrameworkElement::SetStyle (Style *value)
3113 SetValue (FrameworkElement::StyleProperty, Value::CreateUnrefPtr (value));
3116 double
3117 FrameworkElement::GetMinWidth ()
3119 Value *value = GetValue (FrameworkElement::MinWidthProperty);
3120 return value->AsDouble ();
3123 void
3124 FrameworkElement::SetMinWidth (double value)
3126 SetValue (FrameworkElement::MinWidthProperty, Value (value));
3129 double
3130 FrameworkElement::GetMinHeight ()
3132 Value *value = GetValue (FrameworkElement::MinHeightProperty);
3133 return value->AsDouble ();
3136 void
3137 FrameworkElement::SetMinHeight (double value)
3139 SetValue (FrameworkElement::MinHeightProperty, Value (value));
3142 double
3143 FrameworkElement::GetMaxWidth ()
3145 Value *value = GetValue (FrameworkElement::MaxWidthProperty);
3146 return value->AsDouble ();
3149 void
3150 FrameworkElement::SetMaxWidth (double value)
3152 SetValue (FrameworkElement::MaxWidthProperty, Value (value));
3155 double
3156 FrameworkElement::GetMaxHeight ()
3158 Value *value = GetValue (FrameworkElement::MaxHeightProperty);
3159 return value->AsDouble ();
3162 void
3163 FrameworkElement::SetMaxHeight (double value)
3165 SetValue (FrameworkElement::MaxHeightProperty, Value (value));
3168 Thickness *
3169 FrameworkElement::GetMargin ()
3171 Value *value = GetValue (FrameworkElement::MarginProperty);
3172 return value ? value->AsThickness () : NULL;
3175 void
3176 FrameworkElement::SetMargin (Thickness *value)
3178 if (!value) return;
3179 SetValue (FrameworkElement::MarginProperty, Value (*value));
3182 const char *
3183 FrameworkElement::GetLanguage ()
3185 Value *value = GetValue (FrameworkElement::LanguageProperty);
3186 return value ? value->AsString () : NULL;
3189 void
3190 FrameworkElement::SetLanguage (const char *value)
3192 SetValue (FrameworkElement::LanguageProperty, Value (value));
3195 HorizontalAlignment
3196 FrameworkElement::GetHorizontalAlignment ()
3198 Value *value = GetValue (FrameworkElement::HorizontalAlignmentProperty);
3199 return (HorizontalAlignment) value->AsInt32 ();
3202 void
3203 FrameworkElement::SetHorizontalAlignment (HorizontalAlignment value)
3205 SetValue (FrameworkElement::HorizontalAlignmentProperty, Value (value));
3208 double
3209 FrameworkElement::GetHeight ()
3211 Value *value = GetValue (FrameworkElement::HeightProperty);
3212 return value->AsDouble ();
3215 void
3216 FrameworkElement::SetHeight (double value)
3218 SetValue (FrameworkElement::HeightProperty, Value (value));
3221 double
3222 FrameworkElement::GetActualWidth ()
3224 Value *value = GetValue (FrameworkElement::ActualWidthProperty);
3225 return value->AsDouble ();
3228 void
3229 FrameworkElement::SetActualWidth (double value)
3231 SetValue (FrameworkElement::ActualWidthProperty, Value (value));
3234 double
3235 FrameworkElement::GetActualHeight ()
3237 Value *value = GetValue (FrameworkElement::ActualHeightProperty);
3238 return value->AsDouble ();
3241 void
3242 FrameworkElement::SetActualHeight (double value)
3244 SetValue (FrameworkElement::ActualHeightProperty, Value (value));
3247 double
3248 PowerEase::GetPower ()
3250 Value *value = GetValue (PowerEase::PowerProperty);
3251 return value->AsDouble ();
3254 void
3255 PowerEase::SetPower (double value)
3257 SetValue (PowerEase::PowerProperty, Value (value));
3260 double
3261 ExponentialEase::GetExponent ()
3263 Value *value = GetValue (ExponentialEase::ExponentProperty);
3264 return value->AsDouble ();
3267 void
3268 ExponentialEase::SetExponent (double value)
3270 SetValue (ExponentialEase::ExponentProperty, Value (value));
3273 double
3274 ElasticEase::GetSpringiness ()
3276 Value *value = GetValue (ElasticEase::SpringinessProperty);
3277 return value->AsDouble ();
3280 void
3281 ElasticEase::SetSpringiness (double value)
3283 SetValue (ElasticEase::SpringinessProperty, Value (value));
3286 gint32
3287 ElasticEase::GetOscillations ()
3289 Value *value = GetValue (ElasticEase::OscillationsProperty);
3290 return value->AsInt32 ();
3293 void
3294 ElasticEase::SetOscillations (gint32 value)
3296 SetValue (ElasticEase::OscillationsProperty, Value (value));
3299 double
3300 BounceEase::GetBounciness ()
3302 Value *value = GetValue (BounceEase::BouncinessProperty);
3303 return value->AsDouble ();
3306 void
3307 BounceEase::SetBounciness (double value)
3309 SetValue (BounceEase::BouncinessProperty, Value (value));
3312 gint32
3313 BounceEase::GetBounces ()
3315 Value *value = GetValue (BounceEase::BouncesProperty);
3316 return value->AsInt32 ();
3319 void
3320 BounceEase::SetBounces (gint32 value)
3322 SetValue (BounceEase::BouncesProperty, Value (value));
3325 double
3326 BackEase::GetAmplitude ()
3328 Value *value = GetValue (BackEase::AmplitudeProperty);
3329 return value->AsDouble ();
3332 void
3333 BackEase::SetAmplitude (double value)
3335 SetValue (BackEase::AmplitudeProperty, Value (value));
3338 KeySpline *
3339 SplinePointKeyFrame::GetKeySpline ()
3341 Value *value = DependencyObject::GetValue (SplinePointKeyFrame::KeySplineProperty);
3342 return value ? value->AsKeySpline () : NULL;
3345 void
3346 SplinePointKeyFrame::SetKeySpline (KeySpline *value)
3348 DependencyObject::SetValue (SplinePointKeyFrame::KeySplineProperty, Value::CreateUnrefPtr (value));
3351 EasingFunctionBase *
3352 EasingPointKeyFrame::GetEasingFunction ()
3354 Value *value = DependencyObject::GetValue (EasingPointKeyFrame::EasingFunctionProperty);
3355 return value ? value->AsEasingFunctionBase () : NULL;
3358 void
3359 EasingPointKeyFrame::SetEasingFunction (EasingFunctionBase *value)
3361 DependencyObject::SetValue (EasingPointKeyFrame::EasingFunctionProperty, Value::CreateUnrefPtr (value));
3364 PointKeyFrameCollection *
3365 PointAnimationUsingKeyFrames::GetKeyFrames ()
3367 Value *value = GetValue (PointAnimationUsingKeyFrames::KeyFramesProperty);
3368 return value ? value->AsPointKeyFrameCollection () : NULL;
3371 void
3372 PointAnimationUsingKeyFrames::SetKeyFrames (PointKeyFrameCollection *value)
3374 SetValue (PointAnimationUsingKeyFrames::KeyFramesProperty, Value::CreateUnrefPtr (value));
3377 KeySpline *
3378 SplineDoubleKeyFrame::GetKeySpline ()
3380 Value *value = DependencyObject::GetValue (SplineDoubleKeyFrame::KeySplineProperty);
3381 return value ? value->AsKeySpline () : NULL;
3384 void
3385 SplineDoubleKeyFrame::SetKeySpline (KeySpline *value)
3387 DependencyObject::SetValue (SplineDoubleKeyFrame::KeySplineProperty, Value::CreateUnrefPtr (value));
3390 EasingFunctionBase *
3391 EasingDoubleKeyFrame::GetEasingFunction ()
3393 Value *value = DependencyObject::GetValue (EasingDoubleKeyFrame::EasingFunctionProperty);
3394 return value ? value->AsEasingFunctionBase () : NULL;
3397 void
3398 EasingDoubleKeyFrame::SetEasingFunction (EasingFunctionBase *value)
3400 DependencyObject::SetValue (EasingDoubleKeyFrame::EasingFunctionProperty, Value::CreateUnrefPtr (value));
3403 DoubleKeyFrameCollection *
3404 DoubleAnimationUsingKeyFrames::GetKeyFrames ()
3406 Value *value = GetValue (DoubleAnimationUsingKeyFrames::KeyFramesProperty);
3407 return value ? value->AsDoubleKeyFrameCollection () : NULL;
3410 void
3411 DoubleAnimationUsingKeyFrames::SetKeyFrames (DoubleKeyFrameCollection *value)
3413 SetValue (DoubleAnimationUsingKeyFrames::KeyFramesProperty, Value::CreateUnrefPtr (value));
3416 const char *
3417 WindowSettings::GetWidth ()
3419 Value *value = GetValue (WindowSettings::WidthProperty);
3420 return value ? value->AsString () : NULL;
3423 void
3424 WindowSettings::SetWidth (const char *value)
3426 SetValue (WindowSettings::WidthProperty, Value (value));
3429 const char *
3430 WindowSettings::GetTitle ()
3432 Value *value = GetValue (WindowSettings::TitleProperty);
3433 return value ? value->AsString () : NULL;
3436 void
3437 WindowSettings::SetTitle (const char *value)
3439 SetValue (WindowSettings::TitleProperty, Value (value));
3442 const char *
3443 WindowSettings::GetHeight ()
3445 Value *value = GetValue (WindowSettings::HeightProperty);
3446 return value ? value->AsString () : NULL;
3449 void
3450 WindowSettings::SetHeight (const char *value)
3452 SetValue (WindowSettings::HeightProperty, Value (value));
3455 const char *
3456 TimelineMarker::GetType ()
3458 Value *value = GetValue (TimelineMarker::TypeProperty);
3459 return value ? value->AsString () : NULL;
3462 void
3463 TimelineMarker::SetType (const char *value)
3465 SetValue (TimelineMarker::TypeProperty, Value (value));
3468 TimeSpan
3469 TimelineMarker::GetTime ()
3471 Value *value = GetValue (TimelineMarker::TimeProperty);
3472 return value->AsTimeSpan ();
3475 void
3476 TimelineMarker::SetTime (TimeSpan value)
3478 SetValue (TimelineMarker::TimeProperty, Value (value, Type::TIMESPAN));
3481 const char *
3482 TimelineMarker::GetText ()
3484 Value *value = GetValue (TimelineMarker::TextProperty);
3485 return value ? value->AsString () : NULL;
3488 void
3489 TimelineMarker::SetText (const char *value)
3491 SetValue (TimelineMarker::TextProperty, Value (value));
3494 double
3495 Timeline::GetSpeedRatio ()
3497 Value *value = GetValue (Timeline::SpeedRatioProperty);
3498 return value->AsDouble ();
3501 void
3502 Timeline::SetSpeedRatio (double value)
3504 SetValue (Timeline::SpeedRatioProperty, Value (value));
3507 FillBehavior
3508 Timeline::GetFillBehavior ()
3510 Value *value = GetValue (Timeline::FillBehaviorProperty);
3511 return (FillBehavior) value->AsInt32 ();
3514 void
3515 Timeline::SetFillBehavior (FillBehavior value)
3517 SetValue (Timeline::FillBehaviorProperty, Value (value));
3520 bool
3521 Timeline::GetAutoReverse ()
3523 Value *value = GetValue (Timeline::AutoReverseProperty);
3524 return value->AsBool ();
3527 void
3528 Timeline::SetAutoReverse (bool value)
3530 SetValue (Timeline::AutoReverseProperty, Value (value));
3533 double
3534 StylusPoint::GetY ()
3536 Value *value = GetValue (StylusPoint::YProperty);
3537 return value->AsDouble ();
3540 void
3541 StylusPoint::SetY (double value)
3543 SetValue (StylusPoint::YProperty, Value (value));
3546 double
3547 StylusPoint::GetX ()
3549 Value *value = GetValue (StylusPoint::XProperty);
3550 return value->AsDouble ();
3553 void
3554 StylusPoint::SetX (double value)
3556 SetValue (StylusPoint::XProperty, Value (value));
3559 double
3560 StylusPoint::GetPressureFactor ()
3562 Value *value = GetValue (StylusPoint::PressureFactorProperty);
3563 return value->AsDouble ();
3566 void
3567 StylusPoint::SetPressureFactor (double value)
3569 SetValue (StylusPoint::PressureFactorProperty, Value (value));
3572 bool
3573 StylusInfo::GetIsInverted ()
3575 Value *value = GetValue (StylusInfo::IsInvertedProperty);
3576 return value->AsBool ();
3579 void
3580 StylusInfo::SetIsInverted (bool value)
3582 SetValue (StylusInfo::IsInvertedProperty, Value (value));
3585 TabletDeviceType
3586 StylusInfo::GetDeviceType ()
3588 Value *value = GetValue (StylusInfo::DeviceTypeProperty);
3589 return (TabletDeviceType) value->AsInt32 ();
3592 void
3593 StylusInfo::SetDeviceType (TabletDeviceType value)
3595 SetValue (StylusInfo::DeviceTypeProperty, Value (value));
3598 SetterBaseCollection *
3599 Style::GetSetters ()
3601 Value *value = GetValue (Style::SettersProperty);
3602 return value ? value->AsSetterBaseCollection () : NULL;
3605 void
3606 Style::SetSetters (SetterBaseCollection *value)
3608 SetValue (Style::SettersProperty, Value::CreateUnrefPtr (value));
3611 bool
3612 Style::GetIsSealed ()
3614 Value *value = GetValue (Style::IsSealedProperty);
3615 return value->AsBool ();
3618 void
3619 Style::SetIsSealed (bool value)
3621 SetValue (Style::IsSealedProperty, Value (value));
3624 StylusPointCollection *
3625 Stroke::GetStylusPoints ()
3627 Value *value = GetValue (Stroke::StylusPointsProperty);
3628 return value ? value->AsStylusPointCollection () : NULL;
3631 void
3632 Stroke::SetStylusPoints (StylusPointCollection *value)
3634 SetValue (Stroke::StylusPointsProperty, Value::CreateUnrefPtr (value));
3637 DrawingAttributes *
3638 Stroke::GetDrawingAttributes ()
3640 Value *value = GetValue (Stroke::DrawingAttributesProperty);
3641 return value ? value->AsDrawingAttributes () : NULL;
3644 void
3645 Stroke::SetDrawingAttributes (DrawingAttributes *value)
3647 SetValue (Stroke::DrawingAttributesProperty, Value::CreateUnrefPtr (value));
3650 bool
3651 SetterBase::GetIsSealed ()
3653 Value *value = GetValue (SetterBase::IsSealedProperty);
3654 return value->AsBool ();
3657 void
3658 SetterBase::SetIsSealed (bool value)
3660 SetValue (SetterBase::IsSealedProperty, Value (value));
3663 double
3664 RowDefinition::GetMinHeight ()
3666 Value *value = GetValue (RowDefinition::MinHeightProperty);
3667 return value->AsDouble ();
3670 void
3671 RowDefinition::SetMinHeight (double value)
3673 SetValue (RowDefinition::MinHeightProperty, Value (value));
3676 double
3677 RowDefinition::GetMaxHeight ()
3679 Value *value = GetValue (RowDefinition::MaxHeightProperty);
3680 return value->AsDouble ();
3683 void
3684 RowDefinition::SetMaxHeight (double value)
3686 SetValue (RowDefinition::MaxHeightProperty, Value (value));
3689 GridLength *
3690 RowDefinition::GetHeight ()
3692 Value *value = GetValue (RowDefinition::HeightProperty);
3693 return value ? value->AsGridLength () : NULL;
3696 void
3697 RowDefinition::SetHeight (GridLength *value)
3699 if (!value) return;
3700 SetValue (RowDefinition::HeightProperty, Value (*value));
3703 double
3704 RowDefinition::GetActualHeight ()
3706 Value *value = GetValue (RowDefinition::ActualHeightProperty);
3707 return value->AsDouble ();
3710 void
3711 RowDefinition::SetActualHeight (double value)
3713 SetValue (RowDefinition::ActualHeightProperty, Value (value));
3716 Uri *
3717 PixelShader::GetUriSource ()
3719 Value *value = GetValue (PixelShader::UriSourceProperty);
3720 return value ? value->AsUri () : NULL;
3723 void
3724 PixelShader::SetUriSource (Uri *value)
3726 if (!value) return;
3727 SetValue (PixelShader::UriSourceProperty, Value (*value));
3730 Point *
3731 PathFigure::GetStartPoint ()
3733 Value *value = GetValue (PathFigure::StartPointProperty);
3734 return value ? value->AsPoint () : NULL;
3737 void
3738 PathFigure::SetStartPoint (Point *value)
3740 if (!value) return;
3741 SetValue (PathFigure::StartPointProperty, Value (*value));
3744 PathSegmentCollection *
3745 PathFigure::GetSegments ()
3747 Value *value = GetValue (PathFigure::SegmentsProperty);
3748 return value ? value->AsPathSegmentCollection () : NULL;
3751 void
3752 PathFigure::SetSegments (PathSegmentCollection *value)
3754 SetValue (PathFigure::SegmentsProperty, Value::CreateUnrefPtr (value));
3757 bool
3758 PathFigure::GetIsFilled ()
3760 Value *value = GetValue (PathFigure::IsFilledProperty);
3761 return value->AsBool ();
3764 void
3765 PathFigure::SetIsFilled (bool value)
3767 SetValue (PathFigure::IsFilledProperty, Value (value));
3770 bool
3771 PathFigure::GetIsClosed ()
3773 Value *value = GetValue (PathFigure::IsClosedProperty);
3774 return value->AsBool ();
3777 void
3778 PathFigure::SetIsClosed (bool value)
3780 SetValue (PathFigure::IsClosedProperty, Value (value));
3783 WindowSettings *
3784 OutOfBrowserSettings::GetWindowSettings ()
3786 Value *value = GetValue (OutOfBrowserSettings::WindowSettingsProperty);
3787 return value ? value->AsWindowSettings () : NULL;
3790 void
3791 OutOfBrowserSettings::SetWindowSettings (WindowSettings *value)
3793 SetValue (OutOfBrowserSettings::WindowSettingsProperty, Value::CreateUnrefPtr (value));
3796 bool
3797 OutOfBrowserSettings::GetShowInstallMenuItem ()
3799 Value *value = GetValue (OutOfBrowserSettings::ShowInstallMenuItemProperty);
3800 return value->AsBool ();
3803 void
3804 OutOfBrowserSettings::SetShowInstallMenuItem (bool value)
3806 SetValue (OutOfBrowserSettings::ShowInstallMenuItemProperty, Value (value));
3809 const char *
3810 OutOfBrowserSettings::GetShortName ()
3812 Value *value = GetValue (OutOfBrowserSettings::ShortNameProperty);
3813 return value ? value->AsString () : NULL;
3816 void
3817 OutOfBrowserSettings::SetShortName (const char *value)
3819 SetValue (OutOfBrowserSettings::ShortNameProperty, Value (value));
3822 IconCollection *
3823 OutOfBrowserSettings::GetIcons ()
3825 Value *value = GetValue (OutOfBrowserSettings::IconsProperty);
3826 return value ? value->AsIconCollection () : NULL;
3829 void
3830 OutOfBrowserSettings::SetIcons (IconCollection *value)
3832 SetValue (OutOfBrowserSettings::IconsProperty, Value::CreateUnrefPtr (value));
3835 bool
3836 OutOfBrowserSettings::GetEnableGPUAcceleration ()
3838 Value *value = GetValue (OutOfBrowserSettings::EnableGPUAccelerationProperty);
3839 return value->AsBool ();
3842 void
3843 OutOfBrowserSettings::SetEnableGPUAcceleration (bool value)
3845 SetValue (OutOfBrowserSettings::EnableGPUAccelerationProperty, Value (value));
3848 const char *
3849 OutOfBrowserSettings::GetBlurb ()
3851 Value *value = GetValue (OutOfBrowserSettings::BlurbProperty);
3852 return value ? value->AsString () : NULL;
3855 void
3856 OutOfBrowserSettings::SetBlurb (const char *value)
3858 SetValue (OutOfBrowserSettings::BlurbProperty, Value (value));
3861 NameScope *
3862 NameScope::GetNameScope (DependencyObject *obj)
3864 Value *value = (!obj) ? NULL : obj->GetValue (NameScope::NameScopeProperty);
3865 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (NameScope::NameScopeProperty)->GetDefaultValue();
3866 return value ? value->AsNameScope () : NULL;
3869 void
3870 NameScope::SetNameScope (DependencyObject *obj, NameScope *value)
3872 if (!obj) return;
3873 obj->SetValue (NameScope::NameScopeProperty, Value::CreateUnrefPtr (value));
3876 gint32
3877 MultiScaleSubImage::GetZIndex ()
3879 Value *value = GetValue (MultiScaleSubImage::ZIndexProperty);
3880 return value->AsInt32 ();
3883 void
3884 MultiScaleSubImage::SetZIndex (gint32 value)
3886 SetValue (MultiScaleSubImage::ZIndexProperty, Value (value));
3889 double
3890 MultiScaleSubImage::GetViewportWidth ()
3892 Value *value = GetValue (MultiScaleSubImage::ViewportWidthProperty);
3893 return value->AsDouble ();
3896 void
3897 MultiScaleSubImage::SetViewportWidth (double value)
3899 SetValue (MultiScaleSubImage::ViewportWidthProperty, Value (value));
3902 Point *
3903 MultiScaleSubImage::GetViewportOrigin ()
3905 Value *value = GetValue (MultiScaleSubImage::ViewportOriginProperty);
3906 return value ? value->AsPoint () : NULL;
3909 void
3910 MultiScaleSubImage::SetViewportOrigin (Point *value)
3912 if (!value) return;
3913 SetValue (MultiScaleSubImage::ViewportOriginProperty, Value (*value));
3916 double
3917 MultiScaleSubImage::GetOpacity ()
3919 Value *value = GetValue (MultiScaleSubImage::OpacityProperty);
3920 return value->AsDouble ();
3923 void
3924 MultiScaleSubImage::SetOpacity (double value)
3926 SetValue (MultiScaleSubImage::OpacityProperty, Value (value));
3929 double
3930 MultiScaleSubImage::GetAspectRatio ()
3932 Value *value = GetValue (MultiScaleSubImage::AspectRatioProperty);
3933 return value->AsDouble ();
3936 const char *
3937 MediaAttribute::GetValue ()
3939 Value *value = DependencyObject::GetValue (MediaAttribute::ValueProperty);
3940 return value ? value->AsString () : NULL;
3943 void
3944 MediaAttribute::SetValue (const char *value)
3946 DependencyObject::SetValue (MediaAttribute::ValueProperty, Value (value));
3949 double
3950 Matrix::GetOffsetY ()
3952 Value *value = GetValue (Matrix::OffsetYProperty);
3953 return value->AsDouble ();
3956 void
3957 Matrix::SetOffsetY (double value)
3959 SetValue (Matrix::OffsetYProperty, Value (value));
3962 double
3963 Matrix::GetOffsetX ()
3965 Value *value = GetValue (Matrix::OffsetXProperty);
3966 return value->AsDouble ();
3969 void
3970 Matrix::SetOffsetX (double value)
3972 SetValue (Matrix::OffsetXProperty, Value (value));
3975 double
3976 Matrix::GetM22 ()
3978 Value *value = GetValue (Matrix::M22Property);
3979 return value->AsDouble ();
3982 void
3983 Matrix::SetM22 (double value)
3985 SetValue (Matrix::M22Property, Value (value));
3988 double
3989 Matrix::GetM21 ()
3991 Value *value = GetValue (Matrix::M21Property);
3992 return value->AsDouble ();
3995 void
3996 Matrix::SetM21 (double value)
3998 SetValue (Matrix::M21Property, Value (value));
4001 double
4002 Matrix::GetM12 ()
4004 Value *value = GetValue (Matrix::M12Property);
4005 return value->AsDouble ();
4008 void
4009 Matrix::SetM12 (double value)
4011 SetValue (Matrix::M12Property, Value (value));
4014 double
4015 Matrix::GetM11 ()
4017 Value *value = GetValue (Matrix::M11Property);
4018 return value->AsDouble ();
4021 void
4022 Matrix::SetM11 (double value)
4024 SetValue (Matrix::M11Property, Value (value));
4027 Point *
4028 KeySpline::GetControlPoint2 ()
4030 Value *value = GetValue (KeySpline::ControlPoint2Property);
4031 return value ? value->AsPoint () : NULL;
4034 void
4035 KeySpline::SetControlPoint2 (Point *value)
4037 if (!value) return;
4038 SetValue (KeySpline::ControlPoint2Property, Value (*value));
4041 Point *
4042 KeySpline::GetControlPoint1 ()
4044 Value *value = GetValue (KeySpline::ControlPoint1Property);
4045 return value ? value->AsPoint () : NULL;
4048 void
4049 KeySpline::SetControlPoint1 (Point *value)
4051 if (!value) return;
4052 SetValue (KeySpline::ControlPoint1Property, Value (*value));
4055 TextDecorations
4056 Inline::GetTextDecorations ()
4058 Value *value = GetValue (Inline::TextDecorationsProperty);
4059 return (TextDecorations) value->AsInt32 ();
4062 void
4063 Inline::SetTextDecorations (TextDecorations value)
4065 SetValue (Inline::TextDecorationsProperty, Value (value));
4068 const char *
4069 Inline::GetLanguage ()
4071 Value *value = GetValue (Inline::LanguageProperty);
4072 return value ? value->AsString () : NULL;
4075 void
4076 Inline::SetLanguage (const char *value)
4078 SetValue (Inline::LanguageProperty, Value (value));
4081 Brush *
4082 Inline::GetForeground ()
4084 Value *value = GetValue (Inline::ForegroundProperty);
4085 return value ? value->AsBrush () : NULL;
4088 void
4089 Inline::SetForeground (Brush *value)
4091 SetValue (Inline::ForegroundProperty, Value::CreateUnrefPtr (value));
4094 FontWeight *
4095 Inline::GetFontWeight ()
4097 Value *value = GetValue (Inline::FontWeightProperty);
4098 return value ? value->AsFontWeight () : NULL;
4101 void
4102 Inline::SetFontWeight (FontWeight *value)
4104 if (!value) return;
4105 SetValue (Inline::FontWeightProperty, Value (*value));
4108 FontStyle *
4109 Inline::GetFontStyle ()
4111 Value *value = GetValue (Inline::FontStyleProperty);
4112 return value ? value->AsFontStyle () : NULL;
4115 void
4116 Inline::SetFontStyle (FontStyle *value)
4118 if (!value) return;
4119 SetValue (Inline::FontStyleProperty, Value (*value));
4122 FontStretch *
4123 Inline::GetFontStretch ()
4125 Value *value = GetValue (Inline::FontStretchProperty);
4126 return value ? value->AsFontStretch () : NULL;
4129 void
4130 Inline::SetFontStretch (FontStretch *value)
4132 if (!value) return;
4133 SetValue (Inline::FontStretchProperty, Value (*value));
4136 FontSource *
4137 Inline::GetFontSource ()
4139 Value *value = GetValue (Inline::FontSourceProperty);
4140 return value ? value->AsFontSource () : NULL;
4143 void
4144 Inline::SetFontSource (FontSource *value)
4146 if (!value) return;
4147 SetValue (Inline::FontSourceProperty, Value (*value));
4150 double
4151 Inline::GetFontSize ()
4153 Value *value = GetValue (Inline::FontSizeProperty);
4154 return value->AsDouble ();
4157 void
4158 Inline::SetFontSize (double value)
4160 SetValue (Inline::FontSizeProperty, Value (value));
4163 FontFamily *
4164 Inline::GetFontFamily ()
4166 Value *value = GetValue (Inline::FontFamilyProperty);
4167 return value ? value->AsFontFamily () : NULL;
4170 void
4171 Inline::SetFontFamily (FontFamily *value)
4173 if (!value) return;
4174 SetValue (Inline::FontFamilyProperty, Value (*value));
4177 Uri *
4178 Icon::GetSource ()
4180 Value *value = GetValue (Icon::SourceProperty);
4181 return value ? value->AsUri () : NULL;
4184 void
4185 Icon::SetSource (Uri *value)
4187 if (!value) return;
4188 SetValue (Icon::SourceProperty, Value (*value));
4191 Size *
4192 Icon::GetSize ()
4194 Value *value = GetValue (Icon::SizeProperty);
4195 return value ? value->AsSize () : NULL;
4198 void
4199 Icon::SetSize (Size *value)
4201 if (!value) return;
4202 SetValue (Icon::SizeProperty, Value (*value));
4205 double
4206 GradientStop::GetOffset ()
4208 Value *value = GetValue (GradientStop::OffsetProperty);
4209 return value->AsDouble ();
4212 void
4213 GradientStop::SetOffset (double value)
4215 SetValue (GradientStop::OffsetProperty, Value (value));
4218 Color *
4219 GradientStop::GetColor ()
4221 Value *value = GetValue (GradientStop::ColorProperty);
4222 return value ? value->AsColor () : NULL;
4225 void
4226 GradientStop::SetColor (Color *value)
4228 if (!value) return;
4229 SetValue (GradientStop::ColorProperty, Value (*value));
4232 Transform *
4233 Geometry::GetTransform ()
4235 Value *value = GetValue (Geometry::TransformProperty);
4236 return value ? value->AsTransform () : NULL;
4239 void
4240 Geometry::SetTransform (Transform *value)
4242 SetValue (Geometry::TransformProperty, Value::CreateUnrefPtr (value));
4245 double
4246 DrawingAttributes::GetWidth ()
4248 Value *value = GetValue (DrawingAttributes::WidthProperty);
4249 return value->AsDouble ();
4252 void
4253 DrawingAttributes::SetWidth (double value)
4255 SetValue (DrawingAttributes::WidthProperty, Value (value));
4258 Color *
4259 DrawingAttributes::GetOutlineColor ()
4261 Value *value = GetValue (DrawingAttributes::OutlineColorProperty);
4262 return value ? value->AsColor () : NULL;
4265 void
4266 DrawingAttributes::SetOutlineColor (Color *value)
4268 if (!value) return;
4269 SetValue (DrawingAttributes::OutlineColorProperty, Value (*value));
4272 double
4273 DrawingAttributes::GetHeight ()
4275 Value *value = GetValue (DrawingAttributes::HeightProperty);
4276 return value->AsDouble ();
4279 void
4280 DrawingAttributes::SetHeight (double value)
4282 SetValue (DrawingAttributes::HeightProperty, Value (value));
4285 Color *
4286 DrawingAttributes::GetColor ()
4288 Value *value = GetValue (DrawingAttributes::ColorProperty);
4289 return value ? value->AsColor () : NULL;
4292 void
4293 DrawingAttributes::SetColor (Color *value)
4295 if (!value) return;
4296 SetValue (DrawingAttributes::ColorProperty, Value (*value));
4299 Uri *
4300 Downloader::GetUri ()
4302 Value *value = GetValue (Downloader::UriProperty);
4303 return value ? value->AsUri () : NULL;
4306 void
4307 Downloader::SetUri (Uri *value)
4309 if (!value) return;
4310 SetValue (Downloader::UriProperty, Value (*value));
4313 const char *
4314 Downloader::GetStatusText ()
4316 Value *value = GetValue (Downloader::StatusTextProperty);
4317 return value ? value->AsString () : NULL;
4320 void
4321 Downloader::SetStatusText (const char *value)
4323 SetValue (Downloader::StatusTextProperty, Value (value));
4326 gint32
4327 Downloader::GetStatus ()
4329 Value *value = GetValue (Downloader::StatusProperty);
4330 return value->AsInt32 ();
4333 void
4334 Downloader::SetStatus (gint32 value)
4336 SetValue (Downloader::StatusProperty, Value (value));
4339 double
4340 Downloader::GetDownloadProgress ()
4342 Value *value = GetValue (Downloader::DownloadProgressProperty);
4343 return value->AsDouble ();
4346 void
4347 Downloader::SetDownloadProgress (double value)
4349 SetValue (Downloader::DownloadProgressProperty, Value (value));
4352 Surface *
4353 Deployment::GetSurface ()
4355 Value *value = GetValue (Deployment::SurfaceProperty);
4356 return value ? value->AsSurface () : NULL;
4359 void
4360 Deployment::SetSurface (Surface *value)
4362 SetValue (Deployment::SurfaceProperty, Value::CreateUnrefPtr (value));
4365 const char *
4366 Deployment::GetRuntimeVersion ()
4368 Value *value = GetValue (Deployment::RuntimeVersionProperty);
4369 return value ? value->AsString () : NULL;
4372 void
4373 Deployment::SetRuntimeVersion (const char *value)
4375 SetValue (Deployment::RuntimeVersionProperty, Value (value));
4378 AssemblyPartCollection *
4379 Deployment::GetParts ()
4381 Value *value = GetValue (Deployment::PartsProperty);
4382 return value ? value->AsAssemblyPartCollection () : NULL;
4385 void
4386 Deployment::SetParts (AssemblyPartCollection *value)
4388 SetValue (Deployment::PartsProperty, Value::CreateUnrefPtr (value));
4391 OutOfBrowserSettings *
4392 Deployment::GetOutOfBrowserSettings ()
4394 Value *value = GetValue (Deployment::OutOfBrowserSettingsProperty);
4395 return value ? value->AsOutOfBrowserSettings () : NULL;
4398 void
4399 Deployment::SetOutOfBrowserSettings (OutOfBrowserSettings *value)
4401 SetValue (Deployment::OutOfBrowserSettingsProperty, Value::CreateUnrefPtr (value));
4404 ExternalPartCollection *
4405 Deployment::GetExternalParts ()
4407 Value *value = GetValue (Deployment::ExternalPartsProperty);
4408 return value ? value->AsExternalPartCollection () : NULL;
4411 void
4412 Deployment::SetExternalParts (ExternalPartCollection *value)
4414 SetValue (Deployment::ExternalPartsProperty, Value::CreateUnrefPtr (value));
4417 CrossDomainAccess
4418 Deployment::GetExternalCallersFromCrossDomain ()
4420 Value *value = GetValue (Deployment::ExternalCallersFromCrossDomainProperty);
4421 return (CrossDomainAccess) value->AsInt32 ();
4424 void
4425 Deployment::SetExternalCallersFromCrossDomain (CrossDomainAccess value)
4427 SetValue (Deployment::ExternalCallersFromCrossDomainProperty, Value (value));
4430 gint32
4431 MultiScaleTileSource::GetTileWidth ()
4433 Value *value = GetValue (MultiScaleTileSource::TileWidthProperty);
4434 return value->AsInt32 ();
4437 void
4438 MultiScaleTileSource::SetTileWidth (gint32 value)
4440 SetValue (MultiScaleTileSource::TileWidthProperty, Value (value));
4443 gint32
4444 MultiScaleTileSource::GetTileOverlap ()
4446 Value *value = GetValue (MultiScaleTileSource::TileOverlapProperty);
4447 return value->AsInt32 ();
4450 void
4451 MultiScaleTileSource::SetTileOverlap (gint32 value)
4453 SetValue (MultiScaleTileSource::TileOverlapProperty, Value (value));
4456 gint32
4457 MultiScaleTileSource::GetTileHeight ()
4459 Value *value = GetValue (MultiScaleTileSource::TileHeightProperty);
4460 return value->AsInt32 ();
4463 void
4464 MultiScaleTileSource::SetTileHeight (gint32 value)
4466 SetValue (MultiScaleTileSource::TileHeightProperty, Value (value));
4469 TimeSpan
4470 MultiScaleTileSource::GetTileBlendTime ()
4472 Value *value = GetValue (MultiScaleTileSource::TileBlendTimeProperty);
4473 return value->AsTimeSpan ();
4476 void
4477 MultiScaleTileSource::SetTileBlendTime (TimeSpan value)
4479 SetValue (MultiScaleTileSource::TileBlendTimeProperty, Value (value, Type::TIMESPAN));
4482 double
4483 MultiScaleTileSource::GetImageWidth ()
4485 Value *value = GetValue (MultiScaleTileSource::ImageWidthProperty);
4486 return value->AsDouble ();
4489 void
4490 MultiScaleTileSource::SetImageWidth (double value)
4492 SetValue (MultiScaleTileSource::ImageWidthProperty, Value (value));
4495 double
4496 MultiScaleTileSource::GetImageHeight ()
4498 Value *value = GetValue (MultiScaleTileSource::ImageHeightProperty);
4499 return value->AsDouble ();
4502 void
4503 MultiScaleTileSource::SetImageHeight (double value)
4505 SetValue (MultiScaleTileSource::ImageHeightProperty, Value (value));
4508 GridLength *
4509 ColumnDefinition::GetWidth ()
4511 Value *value = GetValue (ColumnDefinition::WidthProperty);
4512 return value ? value->AsGridLength () : NULL;
4515 void
4516 ColumnDefinition::SetWidth (GridLength *value)
4518 if (!value) return;
4519 SetValue (ColumnDefinition::WidthProperty, Value (*value));
4522 double
4523 ColumnDefinition::GetMinWidth ()
4525 Value *value = GetValue (ColumnDefinition::MinWidthProperty);
4526 return value->AsDouble ();
4529 void
4530 ColumnDefinition::SetMinWidth (double value)
4532 SetValue (ColumnDefinition::MinWidthProperty, Value (value));
4535 double
4536 ColumnDefinition::GetMaxWidth ()
4538 Value *value = GetValue (ColumnDefinition::MaxWidthProperty);
4539 return value->AsDouble ();
4542 void
4543 ColumnDefinition::SetMaxWidth (double value)
4545 SetValue (ColumnDefinition::MaxWidthProperty, Value (value));
4548 double
4549 ColumnDefinition::GetActualWidth ()
4551 Value *value = GetValue (ColumnDefinition::ActualWidthProperty);
4552 return value->AsDouble ();
4555 void
4556 ColumnDefinition::SetActualWidth (double value)
4558 SetValue (ColumnDefinition::ActualWidthProperty, Value (value));
4561 gint32
4562 Collection::GetCount ()
4564 Value *value = GetValue (Collection::CountProperty);
4565 return value->AsInt32 ();
4568 void
4569 Collection::SetCount (gint32 value)
4571 SetValue (Collection::CountProperty, Value (value));
4574 Visibility
4575 UIElement::GetVisibility ()
4577 Value *value = GetValue (UIElement::VisibilityProperty);
4578 return (Visibility) value->AsInt32 ();
4581 void
4582 UIElement::SetVisibility (Visibility value)
4584 SetValue (UIElement::VisibilityProperty, Value (value));
4587 bool
4588 UIElement::GetUseLayoutRounding ()
4590 Value *value = GetValue (UIElement::UseLayoutRoundingProperty);
4591 return value->AsBool ();
4594 void
4595 UIElement::SetUseLayoutRounding (bool value)
4597 SetValue (UIElement::UseLayoutRoundingProperty, Value (value));
4600 TriggerCollection *
4601 UIElement::GetTriggers ()
4603 Value *value = GetValue (UIElement::TriggersProperty);
4604 return value ? value->AsTriggerCollection () : NULL;
4607 void
4608 UIElement::SetTriggers (TriggerCollection *value)
4610 SetValue (UIElement::TriggersProperty, Value::CreateUnrefPtr (value));
4613 ResourceDictionary *
4614 UIElement::GetResources ()
4616 Value *value = GetValue (UIElement::ResourcesProperty);
4617 return value ? value->AsResourceDictionary () : NULL;
4620 void
4621 UIElement::SetResources (ResourceDictionary *value)
4623 SetValue (UIElement::ResourcesProperty, Value::CreateUnrefPtr (value));
4626 Transform *
4627 UIElement::GetRenderTransform ()
4629 Value *value = GetValue (UIElement::RenderTransformProperty);
4630 return value ? value->AsTransform () : NULL;
4633 void
4634 UIElement::SetRenderTransform (Transform *value)
4636 SetValue (UIElement::RenderTransformProperty, Value::CreateUnrefPtr (value));
4639 Point *
4640 UIElement::GetRenderTransformOrigin ()
4642 Value *value = GetValue (UIElement::RenderTransformOriginProperty);
4643 return value ? value->AsPoint () : NULL;
4646 void
4647 UIElement::SetRenderTransformOrigin (Point *value)
4649 if (!value) return;
4650 SetValue (UIElement::RenderTransformOriginProperty, Value (*value));
4653 double
4654 UIElement::GetOpacity ()
4656 Value *value = GetValue (UIElement::OpacityProperty);
4657 return value->AsDouble ();
4660 void
4661 UIElement::SetOpacity (double value)
4663 SetValue (UIElement::OpacityProperty, Value (value));
4666 Brush *
4667 UIElement::GetOpacityMask ()
4669 Value *value = GetValue (UIElement::OpacityMaskProperty);
4670 return value ? value->AsBrush () : NULL;
4673 void
4674 UIElement::SetOpacityMask (Brush *value)
4676 SetValue (UIElement::OpacityMaskProperty, Value::CreateUnrefPtr (value));
4679 bool
4680 UIElement::GetIsHitTestVisible ()
4682 Value *value = GetValue (UIElement::IsHitTestVisibleProperty);
4683 return value->AsBool ();
4686 void
4687 UIElement::SetIsHitTestVisible (bool value)
4689 SetValue (UIElement::IsHitTestVisibleProperty, Value (value));
4692 Effect *
4693 UIElement::GetEffect ()
4695 Value *value = GetValue (UIElement::EffectProperty);
4696 return value ? value->AsEffect () : NULL;
4699 void
4700 UIElement::SetEffect (Effect *value)
4702 SetValue (UIElement::EffectProperty, Value::CreateUnrefPtr (value));
4705 MouseCursor
4706 UIElement::GetCursor ()
4708 Value *value = GetValue (UIElement::CursorProperty);
4709 return (MouseCursor) value->AsInt32 ();
4712 void
4713 UIElement::SetCursor (MouseCursor value)
4715 SetValue (UIElement::CursorProperty, Value (value));
4718 Geometry *
4719 UIElement::GetClip ()
4721 Value *value = GetValue (UIElement::ClipProperty);
4722 return value ? value->AsGeometry () : NULL;
4725 void
4726 UIElement::SetClip (Geometry *value)
4728 SetValue (UIElement::ClipProperty, Value::CreateUnrefPtr (value));
4731 CacheMode *
4732 UIElement::GetCacheMode ()
4734 Value *value = GetValue (UIElement::CacheModeProperty);
4735 return value ? value->AsCacheMode () : NULL;
4738 void
4739 UIElement::SetCacheMode (CacheMode *value)
4741 SetValue (UIElement::CacheModeProperty, Value::CreateUnrefPtr (value));
4744 EasingMode
4745 EasingFunctionBase::GetEasingMode ()
4747 Value *value = GetValue (EasingFunctionBase::EasingModeProperty);
4748 return (EasingMode) value->AsInt32 ();
4751 void
4752 EasingFunctionBase::SetEasingMode (EasingMode value)
4754 SetValue (EasingFunctionBase::EasingModeProperty, Value (value));
4757 ResourceDictionary *
4758 Application::GetResources ()
4760 Value *value = GetValue (Application::ResourcesProperty);
4761 return value ? value->AsResourceDictionary () : NULL;
4764 void
4765 Application::SetResources (ResourceDictionary *value)
4767 SetValue (Application::ResourcesProperty, Value::CreateUnrefPtr (value));
4770 KeySpline *
4771 SplineColorKeyFrame::GetKeySpline ()
4773 Value *value = DependencyObject::GetValue (SplineColorKeyFrame::KeySplineProperty);
4774 return value ? value->AsKeySpline () : NULL;
4777 void
4778 SplineColorKeyFrame::SetKeySpline (KeySpline *value)
4780 DependencyObject::SetValue (SplineColorKeyFrame::KeySplineProperty, Value::CreateUnrefPtr (value));
4783 EasingFunctionBase *
4784 EasingColorKeyFrame::GetEasingFunction ()
4786 Value *value = DependencyObject::GetValue (EasingColorKeyFrame::EasingFunctionProperty);
4787 return value ? value->AsEasingFunctionBase () : NULL;
4790 void
4791 EasingColorKeyFrame::SetEasingFunction (EasingFunctionBase *value)
4793 DependencyObject::SetValue (EasingColorKeyFrame::EasingFunctionProperty, Value::CreateUnrefPtr (value));
4796 ColorKeyFrameCollection *
4797 ColorAnimationUsingKeyFrames::GetKeyFrames ()
4799 Value *value = GetValue (ColorAnimationUsingKeyFrames::KeyFramesProperty);
4800 return value ? value->AsColorKeyFrameCollection () : NULL;
4803 void
4804 ColorAnimationUsingKeyFrames::SetKeyFrames (ColorKeyFrameCollection *value)
4806 SetValue (ColorAnimationUsingKeyFrames::KeyFramesProperty, Value::CreateUnrefPtr (value));
4809 Uri *
4810 BitmapImage::GetUriSource ()
4812 Value *value = GetValue (BitmapImage::UriSourceProperty);
4813 return value ? value->AsUri () : NULL;
4816 void
4817 BitmapImage::SetUriSource (Uri *value)
4819 if (!value) return;
4820 SetValue (BitmapImage::UriSourceProperty, Value (*value));
4823 double
4824 BitmapImage::GetProgress ()
4826 Value *value = GetValue (BitmapImage::ProgressProperty);
4827 return value->AsDouble ();
4830 void
4831 BitmapImage::SetProgress (double value)
4833 SetValue (BitmapImage::ProgressProperty, Value (value));
4836 double
4837 TranslateTransform::GetY ()
4839 Value *value = GetValue (TranslateTransform::YProperty);
4840 return value->AsDouble ();
4843 void
4844 TranslateTransform::SetY (double value)
4846 SetValue (TranslateTransform::YProperty, Value (value));
4849 double
4850 TranslateTransform::GetX ()
4852 Value *value = GetValue (TranslateTransform::XProperty);
4853 return value->AsDouble ();
4856 void
4857 TranslateTransform::SetX (double value)
4859 SetValue (TranslateTransform::XProperty, Value (value));
4862 TransformCollection *
4863 TransformGroup::GetChildren ()
4865 Value *value = GetValue (TransformGroup::ChildrenProperty);
4866 return value ? value->AsTransformCollection () : NULL;
4869 void
4870 TransformGroup::SetChildren (TransformCollection *value)
4872 SetValue (TransformGroup::ChildrenProperty, Value::CreateUnrefPtr (value));
4875 TextHintingMode
4876 TextOptions::GetTextHintingMode (DependencyObject *obj)
4878 Value *value = (!obj) ? NULL : obj->GetValue (TextOptions::TextHintingModeProperty);
4879 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (TextOptions::TextHintingModeProperty)->GetDefaultValue();
4880 return (TextHintingMode) value->AsInt32 ();
4883 void
4884 TextOptions::SetTextHintingMode (DependencyObject *obj, TextHintingMode value)
4886 if (!obj) return;
4887 obj->SetValue (TextOptions::TextHintingModeProperty, Value (value));
4890 ScrollBarVisibility
4891 TextBox::GetVerticalScrollBarVisibility ()
4893 Value *value = GetValue (TextBox::VerticalScrollBarVisibilityProperty);
4894 return (ScrollBarVisibility) value->AsInt32 ();
4897 void
4898 TextBox::SetVerticalScrollBarVisibility (ScrollBarVisibility value)
4900 SetValue (TextBox::VerticalScrollBarVisibilityProperty, Value (value));
4903 TextWrapping
4904 TextBox::GetTextWrapping ()
4906 Value *value = GetValue (TextBox::TextWrappingProperty);
4907 return (TextWrapping) value->AsInt32 ();
4910 void
4911 TextBox::SetTextWrapping (TextWrapping value)
4913 SetValue (TextBox::TextWrappingProperty, Value (value));
4916 const char *
4917 TextBox::GetText ()
4919 Value *value = GetValue (TextBox::TextProperty);
4920 return value ? value->AsString () : NULL;
4923 void
4924 TextBox::SetText (const char *value)
4926 SetValue (TextBox::TextProperty, Value (value));
4929 TextAlignment
4930 TextBox::GetTextAlignment ()
4932 Value *value = GetValue (TextBox::TextAlignmentProperty);
4933 return (TextAlignment) value->AsInt32 ();
4936 void
4937 TextBox::SetTextAlignment (TextAlignment value)
4939 SetValue (TextBox::TextAlignmentProperty, Value (value));
4942 gint32
4943 TextBox::GetSelectionStart ()
4945 Value *value = GetValue (TextBox::SelectionStartProperty);
4946 return value->AsInt32 ();
4949 void
4950 TextBox::SetSelectionStart (gint32 value)
4952 SetValue (TextBox::SelectionStartProperty, Value (value));
4955 gint32
4956 TextBox::GetSelectionLength ()
4958 Value *value = GetValue (TextBox::SelectionLengthProperty);
4959 return value->AsInt32 ();
4962 void
4963 TextBox::SetSelectionLength (gint32 value)
4965 SetValue (TextBox::SelectionLengthProperty, Value (value));
4968 Brush *
4969 TextBox::GetSelectionForeground ()
4971 Value *value = GetValue (TextBox::SelectionForegroundProperty);
4972 return value ? value->AsBrush () : NULL;
4975 void
4976 TextBox::SetSelectionForeground (Brush *value)
4978 SetValue (TextBox::SelectionForegroundProperty, Value::CreateUnrefPtr (value));
4981 Brush *
4982 TextBox::GetSelectionBackground ()
4984 Value *value = GetValue (TextBox::SelectionBackgroundProperty);
4985 return value ? value->AsBrush () : NULL;
4988 void
4989 TextBox::SetSelectionBackground (Brush *value)
4991 SetValue (TextBox::SelectionBackgroundProperty, Value::CreateUnrefPtr (value));
4994 const char *
4995 TextBox::GetSelectedText ()
4997 Value *value = GetValue (TextBox::SelectedTextProperty);
4998 return value ? value->AsString () : NULL;
5001 void
5002 TextBox::SetSelectedText (const char *value)
5004 SetValue (TextBox::SelectedTextProperty, Value (value));
5007 gint32
5008 TextBox::GetMaxLength ()
5010 Value *value = GetValue (TextBox::MaxLengthProperty);
5011 return value->AsInt32 ();
5014 void
5015 TextBox::SetMaxLength (gint32 value)
5017 SetValue (TextBox::MaxLengthProperty, Value (value));
5020 bool
5021 TextBox::GetIsReadOnly ()
5023 Value *value = GetValue (TextBox::IsReadOnlyProperty);
5024 return value->AsBool ();
5027 void
5028 TextBox::SetIsReadOnly (bool value)
5030 SetValue (TextBox::IsReadOnlyProperty, Value (value));
5033 ScrollBarVisibility
5034 TextBox::GetHorizontalScrollBarVisibility ()
5036 Value *value = GetValue (TextBox::HorizontalScrollBarVisibilityProperty);
5037 return (ScrollBarVisibility) value->AsInt32 ();
5040 void
5041 TextBox::SetHorizontalScrollBarVisibility (ScrollBarVisibility value)
5043 SetValue (TextBox::HorizontalScrollBarVisibilityProperty, Value (value));
5046 FontSource *
5047 TextBox::GetFontSource ()
5049 Value *value = GetValue (TextBox::FontSourceProperty);
5050 return value ? value->AsFontSource () : NULL;
5053 void
5054 TextBox::SetFontSource (FontSource *value)
5056 if (!value) return;
5057 SetValue (TextBox::FontSourceProperty, Value (*value));
5060 Brush *
5061 TextBox::GetCaretBrush ()
5063 Value *value = GetValue (TextBox::CaretBrushProperty);
5064 return value ? value->AsBrush () : NULL;
5067 void
5068 TextBox::SetCaretBrush (Brush *value)
5070 SetValue (TextBox::CaretBrushProperty, Value::CreateUnrefPtr (value));
5073 bool
5074 TextBox::GetAcceptsReturn ()
5076 Value *value = GetValue (TextBox::AcceptsReturnProperty);
5077 return value->AsBool ();
5080 void
5081 TextBox::SetAcceptsReturn (bool value)
5083 SetValue (TextBox::AcceptsReturnProperty, Value (value));
5086 PropertyPath *
5087 Storyboard::GetTargetProperty (DependencyObject *obj)
5089 Value *value = (!obj) ? NULL : obj->GetValue (Storyboard::TargetPropertyProperty);
5090 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Storyboard::TargetPropertyProperty)->GetDefaultValue();
5091 return value ? value->AsPropertyPath () : NULL;
5094 void
5095 Storyboard::SetTargetProperty (DependencyObject *obj, PropertyPath *value)
5097 if (!obj) return;
5098 if (!value) return;
5099 obj->SetValue (Storyboard::TargetPropertyProperty, Value (*value));
5102 const char *
5103 Storyboard::GetTargetName (DependencyObject *obj)
5105 Value *value = (!obj) ? NULL : obj->GetValue (Storyboard::TargetNameProperty);
5106 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (Storyboard::TargetNameProperty)->GetDefaultValue();
5107 return value ? value->AsString () : NULL;
5110 void
5111 Storyboard::SetTargetName (DependencyObject *obj, const char *value)
5113 if (!obj) return;
5114 obj->SetValue (Storyboard::TargetNameProperty, Value (value));
5117 double
5118 SkewTransform::GetCenterY ()
5120 Value *value = GetValue (SkewTransform::CenterYProperty);
5121 return value->AsDouble ();
5124 void
5125 SkewTransform::SetCenterY (double value)
5127 SetValue (SkewTransform::CenterYProperty, Value (value));
5130 double
5131 SkewTransform::GetCenterX ()
5133 Value *value = GetValue (SkewTransform::CenterXProperty);
5134 return value->AsDouble ();
5137 void
5138 SkewTransform::SetCenterX (double value)
5140 SetValue (SkewTransform::CenterXProperty, Value (value));
5143 double
5144 SkewTransform::GetAngleY ()
5146 Value *value = GetValue (SkewTransform::AngleYProperty);
5147 return value->AsDouble ();
5150 void
5151 SkewTransform::SetAngleY (double value)
5153 SetValue (SkewTransform::AngleYProperty, Value (value));
5156 double
5157 SkewTransform::GetAngleX ()
5159 Value *value = GetValue (SkewTransform::AngleXProperty);
5160 return value->AsDouble ();
5163 void
5164 SkewTransform::SetAngleX (double value)
5166 SetValue (SkewTransform::AngleXProperty, Value (value));
5169 PixelShader *
5170 ShaderEffect::GetPixelShader ()
5172 Value *value = GetValue (ShaderEffect::PixelShaderProperty);
5173 return value ? value->AsPixelShader () : NULL;
5176 void
5177 ShaderEffect::SetPixelShader (PixelShader *value)
5179 SetValue (ShaderEffect::PixelShaderProperty, Value::CreateUnrefPtr (value));
5182 double
5183 ShaderEffect::GetPaddingTop ()
5185 Value *value = GetValue (ShaderEffect::PaddingTopProperty);
5186 return value->AsDouble ();
5189 void
5190 ShaderEffect::SetPaddingTop (double value)
5192 SetValue (ShaderEffect::PaddingTopProperty, Value (value));
5195 double
5196 ShaderEffect::GetPaddingRight ()
5198 Value *value = GetValue (ShaderEffect::PaddingRightProperty);
5199 return value->AsDouble ();
5202 void
5203 ShaderEffect::SetPaddingRight (double value)
5205 SetValue (ShaderEffect::PaddingRightProperty, Value (value));
5208 double
5209 ShaderEffect::GetPaddingLeft ()
5211 Value *value = GetValue (ShaderEffect::PaddingLeftProperty);
5212 return value->AsDouble ();
5215 void
5216 ShaderEffect::SetPaddingLeft (double value)
5218 SetValue (ShaderEffect::PaddingLeftProperty, Value (value));
5221 double
5222 ShaderEffect::GetPaddingBottom ()
5224 Value *value = GetValue (ShaderEffect::PaddingBottomProperty);
5225 return value->AsDouble ();
5228 void
5229 ShaderEffect::SetPaddingBottom (double value)
5231 SetValue (ShaderEffect::PaddingBottomProperty, Value (value));
5234 gint32
5235 ShaderEffect::GetDdxUvDdyUvRegisterIndex ()
5237 Value *value = GetValue (ShaderEffect::DdxUvDdyUvRegisterIndexProperty);
5238 return value->AsInt32 ();
5241 void
5242 ShaderEffect::SetDdxUvDdyUvRegisterIndex (gint32 value)
5244 SetValue (ShaderEffect::DdxUvDdyUvRegisterIndexProperty, Value (value));
5247 bool
5248 SetterBaseCollection::GetIsSealed ()
5250 Value *value = GetValue (SetterBaseCollection::IsSealedProperty);
5251 return value->AsBool ();
5254 void
5255 SetterBaseCollection::SetIsSealed (bool value)
5257 SetValue (SetterBaseCollection::IsSealedProperty, Value (value));
5260 double
5261 ScaleTransform::GetScaleY ()
5263 Value *value = GetValue (ScaleTransform::ScaleYProperty);
5264 return value->AsDouble ();
5267 void
5268 ScaleTransform::SetScaleY (double value)
5270 SetValue (ScaleTransform::ScaleYProperty, Value (value));
5273 double
5274 ScaleTransform::GetScaleX ()
5276 Value *value = GetValue (ScaleTransform::ScaleXProperty);
5277 return value->AsDouble ();
5280 void
5281 ScaleTransform::SetScaleX (double value)
5283 SetValue (ScaleTransform::ScaleXProperty, Value (value));
5286 double
5287 ScaleTransform::GetCenterY ()
5289 Value *value = GetValue (ScaleTransform::CenterYProperty);
5290 return value->AsDouble ();
5293 void
5294 ScaleTransform::SetCenterY (double value)
5296 SetValue (ScaleTransform::CenterYProperty, Value (value));
5299 double
5300 ScaleTransform::GetCenterX ()
5302 Value *value = GetValue (ScaleTransform::CenterXProperty);
5303 return value->AsDouble ();
5306 void
5307 ScaleTransform::SetCenterX (double value)
5309 SetValue (ScaleTransform::CenterXProperty, Value (value));
5312 double
5313 RotateTransform::GetCenterY ()
5315 Value *value = GetValue (RotateTransform::CenterYProperty);
5316 return value->AsDouble ();
5319 void
5320 RotateTransform::SetCenterY (double value)
5322 SetValue (RotateTransform::CenterYProperty, Value (value));
5325 double
5326 RotateTransform::GetCenterX ()
5328 Value *value = GetValue (RotateTransform::CenterXProperty);
5329 return value->AsDouble ();
5332 void
5333 RotateTransform::SetCenterX (double value)
5335 SetValue (RotateTransform::CenterXProperty, Value (value));
5338 double
5339 RotateTransform::GetAngle ()
5341 Value *value = GetValue (RotateTransform::AngleProperty);
5342 return value->AsDouble ();
5345 void
5346 RotateTransform::SetAngle (double value)
5348 SetValue (RotateTransform::AngleProperty, Value (value));
5351 Point *
5352 QuadraticBezierSegment::GetPoint2 ()
5354 Value *value = GetValue (QuadraticBezierSegment::Point2Property);
5355 return value ? value->AsPoint () : NULL;
5358 void
5359 QuadraticBezierSegment::SetPoint2 (Point *value)
5361 if (!value) return;
5362 SetValue (QuadraticBezierSegment::Point2Property, Value (*value));
5365 Point *
5366 QuadraticBezierSegment::GetPoint1 ()
5368 Value *value = GetValue (QuadraticBezierSegment::Point1Property);
5369 return value ? value->AsPoint () : NULL;
5372 void
5373 QuadraticBezierSegment::SetPoint1 (Point *value)
5375 if (!value) return;
5376 SetValue (QuadraticBezierSegment::Point1Property, Value (*value));
5379 PointCollection *
5380 PolyQuadraticBezierSegment::GetPoints ()
5382 Value *value = GetValue (PolyQuadraticBezierSegment::PointsProperty);
5383 return value ? value->AsPointCollection () : NULL;
5386 void
5387 PolyQuadraticBezierSegment::SetPoints (PointCollection *value)
5389 SetValue (PolyQuadraticBezierSegment::PointsProperty, Value::CreateUnrefPtr (value));
5392 PointCollection *
5393 PolyLineSegment::GetPoints ()
5395 Value *value = GetValue (PolyLineSegment::PointsProperty);
5396 return value ? value->AsPointCollection () : NULL;
5399 void
5400 PolyLineSegment::SetPoints (PointCollection *value)
5402 SetValue (PolyLineSegment::PointsProperty, Value::CreateUnrefPtr (value));
5405 PointCollection *
5406 PolyBezierSegment::GetPoints ()
5408 Value *value = GetValue (PolyBezierSegment::PointsProperty);
5409 return value ? value->AsPointCollection () : NULL;
5412 void
5413 PolyBezierSegment::SetPoints (PointCollection *value)
5415 SetValue (PolyBezierSegment::PointsProperty, Value::CreateUnrefPtr (value));
5418 Point *
5419 PointKeyFrame::GetValue ()
5421 Value *value = DependencyObject::GetValue (PointKeyFrame::ValueProperty);
5422 return value ? value->AsPoint () : NULL;
5425 void
5426 PointKeyFrame::SetValue (Point value)
5428 DependencyObject::SetValue (PointKeyFrame::ValueProperty, Value (value));
5431 void
5432 PointKeyFrame::SetValue (Point *value)
5434 if (!value)
5435 DependencyObject::SetValue (PointKeyFrame::ValueProperty, NULL);
5436 else
5437 DependencyObject::SetValue (PointKeyFrame::ValueProperty, Value (*value));
5440 KeyTime *
5441 PointKeyFrame::GetKeyTime ()
5443 Value *value = DependencyObject::GetValue (PointKeyFrame::KeyTimeProperty);
5444 return value ? value->AsKeyTime () : NULL;
5447 void
5448 PointKeyFrame::SetKeyTime (KeyTime value)
5450 DependencyObject::SetValue (PointKeyFrame::KeyTimeProperty, Value (value));
5453 void
5454 PointKeyFrame::SetKeyTime (KeyTime *value)
5456 if (!value)
5457 DependencyObject::SetValue (PointKeyFrame::KeyTimeProperty, NULL);
5458 else
5459 DependencyObject::SetValue (PointKeyFrame::KeyTimeProperty, Value (*value));
5462 Point *
5463 PointAnimation::GetTo ()
5465 Value *value = GetValue (PointAnimation::ToProperty);
5466 return value ? value->AsPoint () : NULL;
5469 void
5470 PointAnimation::SetTo (Point value)
5472 SetValue (PointAnimation::ToProperty, Value (value));
5475 void
5476 PointAnimation::SetTo (Point *value)
5478 if (!value)
5479 SetValue (PointAnimation::ToProperty, NULL);
5480 else
5481 SetValue (PointAnimation::ToProperty, Value (*value));
5484 Point *
5485 PointAnimation::GetFrom ()
5487 Value *value = GetValue (PointAnimation::FromProperty);
5488 return value ? value->AsPoint () : NULL;
5491 void
5492 PointAnimation::SetFrom (Point value)
5494 SetValue (PointAnimation::FromProperty, Value (value));
5497 void
5498 PointAnimation::SetFrom (Point *value)
5500 if (!value)
5501 SetValue (PointAnimation::FromProperty, NULL);
5502 else
5503 SetValue (PointAnimation::FromProperty, Value (*value));
5506 EasingFunctionBase *
5507 PointAnimation::GetEasingFunction ()
5509 Value *value = GetValue (PointAnimation::EasingFunctionProperty);
5510 return value ? value->AsEasingFunctionBase () : NULL;
5513 void
5514 PointAnimation::SetEasingFunction (EasingFunctionBase *value)
5516 SetValue (PointAnimation::EasingFunctionProperty, Value::CreateUnrefPtr (value));
5519 Point *
5520 PointAnimation::GetBy ()
5522 Value *value = GetValue (PointAnimation::ByProperty);
5523 return value ? value->AsPoint () : NULL;
5526 void
5527 PointAnimation::SetBy (Point value)
5529 SetValue (PointAnimation::ByProperty, Value (value));
5532 void
5533 PointAnimation::SetBy (Point *value)
5535 if (!value)
5536 SetValue (PointAnimation::ByProperty, NULL);
5537 else
5538 SetValue (PointAnimation::ByProperty, Value (*value));
5541 gint32
5542 PasswordBox::GetSelectionStart ()
5544 Value *value = GetValue (PasswordBox::SelectionStartProperty);
5545 return value->AsInt32 ();
5548 void
5549 PasswordBox::SetSelectionStart (gint32 value)
5551 SetValue (PasswordBox::SelectionStartProperty, Value (value));
5554 gint32
5555 PasswordBox::GetSelectionLength ()
5557 Value *value = GetValue (PasswordBox::SelectionLengthProperty);
5558 return value->AsInt32 ();
5561 void
5562 PasswordBox::SetSelectionLength (gint32 value)
5564 SetValue (PasswordBox::SelectionLengthProperty, Value (value));
5567 Brush *
5568 PasswordBox::GetSelectionForeground ()
5570 Value *value = GetValue (PasswordBox::SelectionForegroundProperty);
5571 return value ? value->AsBrush () : NULL;
5574 void
5575 PasswordBox::SetSelectionForeground (Brush *value)
5577 SetValue (PasswordBox::SelectionForegroundProperty, Value::CreateUnrefPtr (value));
5580 Brush *
5581 PasswordBox::GetSelectionBackground ()
5583 Value *value = GetValue (PasswordBox::SelectionBackgroundProperty);
5584 return value ? value->AsBrush () : NULL;
5587 void
5588 PasswordBox::SetSelectionBackground (Brush *value)
5590 SetValue (PasswordBox::SelectionBackgroundProperty, Value::CreateUnrefPtr (value));
5593 const char *
5594 PasswordBox::GetSelectedText ()
5596 Value *value = GetValue (PasswordBox::SelectedTextProperty);
5597 return value ? value->AsString () : NULL;
5600 void
5601 PasswordBox::SetSelectedText (const char *value)
5603 SetValue (PasswordBox::SelectedTextProperty, Value (value));
5606 const char *
5607 PasswordBox::GetPassword ()
5609 Value *value = GetValue (PasswordBox::PasswordProperty);
5610 return value ? value->AsString () : NULL;
5613 void
5614 PasswordBox::SetPassword (const char *value)
5616 SetValue (PasswordBox::PasswordProperty, Value (value));
5619 gunichar
5620 PasswordBox::GetPasswordChar ()
5622 Value *value = GetValue (PasswordBox::PasswordCharProperty);
5623 return value->AsChar ();
5626 void
5627 PasswordBox::SetPasswordChar (gunichar value)
5629 SetValue (PasswordBox::PasswordCharProperty, Value (value, Type::CHAR));
5632 gint32
5633 PasswordBox::GetMaxLength ()
5635 Value *value = GetValue (PasswordBox::MaxLengthProperty);
5636 return value->AsInt32 ();
5639 void
5640 PasswordBox::SetMaxLength (gint32 value)
5642 SetValue (PasswordBox::MaxLengthProperty, Value (value));
5645 FontSource *
5646 PasswordBox::GetFontSource ()
5648 Value *value = GetValue (PasswordBox::FontSourceProperty);
5649 return value ? value->AsFontSource () : NULL;
5652 void
5653 PasswordBox::SetFontSource (FontSource *value)
5655 if (!value) return;
5656 SetValue (PasswordBox::FontSourceProperty, Value (*value));
5659 Brush *
5660 PasswordBox::GetCaretBrush ()
5662 Value *value = GetValue (PasswordBox::CaretBrushProperty);
5663 return value ? value->AsBrush () : NULL;
5666 void
5667 PasswordBox::SetCaretBrush (Brush *value)
5669 SetValue (PasswordBox::CaretBrushProperty, Value::CreateUnrefPtr (value));
5672 KeyTime *
5673 ObjectKeyFrame::GetKeyTime ()
5675 Value *value = DependencyObject::GetValue (ObjectKeyFrame::KeyTimeProperty);
5676 return value ? value->AsKeyTime () : NULL;
5679 void
5680 ObjectKeyFrame::SetKeyTime (KeyTime value)
5682 DependencyObject::SetValue (ObjectKeyFrame::KeyTimeProperty, Value (value));
5685 void
5686 ObjectKeyFrame::SetKeyTime (KeyTime *value)
5688 if (!value)
5689 DependencyObject::SetValue (ObjectKeyFrame::KeyTimeProperty, NULL);
5690 else
5691 DependencyObject::SetValue (ObjectKeyFrame::KeyTimeProperty, Value (*value));
5694 Value *
5695 ObjectKeyFrame::GetConvertedValue ()
5697 return DependencyObject::GetValue (ObjectKeyFrame::ConvertedValueProperty);
5700 void
5701 ObjectKeyFrame::SetConvertedValue (Value * value)
5703 DependencyObject::SetValue (ObjectKeyFrame::ConvertedValueProperty, Value (*value));
5706 ObjectKeyFrameCollection *
5707 ObjectAnimationUsingKeyFrames::GetKeyFrames ()
5709 Value *value = GetValue (ObjectAnimationUsingKeyFrames::KeyFramesProperty);
5710 return value ? value->AsObjectKeyFrameCollection () : NULL;
5713 void
5714 ObjectAnimationUsingKeyFrames::SetKeyFrames (ObjectKeyFrameCollection *value)
5716 SetValue (ObjectAnimationUsingKeyFrames::KeyFramesProperty, Value::CreateUnrefPtr (value));
5719 Matrix *
5720 MatrixTransform::GetMatrix ()
5722 Value *value = GetValue (MatrixTransform::MatrixProperty);
5723 return value ? value->AsMatrix () : NULL;
5726 void
5727 MatrixTransform::SetMatrix (Matrix *value)
5729 SetValue (MatrixTransform::MatrixProperty, Value::CreateUnrefPtr (value));
5732 Point *
5733 LineSegment::GetPoint ()
5735 Value *value = GetValue (LineSegment::PointProperty);
5736 return value ? value->AsPoint () : NULL;
5739 void
5740 LineSegment::SetPoint (Point *value)
5742 if (!value) return;
5743 SetValue (LineSegment::PointProperty, Value (*value));
5746 Point *
5747 LayoutInformation::GetVisualOffset (DependencyObject *obj)
5749 Value *value = (!obj) ? NULL : obj->GetValue (LayoutInformation::VisualOffsetProperty);
5750 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (LayoutInformation::VisualOffsetProperty)->GetDefaultValue();
5751 return value ? value->AsPoint () : NULL;
5754 void
5755 LayoutInformation::SetVisualOffset (DependencyObject *obj, Point *value)
5757 if (!obj) return;
5758 if (!value) return;
5759 obj->SetValue (LayoutInformation::VisualOffsetProperty, Value (*value));
5762 Size *
5763 LayoutInformation::GetPreviousConstraint (DependencyObject *obj)
5765 Value *value = (!obj) ? NULL : obj->GetValue (LayoutInformation::PreviousConstraintProperty);
5766 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (LayoutInformation::PreviousConstraintProperty)->GetDefaultValue();
5767 return value ? value->AsSize () : NULL;
5770 void
5771 LayoutInformation::SetPreviousConstraint (DependencyObject *obj, Size *value)
5773 if (!obj) return;
5774 if (!value) return;
5775 obj->SetValue (LayoutInformation::PreviousConstraintProperty, Value (*value));
5778 Rect *
5779 LayoutInformation::GetLayoutSlot (DependencyObject *obj)
5781 Value *value = (!obj) ? NULL : obj->GetValue (LayoutInformation::LayoutSlotProperty);
5782 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (LayoutInformation::LayoutSlotProperty)->GetDefaultValue();
5783 return value ? value->AsRect () : NULL;
5786 void
5787 LayoutInformation::SetLayoutSlot (DependencyObject *obj, Rect *value)
5789 if (!obj) return;
5790 if (!value) return;
5791 obj->SetValue (LayoutInformation::LayoutSlotProperty, Value (*value));
5794 Geometry *
5795 LayoutInformation::GetLayoutClip (DependencyObject *obj)
5797 Value *value = (!obj) ? NULL : obj->GetValue (LayoutInformation::LayoutClipProperty);
5798 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (LayoutInformation::LayoutClipProperty)->GetDefaultValue();
5799 return value ? value->AsGeometry () : NULL;
5802 void
5803 LayoutInformation::SetLayoutClip (DependencyObject *obj, Geometry *value)
5805 if (!obj) return;
5806 obj->SetValue (LayoutInformation::LayoutClipProperty, Value::CreateUnrefPtr (value));
5809 Size *
5810 LayoutInformation::GetLastRenderSize (DependencyObject *obj)
5812 Value *value = (!obj) ? NULL : obj->GetValue (LayoutInformation::LastRenderSizeProperty);
5813 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (LayoutInformation::LastRenderSizeProperty)->GetDefaultValue();
5814 return value ? value->AsSize () : NULL;
5817 void
5818 LayoutInformation::SetLastRenderSize (DependencyObject *obj, Size *value)
5820 if (!obj) return;
5821 if (!value) return;
5822 obj->SetValue (LayoutInformation::LastRenderSizeProperty, Value (*value));
5825 Size *
5826 LayoutInformation::GetFinalRect (DependencyObject *obj)
5828 Value *value = (!obj) ? NULL : obj->GetValue (LayoutInformation::FinalRectProperty);
5829 if (!value) value = Deployment::GetCurrent ()->GetTypes ()->GetProperty (LayoutInformation::FinalRectProperty)->GetDefaultValue();
5830 return value ? value->AsSize () : NULL;
5833 void
5834 LayoutInformation::SetFinalRect (DependencyObject *obj, Size *value)
5836 if (!obj) return;
5837 if (!value) return;
5838 obj->SetValue (LayoutInformation::FinalRectProperty, Value (*value));
5841 Uri *
5842 ExtensionPart::GetSource ()
5844 Value *value = GetValue (ExtensionPart::SourceProperty);
5845 return value ? value->AsUri () : NULL;
5848 void
5849 ExtensionPart::SetSource (Uri *value)
5851 if (!value) return;
5852 SetValue (ExtensionPart::SourceProperty, Value (*value));
5855 const char *
5856 EventTrigger::GetRoutedEvent ()
5858 Value *value = GetValue (EventTrigger::RoutedEventProperty);
5859 return value ? value->AsString () : NULL;
5862 void
5863 EventTrigger::SetRoutedEvent (const char *value)
5865 SetValue (EventTrigger::RoutedEventProperty, Value (value));
5868 TriggerActionCollection *
5869 EventTrigger::GetActions ()
5871 Value *value = GetValue (EventTrigger::ActionsProperty);
5872 return value ? value->AsTriggerActionCollection () : NULL;
5875 void
5876 EventTrigger::SetActions (TriggerActionCollection *value)
5878 SetValue (EventTrigger::ActionsProperty, Value::CreateUnrefPtr (value));
5881 double
5882 DropShadowEffect::GetShadowDepth ()
5884 Value *value = GetValue (DropShadowEffect::ShadowDepthProperty);
5885 return value->AsDouble ();
5888 void
5889 DropShadowEffect::SetShadowDepth (double value)
5891 SetValue (DropShadowEffect::ShadowDepthProperty, Value (value));
5894 double
5895 DropShadowEffect::GetOpacity ()
5897 Value *value = GetValue (DropShadowEffect::OpacityProperty);
5898 return value->AsDouble ();
5901 void
5902 DropShadowEffect::SetOpacity (double value)
5904 SetValue (DropShadowEffect::OpacityProperty, Value (value));
5907 double
5908 DropShadowEffect::GetDirection ()
5910 Value *value = GetValue (DropShadowEffect::DirectionProperty);
5911 return value->AsDouble ();
5914 void
5915 DropShadowEffect::SetDirection (double value)
5917 SetValue (DropShadowEffect::DirectionProperty, Value (value));
5920 Color *
5921 DropShadowEffect::GetColor ()
5923 Value *value = GetValue (DropShadowEffect::ColorProperty);
5924 return value ? value->AsColor () : NULL;
5927 void
5928 DropShadowEffect::SetColor (Color *value)
5930 if (!value) return;
5931 SetValue (DropShadowEffect::ColorProperty, Value (*value));
5934 double
5935 DropShadowEffect::GetBlurRadius ()
5937 Value *value = GetValue (DropShadowEffect::BlurRadiusProperty);
5938 return value->AsDouble ();
5941 void
5942 DropShadowEffect::SetBlurRadius (double value)
5944 SetValue (DropShadowEffect::BlurRadiusProperty, Value (value));
5947 double *
5948 DoubleKeyFrame::GetValue ()
5950 Value *value = DependencyObject::GetValue (DoubleKeyFrame::ValueProperty);
5951 return value ? value->AsNullableDouble () : NULL;
5954 void
5955 DoubleKeyFrame::SetValue (double value)
5957 DependencyObject::SetValue (DoubleKeyFrame::ValueProperty, Value (value));
5960 void
5961 DoubleKeyFrame::SetValue (double * value)
5963 if (!value)
5964 DependencyObject::SetValue (DoubleKeyFrame::ValueProperty, NULL);
5965 else
5966 DependencyObject::SetValue (DoubleKeyFrame::ValueProperty, Value (*value));
5969 KeyTime *
5970 DoubleKeyFrame::GetKeyTime ()
5972 Value *value = DependencyObject::GetValue (DoubleKeyFrame::KeyTimeProperty);
5973 return value ? value->AsKeyTime () : NULL;
5976 void
5977 DoubleKeyFrame::SetKeyTime (KeyTime value)
5979 DependencyObject::SetValue (DoubleKeyFrame::KeyTimeProperty, Value (value));
5982 void
5983 DoubleKeyFrame::SetKeyTime (KeyTime *value)
5985 if (!value)
5986 DependencyObject::SetValue (DoubleKeyFrame::KeyTimeProperty, NULL);
5987 else
5988 DependencyObject::SetValue (DoubleKeyFrame::KeyTimeProperty, Value (*value));
5991 double *
5992 DoubleAnimation::GetTo ()
5994 Value *value = GetValue (DoubleAnimation::ToProperty);
5995 return value ? value->AsNullableDouble () : NULL;
5998 void
5999 DoubleAnimation::SetTo (double value)
6001 SetValue (DoubleAnimation::ToProperty, Value (value));
6004 void
6005 DoubleAnimation::SetTo (double * value)
6007 if (!value)
6008 SetValue (DoubleAnimation::ToProperty, NULL);
6009 else
6010 SetValue (DoubleAnimation::ToProperty, Value (*value));
6013 double *
6014 DoubleAnimation::GetFrom ()
6016 Value *value = GetValue (DoubleAnimation::FromProperty);
6017 return value ? value->AsNullableDouble () : NULL;
6020 void
6021 DoubleAnimation::SetFrom (double value)
6023 SetValue (DoubleAnimation::FromProperty, Value (value));
6026 void
6027 DoubleAnimation::SetFrom (double * value)
6029 if (!value)
6030 SetValue (DoubleAnimation::FromProperty, NULL);
6031 else
6032 SetValue (DoubleAnimation::FromProperty, Value (*value));
6035 EasingFunctionBase *
6036 DoubleAnimation::GetEasingFunction ()
6038 Value *value = GetValue (DoubleAnimation::EasingFunctionProperty);
6039 return value ? value->AsEasingFunctionBase () : NULL;
6042 void
6043 DoubleAnimation::SetEasingFunction (EasingFunctionBase *value)
6045 SetValue (DoubleAnimation::EasingFunctionProperty, Value::CreateUnrefPtr (value));
6048 double *
6049 DoubleAnimation::GetBy ()
6051 Value *value = GetValue (DoubleAnimation::ByProperty);
6052 return value ? value->AsNullableDouble () : NULL;
6055 void
6056 DoubleAnimation::SetBy (double value)
6058 SetValue (DoubleAnimation::ByProperty, Value (value));
6061 void
6062 DoubleAnimation::SetBy (double * value)
6064 if (!value)
6065 SetValue (DoubleAnimation::ByProperty, NULL);
6066 else
6067 SetValue (DoubleAnimation::ByProperty, Value (*value));
6070 const char *
6071 DependencyObject::GetName ()
6073 Value *value = GetValue (DependencyObject::NameProperty);
6074 return value ? value->AsString () : NULL;
6077 void
6078 DependencyObject::SetName (const char *value)
6080 SetValue (DependencyObject::NameProperty, Value (value));
6083 Color *
6084 ColorKeyFrame::GetValue ()
6086 Value *value = DependencyObject::GetValue (ColorKeyFrame::ValueProperty);
6087 return value ? value->AsColor () : NULL;
6090 void
6091 ColorKeyFrame::SetValue (Color value)
6093 DependencyObject::SetValue (ColorKeyFrame::ValueProperty, Value (value));
6096 void
6097 ColorKeyFrame::SetValue (Color *value)
6099 if (!value)
6100 DependencyObject::SetValue (ColorKeyFrame::ValueProperty, NULL);
6101 else
6102 DependencyObject::SetValue (ColorKeyFrame::ValueProperty, Value (*value));
6105 KeyTime *
6106 ColorKeyFrame::GetKeyTime ()
6108 Value *value = DependencyObject::GetValue (ColorKeyFrame::KeyTimeProperty);
6109 return value ? value->AsKeyTime () : NULL;
6112 void
6113 ColorKeyFrame::SetKeyTime (KeyTime value)
6115 DependencyObject::SetValue (ColorKeyFrame::KeyTimeProperty, Value (value));
6118 void
6119 ColorKeyFrame::SetKeyTime (KeyTime *value)
6121 if (!value)
6122 DependencyObject::SetValue (ColorKeyFrame::KeyTimeProperty, NULL);
6123 else
6124 DependencyObject::SetValue (ColorKeyFrame::KeyTimeProperty, Value (*value));
6127 Color *
6128 ColorAnimation::GetTo ()
6130 Value *value = GetValue (ColorAnimation::ToProperty);
6131 return value ? value->AsColor () : NULL;
6134 void
6135 ColorAnimation::SetTo (Color value)
6137 SetValue (ColorAnimation::ToProperty, Value (value));
6140 void
6141 ColorAnimation::SetTo (Color *value)
6143 if (!value)
6144 SetValue (ColorAnimation::ToProperty, NULL);
6145 else
6146 SetValue (ColorAnimation::ToProperty, Value (*value));
6149 Color *
6150 ColorAnimation::GetFrom ()
6152 Value *value = GetValue (ColorAnimation::FromProperty);
6153 return value ? value->AsColor () : NULL;
6156 void
6157 ColorAnimation::SetFrom (Color value)
6159 SetValue (ColorAnimation::FromProperty, Value (value));
6162 void
6163 ColorAnimation::SetFrom (Color *value)
6165 if (!value)
6166 SetValue (ColorAnimation::FromProperty, NULL);
6167 else
6168 SetValue (ColorAnimation::FromProperty, Value (*value));
6171 EasingFunctionBase *
6172 ColorAnimation::GetEasingFunction ()
6174 Value *value = GetValue (ColorAnimation::EasingFunctionProperty);
6175 return value ? value->AsEasingFunctionBase () : NULL;
6178 void
6179 ColorAnimation::SetEasingFunction (EasingFunctionBase *value)
6181 SetValue (ColorAnimation::EasingFunctionProperty, Value::CreateUnrefPtr (value));
6184 Color *
6185 ColorAnimation::GetBy ()
6187 Value *value = GetValue (ColorAnimation::ByProperty);
6188 return value ? value->AsColor () : NULL;
6191 void
6192 ColorAnimation::SetBy (Color value)
6194 SetValue (ColorAnimation::ByProperty, Value (value));
6197 void
6198 ColorAnimation::SetBy (Color *value)
6200 if (!value)
6201 SetValue (ColorAnimation::ByProperty, NULL);
6202 else
6203 SetValue (ColorAnimation::ByProperty, Value (*value));
6206 double
6207 BlurEffect::GetRadius ()
6209 Value *value = GetValue (BlurEffect::RadiusProperty);
6210 return value->AsDouble ();
6213 void
6214 BlurEffect::SetRadius (double value)
6216 SetValue (BlurEffect::RadiusProperty, Value (value));
6219 gint32
6220 BitmapSource::GetPixelWidth ()
6222 Value *value = GetValue (BitmapSource::PixelWidthProperty);
6223 return value->AsInt32 ();
6226 void
6227 BitmapSource::SetPixelWidth (gint32 value)
6229 SetValue (BitmapSource::PixelWidthProperty, Value (value));
6232 gint32
6233 BitmapSource::GetPixelHeight ()
6235 Value *value = GetValue (BitmapSource::PixelHeightProperty);
6236 return value->AsInt32 ();
6239 void
6240 BitmapSource::SetPixelHeight (gint32 value)
6242 SetValue (BitmapSource::PixelHeightProperty, Value (value));
6245 PixelFormats
6246 BitmapSource::GetPixelFormat ()
6248 Value *value = GetValue (BitmapSource::PixelFormatProperty);
6249 return (PixelFormats) value->AsInt32 ();
6252 void
6253 BitmapSource::SetPixelFormat (PixelFormats value)
6255 SetValue (BitmapSource::PixelFormatProperty, Value (value));
6258 double
6259 BitmapCache::GetRenderAtScale ()
6261 Value *value = GetValue (BitmapCache::RenderAtScaleProperty);
6262 return value->AsDouble ();
6265 void
6266 BitmapCache::SetRenderAtScale (double value)
6268 SetValue (BitmapCache::RenderAtScaleProperty, Value (value));
6271 Point *
6272 BezierSegment::GetPoint3 ()
6274 Value *value = GetValue (BezierSegment::Point3Property);
6275 return value ? value->AsPoint () : NULL;
6278 void
6279 BezierSegment::SetPoint3 (Point *value)
6281 if (!value) return;
6282 SetValue (BezierSegment::Point3Property, Value (*value));
6285 Point *
6286 BezierSegment::GetPoint2 ()
6288 Value *value = GetValue (BezierSegment::Point2Property);
6289 return value ? value->AsPoint () : NULL;
6292 void
6293 BezierSegment::SetPoint2 (Point *value)
6295 if (!value) return;
6296 SetValue (BezierSegment::Point2Property, Value (*value));
6299 Point *
6300 BezierSegment::GetPoint1 ()
6302 Value *value = GetValue (BezierSegment::Point1Property);
6303 return value ? value->AsPoint () : NULL;
6306 void
6307 BezierSegment::SetPoint1 (Point *value)
6309 if (!value) return;
6310 SetValue (BezierSegment::Point1Property, Value (*value));
6313 Storyboard *
6314 BeginStoryboard::GetStoryboard ()
6316 Value *value = GetValue (BeginStoryboard::StoryboardProperty);
6317 return value ? value->AsStoryboard () : NULL;
6320 void
6321 BeginStoryboard::SetStoryboard (Storyboard *value)
6323 SetValue (BeginStoryboard::StoryboardProperty, Value::CreateUnrefPtr (value));
6326 SweepDirection
6327 ArcSegment::GetSweepDirection ()
6329 Value *value = GetValue (ArcSegment::SweepDirectionProperty);
6330 return (SweepDirection) value->AsInt32 ();
6333 void
6334 ArcSegment::SetSweepDirection (SweepDirection value)
6336 SetValue (ArcSegment::SweepDirectionProperty, Value (value));
6339 Size *
6340 ArcSegment::GetSize ()
6342 Value *value = GetValue (ArcSegment::SizeProperty);
6343 return value ? value->AsSize () : NULL;
6346 void
6347 ArcSegment::SetSize (Size *value)
6349 if (!value) return;
6350 SetValue (ArcSegment::SizeProperty, Value (*value));
6353 double
6354 ArcSegment::GetRotationAngle ()
6356 Value *value = GetValue (ArcSegment::RotationAngleProperty);
6357 return value->AsDouble ();
6360 void
6361 ArcSegment::SetRotationAngle (double value)
6363 SetValue (ArcSegment::RotationAngleProperty, Value (value));
6366 Point *
6367 ArcSegment::GetPoint ()
6369 Value *value = GetValue (ArcSegment::PointProperty);
6370 return value ? value->AsPoint () : NULL;
6373 void
6374 ArcSegment::SetPoint (Point *value)
6376 if (!value) return;
6377 SetValue (ArcSegment::PointProperty, Value (*value));
6380 bool
6381 ArcSegment::GetIsLargeArc ()
6383 Value *value = GetValue (ArcSegment::IsLargeArcProperty);
6384 return value->AsBool ();
6387 void
6388 ArcSegment::SetIsLargeArc (bool value)
6390 SetValue (ArcSegment::IsLargeArcProperty, Value (value));