Created
January 30, 2026 14:07
-
-
Save StephaneDelcroix/a32788e786ddba54ebd629cb547ab914 to your computer and use it in GitHub Desktop.
BenchmarkMini - ORIGINAL (no lazy RD)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //------------------------------------------------------------------------------ | |
| // <auto-generated> | |
| // This code was generated by a .NET MAUI source generator. | |
| // | |
| // Changes to this file may cause incorrect behavior and will be lost if | |
| // the code is regenerated. | |
| // </auto-generated> | |
| //------------------------------------------------------------------------------ | |
| #nullable enable | |
| #pragma warning disable CS0219 // Variable is assigned but its value is never used | |
| namespace Microsoft.Maui.Controls.Xaml.UnitTests; | |
| [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Maui.Controls.SourceGen, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null", "10.0.0.0")] | |
| public partial class BenchmarkMini | |
| { | |
| private partial void InitializeComponentSourceGen() | |
| { | |
| // Fallback to Runtime inflation if the page was updated by HotReload | |
| static string? getPathForType(global::System.Type type) | |
| { | |
| var assembly = type.Assembly; | |
| foreach (var xria in global::System.Reflection.CustomAttributeExtensions.GetCustomAttributes<global::Microsoft.Maui.Controls.Xaml.XamlResourceIdAttribute>(assembly)) | |
| { | |
| if (xria.Type == type) | |
| return xria.Path; | |
| } | |
| return null; | |
| } | |
| var rlr = global::Microsoft.Maui.Controls.Internals.ResourceLoader.ResourceProvider2?.Invoke(new global::Microsoft.Maui.Controls.Internals.ResourceLoader.ResourceLoadingQuery | |
| { | |
| AssemblyName = typeof(global::Microsoft.Maui.Controls.Xaml.UnitTests.BenchmarkMini).Assembly.GetName(), | |
| ResourcePath = getPathForType(typeof(global::Microsoft.Maui.Controls.Xaml.UnitTests.BenchmarkMini)), | |
| Instance = this, | |
| }); | |
| if (rlr?.ResourceContent != null) | |
| { | |
| this.InitializeComponentRuntime(); | |
| return; | |
| } | |
| var color = new global::Microsoft.Maui.Graphics.Color(0.31764707f, 0.16862746f, 0.83137256f, 1f) /* #512BD4 */; | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(color!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 6, 10); | |
| var staticResourceExtension = new global::Microsoft.Maui.Controls.Xaml.StaticResourceExtension(); | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(staticResourceExtension!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 8, 42); | |
| var setter = new global::Microsoft.Maui.Controls.Setter(); | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 8, 14); | |
| var style1 = new global::Microsoft.Maui.Controls.Style(typeof(global::Microsoft.Maui.Controls.Label)); | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(style1!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 7, 10); | |
| var staticResourceExtension1 = new global::Microsoft.Maui.Controls.Xaml.StaticResourceExtension(); | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(staticResourceExtension1!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 13, 48); | |
| var setter1 = new global::Microsoft.Maui.Controls.Setter(); | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter1!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 13, 14); | |
| var style3 = new global::Microsoft.Maui.Controls.Style(typeof(global::Microsoft.Maui.Controls.Button)); | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(style3!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 12, 10); | |
| var staticResourceExtension2 = new global::Microsoft.Maui.Controls.Xaml.StaticResourceExtension(); | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(staticResourceExtension2!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 19, 42); | |
| var setter2 = new global::Microsoft.Maui.Controls.Setter(); | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter2!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 19, 14); | |
| var style5 = new global::Microsoft.Maui.Controls.Style(typeof(global::Microsoft.Maui.Controls.Entry)); | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(style5!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 18, 10); | |
| var __root = this; | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(__root!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 2, 2); | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope = global::Microsoft.Maui.Controls.Internals.NameScope.GetNameScope(__root) ?? new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.NameScope.SetNameScope(__root, iNameScope); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope1 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope2 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope3 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope4 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope5 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope6 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope7 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope8 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope9 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| #if !_MAUIXAML_SG_NAMESCOPE_DISABLE | |
| global::Microsoft.Maui.Controls.Internals.INameScope iNameScope10 = new global::Microsoft.Maui.Controls.Internals.NameScope(); | |
| #endif | |
| var resourceDictionary = __root.Resources; | |
| resourceDictionary["Primary"] = color; | |
| setter.Property = global::Microsoft.Maui.Controls.Label.TextColorProperty; | |
| staticResourceExtension.Key = "Primary"; | |
| var color1 = color; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(color1!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(color1!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 8, 42); | |
| setter.Value = (object)color1; | |
| var setter3 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.Label.TextColorProperty, Value = color1}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter3!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter3!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 8, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style1.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter3); | |
| var setter4 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.Label.FontSizeProperty, Value = 16D}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter4!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter4!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 9, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style1.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter4); | |
| var setter5 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.Label.PaddingProperty, Value = new global::Microsoft.Maui.Thickness(10)}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter5!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter5!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 10, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style1.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter5); | |
| resourceDictionary.Add(style1); | |
| setter1.Property = global::Microsoft.Maui.Controls.VisualElement.BackgroundColorProperty; | |
| staticResourceExtension1.Key = "Primary"; | |
| var color2 = color; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(color2!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(color2!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 13, 48); | |
| setter1.Value = (object)color2; | |
| var setter6 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.VisualElement.BackgroundColorProperty, Value = color2}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter6!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter6!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 13, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style3.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter6); | |
| var setter7 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.Button.TextColorProperty, Value = global::Microsoft.Maui.Graphics.Colors.White}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter7!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter7!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 14, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style3.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter7); | |
| var setter8 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.Button.CornerRadiusProperty, Value = 8}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter8!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter8!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 15, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style3.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter8); | |
| var setter9 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.Button.PaddingProperty, Value = new global::Microsoft.Maui.Thickness(12, 8)}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter9!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter9!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 16, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style3.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter9); | |
| resourceDictionary.Add(style3); | |
| setter2.Property = global::Microsoft.Maui.Controls.Entry.TextColorProperty; | |
| staticResourceExtension2.Key = "Primary"; | |
| var color3 = color; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(color3!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(color3!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 19, 42); | |
| setter2.Value = (object)color3; | |
| var setter10 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.Entry.TextColorProperty, Value = color3}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter10!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter10!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 19, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style5.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter10); | |
| var setter11 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.Entry.PlaceholderColorProperty, Value = global::Microsoft.Maui.Graphics.Colors.Gray}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter11!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter11!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 20, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style5.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter11); | |
| var setter12 = new global::Microsoft.Maui.Controls.Setter {Property = global::Microsoft.Maui.Controls.Entry.FontSizeProperty, Value = 14D}; | |
| if (global::Microsoft.Maui.VisualDiagnostics.GetSourceInfo(setter12!) == null) | |
| global::Microsoft.Maui.VisualDiagnostics.RegisterSourceInfo(setter12!, new global::System.Uri(@"BenchmarkMini.xaml;assembly=Microsoft.Maui.Controls.Xaml.UnitTests", global::System.UriKind.Relative), 21, 14); | |
| ((global::System.Collections.Generic.ICollection<global::Microsoft.Maui.Controls.Setter>)style5.Setters).Add((global::Microsoft.Maui.Controls.Setter)setter12); | |
| resourceDictionary.Add(style5); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment