Nextrek
@ 22
Nextrek / Windows8 / Minstrek / DimensioneParallela / App1 / obj / Release / XamlTypeInfo.g.cs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 |
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace App1 { public partial class App : global::Windows.UI.Xaml.Markup.IXamlMetadataProvider { private global::App1.App1_XamlTypeInfo.XamlTypeInfoProvider _provider; public global::Windows.UI.Xaml.Markup.IXamlType GetXamlType(global::System.Type type) { if(_provider == null) { _provider = new global::App1.App1_XamlTypeInfo.XamlTypeInfoProvider(); } return _provider.GetXamlTypeByType(type); } public global::Windows.UI.Xaml.Markup.IXamlType GetXamlType(global::System.String fullName) { if(_provider == null) { _provider = new global::App1.App1_XamlTypeInfo.XamlTypeInfoProvider(); } return _provider.GetXamlTypeByName(fullName); } public global::Windows.UI.Xaml.Markup.XmlnsDefinition[] GetXmlnsDefinitions() { return new global::Windows.UI.Xaml.Markup.XmlnsDefinition[0]; } } } namespace App1.App1_XamlTypeInfo { [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks", "4.0.0.0")] [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal partial class XamlTypeInfoProvider { public global::Windows.UI.Xaml.Markup.IXamlType GetXamlTypeByType(global::System.Type type) { string standardName; global::Windows.UI.Xaml.Markup.IXamlType xamlType = null; if(_xamlTypeToStandardName.TryGetValue(type, out standardName)) { xamlType = GetXamlTypeByName(standardName); } else { xamlType = GetXamlTypeByName(type.FullName); } return xamlType; } public global::Windows.UI.Xaml.Markup.IXamlType GetXamlTypeByName(string typeName) { if (global::System.String.IsNullOrEmpty(typeName)) { return null; } global::Windows.UI.Xaml.Markup.IXamlType xamlType; if (_xamlTypes.TryGetValue(typeName, out xamlType)) { return xamlType; } xamlType = CreateXamlType(typeName); if (xamlType != null) { _xamlTypes.Add(typeName, xamlType); } return xamlType; } public global::Windows.UI.Xaml.Markup.IXamlMember GetMemberByLongName(string longMemberName) { if (global::System.String.IsNullOrEmpty(longMemberName)) { return null; } global::Windows.UI.Xaml.Markup.IXamlMember xamlMember; if (_xamlMembers.TryGetValue(longMemberName, out xamlMember)) { return xamlMember; } xamlMember = CreateXamlMember(longMemberName); if (xamlMember != null) { _xamlMembers.Add(longMemberName, xamlMember); } return xamlMember; } global::System.Collections.Generic.Dictionary<string, global::Windows.UI.Xaml.Markup.IXamlType> _xamlTypes = new global::System.Collections.Generic.Dictionary<string, global::Windows.UI.Xaml.Markup.IXamlType>(); global::System.Collections.Generic.Dictionary<string, global::Windows.UI.Xaml.Markup.IXamlMember> _xamlMembers = new global::System.Collections.Generic.Dictionary<string, global::Windows.UI.Xaml.Markup.IXamlMember>(); global::System.Collections.Generic.Dictionary<global::System.Type, string> _xamlTypeToStandardName = new global::System.Collections.Generic.Dictionary<global::System.Type, string>(); private void AddToMapOfTypeToStandardName(global::System.Type t, global::System.String str) { if(!_xamlTypeToStandardName.ContainsKey(t)) { _xamlTypeToStandardName.Add(t, str); } } private object Activate_0_MainPage() { return new global::App1.MainPage(); } private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName) { global::App1.App1_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::App1.App1_XamlTypeInfo.XamlUserType userType; switch (typeName) { case "Windows.UI.Xaml.Controls.Page": xamlType = new global::App1.App1_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page)); break; case "Windows.UI.Xaml.Controls.UserControl": xamlType = new global::App1.App1_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl)); break; case "App1.MainPage": userType = new global::App1.App1_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::App1.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_0_MainPage; xamlType = userType; break; } return xamlType; } private global::Windows.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName) { global::App1.App1_XamlTypeInfo.XamlMember xamlMember = null; // No Local Properties return xamlMember; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks", "4.0.0.0")] [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal class XamlSystemBaseType : global::Windows.UI.Xaml.Markup.IXamlType { string _fullName; global::System.Type _underlyingType; public XamlSystemBaseType(string fullName, global::System.Type underlyingType) { _fullName = fullName; _underlyingType = underlyingType; } public string FullName { get { return _fullName; } } public global::System.Type UnderlyingType { get { return _underlyingType; } } virtual public global::Windows.UI.Xaml.Markup.IXamlType BaseType { get { throw new global::System.NotImplementedException(); } } virtual public global::Windows.UI.Xaml.Markup.IXamlMember ContentProperty { get { throw new global::System.NotImplementedException(); } } virtual public global::Windows.UI.Xaml.Markup.IXamlMember GetMember(string name) { throw new global::System.NotImplementedException(); } virtual public bool IsArray { get { throw new global::System.NotImplementedException(); } } virtual public bool IsCollection { get { throw new global::System.NotImplementedException(); } } virtual public bool IsConstructible { get { throw new global::System.NotImplementedException(); } } virtual public bool IsDictionary { get { throw new global::System.NotImplementedException(); } } virtual public bool IsMarkupExtension { get { throw new global::System.NotImplementedException(); } } virtual public bool IsBindable { get { throw new global::System.NotImplementedException(); } } virtual public global::Windows.UI.Xaml.Markup.IXamlType ItemType { get { throw new global::System.NotImplementedException(); } } virtual public global::Windows.UI.Xaml.Markup.IXamlType KeyType { get { throw new global::System.NotImplementedException(); } } virtual public object ActivateInstance() { throw new global::System.NotImplementedException(); } virtual public void AddToMap(object instance, object key, object item) { throw new global::System.NotImplementedException(); } virtual public void AddToVector(object instance, object item) { throw new global::System.NotImplementedException(); } virtual public void RunInitializer() { throw new global::System.NotImplementedException(); } virtual public object CreateFromString(global::System.String input) { throw new global::System.NotImplementedException(); } } internal delegate object Activator(); internal delegate void AddToCollection(object instance, object item); internal delegate void AddToDictionary(object instance, object key, object item); [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks", "4.0.0.0")] [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal class XamlUserType : global::App1.App1_XamlTypeInfo.XamlSystemBaseType { global::App1.App1_XamlTypeInfo.XamlTypeInfoProvider _provider; global::Windows.UI.Xaml.Markup.IXamlType _baseType; bool _isArray; bool _isMarkupExtension; bool _isBindable; string _contentPropertyName; string _itemTypeName; string _keyTypeName; global::System.Collections.Generic.Dictionary<string, string> _memberNames; global::System.Collections.Generic.Dictionary<string, object> _enumValues; public XamlUserType(global::App1.App1_XamlTypeInfo.XamlTypeInfoProvider provider, string fullName, global::System.Type fullType, global::Windows.UI.Xaml.Markup.IXamlType baseType) :base(fullName, fullType) { _provider = provider; _baseType = baseType; } // --- Interface methods ---- override public global::Windows.UI.Xaml.Markup.IXamlType BaseType { get { return _baseType; } } override public bool IsArray { get { return _isArray; } } override public bool IsCollection { get { return (CollectionAdd != null); } } override public bool IsConstructible { get { return (Activator != null); } } override public bool IsDictionary { get { return (DictionaryAdd != null); } } override public bool IsMarkupExtension { get { return _isMarkupExtension; } } override public bool IsBindable { get { return _isBindable; } } override public global::Windows.UI.Xaml.Markup.IXamlMember ContentProperty { get { return _provider.GetMemberByLongName(_contentPropertyName); } } override public global::Windows.UI.Xaml.Markup.IXamlType ItemType { get { return _provider.GetXamlTypeByName(_itemTypeName); } } override public global::Windows.UI.Xaml.Markup.IXamlType KeyType { get { return _provider.GetXamlTypeByName(_keyTypeName); } } override public global::Windows.UI.Xaml.Markup.IXamlMember GetMember(string name) { if (_memberNames == null) { return null; } string longName; if (_memberNames.TryGetValue(name, out longName)) { return _provider.GetMemberByLongName(longName); } return null; } override public object ActivateInstance() { return Activator(); } override public void AddToMap(object instance, object key, object item) { DictionaryAdd(instance, key, item); } override public void AddToVector(object instance, object item) { CollectionAdd(instance, item); } override public void RunInitializer() { System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(UnderlyingType.TypeHandle); } override public global::System.Object CreateFromString(global::System.String input) { if (_enumValues != null) { global::System.Int32 value = 0; string[] valueParts = input.Split(','); foreach (string valuePart in valueParts) { object partValue; global::System.Int32 enumFieldValue = 0; try { if (_enumValues.TryGetValue(valuePart.Trim(), out partValue)) { enumFieldValue = global::System.Convert.ToInt32(partValue); } else { try { enumFieldValue = global::System.Convert.ToInt32(valuePart.Trim()); } catch( global::System.FormatException ) { foreach( string key in _enumValues.Keys ) { if( global::System.String.Compare(valuePart.Trim(), key, global::System.StringComparison.OrdinalIgnoreCase) == 0 ) { if( _enumValues.TryGetValue(key.Trim(), out partValue) ) { enumFieldValue = global::System.Convert.ToInt32(partValue); break; } } } } } value |= enumFieldValue; } catch( global::System.FormatException ) { throw new global::System.ArgumentException(input, FullName); } } return value; } throw new global::System.ArgumentException(input, FullName); } // --- End of Interface methods public Activator Activator { get; set; } public AddToCollection CollectionAdd { get; set; } public AddToDictionary DictionaryAdd { get; set; } public void SetContentPropertyName(string contentPropertyName) { _contentPropertyName = contentPropertyName; } public void SetIsArray() { _isArray = true; } public void SetIsMarkupExtension() { _isMarkupExtension = true; } public void SetIsBindable() { _isBindable = true; } public void SetItemTypeName(string itemTypeName) { _itemTypeName = itemTypeName; } public void SetKeyTypeName(string keyTypeName) { _keyTypeName = keyTypeName; } public void AddMemberName(string shortName) { if(_memberNames == null) { _memberNames = new global::System.Collections.Generic.Dictionary<string,string>(); } _memberNames.Add(shortName, FullName + "." + shortName); } public void AddEnumValue(string name, object value) { if (_enumValues == null) { _enumValues = new global::System.Collections.Generic.Dictionary<string, object>(); } _enumValues.Add(name, value); } } internal delegate object Getter(object instance); internal delegate void Setter(object instance, object value); [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks", "4.0.0.0")] [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal class XamlMember : global::Windows.UI.Xaml.Markup.IXamlMember { global::App1.App1_XamlTypeInfo.XamlTypeInfoProvider _provider; string _name; bool _isAttachable; bool _isDependencyProperty; bool _isReadOnly; string _typeName; string _targetTypeName; public XamlMember(global::App1.App1_XamlTypeInfo.XamlTypeInfoProvider provider, string name, string typeName) { _name = name; _typeName = typeName; _provider = provider; } public string Name { get { return _name; } } public global::Windows.UI.Xaml.Markup.IXamlType Type { get { return _provider.GetXamlTypeByName(_typeName); } } public void SetTargetTypeName(global::System.String targetTypeName) { _targetTypeName = targetTypeName; } public global::Windows.UI.Xaml.Markup.IXamlType TargetType { get { return _provider.GetXamlTypeByName(_targetTypeName); } } public void SetIsAttachable() { _isAttachable = true; } public bool IsAttachable { get { return _isAttachable; } } public void SetIsDependencyProperty() { _isDependencyProperty = true; } public bool IsDependencyProperty { get { return _isDependencyProperty; } } public void SetIsReadOnly() { _isReadOnly = true; } public bool IsReadOnly { get { return _isReadOnly; } } public Getter Getter { get; set; } public object GetValue(object instance) { if (Getter != null) return Getter(instance); else throw new global::System.InvalidOperationException("GetValue"); } public Setter Setter { get; set; } public void SetValue(object instance, object value) { if (Setter != null) Setter(instance, value); else throw new global::System.InvalidOperationException("SetValue"); } } } |