Created
April 23, 2019 11:53
-
-
Save wieslawsoltes/ae443c3391069dc8238f50f7950974b9 to your computer and use it in GitHub Desktop.
Decompiled xaml from my Avalonia app
This file has been truncated, but you can view the full file.
This file contains 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.ComponentModel; | |
using System.Globalization; | |
using Avalonia; | |
using Avalonia.Collections; | |
using Avalonia.Controls; | |
using Avalonia.Controls.PanAndZoom; | |
using Avalonia.Controls.Presenters; | |
using Avalonia.Controls.Primitives; | |
using Avalonia.Controls.Shapes; | |
using Avalonia.Controls.Templates; | |
using Avalonia.Data; | |
using Avalonia.Data.Converters; | |
using Avalonia.Input; | |
using Avalonia.Layout; | |
using Avalonia.LogicalTree; | |
using Avalonia.Markup.Xaml.Converters; | |
using Avalonia.Markup.Xaml.MarkupExtensions; | |
using Avalonia.Markup.Xaml.Styling; | |
using Avalonia.Markup.Xaml.Templates; | |
using Avalonia.Markup.Xaml.XamlIl.Runtime; | |
using Avalonia.Media; | |
using Avalonia.Styling; | |
using Avalonia.Visuals.Media.Imaging; | |
using Avalonia.Xaml.Interactions.Core; | |
using Avalonia.Xaml.Interactions.Custom; | |
using Avalonia.Xaml.Interactivity; | |
using Core2D; | |
using Core2D.Containers; | |
using Core2D.Data; | |
using Core2D.Editor; | |
using Core2D.Editor.Recent; | |
using Core2D.Editor.Tools.Path.Settings; | |
using Core2D.Editor.Tools.Settings; | |
using Core2D.Path; | |
using Core2D.Path.Segments; | |
using Core2D.Renderer; | |
using Core2D.Shapes; | |
using Core2D.Style; | |
using Core2D.UI.Avalonia; | |
using Core2D.UI.Avalonia.Converters; | |
using Core2D.UI.Avalonia.Dock.Documents; | |
using Core2D.UI.Avalonia.Dock.Handlers; | |
using Core2D.UI.Avalonia.Dock.Tools; | |
using Core2D.UI.Avalonia.Dock.Views; | |
using Core2D.UI.Avalonia.Renderer; | |
using Core2D.UI.Avalonia.Views; | |
using Core2D.UI.Avalonia.Views.Containers; | |
using Core2D.UI.Avalonia.Views.Data; | |
using Core2D.UI.Avalonia.Views.Path; | |
using Core2D.UI.Avalonia.Views.Renderer; | |
using Core2D.UI.Avalonia.Views.Settings; | |
using Core2D.UI.Avalonia.Views.Settings.Tools; | |
using Core2D.UI.Avalonia.Views.Settings.Tools.Path; | |
using Core2D.UI.Avalonia.Views.Shapes; | |
using Core2D.UI.Avalonia.Views.Style; | |
using Core2D.UI.Avalonia.Windows; | |
using Dock.Avalonia; | |
using Dock.Avalonia.Controls; | |
using PanAndZoom; | |
using Portable.Xaml; | |
namespace CompiledAvaloniaXaml | |
{ | |
// Token: 0x020000B9 RID: 185 | |
[EditorBrowsable(EditorBrowsableState.Never)] | |
internal class !AvaloniaResources | |
{ | |
// Token: 0x06000272 RID: 626 RVA: 0x00008C78 File Offset: 0x00006E78 | |
public static void xaml(IServiceProvider A_0, App A_1) | |
{ | |
XamlIlContext.Context<App> context = new XamlIlContext.Context<App>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/App.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/App.xaml"); | |
context.RootObject = A_1; | |
context.ParentsStack.Add(A_1); | |
Styles styles = A_1.Styles; | |
StyleInclude styleInclude; | |
IStyle item = styleInclude = new StyleInclude(context); | |
context.ParentsStack.Add(styleInclude); | |
styleInclude.Source = (Uri)new AvaloniaUriTypeConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "avares://Avalonia.Themes.Default/DefaultTheme.xaml"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles.Add(item); | |
Styles styles2 = A_1.Styles; | |
IStyle item2 = styleInclude = new StyleInclude(context); | |
context.ParentsStack.Add(styleInclude); | |
styleInclude.Source = (Uri)new AvaloniaUriTypeConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles2.Add(item2); | |
Styles styles3 = A_1.Styles; | |
IStyle item3 = styleInclude = new StyleInclude(context); | |
context.ParentsStack.Add(styleInclude); | |
styleInclude.Source = (Uri)new AvaloniaUriTypeConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "avares://Avalonia.Controls.DataGrid/Themes/Default.xaml"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles3.Add(item3); | |
Styles styles4 = A_1.Styles; | |
IStyle item4 = styleInclude = new StyleInclude(context); | |
context.ParentsStack.Add(styleInclude); | |
styleInclude.Source = (Uri)new AvaloniaUriTypeConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "avares://Dock.Avalonia/Controls/DockPanelSplitter.xaml"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles4.Add(item4); | |
Styles styles5 = A_1.Styles; | |
IStyle item5 = styleInclude = new StyleInclude(context); | |
context.ParentsStack.Add(styleInclude); | |
styleInclude.Source = (Uri)new AvaloniaUriTypeConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "avares://Dock.Avalonia/Controls/ProportionalStackPanelSplitter.xaml"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles5.Add(item5); | |
Styles styles6 = A_1.Styles; | |
IStyle item6 = styleInclude = new StyleInclude(context); | |
context.ParentsStack.Add(styleInclude); | |
styleInclude.Source = (Uri)new AvaloniaUriTypeConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "avares://Dock.Avalonia/Controls/DockTarget.xaml"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles6.Add(item6); | |
Styles styles7 = A_1.Styles; | |
IStyle item7 = styleInclude = new StyleInclude(context); | |
context.ParentsStack.Add(styleInclude); | |
styleInclude.Source = (Uri)new AvaloniaUriTypeConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "avares://Dock.Avalonia/Controls/DockToolChrome.xaml"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles7.Add(item7); | |
Styles styles8 = A_1.Styles; | |
IStyle item8 = styleInclude = new StyleInclude(context); | |
context.ParentsStack.Add(styleInclude); | |
styleInclude.Source = (Uri)new AvaloniaUriTypeConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "avares://Dock.Avalonia/Controls/MetroWindow.xaml"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles8.Add(item8); | |
Styles styles9 = A_1.Styles; | |
Style style; | |
IStyle item9 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style2 = style; | |
style2.Selector = Selectors.OfType((Selector)null, typeof(Border)).Class("panel"); | |
style2.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
style2.Setters.Add(new Setter | |
{ | |
Property = Decorator.PaddingProperty, | |
Value = (object)Thickness.Parse("4") | |
}); | |
ICollection<ISetter> setters = style2.Setters; | |
Setter setter; | |
ISetter item10 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter2 = setter; | |
setter2.Property = Border.BorderBrushProperty; | |
object obj = setter2; | |
DynamicResourceExtension dynamicResourceExtension = new DynamicResourceExtension("ThemeBorderLightBrush"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
object obj2 = dynamicResourceExtension.ProvideValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter2.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters.Add(item10); | |
style2.Setters.Add(new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles9.Add(item9); | |
Styles styles10 = A_1.Styles; | |
IStyle item11 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style3 = style; | |
style3.Selector = Selectors.OfType((Selector)null, typeof(Border)).Class("container"); | |
style3.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
style3.Setters.Add(new Setter | |
{ | |
Property = Decorator.PaddingProperty, | |
Value = (object)Thickness.Parse("3,3,3,3") | |
}); | |
ICollection<ISetter> setters2 = style3.Setters; | |
ISetter item12 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter3 = setter; | |
setter3.Property = Border.BackgroundProperty; | |
obj2 = setter3; | |
DynamicResourceExtension dynamicResourceExtension2 = new DynamicResourceExtension("TemplateCheckerBoard"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension2.ProvideValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter3.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters2.Add(item12); | |
style3.Setters.Add(new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles10.Add(item11); | |
Styles styles11 = A_1.Styles; | |
IStyle item13 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style4 = style; | |
style4.Selector = Selectors.OfType((Selector)null, typeof(Border)).Class("transparent"); | |
style4.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
style4.Setters.Add(new Setter | |
{ | |
Property = Decorator.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters3 = style4.Setters; | |
ISetter item14 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter4 = setter; | |
setter4.Property = Border.BorderBrushProperty; | |
setter4.Value = (object)((IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent")); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters3.Add(item14); | |
style4.Setters.Add(new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles11.Add(item13); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(Border)).Class("color"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("3,1,3,1") | |
}, | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("0") | |
} | |
} | |
}); | |
Styles styles12 = A_1.Styles; | |
IStyle item15 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style5 = style; | |
style5.Selector = Selectors.OfType((Selector)null, typeof(Border)).Class("project"); | |
ICollection<ISetter> setters4 = style5.Setters; | |
ISetter item16 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter5 = setter; | |
setter5.Property = Border.BackgroundProperty; | |
setter5.Value = (object)((IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent")); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters4.Add(item16); | |
style5.Setters.Add(new Setter | |
{ | |
Property = Decorator.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters5 = style5.Setters; | |
ISetter item17 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter6 = setter; | |
setter6.Property = Border.BorderBrushProperty; | |
obj = setter6; | |
DynamicResourceExtension dynamicResourceExtension3 = new DynamicResourceExtension("ThemeBorderLightBrush"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension3.ProvideValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter6.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters5.Add(item17); | |
style5.Setters.Add(new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles12.Add(item15); | |
Styles styles13 = A_1.Styles; | |
IStyle item18 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style6 = style; | |
style6.Selector = Selectors.OfType((Selector)null, typeof(Border)).Class("document"); | |
style6.Setters.Add(new Setter | |
{ | |
Property = Decorator.PaddingProperty, | |
Value = (object)Thickness.Parse("4") | |
}); | |
ICollection<ISetter> setters6 = style6.Setters; | |
ISetter item19 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter7 = setter; | |
setter7.Property = Border.BorderBrushProperty; | |
obj2 = setter7; | |
DynamicResourceExtension dynamicResourceExtension4 = new DynamicResourceExtension("ThemeBorderLightBrush"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension4.ProvideValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter7.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters6.Add(item19); | |
style6.Setters.Add(new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles13.Add(item18); | |
Styles styles14 = A_1.Styles; | |
IStyle item20 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style7 = style; | |
style7.Selector = Selectors.OfType((Selector)null, typeof(Button)).Class("default"); | |
style7.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("3,0,3,0") | |
}); | |
ICollection<ISetter> setters7 = style7.Setters; | |
ISetter item21 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter8 = setter; | |
setter8.Property = TemplatedControl.FontSizeProperty; | |
obj = setter8; | |
DynamicResourceExtension dynamicResourceExtension5 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension5.ProvideValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter8.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters7.Add(item21); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles14.Add(item20); | |
Styles styles15 = A_1.Styles; | |
IStyle item22 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style8 = style; | |
style8.Selector = Selectors.OfType((Selector)null, typeof(Button)).Class("property"); | |
style8.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("3,1,3,1") | |
}); | |
style8.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters8 = style8.Setters; | |
ISetter item23 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter9 = setter; | |
setter9.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter9; | |
DynamicResourceExtension dynamicResourceExtension6 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension6.ProvideValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter9.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters8.Add(item23); | |
style8.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles15.Add(item22); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(Button)).Class("property").Template().OfType(typeof(ContentPresenter)), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = ContentPresenter.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
} | |
} | |
}); | |
Styles styles16 = A_1.Styles; | |
IStyle item24 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style9 = style; | |
style9.Selector = Selectors.OfType((Selector)null, typeof(Button)).Class("project"); | |
ICollection<ISetter> setters9 = style9.Setters; | |
ISetter item25 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter10 = setter; | |
setter10.Property = TemplatedControl.BackgroundProperty; | |
setter10.Value = (object)((IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent")); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters9.Add(item25); | |
style9.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
style9.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters10 = style9.Setters; | |
ISetter item26 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter11 = setter; | |
setter11.Property = TemplatedControl.FontSizeProperty; | |
obj = setter11; | |
DynamicResourceExtension dynamicResourceExtension7 = new DynamicResourceExtension("FontSizeLarge"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension7.ProvideValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter11.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters10.Add(item26); | |
style9.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles16.Add(item24); | |
Styles styles17 = A_1.Styles; | |
IStyle item27 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style10 = style; | |
style10.Selector = Selectors.OfType((Selector)null, typeof(Button)).Class("project").Class(":pointerover").Template().OfType(typeof(ContentPresenter)); | |
ICollection<ISetter> setters11 = style10.Setters; | |
ISetter item28 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter12 = setter; | |
setter12.Property = ContentPresenter.BackgroundProperty; | |
obj2 = setter12; | |
DynamicResourceExtension dynamicResourceExtension8 = new DynamicResourceExtension("ThemeControlMidBrush"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension8.ProvideValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter12.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters11.Add(item28); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles17.Add(item27); | |
Styles styles18 = A_1.Styles; | |
IStyle item29 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style11 = style; | |
style11.Selector = Selectors.OfType((Selector)null, typeof(Button)).Class("project").Class(":pressed").Template().OfType(typeof(ContentPresenter)); | |
ICollection<ISetter> setters12 = style11.Setters; | |
ISetter item30 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter13 = setter; | |
setter13.Property = ContentPresenter.BackgroundProperty; | |
obj = setter13; | |
DynamicResourceExtension dynamicResourceExtension9 = new DynamicResourceExtension("ThemeControlDarkBrush"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension9.ProvideValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter13.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters12.Add(item30); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles18.Add(item29); | |
Styles styles19 = A_1.Styles; | |
IStyle item31 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style12 = style; | |
style12.Selector = Selectors.OfType((Selector)null, typeof(Button)).Class("autofit"); | |
style12.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
style12.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4,0,4,0") | |
}); | |
ICollection<ISetter> setters13 = style12.Setters; | |
ISetter item32 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter14 = setter; | |
setter14.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter14; | |
DynamicResourceExtension dynamicResourceExtension10 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension10.ProvideValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter14.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters13.Add(item32); | |
style12.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
style12.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles19.Add(item31); | |
Styles styles20 = A_1.Styles; | |
IStyle item33 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style13 = style; | |
style13.Selector = Selectors.OfType((Selector)null, typeof(Button)).Class("code"); | |
style13.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("3,0,3,0") | |
}); | |
ICollection<ISetter> setters14 = style13.Setters; | |
ISetter item34 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter15 = setter; | |
setter15.Property = TemplatedControl.FontSizeProperty; | |
obj = setter15; | |
DynamicResourceExtension dynamicResourceExtension11 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension11.ProvideValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter15.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters14.Add(item34); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles20.Add(item33); | |
Styles styles21 = A_1.Styles; | |
IStyle item35 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style14 = style; | |
style14.Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("default"); | |
style14.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0,1,0,1") | |
}); | |
ICollection<ISetter> setters15 = style14.Setters; | |
ISetter item36 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter16 = setter; | |
setter16.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter16; | |
DynamicResourceExtension dynamicResourceExtension12 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension12.ProvideValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter16.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters15.Add(item36); | |
style14.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles21.Add(item35); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("default").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("default").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles22 = A_1.Styles; | |
IStyle item37 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style15 = style; | |
style15.Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("left"); | |
style15.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0,1,0,1") | |
}); | |
ICollection<ISetter> setters16 = style15.Setters; | |
ISetter item38 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter17 = setter; | |
setter17.Property = TemplatedControl.FontSizeProperty; | |
obj = setter17; | |
DynamicResourceExtension dynamicResourceExtension13 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension13.ProvideValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter17.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters16.Add(item38); | |
style15.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles22.Add(item37); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("left").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("left").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles23 = A_1.Styles; | |
IStyle item39 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style16 = style; | |
style16.Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("options"); | |
style16.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
ICollection<ISetter> setters17 = style16.Setters; | |
ISetter item40 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter18 = setter; | |
setter18.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter18; | |
DynamicResourceExtension dynamicResourceExtension14 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension14.ProvideValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter18.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters17.Add(item40); | |
style16.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
style16.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles23.Add(item39); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("options").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("options").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(CheckBox)).Class("menu"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = InputElement.IsHitTestVisibleProperty, | |
Value = (object)false | |
} | |
} | |
}); | |
Styles styles24 = A_1.Styles; | |
IStyle item41 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style17 = style; | |
style17.Selector = Selectors.OfType((Selector)null, typeof(ContextMenu)).Class("default"); | |
style17.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
style17.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("2,2") | |
}); | |
ICollection<ISetter> setters18 = style17.Setters; | |
ISetter item42 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter19 = setter; | |
setter19.Property = TextBlock.FontSizeProperty; | |
obj = setter19; | |
DynamicResourceExtension dynamicResourceExtension15 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension15.ProvideValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter19.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters18.Add(item42); | |
style17.Setters.Add(new Setter | |
{ | |
Property = TextBlock.FontWeightProperty, | |
Value = (object)FontWeight.Normal | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles24.Add(item41); | |
Styles styles25 = A_1.Styles; | |
IStyle item43 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style18 = style; | |
style18.Selector = Selectors.OfType((Selector)null, typeof(ComboBox)).Class("default"); | |
style18.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4,0,4,0") | |
}); | |
style18.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0,1,0,1") | |
}); | |
ICollection<ISetter> setters19 = style18.Setters; | |
ISetter item44 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter20 = setter; | |
setter20.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter20; | |
DynamicResourceExtension dynamicResourceExtension16 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension16.ProvideValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter20.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters19.Add(item44); | |
style18.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles25.Add(item43); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ComboBox)).Class("default").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ComboBox)).Class("default").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles26 = A_1.Styles; | |
IStyle item45 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style19 = style; | |
style19.Selector = Selectors.OfType((Selector)null, typeof(ComboBox)).Class("tool"); | |
style19.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4,0,4,0") | |
}); | |
style19.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
ICollection<ISetter> setters20 = style19.Setters; | |
ISetter item46 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter21 = setter; | |
setter21.Property = TemplatedControl.FontSizeProperty; | |
obj = setter21; | |
DynamicResourceExtension dynamicResourceExtension17 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension17.ProvideValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter21.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters20.Add(item46); | |
style19.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles26.Add(item45); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ComboBox)).Class("tool").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ComboBox)).Class("tool").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles27 = A_1.Styles; | |
IStyle item47 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style20 = style; | |
style20.Selector = Selectors.OfType((Selector)null, typeof(ComboBox)).Class("autofit"); | |
style20.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4,0,4,0") | |
}); | |
style20.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
ICollection<ISetter> setters21 = style20.Setters; | |
ISetter item48 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter22 = setter; | |
setter22.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter22; | |
DynamicResourceExtension dynamicResourceExtension18 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension18.ProvideValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter22.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters21.Add(item48); | |
style20.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles27.Add(item47); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ComboBox)).Class("autofit").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ComboBox)).Class("autofit").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles28 = A_1.Styles; | |
IStyle item49 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style21 = style; | |
style21.Selector = Selectors.OfType((Selector)null, typeof(Grid)).Class("container"); | |
ICollection<ISetter> setters22 = style21.Setters; | |
ISetter item50 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter23 = setter; | |
setter23.Property = Panel.BackgroundProperty; | |
obj = setter23; | |
DynamicResourceExtension dynamicResourceExtension19 = new DynamicResourceExtension("TemplateCheckerBoard"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension19.ProvideValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter23.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters22.Add(item50); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles28.Add(item49); | |
Styles styles29 = A_1.Styles; | |
IStyle item51 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style22 = style; | |
style22.Selector = Selectors.OfType((Selector)null, typeof(Grid)).Class("drag"); | |
ICollection<ISetter> setters23 = style22.Setters; | |
ISetter item52 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter24 = setter; | |
setter24.Property = Panel.BackgroundProperty; | |
setter24.Value = (object)((IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent")); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters23.Add(item52); | |
style22.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Stretch | |
}); | |
style22.Setters.Add(new Setter | |
{ | |
Property = Layoutable.HorizontalAlignmentProperty, | |
Value = (object)HorizontalAlignment.Stretch | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles29.Add(item51); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(GridSplitter)).Class(":vertical"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.WidthProperty, | |
Value = (object)6.0 | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.TemplateProperty, | |
Value = new ControlTemplate | |
{ | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_6b82c809-cf44-46d4-aadd-81f2952593c6.Build), context) | |
} | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(GridSplitter)).Class("vertical") | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(GridSplitter)).Class(":horizontal"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.HeightProperty, | |
Value = (object)6.0 | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.TemplateProperty, | |
Value = new ControlTemplate | |
{ | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_a51601fb-67da-4790-95a5-b3e56d5d3cb7.Build), context) | |
} | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(GridSplitter)).Class("horizontal") | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ListBox)).Class("default"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = SelectingItemsControl.AutoScrollToSelectedItemProperty, | |
Value = (object)true | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ListBox)).Class("recents"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}, | |
new Setter | |
{ | |
Property = SelectingItemsControl.AutoScrollToSelectedItemProperty, | |
Value = (object)true | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ListBox)).Class("document"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}, | |
new Setter | |
{ | |
Property = SelectingItemsControl.AutoScrollToSelectedItemProperty, | |
Value = (object)true | |
} | |
} | |
}); | |
Styles styles30 = A_1.Styles; | |
IStyle item53 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style23 = style; | |
style23.Selector = Selectors.OfType((Selector)null, typeof(Menu)).Class("default"); | |
ICollection<ISetter> setters24 = style23.Setters; | |
ISetter item54 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter25 = setter; | |
setter25.Property = TemplatedControl.BackgroundProperty; | |
setter25.Value = (object)((IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent")); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters24.Add(item54); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles30.Add(item53); | |
Styles styles31 = A_1.Styles; | |
IStyle item55 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style24 = style; | |
style24.Selector = Selectors.OfType((Selector)null, typeof(MenuItem)); | |
ICollection<ISetter> setters25 = style24.Setters; | |
ISetter item56 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter26 = setter; | |
setter26.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter26; | |
DynamicResourceExtension dynamicResourceExtension20 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension20.ProvideValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter26.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters25.Add(item56); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles31.Add(item55); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(Slider)).Class("slider"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Slider.OrientationProperty, | |
Value = (object)Orientation.Horizontal | |
}, | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("1") | |
}, | |
new Setter | |
{ | |
Property = Layoutable.HorizontalAlignmentProperty, | |
Value = (object)HorizontalAlignment.Stretch | |
}, | |
new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Stretch | |
}, | |
new Setter | |
{ | |
Property = Slider.IsSnapToTickEnabledProperty, | |
Value = (object)true | |
}, | |
new Setter | |
{ | |
Property = Slider.TickFrequencyProperty, | |
Value = (object)0.1 | |
} | |
} | |
}); | |
Styles styles32 = A_1.Styles; | |
IStyle item57 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style25 = style; | |
style25.Selector = Selectors.OfType((Selector)null, typeof(StackPanel)).Class("drag"); | |
ICollection<ISetter> setters26 = style25.Setters; | |
ISetter item58 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter27 = setter; | |
setter27.Property = Panel.BackgroundProperty; | |
setter27.Value = (object)((IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent")); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters26.Add(item58); | |
style25.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Stretch | |
}); | |
style25.Setters.Add(new Setter | |
{ | |
Property = Layoutable.HorizontalAlignmentProperty, | |
Value = (object)HorizontalAlignment.Stretch | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles32.Add(item57); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TabControl)).Class("default"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TabControl)).Class("top"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TabControl.TabStripPlacementProperty, | |
Value = (object)Dock.Top | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TabControl)).Class("bottom"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TabControl.TabStripPlacementProperty, | |
Value = (object)Dock.Bottom | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TabControl)).Class("left"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TabControl.TabStripPlacementProperty, | |
Value = (object)Dock.Left | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TabControl)).Class("right"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TabControl.TabStripPlacementProperty, | |
Value = (object)Dock.Right | |
} | |
} | |
}); | |
Styles styles33 = A_1.Styles; | |
IStyle item59 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style26 = style; | |
style26.Selector = Selectors.OfType((Selector)null, typeof(TabItem)).Class("property"); | |
style26.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
style26.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4") | |
}); | |
ICollection<ISetter> setters27 = style26.Setters; | |
ISetter item60 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter28 = setter; | |
setter28.Property = TemplatedControl.FontSizeProperty; | |
obj = setter28; | |
DynamicResourceExtension dynamicResourceExtension21 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension21.ProvideValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter28.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters27.Add(item60); | |
style26.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.FontWeightProperty, | |
Value = (object)FontWeight.Normal | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles33.Add(item59); | |
Styles styles34 = A_1.Styles; | |
IStyle item61 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style27 = style; | |
style27.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("aboutTitle"); | |
style27.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
ICollection<ISetter> setters28 = style27.Setters; | |
ISetter item62 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter29 = setter; | |
setter29.Property = TextBlock.FontSizeProperty; | |
obj2 = setter29; | |
DynamicResourceExtension dynamicResourceExtension22 = new DynamicResourceExtension("FontSizeLarge"); | |
IServiceProvider serviceProvider22 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension22.ProvideValue(serviceProvider22); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter29.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters28.Add(item62); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles34.Add(item61); | |
Styles styles35 = A_1.Styles; | |
IStyle item63 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style28 = style; | |
style28.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("aboutText"); | |
style28.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
ICollection<ISetter> setters29 = style28.Setters; | |
ISetter item64 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter30 = setter; | |
setter30.Property = TextBlock.FontSizeProperty; | |
obj = setter30; | |
DynamicResourceExtension dynamicResourceExtension23 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider23 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension23.ProvideValue(serviceProvider23); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter30.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters29.Add(item64); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles35.Add(item63); | |
Styles styles36 = A_1.Styles; | |
IStyle item65 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style29 = style; | |
style29.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("autofit"); | |
style29.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("3,0,3,0") | |
}); | |
ICollection<ISetter> setters30 = style29.Setters; | |
ISetter item66 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter31 = setter; | |
setter31.Property = TextBlock.FontSizeProperty; | |
obj2 = setter31; | |
DynamicResourceExtension dynamicResourceExtension24 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider24 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension24.ProvideValue(serviceProvider24); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter31.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters30.Add(item66); | |
style29.Setters.Add(new Setter | |
{ | |
Property = TextBlock.TextAlignmentProperty, | |
Value = (object)TextAlignment.Left | |
}); | |
style29.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles36.Add(item65); | |
Styles styles37 = A_1.Styles; | |
IStyle item67 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style30 = style; | |
style30.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("center"); | |
style30.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("3,4,3,4") | |
}); | |
ICollection<ISetter> setters31 = style30.Setters; | |
ISetter item68 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter32 = setter; | |
setter32.Property = TextBlock.FontSizeProperty; | |
obj = setter32; | |
DynamicResourceExtension dynamicResourceExtension25 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider25 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension25.ProvideValue(serviceProvider25); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter32.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters31.Add(item68); | |
style30.Setters.Add(new Setter | |
{ | |
Property = TextBlock.TextAlignmentProperty, | |
Value = (object)TextAlignment.Center | |
}); | |
style30.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles37.Add(item67); | |
Styles styles38 = A_1.Styles; | |
IStyle item69 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style31 = style; | |
style31.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("default"); | |
style31.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
ICollection<ISetter> setters32 = style31.Setters; | |
ISetter item70 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter33 = setter; | |
setter33.Property = TextBlock.FontSizeProperty; | |
obj2 = setter33; | |
DynamicResourceExtension dynamicResourceExtension26 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider26 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension26.ProvideValue(serviceProvider26); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter33.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters32.Add(item70); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles38.Add(item69); | |
Styles styles39 = A_1.Styles; | |
IStyle item71 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style32 = style; | |
style32.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("drag"); | |
ICollection<ISetter> setters33 = style32.Setters; | |
ISetter item72 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter34 = setter; | |
setter34.Property = TextBlock.BackgroundProperty; | |
setter34.Value = (object)((IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent")); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters33.Add(item72); | |
style32.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Stretch | |
}); | |
style32.Setters.Add(new Setter | |
{ | |
Property = Layoutable.HorizontalAlignmentProperty, | |
Value = (object)HorizontalAlignment.Stretch | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles39.Add(item71); | |
Styles styles40 = A_1.Styles; | |
IStyle item73 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style33 = style; | |
style33.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("header"); | |
style33.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("3,4,3,4") | |
}); | |
ICollection<ISetter> setters34 = style33.Setters; | |
ISetter item74 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter35 = setter; | |
setter35.Property = TextBlock.FontSizeProperty; | |
obj = setter35; | |
DynamicResourceExtension dynamicResourceExtension27 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider27 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension27.ProvideValue(serviceProvider27); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter35.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters34.Add(item74); | |
style33.Setters.Add(new Setter | |
{ | |
Property = TextBlock.FontWeightProperty, | |
Value = (object)FontWeight.Bold | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles40.Add(item73); | |
Styles styles41 = A_1.Styles; | |
IStyle item75 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style34 = style; | |
style34.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("left"); | |
style34.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("3,4,3,4") | |
}); | |
ICollection<ISetter> setters35 = style34.Setters; | |
ISetter item76 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter36 = setter; | |
setter36.Property = TextBlock.FontSizeProperty; | |
obj2 = setter36; | |
DynamicResourceExtension dynamicResourceExtension28 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider28 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension28.ProvideValue(serviceProvider28); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter36.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters35.Add(item76); | |
style34.Setters.Add(new Setter | |
{ | |
Property = TextBlock.TextAlignmentProperty, | |
Value = (object)TextAlignment.Left | |
}); | |
style34.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles41.Add(item75); | |
Styles styles42 = A_1.Styles; | |
IStyle item77 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style35 = style; | |
style35.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("list"); | |
style35.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
ICollection<ISetter> setters36 = style35.Setters; | |
ISetter item78 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter37 = setter; | |
setter37.Property = TextBlock.FontSizeProperty; | |
obj = setter37; | |
DynamicResourceExtension dynamicResourceExtension29 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider29 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension29.ProvideValue(serviceProvider29); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter37.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters36.Add(item78); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles42.Add(item77); | |
Styles styles43 = A_1.Styles; | |
IStyle item79 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style36 = style; | |
style36.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("project"); | |
style36.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
ICollection<ISetter> setters37 = style36.Setters; | |
ISetter item80 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter38 = setter; | |
setter38.Property = TextBlock.FontSizeProperty; | |
obj2 = setter38; | |
DynamicResourceExtension dynamicResourceExtension30 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider30 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension30.ProvideValue(serviceProvider30); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter38.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters37.Add(item80); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles43.Add(item79); | |
Styles styles44 = A_1.Styles; | |
IStyle item81 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style37 = style; | |
style37.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("recent"); | |
style37.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters38 = style37.Setters; | |
ISetter item82 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter39 = setter; | |
setter39.Property = TextBlock.FontSizeProperty; | |
obj = setter39; | |
DynamicResourceExtension dynamicResourceExtension31 = new DynamicResourceExtension("FontSizeLarge"); | |
IServiceProvider serviceProvider31 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension31.ProvideValue(serviceProvider31); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter39.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters38.Add(item82); | |
style37.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
style37.Setters.Add(new Setter | |
{ | |
Property = Layoutable.HorizontalAlignmentProperty, | |
Value = (object)HorizontalAlignment.Right | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles44.Add(item81); | |
Styles styles45 = A_1.Styles; | |
IStyle item83 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style38 = style; | |
style38.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("recents"); | |
style38.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("9,6,9,6") | |
}); | |
ICollection<ISetter> setters39 = style38.Setters; | |
ISetter item84 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter40 = setter; | |
setter40.Property = TextBlock.FontSizeProperty; | |
obj2 = setter40; | |
DynamicResourceExtension dynamicResourceExtension32 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider32 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension32.ProvideValue(serviceProvider32); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter40.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters39.Add(item84); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles45.Add(item83); | |
Styles styles46 = A_1.Styles; | |
IStyle item85 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style39 = style; | |
style39.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("stats"); | |
style39.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters40 = style39.Setters; | |
ISetter item86 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter41 = setter; | |
setter41.Property = TextBlock.FontSizeProperty; | |
obj = setter41; | |
DynamicResourceExtension dynamicResourceExtension33 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider33 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension33.ProvideValue(serviceProvider33); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter41.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters40.Add(item86); | |
style39.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles46.Add(item85); | |
Styles styles47 = A_1.Styles; | |
IStyle item87 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style40 = style; | |
style40.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("tree"); | |
ICollection<ISetter> setters41 = style40.Setters; | |
ISetter item88 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter42 = setter; | |
setter42.Property = TextBlock.BackgroundProperty; | |
setter42.Value = (object)((IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent")); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters41.Add(item88); | |
style40.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
ICollection<ISetter> setters42 = style40.Setters; | |
ISetter item89 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter43 = setter; | |
setter43.Property = TextBlock.FontSizeProperty; | |
obj2 = setter43; | |
DynamicResourceExtension dynamicResourceExtension34 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider34 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension34.ProvideValue(serviceProvider34); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter43.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters42.Add(item89); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles47.Add(item87); | |
Styles styles48 = A_1.Styles; | |
IStyle item90 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style41 = style; | |
style41.Selector = Selectors.OfType((Selector)null, typeof(TextBlock)).Class("title"); | |
style41.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters43 = style41.Setters; | |
ISetter item91 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter44 = setter; | |
setter44.Property = TextBlock.FontSizeProperty; | |
obj = setter44; | |
DynamicResourceExtension dynamicResourceExtension35 = new DynamicResourceExtension("FontSizeLarge"); | |
IServiceProvider serviceProvider35 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension35.ProvideValue(serviceProvider35); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter44.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters43.Add(item91); | |
style41.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles48.Add(item90); | |
Styles styles49 = A_1.Styles; | |
IStyle item92 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style42 = style; | |
style42.Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("default"); | |
style42.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
style42.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters44 = style42.Setters; | |
ISetter item93 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter45 = setter; | |
setter45.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter45; | |
DynamicResourceExtension dynamicResourceExtension36 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider36 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension36.ProvideValue(serviceProvider36); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter45.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters44.Add(item93); | |
style42.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles49.Add(item92); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("default").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("default").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles50 = A_1.Styles; | |
IStyle item94 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style43 = style; | |
style43.Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("left"); | |
style43.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
style43.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters45 = style43.Setters; | |
ISetter item95 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter46 = setter; | |
setter46.Property = TemplatedControl.FontSizeProperty; | |
obj = setter46; | |
DynamicResourceExtension dynamicResourceExtension37 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider37 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension37.ProvideValue(serviceProvider37); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter46.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters45.Add(item95); | |
style43.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextAlignmentProperty, | |
Value = (object)TextAlignment.Left | |
}); | |
style43.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
style43.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles50.Add(item94); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("left").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("left").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles51 = A_1.Styles; | |
IStyle item96 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style44 = style; | |
style44.Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("center"); | |
style44.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
style44.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
ICollection<ISetter> setters46 = style44.Setters; | |
ISetter item97 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter47 = setter; | |
setter47.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter47; | |
DynamicResourceExtension dynamicResourceExtension38 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider38 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension38.ProvideValue(serviceProvider38); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter47.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters46.Add(item97); | |
style44.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextAlignmentProperty, | |
Value = (object)TextAlignment.Center | |
}); | |
style44.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
style44.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles51.Add(item96); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("center").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("center").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles52 = A_1.Styles; | |
IStyle item98 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style45 = style; | |
style45.Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("property"); | |
style45.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
style45.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("3,1,3,1") | |
}); | |
ICollection<ISetter> setters47 = style45.Setters; | |
ISetter item99 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter48 = setter; | |
setter48.Property = TemplatedControl.FontSizeProperty; | |
obj = setter48; | |
DynamicResourceExtension dynamicResourceExtension39 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider39 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension39.ProvideValue(serviceProvider39); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter48.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters47.Add(item99); | |
style45.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextAlignmentProperty, | |
Value = (object)TextAlignment.Left | |
}); | |
style45.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
style45.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles52.Add(item98); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("property").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("property").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles53 = A_1.Styles; | |
IStyle item100 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style46 = style; | |
style46.Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("autofit"); | |
style46.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4,0,4,0") | |
}); | |
style46.Setters.Add(new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
ICollection<ISetter> setters48 = style46.Setters; | |
ISetter item101 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter49 = setter; | |
setter49.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter49; | |
DynamicResourceExtension dynamicResourceExtension40 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider40 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension40.ProvideValue(serviceProvider40); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter49.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters48.Add(item101); | |
style46.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextAlignmentProperty, | |
Value = (object)TextAlignment.Center | |
}); | |
style46.Setters.Add(new Setter | |
{ | |
Property = Layoutable.VerticalAlignmentProperty, | |
Value = (object)VerticalAlignment.Center | |
}); | |
style46.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles53.Add(item100); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("autofit").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("autofit").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles54 = A_1.Styles; | |
IStyle item102 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style47 = style; | |
style47.Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("browser"); | |
style47.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4") | |
}); | |
ICollection<ISetter> setters49 = style47.Setters; | |
ISetter item103 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter50 = setter; | |
setter50.Property = TemplatedControl.FontSizeProperty; | |
obj = setter50; | |
DynamicResourceExtension dynamicResourceExtension41 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider41 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension41.ProvideValue(serviceProvider41); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter50.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters49.Add(item103); | |
style47.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextAlignmentProperty, | |
Value = (object)TextAlignment.Left | |
}); | |
style47.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
style47.Setters.Add(new Setter | |
{ | |
Property = TextBox.AcceptsReturnProperty, | |
Value = (object)true | |
}); | |
style47.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextWrappingProperty, | |
Value = (object)TextWrapping.NoWrap | |
}); | |
style47.Setters.Add(new Setter | |
{ | |
Property = ScrollViewer.HorizontalScrollBarVisibilityProperty, | |
Value = (object)ScrollBarVisibility.Auto | |
}); | |
style47.Setters.Add(new Setter | |
{ | |
Property = ScrollViewer.VerticalScrollBarVisibilityProperty, | |
Value = (object)ScrollBarVisibility.Auto | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles54.Add(item102); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("browser").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("browser").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
Styles styles55 = A_1.Styles; | |
IStyle item104 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style48 = style; | |
style48.Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("project"); | |
style48.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("2") | |
}); | |
ICollection<ISetter> setters50 = style48.Setters; | |
ISetter item105 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter51 = setter; | |
setter51.Property = TemplatedControl.FontSizeProperty; | |
obj2 = setter51; | |
DynamicResourceExtension dynamicResourceExtension42 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider42 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
obj = dynamicResourceExtension42.ProvideValue(serviceProvider42); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter51.Value = obj; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters50.Add(item105); | |
style48.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextAlignmentProperty, | |
Value = (object)TextAlignment.Left | |
}); | |
style48.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("0") | |
}); | |
style48.Setters.Add(new Setter | |
{ | |
Property = TextBox.AcceptsReturnProperty, | |
Value = (object)true | |
}); | |
style48.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextWrappingProperty, | |
Value = (object)TextWrapping.NoWrap | |
}); | |
style48.Setters.Add(new Setter | |
{ | |
Property = ScrollViewer.HorizontalScrollBarVisibilityProperty, | |
Value = (object)ScrollBarVisibility.Auto | |
}); | |
style48.Setters.Add(new Setter | |
{ | |
Property = ScrollViewer.VerticalScrollBarVisibilityProperty, | |
Value = (object)ScrollBarVisibility.Auto | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles55.Add(item104); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("project").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("0") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("project").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("0") | |
} | |
} | |
}); | |
Styles styles56 = A_1.Styles; | |
IStyle item106 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style49 = style; | |
style49.Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("code"); | |
style49.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4") | |
}); | |
ICollection<ISetter> setters51 = style49.Setters; | |
ISetter item107 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter52 = setter; | |
setter52.Property = TemplatedControl.FontSizeProperty; | |
obj = setter52; | |
DynamicResourceExtension dynamicResourceExtension43 = new DynamicResourceExtension("FontSizeNormal"); | |
IServiceProvider serviceProvider43 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
obj2 = dynamicResourceExtension43.ProvideValue(serviceProvider43); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter52.Value = obj2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters51.Add(item107); | |
style49.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextAlignmentProperty, | |
Value = (object)TextAlignment.Left | |
}); | |
style49.Setters.Add(new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}); | |
style49.Setters.Add(new Setter | |
{ | |
Property = TextBox.AcceptsReturnProperty, | |
Value = (object)true | |
}); | |
style49.Setters.Add(new Setter | |
{ | |
Property = TextBox.TextWrappingProperty, | |
Value = (object)TextWrapping.NoWrap | |
}); | |
style49.Setters.Add(new Setter | |
{ | |
Property = ScrollViewer.HorizontalScrollBarVisibilityProperty, | |
Value = (object)ScrollBarVisibility.Auto | |
}); | |
style49.Setters.Add(new Setter | |
{ | |
Property = ScrollViewer.VerticalScrollBarVisibilityProperty, | |
Value = (object)ScrollBarVisibility.Auto | |
}); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles56.Add(item106); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("code").Class(":pointerover").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TextBox)).Class("code").Class(":focus").Template().OfType(typeof(Border)).Name("border"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Border.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(ToolTip)), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TreeView)).Class("default"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = Layoutable.MarginProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("0") | |
}, | |
new Setter | |
{ | |
Property = TreeView.AutoScrollToSelectedItemProperty, | |
Value = (object)true | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TreeView)).Class("browser"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}, | |
new Setter | |
{ | |
Property = TreeView.AutoScrollToSelectedItemProperty, | |
Value = (object)true | |
} | |
} | |
}); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TreeView)).Class("project"), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TemplatedControl.PaddingProperty, | |
Value = (object)Thickness.Parse("4") | |
}, | |
new Setter | |
{ | |
Property = TemplatedControl.BorderThicknessProperty, | |
Value = (object)Thickness.Parse("1") | |
}, | |
new Setter | |
{ | |
Property = TreeView.AutoScrollToSelectedItemProperty, | |
Value = (object)true | |
} | |
} | |
}); | |
A_1.Resources.Add("ApplicationAccentBrushLow", SolidColorBrush.Parse("#007ACC")); | |
A_1.Resources.Add("ApplicationAccentBrushMed", SolidColorBrush.Parse("#1C97EA")); | |
A_1.Resources.Add("ApplicationAccentBrushHigh", SolidColorBrush.Parse("#52B0EF")); | |
A_1.Resources.Add("ApplicationAccentForegroundBrush", SolidColorBrush.Parse("#F0F0F0")); | |
A_1.Resources.Add("TransparentBrush", SolidColorBrush.Parse("#00FFFFFF")); | |
IDictionary<object, object> resources = A_1.Resources; | |
object key = "ColorCheckerBoard"; | |
VisualBrush visualBrush; | |
object value = visualBrush = new VisualBrush(); | |
context.ParentsStack.Add(visualBrush); | |
VisualBrush visualBrush2 = visualBrush; | |
visualBrush2.TileMode = TileMode.Tile; | |
visualBrush2.Stretch = Stretch.None; | |
visualBrush2.AlignmentX = AlignmentX.Left; | |
visualBrush2.AlignmentY = AlignmentY.Top; | |
visualBrush2.SourceRect = RelativeRect.Parse("0,0,20,20"); | |
visualBrush2.DestinationRect = RelativeRect.Parse("0,0,20,20"); | |
StackPanel stackPanel2; | |
StackPanel stackPanel = stackPanel2 = new StackPanel(); | |
((ISupportInitialize)stackPanel).BeginInit(); | |
visualBrush2.Visual = stackPanel; | |
StackPanel stackPanel3; | |
ISupportInitialize supportInitialize = stackPanel3 = stackPanel2; | |
context.ParentsStack.Add(stackPanel3); | |
StackPanel stackPanel4 = stackPanel3; | |
stackPanel4.Orientation = Orientation.Horizontal; | |
AvaloniaList<IControl> children = stackPanel4.Children; | |
StackPanel stackPanel6; | |
StackPanel stackPanel5 = stackPanel6 = new StackPanel(); | |
((ISupportInitialize)stackPanel5).BeginInit(); | |
children.Add(stackPanel5); | |
ISupportInitialize supportInitialize2 = stackPanel3 = stackPanel6; | |
context.ParentsStack.Add(stackPanel3); | |
StackPanel stackPanel7 = stackPanel3; | |
stackPanel7.Orientation = Orientation.Vertical; | |
AvaloniaList<IControl> children2 = stackPanel7.Children; | |
Rectangle rectangle2; | |
Rectangle rectangle = rectangle2 = new Rectangle(); | |
((ISupportInitialize)rectangle).BeginInit(); | |
children2.Add(rectangle); | |
Rectangle rectangle3; | |
ISupportInitialize supportInitialize3 = rectangle3 = rectangle2; | |
context.ParentsStack.Add(rectangle3); | |
Rectangle rectangle4 = rectangle3; | |
rectangle4.Width = 10.0; | |
rectangle4.Height = 10.0; | |
rectangle4.Fill = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "DarkGray"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children3 = stackPanel7.Children; | |
Rectangle rectangle6; | |
Rectangle rectangle5 = rectangle6 = new Rectangle(); | |
((ISupportInitialize)rectangle5).BeginInit(); | |
children3.Add(rectangle5); | |
ISupportInitialize supportInitialize4 = rectangle3 = rectangle6; | |
context.ParentsStack.Add(rectangle3); | |
Rectangle rectangle7 = rectangle3; | |
rectangle7.Width = 10.0; | |
rectangle7.Height = 10.0; | |
rectangle7.Fill = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "LightGray"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children4 = stackPanel4.Children; | |
StackPanel stackPanel9; | |
StackPanel stackPanel8 = stackPanel9 = new StackPanel(); | |
((ISupportInitialize)stackPanel8).BeginInit(); | |
children4.Add(stackPanel8); | |
ISupportInitialize supportInitialize5 = stackPanel3 = stackPanel9; | |
context.ParentsStack.Add(stackPanel3); | |
StackPanel stackPanel10 = stackPanel3; | |
stackPanel10.Orientation = Orientation.Vertical; | |
AvaloniaList<IControl> children5 = stackPanel10.Children; | |
Rectangle rectangle9; | |
Rectangle rectangle8 = rectangle9 = new Rectangle(); | |
((ISupportInitialize)rectangle8).BeginInit(); | |
children5.Add(rectangle8); | |
ISupportInitialize supportInitialize6 = rectangle3 = rectangle9; | |
context.ParentsStack.Add(rectangle3); | |
Rectangle rectangle10 = rectangle3; | |
rectangle10.Width = 10.0; | |
rectangle10.Height = 10.0; | |
rectangle10.Fill = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "LightGray"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
AvaloniaList<IControl> children6 = stackPanel10.Children; | |
Rectangle rectangle12; | |
Rectangle rectangle11 = rectangle12 = new Rectangle(); | |
((ISupportInitialize)rectangle11).BeginInit(); | |
children6.Add(rectangle11); | |
ISupportInitialize supportInitialize7 = rectangle3 = rectangle12; | |
context.ParentsStack.Add(rectangle3); | |
Rectangle rectangle13 = rectangle3; | |
rectangle13.Width = 10.0; | |
rectangle13.Height = 10.0; | |
rectangle13.Fill = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "DarkGray"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
resources.Add(key, value); | |
IDictionary<object, object> resources2 = A_1.Resources; | |
object key2 = "TemplateCheckerBoard"; | |
object value2 = visualBrush = new VisualBrush(); | |
context.ParentsStack.Add(visualBrush); | |
VisualBrush visualBrush3 = visualBrush; | |
visualBrush3.TileMode = TileMode.Tile; | |
visualBrush3.Stretch = Stretch.None; | |
visualBrush3.AlignmentX = AlignmentX.Left; | |
visualBrush3.AlignmentY = AlignmentY.Top; | |
visualBrush3.SourceRect = RelativeRect.Parse("0,0,20,20"); | |
visualBrush3.DestinationRect = RelativeRect.Parse("0,0,20,20"); | |
StackPanel stackPanel12; | |
StackPanel stackPanel11 = stackPanel12 = new StackPanel(); | |
((ISupportInitialize)stackPanel11).BeginInit(); | |
visualBrush3.Visual = stackPanel11; | |
ISupportInitialize supportInitialize8 = stackPanel3 = stackPanel12; | |
context.ParentsStack.Add(stackPanel3); | |
StackPanel stackPanel13 = stackPanel3; | |
stackPanel13.Orientation = Orientation.Horizontal; | |
AvaloniaList<IControl> children7 = stackPanel13.Children; | |
StackPanel stackPanel15; | |
StackPanel stackPanel14 = stackPanel15 = new StackPanel(); | |
((ISupportInitialize)stackPanel14).BeginInit(); | |
children7.Add(stackPanel14); | |
ISupportInitialize supportInitialize9 = stackPanel3 = stackPanel15; | |
context.ParentsStack.Add(stackPanel3); | |
StackPanel stackPanel16 = stackPanel3; | |
stackPanel16.Orientation = Orientation.Vertical; | |
AvaloniaList<IControl> children8 = stackPanel16.Children; | |
Rectangle rectangle15; | |
Rectangle rectangle14 = rectangle15 = new Rectangle(); | |
((ISupportInitialize)rectangle14).BeginInit(); | |
children8.Add(rectangle14); | |
ISupportInitialize supportInitialize10 = rectangle3 = rectangle15; | |
context.ParentsStack.Add(rectangle3); | |
Rectangle rectangle16 = rectangle3; | |
rectangle16.Width = 10.0; | |
rectangle16.Height = 10.0; | |
rectangle16.Fill = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "#FFF0F0F0"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
AvaloniaList<IControl> children9 = stackPanel16.Children; | |
Rectangle rectangle18; | |
Rectangle rectangle17 = rectangle18 = new Rectangle(); | |
((ISupportInitialize)rectangle17).BeginInit(); | |
children9.Add(rectangle17); | |
ISupportInitialize supportInitialize11 = rectangle3 = rectangle18; | |
context.ParentsStack.Add(rectangle3); | |
Rectangle rectangle19 = rectangle3; | |
rectangle19.Width = 10.0; | |
rectangle19.Height = 10.0; | |
rectangle19.Fill = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "#FFF5F5F5"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
AvaloniaList<IControl> children10 = stackPanel13.Children; | |
StackPanel stackPanel18; | |
StackPanel stackPanel17 = stackPanel18 = new StackPanel(); | |
((ISupportInitialize)stackPanel17).BeginInit(); | |
children10.Add(stackPanel17); | |
ISupportInitialize supportInitialize12 = stackPanel3 = stackPanel18; | |
context.ParentsStack.Add(stackPanel3); | |
StackPanel stackPanel19 = stackPanel3; | |
stackPanel19.Orientation = Orientation.Vertical; | |
AvaloniaList<IControl> children11 = stackPanel19.Children; | |
Rectangle rectangle21; | |
Rectangle rectangle20 = rectangle21 = new Rectangle(); | |
((ISupportInitialize)rectangle20).BeginInit(); | |
children11.Add(rectangle20); | |
ISupportInitialize supportInitialize13 = rectangle3 = rectangle21; | |
context.ParentsStack.Add(rectangle3); | |
Rectangle rectangle22 = rectangle3; | |
rectangle22.Width = 10.0; | |
rectangle22.Height = 10.0; | |
rectangle22.Fill = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "#FFF5F5F5"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
AvaloniaList<IControl> children12 = stackPanel19.Children; | |
Rectangle rectangle24; | |
Rectangle rectangle23 = rectangle24 = new Rectangle(); | |
((ISupportInitialize)rectangle23).BeginInit(); | |
children12.Add(rectangle23); | |
ISupportInitialize supportInitialize14 = rectangle3 = rectangle24; | |
context.ParentsStack.Add(rectangle3); | |
Rectangle rectangle25 = rectangle3; | |
rectangle25.Width = 10.0; | |
rectangle25.Height = 10.0; | |
rectangle25.Fill = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "#FFF0F0F0"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
resources2.Add(key2, value2); | |
A_1.Resources.Add("ArgbColorToBrushMultiConverter", new ArgbColorToBrushMultiConverter()); | |
A_1.Resources.Add("EditorToStatsMultiConverter", new EditorToStatsMultiConverter()); | |
A_1.Resources.Add("EditorToTitleMultiConverter", new EditorToTitleMultiConverter()); | |
A_1.Resources.Add("IsGroupConverter", new IsGroupConverter()); | |
A_1.Resources.Add("IsNullConverter", new IsNullConverter()); | |
A_1.Resources.Add("ObjectEqualityMultiConverter", new ObjectEqualityMultiConverter()); | |
A_1.Resources.Add("ObjectEqualsConverter", new ObjectEqualsConverter()); | |
A_1.Resources.Add("ObjectToJsonStringConverter", new ObjectToJsonStringConverter()); | |
A_1.Resources.Add("ObjectToObjectConverter", new ObjectToObjectConverter()); | |
A_1.Resources.Add("ObjectToTypeStringConverter", new ObjectToTypeStringConverter()); | |
A_1.Resources.Add("ObjectToXamlStringConverter", new ObjectToXamlStringConverter()); | |
A_1.Resources.Add("TreeViewSelectedItemToObjectConverter", new TreeViewSelectedItemToObjectConverter()); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IProjectEditor), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_89609d72-298e-4dec-9751-da82aabc587d.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IArgbColor), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_02f3490d-9fa4-4559-8ff5-a66c3cc2a389.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IArrowStyle), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_06d5f166-792c-4718-8130-8ee7f6ae48e4.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IFontStyle), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_e8309303-7fd6-491b-8d2c-1f62e8dd32cf.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ITextStyle), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_b5ad191f-9633-4386-b015-460f00aedce4.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ILineFixedLength), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_a28410ce-d89b-4b55-9702-633c837a928d.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ILineStyle), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_959fdee9-1304-4bb4-9ea9-f808f4a20c3f.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IShapeStyle), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_e6a443b3-126e-4fa2-8f37-448c6205c372.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IRecord), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_78bc19df-4069-41b0-a74e-c51ae19199b7.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IDatabase), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_d610324c-0b24-40dd-97d4-2408297fd6a8.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IContext), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_5fb860d9-dc5c-4d17-af04-ea69039a8cc9.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IMatrixObject), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_7a394219-e63d-41b0-89b3-0494ec5b4112.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IShapeState), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_e1c77e28-0241-4a28-a8cb-a411cb99f05b.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsArc), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_5b37f93f-a640-472a-ad38-b9b488a7f5d6.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsCubicBezier), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_700b866b-5693-4afb-8e92-1d24de6ccfdf.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsEllipse), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_f99dbe0c-1111-4b53-addb-7117f75fe3a2.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsImage), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_e3acfaa0-8957-48d9-a82d-4e03f143cd5d.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsLine), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_3d807aaf-eb5f-427f-952a-089af2b6e028.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsNone), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_5086272e-5862-4b4d-800b-4d0d77c9d406.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsPath), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_edd69419-eefd-4b7e-bd0b-b0de174204f5.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsPoint), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_52a6483d-fc4c-479c-97df-d5a77c1832f0.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsQuadraticBezier), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_f16cf24a-bff0-42bd-b584-e385b8faff76.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsRectangle), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_cfcddfe8-5f77-4577-acde-b76d14384a5a.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsSelection), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_211e23cd-39a7-4d84-b94d-9bd94ebef336.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ToolSettingsText), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_5106a958-a7b3-4aec-9c10-ce54500d2e38.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(PathToolSettingsArc), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_9162df47-e922-4da4-a122-b6a96bf68654.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(PathToolSettingsCubicBezier), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_b0d92600-ac78-49d1-89ba-9c5a0dc3f422.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(PathToolSettingsLine), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_a24cdd88-b828-43b9-82d7-76466bc4cc2b.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(PathToolSettingsMove), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_a3bb60df-8536-42ea-b70f-f53d91717fdc.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(PathToolSettingsQuadraticBezier), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_d945fd6d-b5d2-453c-a9a2-3b43e3cdcb85.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IPointShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_c6b472ce-403e-4ee3-bf42-1390ccc20467.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ILineShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_c5fc92af-ebba-4f33-8bf8-3846dc616c86.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IRectangleShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_aac4d31a-252b-496a-a00f-7261abe40670.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IEllipseShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_c0b328e8-ae5f-4038-bbeb-c36a0553fc49.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IImageShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_a2abc3c5-3508-4994-adca-296f9e031723.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ITextShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_e29d7eff-914e-45c1-8c76-36ac1bb08e84.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IArcShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_4f047840-46fb-4b01-83dc-2880ecd6368c.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ICubicBezierShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_9013bb5a-4e5d-4ce9-918e-22262e76c28a.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IQuadraticBezierShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_89bf6b0e-1167-4cc6-b400-8f9822eb8e8e.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IGroupShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_2e1da6c8-7139-4b0f-a4cb-e590ea17036f.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IPathShape), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_7ebfee34-3b8d-4c33-b092-98df69fc31af.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IPathSize), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_34d94a9c-01f6-45fd-b321-e53b69962b8b.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IPathFigure), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_9f055faa-80df-403e-85c3-666542b696cf.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IPathGeometry), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_0e6751e9-d418-475a-b608-a5332093ae1e.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IArcSegment), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_ead07a6e-84c2-4490-b064-b02ef0d168ad.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ICubicBezierSegment), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_5ad9ae13-3158-4712-89f9-170871ddb0ac.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ILineSegment), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_0dad43ce-13c0-49c5-a915-8cb185d0d4ec.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IPolyCubicBezierSegment), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_6900ed5b-648d-4f89-9ad8-9b2b2df7951f.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IPolyLineSegment), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_bb38edc7-5305-4e16-baf8-d24f032d3287.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IPolyQuadraticBezierSegment), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_415aee75-654a-432a-a610-6718324a86bd.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IQuadraticBezierSegment), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_fc595e6c-9b59-4230-8077-2a15d632fa6a.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ILibrary), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_e42ef66e-c8e9-43ed-90e3-b973fff5118f.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IOptions), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_a3e0cc76-5610-45b9-9126-7cb78c1a3668.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IProjectContainer), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_c948501f-a9ea-4e50-afc6-ecbb588ef814.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IDocumentContainer), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_5eb16a8a-8642-45a2-bffb-6f768936dc09.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(IPageContainer), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_1562308c-04c1-48e0-85d4-a3eaa5d32c85.Build), context) | |
}); | |
A_1.DataTemplates.Add(new DataTemplate | |
{ | |
DataType = typeof(ILayerContainer), | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_9d9dfbec-0e7a-430a-b6e1-31ab6d7bc13b.Build), context) | |
}); | |
AvaloniaList<IDataTemplate> dataTemplates = A_1.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item108 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(DashboardView); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_44e25f12-efd9-4964-ac76-baee59395732.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item108); | |
AvaloniaList<IDataTemplate> dataTemplates2 = A_1.DataTemplates; | |
IDataTemplate item109 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate3 = dataTemplate; | |
dataTemplate3.DataType = typeof(EditorView); | |
dataTemplate3.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_47db4ff8-3964-4ad1-ae0a-2f1864d13ebc.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates2.Add(item109); | |
AvaloniaList<IDataTemplate> dataTemplates3 = A_1.DataTemplates; | |
IDataTemplate item110 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate4 = dataTemplate; | |
dataTemplate4.DataType = typeof(ScriptView); | |
dataTemplate4.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_8d926ada-ab08-4eec-9063-32b0085eddaf.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates3.Add(item110); | |
AvaloniaList<IDataTemplate> dataTemplates4 = A_1.DataTemplates; | |
IDataTemplate item111 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate5 = dataTemplate; | |
dataTemplate5.DataType = typeof(BrowserView); | |
dataTemplate5.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_04c96298-f6d1-404b-91e0-6bc5bdc51f20.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates4.Add(item111); | |
AvaloniaList<IDataTemplate> dataTemplates5 = A_1.DataTemplates; | |
IDataTemplate item112 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate6 = dataTemplate; | |
dataTemplate6.DataType = typeof(DocumentView); | |
dataTemplate6.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_9e97bac6-5154-4f91-b060-3e4ef49fd2f6.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates5.Add(item112); | |
AvaloniaList<IDataTemplate> dataTemplates6 = A_1.DataTemplates; | |
IDataTemplate item113 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate7 = dataTemplate; | |
dataTemplate7.DataType = typeof(AboutView); | |
dataTemplate7.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_90621ee2-f1d9-4133-9085-14683826108e.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates6.Add(item113); | |
AvaloniaList<IDataTemplate> dataTemplates7 = A_1.DataTemplates; | |
IDataTemplate item114 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate8 = dataTemplate; | |
dataTemplate8.DataType = typeof(PageDocument); | |
dataTemplate8.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_8157209d-748e-49b8-85b2-9d0dfb56adda.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates7.Add(item114); | |
AvaloniaList<IDataTemplate> dataTemplates8 = A_1.DataTemplates; | |
IDataTemplate item115 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate9 = dataTemplate; | |
dataTemplate9.DataType = typeof(ScriptTool); | |
dataTemplate9.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_0feeb8ba-8905-4d6d-ba02-f7dd0b5915ef.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates8.Add(item115); | |
AvaloniaList<IDataTemplate> dataTemplates9 = A_1.DataTemplates; | |
IDataTemplate item116 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate10 = dataTemplate; | |
dataTemplate10.DataType = typeof(BrowserTool); | |
dataTemplate10.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_70e6b53e-648a-4dbc-adbe-e6e40288b863.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates9.Add(item116); | |
AvaloniaList<IDataTemplate> dataTemplates10 = A_1.DataTemplates; | |
IDataTemplate item117 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate11 = dataTemplate; | |
dataTemplate11.DataType = typeof(DocumentTool); | |
dataTemplate11.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_35ba2a38-cbf2-4565-ae1a-485dce4b3b60.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates10.Add(item117); | |
AvaloniaList<IDataTemplate> dataTemplates11 = A_1.DataTemplates; | |
IDataTemplate item118 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate12 = dataTemplate; | |
dataTemplate12.DataType = typeof(ProjectTool); | |
dataTemplate12.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_3c5b657f-84b7-44bc-ab3c-0ed2fa41781a.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates11.Add(item118); | |
AvaloniaList<IDataTemplate> dataTemplates12 = A_1.DataTemplates; | |
IDataTemplate item119 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate13 = dataTemplate; | |
dataTemplate13.DataType = typeof(OptionsTool); | |
dataTemplate13.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_5ed962cc-3105-4c49-b5e0-90077d7b12c2.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates12.Add(item119); | |
AvaloniaList<IDataTemplate> dataTemplates13 = A_1.DataTemplates; | |
IDataTemplate item120 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate14 = dataTemplate; | |
dataTemplate14.DataType = typeof(ImagesTool); | |
dataTemplate14.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_aeb88d08-c7f2-4de7-bb22-4234457a6d9f.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates13.Add(item120); | |
AvaloniaList<IDataTemplate> dataTemplates14 = A_1.DataTemplates; | |
IDataTemplate item121 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate15 = dataTemplate; | |
dataTemplate15.DataType = typeof(GroupsTool); | |
dataTemplate15.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_c3fddf9a-b823-432c-9e23-b5e46db72b58.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates14.Add(item121); | |
AvaloniaList<IDataTemplate> dataTemplates15 = A_1.DataTemplates; | |
IDataTemplate item122 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate16 = dataTemplate; | |
dataTemplate16.DataType = typeof(DatabasesTool); | |
dataTemplate16.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_3e0ce544-7f9b-49e0-8597-ecbc61411e52.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates15.Add(item122); | |
AvaloniaList<IDataTemplate> dataTemplates16 = A_1.DataTemplates; | |
IDataTemplate item123 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate17 = dataTemplate; | |
dataTemplate17.DataType = typeof(StylesTool); | |
dataTemplate17.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_b6622aa8-ef6d-4d67-a283-bb47bc86bae2.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates16.Add(item123); | |
AvaloniaList<IDataTemplate> dataTemplates17 = A_1.DataTemplates; | |
IDataTemplate item124 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate18 = dataTemplate; | |
dataTemplate18.DataType = typeof(TemplatesTool); | |
dataTemplate18.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_75805a45-66c5-48b4-897c-86acd328f986.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates17.Add(item124); | |
AvaloniaList<IDataTemplate> dataTemplates18 = A_1.DataTemplates; | |
IDataTemplate item125 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate19 = dataTemplate; | |
dataTemplate19.DataType = typeof(ContainerTool); | |
dataTemplate19.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_bd5b305b-ed06-4af4-8ca7-b041f06c542e.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates18.Add(item125); | |
AvaloniaList<IDataTemplate> dataTemplates19 = A_1.DataTemplates; | |
IDataTemplate item126 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate20 = dataTemplate; | |
dataTemplate20.DataType = typeof(ZoomTool); | |
dataTemplate20.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_8422cb1e-d296-44d8-b03e-bb942be232bf.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates19.Add(item126); | |
AvaloniaList<IDataTemplate> dataTemplates20 = A_1.DataTemplates; | |
IDataTemplate item127 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate21 = dataTemplate; | |
dataTemplate21.DataType = typeof(ToolsTool); | |
dataTemplate21.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_82b3530e-7437-4c53-b0a3-b188d451b193.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates20.Add(item127); | |
AvaloniaList<IDataTemplate> dataTemplates21 = A_1.DataTemplates; | |
IDataTemplate item128 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate22 = dataTemplate; | |
dataTemplate22.DataType = typeof(ShapeTool); | |
dataTemplate22.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_ed254c16-f5f2-4747-9eea-68ad4c76ec62.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates21.Add(item128); | |
AvaloniaList<IDataTemplate> dataTemplates22 = A_1.DataTemplates; | |
IDataTemplate item129 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate23 = dataTemplate; | |
dataTemplate23.DataType = typeof(DataTool); | |
dataTemplate23.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_c499b378-4d74-480e-8e22-7184da52c7bf.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates22.Add(item129); | |
AvaloniaList<IDataTemplate> dataTemplates23 = A_1.DataTemplates; | |
IDataTemplate item130 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate24 = dataTemplate; | |
dataTemplate24.DataType = typeof(StyleTool); | |
dataTemplate24.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_34b525c8-4c2a-49c0-8c1f-e1a5f2af52a0.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates23.Add(item130); | |
AvaloniaList<IDataTemplate> dataTemplates24 = A_1.DataTemplates; | |
IDataTemplate item131 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate25 = dataTemplate; | |
dataTemplate25.DataType = typeof(TemplateTool); | |
dataTemplate25.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_98ab144c-68db-41b2-b269-0073609fe486.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates24.Add(item131); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
} | |
// Token: 0x06000273 RID: 627 RVA: 0x00011C88 File Offset: 0x0000FE88 | |
public static void xaml(IServiceProvider A_0, AboutControl A_1) | |
{ | |
XamlIlContext.Context<AboutControl> context = new XamlIlContext.Context<AboutControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/AboutControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/AboutControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
A_1.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize2 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3; | |
ISupportInitialize supportInitialize3 = textBlock3 = textBlock2; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock4 = textBlock3; | |
Grid.SetColumn(textBlock4, 0); | |
Grid.SetRow(textBlock4, 0); | |
Grid.SetColumnSpan(textBlock4, 2); | |
textBlock4.Classes = Classes.Parse("aboutTitle"); | |
object provideTargetObject = textBlock4; | |
BindingExtension bindingExtension = new BindingExtension("AboutInfo.Title"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock4, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBlock textBlock6; | |
TextBlock textBlock5 = textBlock6 = new TextBlock(); | |
((ISupportInitialize)textBlock5).BeginInit(); | |
children2.Add(textBlock5); | |
TextBlock textBlock7 = textBlock6; | |
Grid.SetColumn(textBlock7, 0); | |
Grid.SetRow(textBlock7, 1); | |
textBlock7.Classes = Classes.Parse("aboutText"); | |
textBlock7.Text = "Version"; | |
((ISupportInitialize)textBlock7).EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock9; | |
TextBlock textBlock8 = textBlock9 = new TextBlock(); | |
((ISupportInitialize)textBlock8).BeginInit(); | |
children3.Add(textBlock8); | |
ISupportInitialize supportInitialize4 = textBlock3 = textBlock9; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock10 = textBlock3; | |
Grid.SetColumn(textBlock10, 1); | |
Grid.SetRow(textBlock10, 1); | |
textBlock10.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock10; | |
BindingExtension bindingExtension2 = new BindingExtension("AboutInfo.Version"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock10, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
TextBlock textBlock12; | |
TextBlock textBlock11 = textBlock12 = new TextBlock(); | |
((ISupportInitialize)textBlock11).BeginInit(); | |
children4.Add(textBlock11); | |
TextBlock textBlock13 = textBlock12; | |
Grid.SetColumn(textBlock13, 0); | |
Grid.SetRow(textBlock13, 2); | |
textBlock13.Classes = Classes.Parse("aboutText"); | |
textBlock13.Text = "Description"; | |
((ISupportInitialize)textBlock13).EndInit(); | |
AvaloniaList<IControl> children5 = grid4.Children; | |
TextBlock textBlock15; | |
TextBlock textBlock14 = textBlock15 = new TextBlock(); | |
((ISupportInitialize)textBlock14).BeginInit(); | |
children5.Add(textBlock14); | |
ISupportInitialize supportInitialize5 = textBlock3 = textBlock15; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock16 = textBlock3; | |
Grid.SetColumn(textBlock16, 1); | |
Grid.SetRow(textBlock16, 2); | |
textBlock16.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock16; | |
BindingExtension bindingExtension3 = new BindingExtension("AboutInfo.Description"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock16, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children6 = grid4.Children; | |
TextBlock textBlock18; | |
TextBlock textBlock17 = textBlock18 = new TextBlock(); | |
((ISupportInitialize)textBlock17).BeginInit(); | |
children6.Add(textBlock17); | |
TextBlock textBlock19 = textBlock18; | |
Grid.SetColumn(textBlock19, 0); | |
Grid.SetRow(textBlock19, 3); | |
textBlock19.Classes = Classes.Parse("aboutText"); | |
textBlock19.Text = "Copyright"; | |
((ISupportInitialize)textBlock19).EndInit(); | |
AvaloniaList<IControl> children7 = grid4.Children; | |
TextBlock textBlock21; | |
TextBlock textBlock20 = textBlock21 = new TextBlock(); | |
((ISupportInitialize)textBlock20).BeginInit(); | |
children7.Add(textBlock20); | |
ISupportInitialize supportInitialize6 = textBlock3 = textBlock21; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock22 = textBlock3; | |
Grid.SetColumn(textBlock22, 1); | |
Grid.SetRow(textBlock22, 3); | |
textBlock22.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock22; | |
BindingExtension bindingExtension4 = new BindingExtension("AboutInfo.Copyright"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock22, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
AvaloniaList<IControl> children8 = grid4.Children; | |
TextBlock textBlock24; | |
TextBlock textBlock23 = textBlock24 = new TextBlock(); | |
((ISupportInitialize)textBlock23).BeginInit(); | |
children8.Add(textBlock23); | |
TextBlock textBlock25 = textBlock24; | |
Grid.SetColumn(textBlock25, 0); | |
Grid.SetRow(textBlock25, 4); | |
textBlock25.Classes = Classes.Parse("aboutText"); | |
textBlock25.Text = "License"; | |
((ISupportInitialize)textBlock25).EndInit(); | |
AvaloniaList<IControl> children9 = grid4.Children; | |
TextBlock textBlock27; | |
TextBlock textBlock26 = textBlock27 = new TextBlock(); | |
((ISupportInitialize)textBlock26).BeginInit(); | |
children9.Add(textBlock26); | |
ISupportInitialize supportInitialize7 = textBlock3 = textBlock27; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock28 = textBlock3; | |
Grid.SetColumn(textBlock28, 1); | |
Grid.SetRow(textBlock28, 4); | |
textBlock28.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock28; | |
BindingExtension bindingExtension5 = new BindingExtension("AboutInfo.License"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock28, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
AvaloniaList<IControl> children10 = grid4.Children; | |
TextBlock textBlock30; | |
TextBlock textBlock29 = textBlock30 = new TextBlock(); | |
((ISupportInitialize)textBlock29).BeginInit(); | |
children10.Add(textBlock29); | |
TextBlock textBlock31 = textBlock30; | |
Grid.SetColumn(textBlock31, 0); | |
Grid.SetRow(textBlock31, 5); | |
textBlock31.Classes = Classes.Parse("aboutText"); | |
textBlock31.Text = "OperatingSystem"; | |
((ISupportInitialize)textBlock31).EndInit(); | |
AvaloniaList<IControl> children11 = grid4.Children; | |
TextBlock textBlock33; | |
TextBlock textBlock32 = textBlock33 = new TextBlock(); | |
((ISupportInitialize)textBlock32).BeginInit(); | |
children11.Add(textBlock32); | |
ISupportInitialize supportInitialize8 = textBlock3 = textBlock33; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock34 = textBlock3; | |
Grid.SetColumn(textBlock34, 1); | |
Grid.SetRow(textBlock34, 5); | |
textBlock34.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock34; | |
BindingExtension bindingExtension6 = new BindingExtension("AboutInfo.OperatingSystem"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock34, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
AvaloniaList<IControl> children12 = grid4.Children; | |
TextBlock textBlock36; | |
TextBlock textBlock35 = textBlock36 = new TextBlock(); | |
((ISupportInitialize)textBlock35).BeginInit(); | |
children12.Add(textBlock35); | |
TextBlock textBlock37 = textBlock36; | |
Grid.SetColumn(textBlock37, 0); | |
Grid.SetRow(textBlock37, 6); | |
textBlock37.Classes = Classes.Parse("aboutText"); | |
textBlock37.Text = "IsDesktop"; | |
((ISupportInitialize)textBlock37).EndInit(); | |
AvaloniaList<IControl> children13 = grid4.Children; | |
TextBlock textBlock39; | |
TextBlock textBlock38 = textBlock39 = new TextBlock(); | |
((ISupportInitialize)textBlock38).BeginInit(); | |
children13.Add(textBlock38); | |
ISupportInitialize supportInitialize9 = textBlock3 = textBlock39; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock40 = textBlock3; | |
Grid.SetColumn(textBlock40, 1); | |
Grid.SetRow(textBlock40, 6); | |
textBlock40.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock40; | |
BindingExtension bindingExtension7 = new BindingExtension("AboutInfo.IsDesktop"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock40, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
AvaloniaList<IControl> children14 = grid4.Children; | |
TextBlock textBlock42; | |
TextBlock textBlock41 = textBlock42 = new TextBlock(); | |
((ISupportInitialize)textBlock41).BeginInit(); | |
children14.Add(textBlock41); | |
TextBlock textBlock43 = textBlock42; | |
Grid.SetColumn(textBlock43, 0); | |
Grid.SetRow(textBlock43, 7); | |
textBlock43.Classes = Classes.Parse("aboutText"); | |
textBlock43.Text = "IsMobile"; | |
((ISupportInitialize)textBlock43).EndInit(); | |
AvaloniaList<IControl> children15 = grid4.Children; | |
TextBlock textBlock45; | |
TextBlock textBlock44 = textBlock45 = new TextBlock(); | |
((ISupportInitialize)textBlock44).BeginInit(); | |
children15.Add(textBlock44); | |
ISupportInitialize supportInitialize10 = textBlock3 = textBlock45; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock46 = textBlock3; | |
Grid.SetColumn(textBlock46, 1); | |
Grid.SetRow(textBlock46, 7); | |
textBlock46.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock46; | |
BindingExtension bindingExtension8 = new BindingExtension("AboutInfo.IsMobile"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock46, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
AvaloniaList<IControl> children16 = grid4.Children; | |
TextBlock textBlock48; | |
TextBlock textBlock47 = textBlock48 = new TextBlock(); | |
((ISupportInitialize)textBlock47).BeginInit(); | |
children16.Add(textBlock47); | |
TextBlock textBlock49 = textBlock48; | |
Grid.SetColumn(textBlock49, 0); | |
Grid.SetRow(textBlock49, 8); | |
textBlock49.Classes = Classes.Parse("aboutText"); | |
textBlock49.Text = "IsCoreClr"; | |
((ISupportInitialize)textBlock49).EndInit(); | |
AvaloniaList<IControl> children17 = grid4.Children; | |
TextBlock textBlock51; | |
TextBlock textBlock50 = textBlock51 = new TextBlock(); | |
((ISupportInitialize)textBlock50).BeginInit(); | |
children17.Add(textBlock50); | |
ISupportInitialize supportInitialize11 = textBlock3 = textBlock51; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock52 = textBlock3; | |
Grid.SetColumn(textBlock52, 1); | |
Grid.SetRow(textBlock52, 8); | |
textBlock52.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock52; | |
BindingExtension bindingExtension9 = new BindingExtension("AboutInfo.IsCoreClr"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock52, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
AvaloniaList<IControl> children18 = grid4.Children; | |
TextBlock textBlock54; | |
TextBlock textBlock53 = textBlock54 = new TextBlock(); | |
((ISupportInitialize)textBlock53).BeginInit(); | |
children18.Add(textBlock53); | |
TextBlock textBlock55 = textBlock54; | |
Grid.SetColumn(textBlock55, 0); | |
Grid.SetRow(textBlock55, 9); | |
textBlock55.Classes = Classes.Parse("aboutText"); | |
textBlock55.Text = "IsMono"; | |
((ISupportInitialize)textBlock55).EndInit(); | |
AvaloniaList<IControl> children19 = grid4.Children; | |
TextBlock textBlock57; | |
TextBlock textBlock56 = textBlock57 = new TextBlock(); | |
((ISupportInitialize)textBlock56).BeginInit(); | |
children19.Add(textBlock56); | |
ISupportInitialize supportInitialize12 = textBlock3 = textBlock57; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock58 = textBlock3; | |
Grid.SetColumn(textBlock58, 1); | |
Grid.SetRow(textBlock58, 9); | |
textBlock58.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock58; | |
BindingExtension bindingExtension10 = new BindingExtension("AboutInfo.IsMono"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock58, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
AvaloniaList<IControl> children20 = grid4.Children; | |
TextBlock textBlock60; | |
TextBlock textBlock59 = textBlock60 = new TextBlock(); | |
((ISupportInitialize)textBlock59).BeginInit(); | |
children20.Add(textBlock59); | |
TextBlock textBlock61 = textBlock60; | |
Grid.SetColumn(textBlock61, 0); | |
Grid.SetRow(textBlock61, 10); | |
textBlock61.Classes = Classes.Parse("aboutText"); | |
textBlock61.Text = "IsDotNetFramework"; | |
((ISupportInitialize)textBlock61).EndInit(); | |
AvaloniaList<IControl> children21 = grid4.Children; | |
TextBlock textBlock63; | |
TextBlock textBlock62 = textBlock63 = new TextBlock(); | |
((ISupportInitialize)textBlock62).BeginInit(); | |
children21.Add(textBlock62); | |
ISupportInitialize supportInitialize13 = textBlock3 = textBlock63; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock64 = textBlock3; | |
Grid.SetColumn(textBlock64, 1); | |
Grid.SetRow(textBlock64, 10); | |
textBlock64.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock64; | |
BindingExtension bindingExtension11 = new BindingExtension("AboutInfo.IsDotNetFramework"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock64, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
AvaloniaList<IControl> children22 = grid4.Children; | |
TextBlock textBlock66; | |
TextBlock textBlock65 = textBlock66 = new TextBlock(); | |
((ISupportInitialize)textBlock65).BeginInit(); | |
children22.Add(textBlock65); | |
TextBlock textBlock67 = textBlock66; | |
Grid.SetColumn(textBlock67, 0); | |
Grid.SetRow(textBlock67, 11); | |
textBlock67.Classes = Classes.Parse("aboutText"); | |
textBlock67.Text = "IsUnix"; | |
((ISupportInitialize)textBlock67).EndInit(); | |
AvaloniaList<IControl> children23 = grid4.Children; | |
TextBlock textBlock69; | |
TextBlock textBlock68 = textBlock69 = new TextBlock(); | |
((ISupportInitialize)textBlock68).BeginInit(); | |
children23.Add(textBlock68); | |
ISupportInitialize supportInitialize14 = textBlock3 = textBlock69; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock70 = textBlock3; | |
Grid.SetColumn(textBlock70, 1); | |
Grid.SetRow(textBlock70, 11); | |
textBlock70.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock70; | |
BindingExtension bindingExtension12 = new BindingExtension("AboutInfo.IsUnix"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock70, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
AvaloniaList<IControl> children24 = grid4.Children; | |
TextBlock textBlock72; | |
TextBlock textBlock71 = textBlock72 = new TextBlock(); | |
((ISupportInitialize)textBlock71).BeginInit(); | |
children24.Add(textBlock71); | |
TextBlock textBlock73 = textBlock72; | |
Grid.SetColumn(textBlock73, 0); | |
Grid.SetRow(textBlock73, 12); | |
textBlock73.Classes = Classes.Parse("aboutText"); | |
textBlock73.Text = "WindowingSubsystem"; | |
((ISupportInitialize)textBlock73).EndInit(); | |
AvaloniaList<IControl> children25 = grid4.Children; | |
TextBlock textBlock75; | |
TextBlock textBlock74 = textBlock75 = new TextBlock(); | |
((ISupportInitialize)textBlock74).BeginInit(); | |
children25.Add(textBlock74); | |
ISupportInitialize supportInitialize15 = textBlock3 = textBlock75; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock76 = textBlock3; | |
Grid.SetColumn(textBlock76, 1); | |
Grid.SetRow(textBlock76, 12); | |
textBlock76.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock76; | |
BindingExtension bindingExtension13 = new BindingExtension("AboutInfo.WindowingSubsystemName"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock76, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize15.EndInit(); | |
AvaloniaList<IControl> children26 = grid4.Children; | |
TextBlock textBlock78; | |
TextBlock textBlock77 = textBlock78 = new TextBlock(); | |
((ISupportInitialize)textBlock77).BeginInit(); | |
children26.Add(textBlock77); | |
TextBlock textBlock79 = textBlock78; | |
Grid.SetColumn(textBlock79, 0); | |
Grid.SetRow(textBlock79, 13); | |
textBlock79.Classes = Classes.Parse("aboutText"); | |
textBlock79.Text = "RenderingSubsystem"; | |
((ISupportInitialize)textBlock79).EndInit(); | |
AvaloniaList<IControl> children27 = grid4.Children; | |
TextBlock textBlock81; | |
TextBlock textBlock80 = textBlock81 = new TextBlock(); | |
((ISupportInitialize)textBlock80).BeginInit(); | |
children27.Add(textBlock80); | |
ISupportInitialize supportInitialize16 = textBlock3 = textBlock81; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock82 = textBlock3; | |
Grid.SetColumn(textBlock82, 1); | |
Grid.SetRow(textBlock82, 13); | |
textBlock82.Classes = Classes.Parse("aboutText"); | |
provideTargetObject = textBlock82; | |
BindingExtension bindingExtension14 = new BindingExtension("AboutInfo.RenderingSubsystemName"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock82, TextBlock.TextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize16.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000274 RID: 628 RVA: 0x00012F0C File Offset: 0x0001110C | |
public static void xaml(IServiceProvider A_0, AboutMenuControl A_1) | |
{ | |
XamlIlContext.Context<AboutMenuControl> context = new XamlIlContext.Context<AboutMenuControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/AboutMenuControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/AboutMenuControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
A_1.Content = menu; | |
Menu menu3; | |
ISupportInitialize supportInitialize = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
menu4.Classes = Classes.Parse("default"); | |
menu4.ItemsPanel = new ItemsPanelTemplate | |
{ | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_017056b8-685a-4db6-a01b-51ba5de8e4b0.Build), context) | |
}; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
object obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize2 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "_File"; | |
IEnumerable items2 = menuItem4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj = (object)menuItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize3 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "E_xit"; | |
obj = menuItem7; | |
BindingExtension bindingExtension = new BindingExtension("Platform.OnExit"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items3 = menu4.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj = (object)menuItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize4 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "_View"; | |
IEnumerable items4 = menuItem10.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj = (object)menuItem11; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "_Script Editor..."; | |
obj = menuItem13; | |
BindingExtension bindingExtension2 = new BindingExtension("Platform.OnScriptEditor"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items5 = menuItem10.Items; | |
Separator separator2; | |
Separator separator = separator2 = new Separator(); | |
((ISupportInitialize)separator).BeginInit(); | |
obj = (object)separator; | |
((IList)items5).Add(obj); | |
((ISupportInitialize)separator2).EndInit(); | |
IEnumerable items6 = menuItem10.Items; | |
MenuItem menuItem15; | |
MenuItem menuItem14 = menuItem15 = new MenuItem(); | |
((ISupportInitialize)menuItem14).BeginInit(); | |
obj = (object)menuItem14; | |
((IList)items6).Add(obj); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem15; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem16 = menuItem3; | |
menuItem16.Header = "_Views"; | |
obj = menuItem16; | |
BindingExtension bindingExtension3 = new BindingExtension("Layout.Views"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, ItemsControl.ItemsProperty, context, value); | |
Styles styles = menuItem16.Styles; | |
Style style; | |
IStyle item = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style2 = style; | |
style2.Selector = Selectors.OfType((Selector)null, typeof(MenuItem)); | |
ICollection<ISetter> setters = style2.Setters; | |
Setter setter; | |
ISetter item2 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter2 = setter; | |
setter2.Property = HeaderedSelectingItemsControl.HeaderProperty; | |
obj = setter2; | |
BindingExtension bindingExtension4 = new BindingExtension("Title"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter2.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters.Add(item2); | |
ICollection<ISetter> setters2 = style2.Setters; | |
ISetter item3 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter3 = setter; | |
setter3.Property = MenuItem.CommandProperty; | |
obj = setter3; | |
BindingExtension bindingExtension5 = new BindingExtension("$parent[UserControl].DataContext.OnNavigate"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter3.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters2.Add(item3); | |
ICollection<ISetter> setters3 = style2.Setters; | |
ISetter item4 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter4 = setter; | |
setter4.Property = MenuItem.CommandParameterProperty; | |
obj = setter4; | |
BindingExtension bindingExtension6 = new BindingExtension(); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter4.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters3.Add(item4); | |
ICollection<ISetter> setters4 = style2.Setters; | |
ISetter item5 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter5 = setter; | |
setter5.Property = MenuItem.IconProperty; | |
Template template; | |
object value2 = template = new Template(); | |
context.ParentsStack.Add(template); | |
template.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_7731ff94-afed-43de-9918-ea7bd21fd993.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setter5.Value = value2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters4.Add(item5); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000275 RID: 629 RVA: 0x000136F8 File Offset: 0x000118F8 | |
public static void xaml(IServiceProvider A_0, BrowserControl A_1) | |
{ | |
XamlIlContext.Context<BrowserControl> context = new XamlIlContext.Context<BrowserControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/BrowserControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/BrowserControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Resources.Add("ObjectToJsonStringConverter", new ObjectToJsonStringConverter()); | |
A_1.Resources.Add("ObjectToTypeStringConverter", new ObjectToTypeStringConverter()); | |
A_1.Resources.Add("ObjectToXamlStringConverter", new ObjectToXamlStringConverter()); | |
A_1.Resources.Add("TreeViewSelectedItemToObjectConverter", new TreeViewSelectedItemToObjectConverter()); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("250,Auto,*"); | |
grid4.RowDefinitions = RowDefinitions.Parse("*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TreeView treeView2; | |
TreeView treeView = treeView2 = new TreeView(); | |
((ISupportInitialize)treeView).BeginInit(); | |
children.Add(treeView); | |
TreeView treeView3; | |
ISupportInitialize supportInitialize2 = treeView3 = treeView2; | |
context.ParentsStack.Add(treeView3); | |
TreeView treeView4 = treeView3; | |
StyledElement styledElement = (StyledElement)treeView4; | |
string name = "project"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
treeView4.Classes = Classes.Parse("browser"); | |
Grid.SetColumn(treeView4, 0); | |
Grid.SetRow(treeView4, 0); | |
treeView4.Margin = Thickness.Parse("6,6,0,6"); | |
List<KeyBinding> keyBindings = treeView4.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj2; | |
object obj = obj2 = keyBinding; | |
BindingExtension bindingExtension = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
IBinding binding = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, KeyBinding.CommandProperty, context, binding); | |
obj2 = obj; | |
BindingExtension bindingExtension2 = new BindingExtension("#project.SelectedItem"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, KeyBinding.CommandParameterProperty, context, binding); | |
obj.Gesture = KeyGesture.Parse("Ctrl+E"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item); | |
IEnumerable items = treeView4.Items; | |
TreeViewItem treeViewItem2; | |
TreeViewItem treeViewItem = treeViewItem2 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem).BeginInit(); | |
obj2 = (object)treeViewItem; | |
((IList)items).Add(obj2); | |
TreeViewItem treeViewItem3; | |
ISupportInitialize supportInitialize3 = treeViewItem3 = treeViewItem2; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem4 = treeViewItem3; | |
treeViewItem4.Header = "Project"; | |
obj2 = treeViewItem4; | |
BindingExtension bindingExtension3 = new BindingExtension("Project"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem4, StyledElement.DataContextProperty, context, binding); | |
treeViewItem4.IsExpanded = true; | |
ContextMenu contextMenu2; | |
ContextMenu contextMenu = contextMenu2 = new ContextMenu(); | |
((ISupportInitialize)contextMenu).BeginInit(); | |
treeViewItem4.ContextMenu = contextMenu; | |
ContextMenu contextMenu3; | |
ISupportInitialize supportInitialize4 = contextMenu3 = contextMenu2; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu4 = contextMenu3; | |
contextMenu4.Classes = Classes.Parse("default"); | |
IEnumerable items2 = contextMenu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
obj2 = (object)menuItem; | |
((IList)items2).Add(obj2); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "E_xport"; | |
obj2 = menuItem4; | |
BindingExtension bindingExtension4 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem4; | |
BindingExtension bindingExtension5 = new BindingExtension(); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
IEnumerable items3 = treeViewItem4.Items; | |
TreeViewItem treeViewItem6; | |
TreeViewItem treeViewItem5 = treeViewItem6 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem5).BeginInit(); | |
obj2 = (object)treeViewItem5; | |
((IList)items3).Add(obj2); | |
ISupportInitialize supportInitialize6 = treeViewItem3 = treeViewItem6; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem7 = treeViewItem3; | |
treeViewItem7.Header = "Styles"; | |
obj2 = treeViewItem7; | |
BindingExtension bindingExtension6 = new BindingExtension("StyleLibraries"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem7, StyledElement.DataContextProperty, context, binding); | |
obj2 = treeViewItem7; | |
BindingExtension bindingExtension7 = new BindingExtension(); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
binding = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem7, ItemsControl.ItemsProperty, context, binding); | |
ContextMenu contextMenu6; | |
ContextMenu contextMenu5 = contextMenu6 = new ContextMenu(); | |
((ISupportInitialize)contextMenu5).BeginInit(); | |
treeViewItem7.ContextMenu = contextMenu5; | |
ISupportInitialize supportInitialize7 = contextMenu3 = contextMenu6; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu7 = contextMenu3; | |
contextMenu7.Classes = Classes.Parse("default"); | |
IEnumerable items4 = contextMenu7.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj2 = (object)menuItem5; | |
((IList)items4).Add(obj2); | |
ISupportInitialize supportInitialize8 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "E_xport"; | |
obj2 = menuItem7; | |
BindingExtension bindingExtension8 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem7; | |
BindingExtension bindingExtension9 = new BindingExtension(); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
treeViewItem7.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TreeViewItem)), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TreeViewItem.IsExpandedProperty, | |
Value = (object)false | |
} | |
} | |
}); | |
AvaloniaList<IDataTemplate> dataTemplates = treeViewItem7.DataTemplates; | |
TreeDataTemplate treeDataTemplate; | |
IDataTemplate item2 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate2 = treeDataTemplate; | |
treeDataTemplate2.DataType = typeof(ILibrary); | |
obj2 = treeDataTemplate2; | |
BindingExtension bindingExtension10 = new BindingExtension("Items"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate2.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate2, "ItemsSource", context, binding); | |
} | |
treeDataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_d78f6ec7-ee25-43a9-a345-3474efd3c5db.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item2); | |
AvaloniaList<IDataTemplate> dataTemplates2 = treeViewItem7.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item3 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IShapeStyle); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_1dbf6fd3-be4f-4ac0-b246-5370abe1d9ec.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates2.Add(item3); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
IEnumerable items5 = treeViewItem4.Items; | |
TreeViewItem treeViewItem9; | |
TreeViewItem treeViewItem8 = treeViewItem9 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem8).BeginInit(); | |
obj2 = (object)treeViewItem8; | |
((IList)items5).Add(obj2); | |
ISupportInitialize supportInitialize9 = treeViewItem3 = treeViewItem9; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem10 = treeViewItem3; | |
treeViewItem10.Header = "Groups"; | |
obj2 = treeViewItem10; | |
BindingExtension bindingExtension11 = new BindingExtension("GroupLibraries"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem10, StyledElement.DataContextProperty, context, binding); | |
obj2 = treeViewItem10; | |
BindingExtension bindingExtension12 = new BindingExtension(); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
binding = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem10, ItemsControl.ItemsProperty, context, binding); | |
ContextMenu contextMenu9; | |
ContextMenu contextMenu8 = contextMenu9 = new ContextMenu(); | |
((ISupportInitialize)contextMenu8).BeginInit(); | |
treeViewItem10.ContextMenu = contextMenu8; | |
ISupportInitialize supportInitialize10 = contextMenu3 = contextMenu9; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu10 = contextMenu3; | |
contextMenu10.Classes = Classes.Parse("default"); | |
IEnumerable items6 = contextMenu10.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj2 = (object)menuItem8; | |
((IList)items6).Add(obj2); | |
ISupportInitialize supportInitialize11 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "E_xport"; | |
obj2 = menuItem10; | |
BindingExtension bindingExtension13 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem10; | |
BindingExtension bindingExtension14 = new BindingExtension(); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
treeViewItem10.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TreeViewItem)), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TreeViewItem.IsExpandedProperty, | |
Value = (object)false | |
} | |
} | |
}); | |
AvaloniaList<IDataTemplate> dataTemplates3 = treeViewItem10.DataTemplates; | |
IDataTemplate item4 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate3 = treeDataTemplate; | |
treeDataTemplate3.DataType = typeof(ILibrary); | |
obj2 = treeDataTemplate3; | |
BindingExtension bindingExtension15 = new BindingExtension("Items"); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate3.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate3, "ItemsSource", context, binding); | |
} | |
treeDataTemplate3.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_0ae1f4da-3a41-4937-9cb9-f2cbd0e91106.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates3.Add(item4); | |
AvaloniaList<IDataTemplate> dataTemplates4 = treeViewItem10.DataTemplates; | |
IDataTemplate item5 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate4 = treeDataTemplate; | |
treeDataTemplate4.DataType = typeof(IGroupShape); | |
obj2 = treeDataTemplate4; | |
BindingExtension bindingExtension16 = new BindingExtension("Resources"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate4.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate4, "ItemsSource", context, binding); | |
} | |
treeDataTemplate4.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_9720193a-1200-41a6-a4cd-99a8adb5dc7b.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates4.Add(item5); | |
AvaloniaList<IDataTemplate> dataTemplates5 = treeViewItem10.DataTemplates; | |
IDataTemplate item6 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate3 = dataTemplate; | |
dataTemplate3.DataType = typeof(IObservableObject); | |
dataTemplate3.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_0b7199a2-f498-4238-87e2-ccacae247351.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates5.Add(item6); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
IEnumerable items7 = treeViewItem4.Items; | |
TreeViewItem treeViewItem12; | |
TreeViewItem treeViewItem11 = treeViewItem12 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem11).BeginInit(); | |
obj2 = (object)treeViewItem11; | |
((IList)items7).Add(obj2); | |
ISupportInitialize supportInitialize12 = treeViewItem3 = treeViewItem12; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem13 = treeViewItem3; | |
treeViewItem13.Header = "Databases"; | |
obj2 = treeViewItem13; | |
BindingExtension bindingExtension17 = new BindingExtension("Databases"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem13, StyledElement.DataContextProperty, context, binding); | |
obj2 = treeViewItem13; | |
BindingExtension bindingExtension18 = new BindingExtension(); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
binding = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem13, ItemsControl.ItemsProperty, context, binding); | |
ContextMenu contextMenu12; | |
ContextMenu contextMenu11 = contextMenu12 = new ContextMenu(); | |
((ISupportInitialize)contextMenu11).BeginInit(); | |
treeViewItem13.ContextMenu = contextMenu11; | |
ISupportInitialize supportInitialize13 = contextMenu3 = contextMenu12; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu13 = contextMenu3; | |
contextMenu13.Classes = Classes.Parse("default"); | |
IEnumerable items8 = contextMenu13.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj2 = (object)menuItem11; | |
((IList)items8).Add(obj2); | |
ISupportInitialize supportInitialize14 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "E_xport"; | |
obj2 = menuItem13; | |
BindingExtension bindingExtension19 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem13; | |
BindingExtension bindingExtension20 = new BindingExtension(); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
treeViewItem13.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TreeViewItem)), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TreeViewItem.IsExpandedProperty, | |
Value = (object)false | |
} | |
} | |
}); | |
AvaloniaList<IDataTemplate> dataTemplates6 = treeViewItem13.DataTemplates; | |
IDataTemplate item7 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate4 = dataTemplate; | |
dataTemplate4.DataType = typeof(IDatabase); | |
dataTemplate4.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_2cee173f-26dd-4811-9d17-a4d9898cafc9.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates6.Add(item7); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
IEnumerable items9 = treeViewItem4.Items; | |
TreeViewItem treeViewItem15; | |
TreeViewItem treeViewItem14 = treeViewItem15 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem14).BeginInit(); | |
obj2 = (object)treeViewItem14; | |
((IList)items9).Add(obj2); | |
ISupportInitialize supportInitialize15 = treeViewItem3 = treeViewItem15; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem16 = treeViewItem3; | |
treeViewItem16.Header = "Templates"; | |
obj2 = treeViewItem16; | |
BindingExtension bindingExtension21 = new BindingExtension("Templates"); | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension21.ProvideTypedValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem16, StyledElement.DataContextProperty, context, binding); | |
obj2 = treeViewItem16; | |
BindingExtension bindingExtension22 = new BindingExtension(); | |
IServiceProvider serviceProvider22 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
binding = bindingExtension22.ProvideTypedValue(serviceProvider22); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem16, ItemsControl.ItemsProperty, context, binding); | |
ContextMenu contextMenu15; | |
ContextMenu contextMenu14 = contextMenu15 = new ContextMenu(); | |
((ISupportInitialize)contextMenu14).BeginInit(); | |
treeViewItem16.ContextMenu = contextMenu14; | |
ISupportInitialize supportInitialize16 = contextMenu3 = contextMenu15; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu16 = contextMenu3; | |
contextMenu16.Classes = Classes.Parse("default"); | |
IEnumerable items10 = contextMenu16.Items; | |
MenuItem menuItem15; | |
MenuItem menuItem14 = menuItem15 = new MenuItem(); | |
((ISupportInitialize)menuItem14).BeginInit(); | |
obj2 = (object)menuItem14; | |
((IList)items10).Add(obj2); | |
ISupportInitialize supportInitialize17 = menuItem3 = menuItem15; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem16 = menuItem3; | |
menuItem16.Header = "E_xport"; | |
obj2 = menuItem16; | |
BindingExtension bindingExtension23 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider23 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension23.ProvideTypedValue(serviceProvider23); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem16; | |
BindingExtension bindingExtension24 = new BindingExtension(); | |
IServiceProvider serviceProvider24 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension24.ProvideTypedValue(serviceProvider24); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize17.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize16.EndInit(); | |
treeViewItem16.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TreeViewItem)), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TreeViewItem.IsExpandedProperty, | |
Value = (object)false | |
} | |
} | |
}); | |
AvaloniaList<IDataTemplate> dataTemplates7 = treeViewItem16.DataTemplates; | |
IDataTemplate item8 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate5 = treeDataTemplate; | |
treeDataTemplate5.DataType = typeof(IPageContainer); | |
obj2 = treeDataTemplate5; | |
BindingExtension bindingExtension25 = new BindingExtension("Layers"); | |
IServiceProvider serviceProvider25 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension25.ProvideTypedValue(serviceProvider25); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate5.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate5, "ItemsSource", context, binding); | |
} | |
treeDataTemplate5.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_4c7be700-f5c7-424a-aead-e1f50bbc77d5.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates7.Add(item8); | |
AvaloniaList<IDataTemplate> dataTemplates8 = treeViewItem16.DataTemplates; | |
IDataTemplate item9 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate6 = treeDataTemplate; | |
treeDataTemplate6.DataType = typeof(ILayerContainer); | |
obj2 = treeDataTemplate6; | |
BindingExtension bindingExtension26 = new BindingExtension("Shapes"); | |
IServiceProvider serviceProvider26 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension26.ProvideTypedValue(serviceProvider26); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate6.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate6, "ItemsSource", context, binding); | |
} | |
treeDataTemplate6.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_610a3dc4-589a-4e3a-a78d-343b438e6a67.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates8.Add(item9); | |
AvaloniaList<IDataTemplate> dataTemplates9 = treeViewItem16.DataTemplates; | |
IDataTemplate item10 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate7 = treeDataTemplate; | |
treeDataTemplate7.DataType = typeof(IBaseShape); | |
obj2 = treeDataTemplate7; | |
BindingExtension bindingExtension27 = new BindingExtension("Resources"); | |
IServiceProvider serviceProvider27 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension27.ProvideTypedValue(serviceProvider27); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate7.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate7, "ItemsSource", context, binding); | |
} | |
treeDataTemplate7.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_8eeccaac-d3a7-4dbc-999e-b56c81778e67.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates9.Add(item10); | |
AvaloniaList<IDataTemplate> dataTemplates10 = treeViewItem16.DataTemplates; | |
IDataTemplate item11 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate5 = dataTemplate; | |
dataTemplate5.DataType = typeof(IObservableObject); | |
dataTemplate5.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_73154c2a-577a-4999-903d-1e1f5f8c7d33.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates10.Add(item11); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize15.EndInit(); | |
IEnumerable items11 = treeViewItem4.Items; | |
TreeViewItem treeViewItem18; | |
TreeViewItem treeViewItem17 = treeViewItem18 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem17).BeginInit(); | |
obj2 = (object)treeViewItem17; | |
((IList)items11).Add(obj2); | |
ISupportInitialize supportInitialize18 = treeViewItem3 = treeViewItem18; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem19 = treeViewItem3; | |
treeViewItem19.Header = "Documents"; | |
obj2 = treeViewItem19; | |
BindingExtension bindingExtension28 = new BindingExtension("Documents"); | |
IServiceProvider serviceProvider28 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension28.ProvideTypedValue(serviceProvider28); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem19, StyledElement.DataContextProperty, context, binding); | |
obj2 = treeViewItem19; | |
BindingExtension bindingExtension29 = new BindingExtension(); | |
IServiceProvider serviceProvider29 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
binding = bindingExtension29.ProvideTypedValue(serviceProvider29); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem19, ItemsControl.ItemsProperty, context, binding); | |
ContextMenu contextMenu18; | |
ContextMenu contextMenu17 = contextMenu18 = new ContextMenu(); | |
((ISupportInitialize)contextMenu17).BeginInit(); | |
treeViewItem19.ContextMenu = contextMenu17; | |
ISupportInitialize supportInitialize19 = contextMenu3 = contextMenu18; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu19 = contextMenu3; | |
contextMenu19.Classes = Classes.Parse("default"); | |
IEnumerable items12 = contextMenu19.Items; | |
MenuItem menuItem18; | |
MenuItem menuItem17 = menuItem18 = new MenuItem(); | |
((ISupportInitialize)menuItem17).BeginInit(); | |
obj2 = (object)menuItem17; | |
((IList)items12).Add(obj2); | |
ISupportInitialize supportInitialize20 = menuItem3 = menuItem18; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem19 = menuItem3; | |
menuItem19.Header = "E_xport"; | |
obj2 = menuItem19; | |
BindingExtension bindingExtension30 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider30 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension30.ProvideTypedValue(serviceProvider30); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem19, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem19; | |
BindingExtension bindingExtension31 = new BindingExtension(); | |
IServiceProvider serviceProvider31 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension31.ProvideTypedValue(serviceProvider31); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem19, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize20.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize19.EndInit(); | |
treeViewItem19.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TreeViewItem)), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TreeViewItem.IsExpandedProperty, | |
Value = (object)false | |
} | |
} | |
}); | |
AvaloniaList<IDataTemplate> dataTemplates11 = treeViewItem19.DataTemplates; | |
IDataTemplate item12 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate8 = treeDataTemplate; | |
treeDataTemplate8.DataType = typeof(IDocumentContainer); | |
obj2 = treeDataTemplate8; | |
BindingExtension bindingExtension32 = new BindingExtension("Pages"); | |
IServiceProvider serviceProvider32 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension32.ProvideTypedValue(serviceProvider32); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate8.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate8, "ItemsSource", context, binding); | |
} | |
treeDataTemplate8.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_e492b9cc-84c4-4900-b927-48ac66a486cc.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates11.Add(item12); | |
AvaloniaList<IDataTemplate> dataTemplates12 = treeViewItem19.DataTemplates; | |
IDataTemplate item13 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate9 = treeDataTemplate; | |
treeDataTemplate9.DataType = typeof(IPageContainer); | |
obj2 = treeDataTemplate9; | |
BindingExtension bindingExtension33 = new BindingExtension("Layers"); | |
IServiceProvider serviceProvider33 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension33.ProvideTypedValue(serviceProvider33); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate9.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate9, "ItemsSource", context, binding); | |
} | |
treeDataTemplate9.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_2b4cbdda-d7cb-4da3-9a69-f01905f09bd4.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates12.Add(item13); | |
AvaloniaList<IDataTemplate> dataTemplates13 = treeViewItem19.DataTemplates; | |
IDataTemplate item14 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate10 = treeDataTemplate; | |
treeDataTemplate10.DataType = typeof(ILayerContainer); | |
obj2 = treeDataTemplate10; | |
BindingExtension bindingExtension34 = new BindingExtension("Shapes"); | |
IServiceProvider serviceProvider34 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension34.ProvideTypedValue(serviceProvider34); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate10.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate10, "ItemsSource", context, binding); | |
} | |
treeDataTemplate10.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_7ba6580e-0a90-4da4-96ba-52d8d6449a18.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates13.Add(item14); | |
AvaloniaList<IDataTemplate> dataTemplates14 = treeViewItem19.DataTemplates; | |
IDataTemplate item15 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate11 = treeDataTemplate; | |
treeDataTemplate11.DataType = typeof(IBaseShape); | |
obj2 = treeDataTemplate11; | |
BindingExtension bindingExtension35 = new BindingExtension("Resources"); | |
IServiceProvider serviceProvider35 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension35.ProvideTypedValue(serviceProvider35); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate11.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate11, "ItemsSource", context, binding); | |
} | |
treeDataTemplate11.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_38340c2c-a281-43ac-847a-52bcc2998e89.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates14.Add(item15); | |
AvaloniaList<IDataTemplate> dataTemplates15 = treeViewItem19.DataTemplates; | |
IDataTemplate item16 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate6 = dataTemplate; | |
dataTemplate6.DataType = typeof(IObservableObject); | |
dataTemplate6.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_6b572474-9e1a-4cdc-b277-dae63e3833dc.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates15.Add(item16); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize18.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
IEnumerable items13 = treeView4.Items; | |
TreeViewItem treeViewItem21; | |
TreeViewItem treeViewItem20 = treeViewItem21 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem20).BeginInit(); | |
obj2 = (object)treeViewItem20; | |
((IList)items13).Add(obj2); | |
ISupportInitialize supportInitialize21 = treeViewItem3 = treeViewItem21; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem22 = treeViewItem3; | |
treeViewItem22.Header = "Selected"; | |
treeViewItem22.IsExpanded = true; | |
IEnumerable items14 = treeViewItem22.Items; | |
TreeViewItem treeViewItem24; | |
TreeViewItem treeViewItem23 = treeViewItem24 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem23).BeginInit(); | |
obj2 = (object)treeViewItem23; | |
((IList)items14).Add(obj2); | |
ISupportInitialize supportInitialize22 = treeViewItem3 = treeViewItem24; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem25 = treeViewItem3; | |
treeViewItem25.Header = "Options"; | |
obj2 = treeViewItem25; | |
BindingExtension bindingExtension36 = new BindingExtension("Project.Options"); | |
IServiceProvider serviceProvider36 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension36.ProvideTypedValue(serviceProvider36); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem25, StyledElement.DataContextProperty, context, binding); | |
ContextMenu contextMenu21; | |
ContextMenu contextMenu20 = contextMenu21 = new ContextMenu(); | |
((ISupportInitialize)contextMenu20).BeginInit(); | |
treeViewItem25.ContextMenu = contextMenu20; | |
ISupportInitialize supportInitialize23 = contextMenu3 = contextMenu21; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu22 = contextMenu3; | |
contextMenu22.Classes = Classes.Parse("default"); | |
IEnumerable items15 = contextMenu22.Items; | |
MenuItem menuItem21; | |
MenuItem menuItem20 = menuItem21 = new MenuItem(); | |
((ISupportInitialize)menuItem20).BeginInit(); | |
obj2 = (object)menuItem20; | |
((IList)items15).Add(obj2); | |
ISupportInitialize supportInitialize24 = menuItem3 = menuItem21; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem22 = menuItem3; | |
menuItem22.Header = "E_xport"; | |
obj2 = menuItem22; | |
BindingExtension bindingExtension37 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider37 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension37.ProvideTypedValue(serviceProvider37); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem22, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem22; | |
BindingExtension bindingExtension38 = new BindingExtension(); | |
IServiceProvider serviceProvider38 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension38.ProvideTypedValue(serviceProvider38); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem22, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize24.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize23.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize22.EndInit(); | |
IEnumerable items16 = treeViewItem22.Items; | |
TreeViewItem treeViewItem27; | |
TreeViewItem treeViewItem26 = treeViewItem27 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem26).BeginInit(); | |
obj2 = (object)treeViewItem26; | |
((IList)items16).Add(obj2); | |
ISupportInitialize supportInitialize25 = treeViewItem3 = treeViewItem27; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem28 = treeViewItem3; | |
treeViewItem28.Header = "Shape"; | |
obj2 = treeViewItem28; | |
BindingExtension bindingExtension39 = new BindingExtension("Project.CurrentContainer.CurrentShape"); | |
IServiceProvider serviceProvider39 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension39.ProvideTypedValue(serviceProvider39); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem28, StyledElement.DataContextProperty, context, binding); | |
ContextMenu contextMenu24; | |
ContextMenu contextMenu23 = contextMenu24 = new ContextMenu(); | |
((ISupportInitialize)contextMenu23).BeginInit(); | |
treeViewItem28.ContextMenu = contextMenu23; | |
ISupportInitialize supportInitialize26 = contextMenu3 = contextMenu24; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu25 = contextMenu3; | |
contextMenu25.Classes = Classes.Parse("default"); | |
IEnumerable items17 = contextMenu25.Items; | |
MenuItem menuItem24; | |
MenuItem menuItem23 = menuItem24 = new MenuItem(); | |
((ISupportInitialize)menuItem23).BeginInit(); | |
obj2 = (object)menuItem23; | |
((IList)items17).Add(obj2); | |
ISupportInitialize supportInitialize27 = menuItem3 = menuItem24; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem25 = menuItem3; | |
menuItem25.Header = "E_xport"; | |
obj2 = menuItem25; | |
BindingExtension bindingExtension40 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider40 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension40.ProvideTypedValue(serviceProvider40); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem25, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem25; | |
BindingExtension bindingExtension41 = new BindingExtension(); | |
IServiceProvider serviceProvider41 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension41.ProvideTypedValue(serviceProvider41); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem25, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize27.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize26.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize25.EndInit(); | |
IEnumerable items18 = treeViewItem22.Items; | |
TreeViewItem treeViewItem30; | |
TreeViewItem treeViewItem29 = treeViewItem30 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem29).BeginInit(); | |
obj2 = (object)treeViewItem29; | |
((IList)items18).Add(obj2); | |
ISupportInitialize supportInitialize28 = treeViewItem3 = treeViewItem30; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem31 = treeViewItem3; | |
treeViewItem31.Header = "Data"; | |
obj2 = treeViewItem31; | |
BindingExtension bindingExtension42 = new BindingExtension("Project.CurrentContainer.CurrentShape.Data"); | |
IServiceProvider serviceProvider42 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension42.ProvideTypedValue(serviceProvider42); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem31, StyledElement.DataContextProperty, context, binding); | |
ContextMenu contextMenu27; | |
ContextMenu contextMenu26 = contextMenu27 = new ContextMenu(); | |
((ISupportInitialize)contextMenu26).BeginInit(); | |
treeViewItem31.ContextMenu = contextMenu26; | |
ISupportInitialize supportInitialize29 = contextMenu3 = contextMenu27; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu28 = contextMenu3; | |
contextMenu28.Classes = Classes.Parse("default"); | |
IEnumerable items19 = contextMenu28.Items; | |
MenuItem menuItem27; | |
MenuItem menuItem26 = menuItem27 = new MenuItem(); | |
((ISupportInitialize)menuItem26).BeginInit(); | |
obj2 = (object)menuItem26; | |
((IList)items19).Add(obj2); | |
ISupportInitialize supportInitialize30 = menuItem3 = menuItem27; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem28 = menuItem3; | |
menuItem28.Header = "E_xport"; | |
obj2 = menuItem28; | |
BindingExtension bindingExtension43 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider43 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension43.ProvideTypedValue(serviceProvider43); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem28, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem28; | |
BindingExtension bindingExtension44 = new BindingExtension(); | |
IServiceProvider serviceProvider44 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension44.ProvideTypedValue(serviceProvider44); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem28, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize30.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize29.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize28.EndInit(); | |
IEnumerable items20 = treeViewItem22.Items; | |
TreeViewItem treeViewItem33; | |
TreeViewItem treeViewItem32 = treeViewItem33 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem32).BeginInit(); | |
obj2 = (object)treeViewItem32; | |
((IList)items20).Add(obj2); | |
ISupportInitialize supportInitialize31 = treeViewItem3 = treeViewItem33; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem34 = treeViewItem3; | |
treeViewItem34.Header = "Style"; | |
obj2 = treeViewItem34; | |
BindingExtension bindingExtension45 = new BindingExtension("Project.CurrentStyleLibrary.Selected"); | |
IServiceProvider serviceProvider45 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension45.ProvideTypedValue(serviceProvider45); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem34, StyledElement.DataContextProperty, context, binding); | |
ContextMenu contextMenu30; | |
ContextMenu contextMenu29 = contextMenu30 = new ContextMenu(); | |
((ISupportInitialize)contextMenu29).BeginInit(); | |
treeViewItem34.ContextMenu = contextMenu29; | |
ISupportInitialize supportInitialize32 = contextMenu3 = contextMenu30; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu31 = contextMenu3; | |
contextMenu31.Classes = Classes.Parse("default"); | |
IEnumerable items21 = contextMenu31.Items; | |
MenuItem menuItem30; | |
MenuItem menuItem29 = menuItem30 = new MenuItem(); | |
((ISupportInitialize)menuItem29).BeginInit(); | |
obj2 = (object)menuItem29; | |
((IList)items21).Add(obj2); | |
ISupportInitialize supportInitialize33 = menuItem3 = menuItem30; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem31 = menuItem3; | |
menuItem31.Header = "E_xport"; | |
obj2 = menuItem31; | |
BindingExtension bindingExtension46 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider46 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension46.ProvideTypedValue(serviceProvider46); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem31, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem31; | |
BindingExtension bindingExtension47 = new BindingExtension(); | |
IServiceProvider serviceProvider47 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension47.ProvideTypedValue(serviceProvider47); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem31, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize33.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize32.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize31.EndInit(); | |
IEnumerable items22 = treeViewItem22.Items; | |
TreeViewItem treeViewItem36; | |
TreeViewItem treeViewItem35 = treeViewItem36 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem35).BeginInit(); | |
obj2 = (object)treeViewItem35; | |
((IList)items22).Add(obj2); | |
ISupportInitialize supportInitialize34 = treeViewItem3 = treeViewItem36; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem37 = treeViewItem3; | |
treeViewItem37.Header = "Container"; | |
obj2 = treeViewItem37; | |
BindingExtension bindingExtension48 = new BindingExtension("Project.CurrentContainer"); | |
IServiceProvider serviceProvider48 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension48.ProvideTypedValue(serviceProvider48); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem37, StyledElement.DataContextProperty, context, binding); | |
ContextMenu contextMenu33; | |
ContextMenu contextMenu32 = contextMenu33 = new ContextMenu(); | |
((ISupportInitialize)contextMenu32).BeginInit(); | |
treeViewItem37.ContextMenu = contextMenu32; | |
ISupportInitialize supportInitialize35 = contextMenu3 = contextMenu33; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu34 = contextMenu3; | |
contextMenu34.Classes = Classes.Parse("default"); | |
IEnumerable items23 = contextMenu34.Items; | |
MenuItem menuItem33; | |
MenuItem menuItem32 = menuItem33 = new MenuItem(); | |
((ISupportInitialize)menuItem32).BeginInit(); | |
obj2 = (object)menuItem32; | |
((IList)items23).Add(obj2); | |
ISupportInitialize supportInitialize36 = menuItem3 = menuItem33; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem34 = menuItem3; | |
menuItem34.Header = "E_xport"; | |
obj2 = menuItem34; | |
BindingExtension bindingExtension49 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider49 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension49.ProvideTypedValue(serviceProvider49); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem34, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem34; | |
BindingExtension bindingExtension50 = new BindingExtension(); | |
IServiceProvider serviceProvider50 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension50.ProvideTypedValue(serviceProvider50); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem34, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize36.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize35.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize34.EndInit(); | |
IEnumerable items24 = treeViewItem22.Items; | |
TreeViewItem treeViewItem39; | |
TreeViewItem treeViewItem38 = treeViewItem39 = new TreeViewItem(); | |
((ISupportInitialize)treeViewItem38).BeginInit(); | |
obj2 = (object)treeViewItem38; | |
((IList)items24).Add(obj2); | |
ISupportInitialize supportInitialize37 = treeViewItem3 = treeViewItem39; | |
context.ParentsStack.Add(treeViewItem3); | |
TreeViewItem treeViewItem40 = treeViewItem3; | |
treeViewItem40.Header = "Template"; | |
obj2 = treeViewItem40; | |
BindingExtension bindingExtension51 = new BindingExtension("Project.CurrentTemplate"); | |
IServiceProvider serviceProvider51 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension51.ProvideTypedValue(serviceProvider51); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeViewItem40, StyledElement.DataContextProperty, context, binding); | |
ContextMenu contextMenu36; | |
ContextMenu contextMenu35 = contextMenu36 = new ContextMenu(); | |
((ISupportInitialize)contextMenu35).BeginInit(); | |
treeViewItem40.ContextMenu = contextMenu35; | |
ISupportInitialize supportInitialize38 = contextMenu3 = contextMenu36; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu37 = contextMenu3; | |
contextMenu37.Classes = Classes.Parse("default"); | |
IEnumerable items25 = contextMenu37.Items; | |
MenuItem menuItem36; | |
MenuItem menuItem35 = menuItem36 = new MenuItem(); | |
((ISupportInitialize)menuItem35).BeginInit(); | |
obj2 = (object)menuItem35; | |
((IList)items25).Add(obj2); | |
ISupportInitialize supportInitialize39 = menuItem3 = menuItem36; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem37 = menuItem3; | |
menuItem37.Header = "E_xport"; | |
obj2 = menuItem37; | |
BindingExtension bindingExtension52 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider52 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension52.ProvideTypedValue(serviceProvider52); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem37, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem37; | |
BindingExtension bindingExtension53 = new BindingExtension(); | |
IServiceProvider serviceProvider53 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension53.ProvideTypedValue(serviceProvider53); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem37, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize39.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize38.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize37.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize21.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
GridSplitter gridSplitter2; | |
GridSplitter gridSplitter = gridSplitter2 = new GridSplitter(); | |
((ISupportInitialize)gridSplitter).BeginInit(); | |
children2.Add(gridSplitter); | |
GridSplitter gridSplitter3 = gridSplitter2; | |
gridSplitter3.Classes = Classes.Parse("vertical"); | |
Grid.SetColumn(gridSplitter3, 1); | |
Grid.SetRow(gridSplitter3, 0); | |
gridSplitter3.Width = 6.0; | |
((ISupportInitialize)gridSplitter3).EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
Border border2; | |
Border border = border2 = new Border(); | |
((ISupportInitialize)border).BeginInit(); | |
children3.Add(border); | |
Border border3; | |
ISupportInitialize supportInitialize40 = border3 = border2; | |
context.ParentsStack.Add(border3); | |
Border border4 = border3; | |
border4.Classes = Classes.Parse("project"); | |
Grid.SetColumn(border4, 2); | |
Grid.SetRow(border4, 0); | |
border4.Margin = Thickness.Parse("0,6,6,6"); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
border4.Child = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize41 = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("top"); | |
IEnumerable items26 = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
obj2 = (object)tabItem; | |
((IList)items26).Add(obj2); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize42 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Properties"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ContentControl contentControl2; | |
ContentControl contentControl = contentControl2 = new ContentControl(); | |
((ISupportInitialize)contentControl).BeginInit(); | |
tabItem4.Content = contentControl; | |
ContentControl contentControl3; | |
ISupportInitialize supportInitialize43 = contentControl3 = contentControl2; | |
context.ParentsStack.Add(contentControl3); | |
object obj3 = obj2 = contentControl3; | |
BindingExtension bindingExtension55; | |
BindingExtension bindingExtension54 = bindingExtension55 = new BindingExtension("#project.SelectedItem"); | |
context.ParentsStack.Add(bindingExtension55); | |
object obj5; | |
object obj4 = obj5 = bindingExtension55; | |
StaticResourceExtension staticResourceExtension = new StaticResourceExtension("TreeViewSelectedItemToObjectConverter"); | |
IServiceProvider serviceProvider54 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
object obj6 = staticResourceExtension.ProvideValue(serviceProvider54); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj6 is IBinding) && !(obj6 is UnsetValueType)) | |
{ | |
obj4.Converter = (IValueConverter)obj6; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, "Converter", context, obj6); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider55 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
binding = bindingExtension54.ProvideTypedValue(serviceProvider55); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ContentControl.ContentProperty, context, binding); | |
obj3.Classes = Classes.Parse("project"); | |
obj3.HorizontalAlignment = HorizontalAlignment.Stretch; | |
obj3.VerticalAlignment = VerticalAlignment.Stretch; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize43.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize42.EndInit(); | |
IEnumerable items27 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj5 = (object)tabItem5; | |
((IList)items27).Add(obj5); | |
ISupportInitialize supportInitialize44 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Xaml"; | |
tabItem7.Classes = Classes.Parse("property"); | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
tabItem7.Content = textBox; | |
TextBox textBox3; | |
ISupportInitialize supportInitialize45 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj7 = obj6 = textBox3; | |
BindingExtension bindingExtension56 = bindingExtension55 = new BindingExtension("#project.SelectedItem"); | |
context.ParentsStack.Add(bindingExtension55); | |
object obj8 = obj5 = bindingExtension55; | |
StaticResourceExtension staticResourceExtension2 = new StaticResourceExtension("TreeViewSelectedItemToObjectConverter"); | |
IServiceProvider serviceProvider56 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
obj2 = staticResourceExtension2.ProvideValue(serviceProvider56); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj2 is IBinding) && !(obj2 is UnsetValueType)) | |
{ | |
obj8.Converter = (IValueConverter)obj2; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, "Converter", context, obj2); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider57 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension56.ProvideTypedValue(serviceProvider57); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, StyledElement.DataContextProperty, context, binding); | |
obj5 = obj7; | |
BindingExtension bindingExtension57 = bindingExtension55 = new BindingExtension(); | |
context.ParentsStack.Add(bindingExtension55); | |
BindingExtension bindingExtension58 = bindingExtension55; | |
bindingExtension58.Mode = BindingMode.OneWay; | |
obj6 = bindingExtension58; | |
StaticResourceExtension staticResourceExtension3 = new StaticResourceExtension("ObjectToXamlStringConverter"); | |
IServiceProvider serviceProvider58 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = "Converter"; | |
obj2 = staticResourceExtension3.ProvideValue(serviceProvider58); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj2 is IBinding) && !(obj2 is UnsetValueType)) | |
{ | |
bindingExtension58.Converter = (IValueConverter)obj2; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(bindingExtension58, "Converter", context, obj2); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider59 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
binding = bindingExtension57.ProvideTypedValue(serviceProvider59); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, TextBox.TextProperty, context, binding); | |
obj7.Classes = Classes.Parse("project"); | |
obj7.HorizontalAlignment = HorizontalAlignment.Stretch; | |
obj7.VerticalAlignment = VerticalAlignment.Stretch; | |
List<KeyBinding> keyBindings2 = obj7.KeyBindings; | |
KeyBinding item17 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj9 = obj6 = keyBinding; | |
BindingExtension bindingExtension59 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportXaml"); | |
IServiceProvider serviceProvider60 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension59.ProvideTypedValue(serviceProvider60); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, KeyBinding.CommandProperty, context, binding); | |
obj2 = obj9; | |
BindingExtension bindingExtension60 = new BindingExtension(); | |
IServiceProvider serviceProvider61 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension60.ProvideTypedValue(serviceProvider61); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, KeyBinding.CommandParameterProperty, context, binding); | |
obj9.Gesture = KeyGesture.Parse("Ctrl+E"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings2.Add(item17); | |
ContextMenu contextMenu39; | |
ContextMenu contextMenu38 = contextMenu39 = new ContextMenu(); | |
((ISupportInitialize)contextMenu38).BeginInit(); | |
obj7.ContextMenu = contextMenu38; | |
ISupportInitialize supportInitialize46 = contextMenu3 = contextMenu39; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu40 = contextMenu3; | |
contextMenu40.Classes = Classes.Parse("default"); | |
IEnumerable items28 = contextMenu40.Items; | |
MenuItem menuItem39; | |
MenuItem menuItem38 = menuItem39 = new MenuItem(); | |
((ISupportInitialize)menuItem38).BeginInit(); | |
obj5 = (object)menuItem38; | |
((IList)items28).Add(obj5); | |
ISupportInitialize supportInitialize47 = menuItem3 = menuItem39; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem40 = menuItem3; | |
menuItem40.Header = "E_xport"; | |
obj6 = menuItem40; | |
BindingExtension bindingExtension61 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportXaml"); | |
IServiceProvider serviceProvider62 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension61.ProvideTypedValue(serviceProvider62); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem40, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem40; | |
BindingExtension bindingExtension62 = new BindingExtension(); | |
IServiceProvider serviceProvider63 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension62.ProvideTypedValue(serviceProvider63); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem40, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize47.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize46.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize45.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize44.EndInit(); | |
IEnumerable items29 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj5 = (object)tabItem8; | |
((IList)items29).Add(obj5); | |
ISupportInitialize supportInitialize48 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Json"; | |
tabItem10.Classes = Classes.Parse("property"); | |
TextBox textBox5; | |
TextBox textBox4 = textBox5 = new TextBox(); | |
((ISupportInitialize)textBox4).BeginInit(); | |
tabItem10.Content = textBox4; | |
ISupportInitialize supportInitialize49 = textBox3 = textBox5; | |
context.ParentsStack.Add(textBox3); | |
object obj10 = obj6 = textBox3; | |
BindingExtension bindingExtension63 = bindingExtension55 = new BindingExtension("#project.SelectedItem"); | |
context.ParentsStack.Add(bindingExtension55); | |
object obj11 = obj5 = bindingExtension55; | |
StaticResourceExtension staticResourceExtension4 = new StaticResourceExtension("TreeViewSelectedItemToObjectConverter"); | |
IServiceProvider serviceProvider64 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
obj2 = staticResourceExtension4.ProvideValue(serviceProvider64); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj2 is IBinding) && !(obj2 is UnsetValueType)) | |
{ | |
obj11.Converter = (IValueConverter)obj2; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj11, "Converter", context, obj2); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider65 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
binding = bindingExtension63.ProvideTypedValue(serviceProvider65); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj10, StyledElement.DataContextProperty, context, binding); | |
obj5 = obj10; | |
BindingExtension bindingExtension64 = bindingExtension55 = new BindingExtension(); | |
context.ParentsStack.Add(bindingExtension55); | |
BindingExtension bindingExtension65 = bindingExtension55; | |
bindingExtension65.Mode = BindingMode.OneWay; | |
obj6 = bindingExtension65; | |
StaticResourceExtension staticResourceExtension5 = new StaticResourceExtension("ObjectToJsonStringConverter"); | |
IServiceProvider serviceProvider66 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = "Converter"; | |
obj2 = staticResourceExtension5.ProvideValue(serviceProvider66); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj2 is IBinding) && !(obj2 is UnsetValueType)) | |
{ | |
bindingExtension65.Converter = (IValueConverter)obj2; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(bindingExtension65, "Converter", context, obj2); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider67 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
binding = bindingExtension64.ProvideTypedValue(serviceProvider67); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj10, TextBox.TextProperty, context, binding); | |
obj10.Classes = Classes.Parse("project"); | |
obj10.HorizontalAlignment = HorizontalAlignment.Stretch; | |
obj10.VerticalAlignment = VerticalAlignment.Stretch; | |
List<KeyBinding> keyBindings3 = obj10.KeyBindings; | |
KeyBinding item18 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj12 = obj6 = keyBinding; | |
BindingExtension bindingExtension66 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportJson"); | |
IServiceProvider serviceProvider68 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension66.ProvideTypedValue(serviceProvider68); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj12, KeyBinding.CommandProperty, context, binding); | |
obj2 = obj12; | |
BindingExtension bindingExtension67 = new BindingExtension(); | |
IServiceProvider serviceProvider69 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension67.ProvideTypedValue(serviceProvider69); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj12, KeyBinding.CommandParameterProperty, context, binding); | |
obj12.Gesture = KeyGesture.Parse("Ctrl+E"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings3.Add(item18); | |
ContextMenu contextMenu42; | |
ContextMenu contextMenu41 = contextMenu42 = new ContextMenu(); | |
((ISupportInitialize)contextMenu41).BeginInit(); | |
obj10.ContextMenu = contextMenu41; | |
ISupportInitialize supportInitialize50 = contextMenu3 = contextMenu42; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu43 = contextMenu3; | |
contextMenu43.Classes = Classes.Parse("default"); | |
IEnumerable items30 = contextMenu43.Items; | |
MenuItem menuItem42; | |
MenuItem menuItem41 = menuItem42 = new MenuItem(); | |
((ISupportInitialize)menuItem41).BeginInit(); | |
obj5 = (object)menuItem41; | |
((IList)items30).Add(obj5); | |
ISupportInitialize supportInitialize51 = menuItem3 = menuItem42; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem43 = menuItem3; | |
menuItem43.Header = "E_xport"; | |
obj6 = menuItem43; | |
BindingExtension bindingExtension68 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnExportJson"); | |
IServiceProvider serviceProvider70 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension68.ProvideTypedValue(serviceProvider70); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem43, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem43; | |
BindingExtension bindingExtension69 = new BindingExtension(); | |
IServiceProvider serviceProvider71 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension69.ProvideTypedValue(serviceProvider71); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem43, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize51.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize50.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize49.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize48.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize41.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize40.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000276 RID: 630 RVA: 0x000178E8 File Offset: 0x00015AE8 | |
public static void xaml(IServiceProvider A_0, BrowserMenuControl A_1) | |
{ | |
XamlIlContext.Context<BrowserMenuControl> context = new XamlIlContext.Context<BrowserMenuControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/BrowserMenuControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/BrowserMenuControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
A_1.Content = menu; | |
Menu menu3; | |
ISupportInitialize supportInitialize = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
menu4.Classes = Classes.Parse("default"); | |
menu4.ItemsPanel = new ItemsPanelTemplate | |
{ | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_01256e8d-dca3-4ec4-90ed-0243ab6e01f9.Build), context) | |
}; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
object obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize2 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "_File"; | |
IEnumerable items2 = menuItem4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj = (object)menuItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize3 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "E_xit"; | |
obj = menuItem7; | |
BindingExtension bindingExtension = new BindingExtension("Platform.OnExit"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items3 = menu4.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj = (object)menuItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize4 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "_View"; | |
IEnumerable items4 = menuItem10.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj = (object)menuItem11; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "_Script Editor..."; | |
obj = menuItem13; | |
BindingExtension bindingExtension2 = new BindingExtension("Platform.OnScriptEditor"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items5 = menuItem10.Items; | |
Separator separator2; | |
Separator separator = separator2 = new Separator(); | |
((ISupportInitialize)separator).BeginInit(); | |
obj = (object)separator; | |
((IList)items5).Add(obj); | |
((ISupportInitialize)separator2).EndInit(); | |
IEnumerable items6 = menuItem10.Items; | |
MenuItem menuItem15; | |
MenuItem menuItem14 = menuItem15 = new MenuItem(); | |
((ISupportInitialize)menuItem14).BeginInit(); | |
obj = (object)menuItem14; | |
((IList)items6).Add(obj); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem15; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem16 = menuItem3; | |
menuItem16.Header = "_Views"; | |
obj = menuItem16; | |
BindingExtension bindingExtension3 = new BindingExtension("Layout.Views"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, ItemsControl.ItemsProperty, context, value); | |
Styles styles = menuItem16.Styles; | |
Style style; | |
IStyle item = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style2 = style; | |
style2.Selector = Selectors.OfType((Selector)null, typeof(MenuItem)); | |
ICollection<ISetter> setters = style2.Setters; | |
Setter setter; | |
ISetter item2 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter2 = setter; | |
setter2.Property = HeaderedSelectingItemsControl.HeaderProperty; | |
obj = setter2; | |
BindingExtension bindingExtension4 = new BindingExtension("Title"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter2.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters.Add(item2); | |
ICollection<ISetter> setters2 = style2.Setters; | |
ISetter item3 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter3 = setter; | |
setter3.Property = MenuItem.CommandProperty; | |
obj = setter3; | |
BindingExtension bindingExtension5 = new BindingExtension("$parent[UserControl].DataContext.OnNavigate"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter3.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters2.Add(item3); | |
ICollection<ISetter> setters3 = style2.Setters; | |
ISetter item4 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter4 = setter; | |
setter4.Property = MenuItem.CommandParameterProperty; | |
obj = setter4; | |
BindingExtension bindingExtension6 = new BindingExtension(); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter4.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters3.Add(item4); | |
ICollection<ISetter> setters4 = style2.Setters; | |
ISetter item5 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter5 = setter; | |
setter5.Property = MenuItem.IconProperty; | |
Template template; | |
object value2 = template = new Template(); | |
context.ParentsStack.Add(template); | |
template.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_52903e16-db89-4704-82a0-e33a02409c39.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setter5.Value = value2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters4.Add(item5); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000277 RID: 631 RVA: 0x000180D4 File Offset: 0x000162D4 | |
public static void xaml(IServiceProvider A_0, Core2D.UI.Avalonia.Views.ContainerControl A_1) | |
{ | |
XamlIlContext.Context<Core2D.UI.Avalonia.Views.ContainerControl> context = new XamlIlContext.Context<Core2D.UI.Avalonia.Views.ContainerControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/ContainerControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/ContainerControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
BindingExtension bindingExtension = new BindingExtension("$self.Container.Width"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = A_1; | |
context.ProvideTargetProperty = Layoutable.WidthProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(A_1, Layoutable.WidthProperty, context, value); | |
BindingExtension bindingExtension2 = new BindingExtension("$self.Container.Height"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = A_1; | |
context.ProvideTargetProperty = Layoutable.HeightProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(A_1, Layoutable.HeightProperty, context, value); | |
A_1.Focusable = true; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000278 RID: 632 RVA: 0x00018228 File Offset: 0x00016428 | |
public static void xaml(IServiceProvider A_0, Core2D.UI.Avalonia.Views.Containers.ContainerControl A_1) | |
{ | |
XamlIlContext.Context<Core2D.UI.Avalonia.Views.Containers.ContainerControl> context = new XamlIlContext.Context<Core2D.UI.Avalonia.Views.Containers.ContainerControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/ContainerControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/ContainerControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Container"; | |
tabItem4.Classes = Classes.Parse("property"); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
tabItem4.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize3 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children2.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize4 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj2 = obj = textBox3; | |
BindingExtension bindingExtension = new BindingExtension("Name"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, TextBox.TextProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TabControl tabControl6; | |
TabControl tabControl5 = tabControl6 = new TabControl(); | |
((ISupportInitialize)tabControl5).BeginInit(); | |
children3.Add(tabControl5); | |
ISupportInitialize supportInitialize5 = tabControl3 = tabControl6; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl7 = tabControl3; | |
tabControl7.Classes = Classes.Parse("default"); | |
Grid.SetRow(tabControl7, 1); | |
Grid.SetColumn(tabControl7, 0); | |
Grid.SetColumnSpan(tabControl7, 2); | |
IEnumerable items2 = tabControl7.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
TabItem tabItem7 = tabItem6; | |
tabItem7.Header = "Layers"; | |
tabItem7.Classes = Classes.Parse("property"); | |
LayersControl layersControl2; | |
LayersControl layersControl = layersControl2 = new LayersControl(); | |
((ISupportInitialize)layersControl).BeginInit(); | |
tabItem7.Content = layersControl; | |
((ISupportInitialize)layersControl2).EndInit(); | |
((ISupportInitialize)tabItem7).EndInit(); | |
IEnumerable items3 = tabControl7.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
TabItem tabItem10 = tabItem9; | |
tabItem10.Header = "Shapes"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ShapesControl shapesControl2; | |
ShapesControl shapesControl = shapesControl2 = new ShapesControl(); | |
((ISupportInitialize)shapesControl).BeginInit(); | |
tabItem10.Content = shapesControl; | |
((ISupportInitialize)shapesControl2).EndInit(); | |
((ISupportInitialize)tabItem10).EndInit(); | |
IEnumerable items4 = tabControl7.Items; | |
TabItem tabItem12; | |
TabItem tabItem11 = tabItem12 = new TabItem(); | |
((ISupportInitialize)tabItem11).BeginInit(); | |
obj = (object)tabItem11; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize6 = tabItem3 = tabItem12; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem13 = tabItem3; | |
tabItem13.Header = "Size"; | |
tabItem13.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem13.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize7 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
contentControl.Content = grid5; | |
ISupportInitialize supportInitialize8 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("Auto,Auto"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("Auto,50,*"); | |
AvaloniaList<IControl> children4 = grid7.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children4.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "Width"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 0); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children5 = grid7.Children; | |
TextBox textBox5; | |
TextBox textBox4 = textBox5 = new TextBox(); | |
((ISupportInitialize)textBox4).BeginInit(); | |
children5.Add(textBox4); | |
ISupportInitialize supportInitialize9 = textBox3 = textBox5; | |
context.ParentsStack.Add(textBox3); | |
object obj3 = obj = textBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("Width"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, TextBox.TextProperty, context, value); | |
obj3.Classes = Classes.Parse("center"); | |
Grid.SetRow(obj3, 0); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
AvaloniaList<IControl> children6 = grid7.Children; | |
Slider slider2; | |
Slider slider = slider2 = new Slider(); | |
((ISupportInitialize)slider).BeginInit(); | |
children6.Add(slider); | |
Slider slider3; | |
ISupportInitialize supportInitialize10 = slider3 = slider2; | |
context.ParentsStack.Add(slider3); | |
Slider slider4 = slider3; | |
slider4.Classes = Classes.Parse("slider"); | |
obj = slider4; | |
BindingExtension bindingExtension3 = new BindingExtension("Width"); | |
bindingExtension3.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = RangeBase.ValueProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(slider4, RangeBase.ValueProperty, context, value); | |
slider4.Minimum = 0.0; | |
slider4.Maximum = 10000.0; | |
Grid.SetRow(slider4, 0); | |
Grid.SetColumn(slider4, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
AvaloniaList<IControl> children7 = grid7.Children; | |
TextBlock textBlock8; | |
TextBlock textBlock7 = textBlock8 = new TextBlock(); | |
((ISupportInitialize)textBlock7).BeginInit(); | |
children7.Add(textBlock7); | |
TextBlock textBlock9 = textBlock8; | |
textBlock9.Text = "Height"; | |
textBlock9.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock9, 1); | |
Grid.SetColumn(textBlock9, 0); | |
((ISupportInitialize)textBlock9).EndInit(); | |
AvaloniaList<IControl> children8 = grid7.Children; | |
TextBox textBox7; | |
TextBox textBox6 = textBox7 = new TextBox(); | |
((ISupportInitialize)textBox6).BeginInit(); | |
children8.Add(textBox6); | |
ISupportInitialize supportInitialize11 = textBox3 = textBox7; | |
context.ParentsStack.Add(textBox3); | |
object obj4 = obj = textBox3; | |
BindingExtension bindingExtension4 = new BindingExtension("Height"); | |
bindingExtension4.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, TextBox.TextProperty, context, value); | |
obj4.Classes = Classes.Parse("center"); | |
Grid.SetRow(obj4, 1); | |
Grid.SetColumn(obj4, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
AvaloniaList<IControl> children9 = grid7.Children; | |
Slider slider6; | |
Slider slider5 = slider6 = new Slider(); | |
((ISupportInitialize)slider5).BeginInit(); | |
children9.Add(slider5); | |
ISupportInitialize supportInitialize12 = slider3 = slider6; | |
context.ParentsStack.Add(slider3); | |
Slider slider7 = slider3; | |
slider7.Classes = Classes.Parse("slider"); | |
obj = slider7; | |
BindingExtension bindingExtension5 = new BindingExtension("Height"); | |
bindingExtension5.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = RangeBase.ValueProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(slider7, RangeBase.ValueProperty, context, value); | |
slider7.Minimum = 0.0; | |
slider7.Maximum = 10000.0; | |
Grid.SetRow(slider7, 1); | |
Grid.SetColumn(slider7, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
IEnumerable items5 = tabControl7.Items; | |
TabItem tabItem15; | |
TabItem tabItem14 = tabItem15 = new TabItem(); | |
((ISupportInitialize)tabItem14).BeginInit(); | |
obj = (object)tabItem14; | |
((IList)items5).Add(obj); | |
ISupportInitialize supportInitialize13 = tabItem3 = tabItem15; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem16 = tabItem3; | |
tabItem16.Header = "Background"; | |
tabItem16.Classes = Classes.Parse("property"); | |
ContentControl contentControl3; | |
ContentControl contentControl2 = contentControl3 = new ContentControl(); | |
((ISupportInitialize)contentControl2).BeginInit(); | |
tabItem16.Content = contentControl2; | |
ContentControl contentControl4; | |
ISupportInitialize supportInitialize14 = contentControl4 = contentControl3; | |
context.ParentsStack.Add(contentControl4); | |
object target = obj = contentControl4; | |
BindingExtension bindingExtension6 = new BindingExtension("Background"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items6 = tabControl4.Items; | |
TabItem tabItem18; | |
TabItem tabItem17 = tabItem18 = new TabItem(); | |
((ISupportInitialize)tabItem17).BeginInit(); | |
obj = (object)tabItem17; | |
((IList)items6).Add(obj); | |
ISupportInitialize supportInitialize15 = tabItem3 = tabItem18; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem19 = tabItem3; | |
tabItem19.Header = "Owner"; | |
tabItem19.Classes = Classes.Parse("property"); | |
ContentControl contentControl6; | |
ContentControl contentControl5 = contentControl6 = new ContentControl(); | |
((ISupportInitialize)contentControl5).BeginInit(); | |
tabItem19.Content = contentControl5; | |
ISupportInitialize supportInitialize16 = contentControl4 = contentControl6; | |
context.ParentsStack.Add(contentControl4); | |
object target2 = obj = contentControl4; | |
BindingExtension bindingExtension7 = new BindingExtension("Owner"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target2, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize16.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize15.EndInit(); | |
IEnumerable items7 = tabControl4.Items; | |
TabItem tabItem21; | |
TabItem tabItem20 = tabItem21 = new TabItem(); | |
((ISupportInitialize)tabItem20).BeginInit(); | |
obj = (object)tabItem20; | |
((IList)items7).Add(obj); | |
ISupportInitialize supportInitialize17 = tabItem3 = tabItem21; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem22 = tabItem3; | |
tabItem22.Header = "Data"; | |
tabItem22.Classes = Classes.Parse("property"); | |
ContentControl contentControl8; | |
ContentControl contentControl7 = contentControl8 = new ContentControl(); | |
((ISupportInitialize)contentControl7).BeginInit(); | |
tabItem22.Content = contentControl7; | |
ISupportInitialize supportInitialize18 = contentControl4 = contentControl8; | |
context.ParentsStack.Add(contentControl4); | |
object target3 = obj = contentControl4; | |
BindingExtension bindingExtension8 = new BindingExtension("Data"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target3, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize18.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize17.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000279 RID: 633 RVA: 0x000190C8 File Offset: 0x000172C8 | |
public static void xaml(IServiceProvider A_0, DatabasesControl A_1) | |
{ | |
XamlIlContext.Context<DatabasesControl> context = new XamlIlContext.Context<DatabasesControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/DatabasesControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/DatabasesControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize2 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetRow(menu4, 0); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
object obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize3 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "+"; | |
obj = menuItem4; | |
BindingExtension bindingExtension = new BindingExtension("$parent[Window].DataContext.OnAddDatabase"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
IEnumerable items2 = menu4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj = (object)menuItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize4 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "˗"; | |
obj = menuItem7; | |
BindingExtension bindingExtension2 = new BindingExtension("$parent[Window].DataContext.OnRemoveDatabase"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
obj = menuItem7; | |
BindingExtension bindingExtension3 = new BindingExtension("CurrentDatabase"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, value); | |
obj = menuItem7; | |
BindingExtension bindingExtension4 = new BindingExtension("!!CurrentDatabase"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
ComboBox comboBox2; | |
ComboBox comboBox = comboBox2 = new ComboBox(); | |
((ISupportInitialize)comboBox).BeginInit(); | |
children2.Add(comboBox); | |
ComboBox comboBox3; | |
ISupportInitialize supportInitialize5 = comboBox3 = comboBox2; | |
context.ParentsStack.Add(comboBox3); | |
object obj2 = obj = comboBox3; | |
BindingExtension bindingExtension5 = new BindingExtension("Databases"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ItemsControl.ItemsProperty, context, value); | |
obj = obj2; | |
BindingExtension bindingExtension6 = new BindingExtension("CurrentDatabase"); | |
bindingExtension6.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, SelectingItemsControl.SelectedItemProperty, context, value); | |
Grid.SetRow(obj2, 1); | |
obj2.Classes = Classes.Parse("default"); | |
obj = obj2; | |
BindingExtension bindingExtension7 = new BindingExtension("!!CurrentDatabase"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, Visual.IsVisibleProperty, context, value); | |
AvaloniaList<IDataTemplate> dataTemplates = obj2.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IDatabase); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_a587db5f-99d8-488c-a849-929d79915818.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
ContentControl contentControl2; | |
ContentControl contentControl = contentControl2 = new ContentControl(); | |
((ISupportInitialize)contentControl).BeginInit(); | |
children3.Add(contentControl); | |
ContentControl contentControl3; | |
ISupportInitialize supportInitialize6 = contentControl3 = contentControl2; | |
context.ParentsStack.Add(contentControl3); | |
object obj3 = obj = contentControl3; | |
BindingExtension bindingExtension8 = new BindingExtension("CurrentDatabase"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ContentControl.ContentProperty, context, value); | |
Grid.SetRow(obj3, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600027A RID: 634 RVA: 0x000197A0 File Offset: 0x000179A0 | |
public static void xaml(IServiceProvider A_0, Core2D.UI.Avalonia.Views.Containers.DocumentControl A_1) | |
{ | |
XamlIlContext.Context<Core2D.UI.Avalonia.Views.Containers.DocumentControl> context = new XamlIlContext.Context<Core2D.UI.Avalonia.Views.Containers.DocumentControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/DocumentControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/DocumentControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Document"; | |
tabItem4.Classes = Classes.Parse("property"); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
tabItem4.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize3 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children2.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize4 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj2 = obj = textBox3; | |
BindingExtension bindingExtension = new BindingExtension("Name"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, TextBox.TextProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize5 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Owner"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ContentControl contentControl2; | |
ContentControl contentControl = contentControl2 = new ContentControl(); | |
((ISupportInitialize)contentControl).BeginInit(); | |
tabItem7.Content = contentControl; | |
ContentControl contentControl3; | |
ISupportInitialize supportInitialize6 = contentControl3 = contentControl2; | |
context.ParentsStack.Add(contentControl3); | |
object target = obj = contentControl3; | |
BindingExtension bindingExtension2 = new BindingExtension("Owner"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize7 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Pages"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
tabItem10.Content = listBox; | |
ListBox listBox3; | |
ISupportInitialize supportInitialize8 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
object obj3 = obj = listBox3; | |
BindingExtension bindingExtension3 = new BindingExtension("Pages"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ItemsControl.ItemsProperty, context, value); | |
obj3.Classes = Classes.Parse("default"); | |
AvaloniaList<IDataTemplate> dataTemplates = obj3.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IPageContainer); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_922ec44f-0c01-4c79-9c7a-b38fb2c66b02.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600027B RID: 635 RVA: 0x00019DEC File Offset: 0x00017FEC | |
public static void xaml(IServiceProvider A_0, GroupsControl A_1) | |
{ | |
XamlIlContext.Context<GroupsControl> context = new XamlIlContext.Context<GroupsControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/GroupsControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/GroupsControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Resources.Add("IsGroupConverter", new IsGroupConverter()); | |
A_1.Resources.Add("ListBoxDropHandler", new Core2D.UI.Avalonia.Dock.Handlers.ListBoxDropHandler()); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto,Auto,*,Auto"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
children.Add(grid5); | |
ISupportInitialize supportInitialize2 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("*"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("*,Auto"); | |
Grid.SetRow(grid7, 0); | |
AvaloniaList<IControl> children2 = grid7.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children2.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize3 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj2; | |
object obj = obj2 = textBox3; | |
BindingExtension bindingExtension = new BindingExtension("Name"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, TextBox.TextProperty, context, value); | |
obj.Classes = Classes.Parse("left"); | |
Grid.SetColumn(obj, 0); | |
obj2 = obj; | |
BindingExtension bindingExtension2 = new BindingExtension("!!$self.DataContext"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children3 = grid7.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children3.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize4 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetColumn(menu4, 1); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
obj2 = (object)menuItem; | |
((IList)items).Add(obj2); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "+"; | |
obj2 = menuItem4; | |
BindingExtension bindingExtension3 = new BindingExtension("$parent[Window].DataContext.OnAddGroupLibrary"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items2 = menu4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj2 = (object)menuItem5; | |
((IList)items2).Add(obj2); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "˗"; | |
obj2 = menuItem7; | |
BindingExtension bindingExtension4 = new BindingExtension("$parent[Window].DataContext.OnRemoveGroupLibrary"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
obj2 = menuItem7; | |
BindingExtension bindingExtension5 = new BindingExtension(); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, value); | |
obj2 = menuItem7; | |
BindingExtension bindingExtension6 = new BindingExtension("!!$self.DataContext"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
ComboBox comboBox2; | |
ComboBox comboBox = comboBox2 = new ComboBox(); | |
((ISupportInitialize)comboBox).BeginInit(); | |
children4.Add(comboBox); | |
ComboBox comboBox3; | |
ISupportInitialize supportInitialize7 = comboBox3 = comboBox2; | |
context.ParentsStack.Add(comboBox3); | |
object obj3 = obj2 = comboBox3; | |
BindingExtension bindingExtension7 = new BindingExtension("$parent[Window].DataContext.Project.GroupLibraries"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ItemsControl.ItemsProperty, context, value); | |
obj2 = obj3; | |
BindingExtension bindingExtension8 = new BindingExtension("$parent[Window].DataContext.Project.CurrentGroupLibrary"); | |
bindingExtension8.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, SelectingItemsControl.SelectedItemProperty, context, value); | |
obj3.Classes = Classes.Parse("default"); | |
Grid.SetRow(obj3, 1); | |
obj2 = obj3; | |
BindingExtension bindingExtension9 = new BindingExtension("!!$self.DataContext"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, Visual.IsVisibleProperty, context, value); | |
AvaloniaList<IDataTemplate> dataTemplates = obj3.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
dataTemplate.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_611c345e-dfbf-4e99-85f0-37e6d3c072d3.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
AvaloniaList<IControl> children5 = grid4.Children; | |
Menu menu6; | |
Menu menu5 = menu6 = new Menu(); | |
((ISupportInitialize)menu5).BeginInit(); | |
children5.Add(menu5); | |
ISupportInitialize supportInitialize8 = menu3 = menu6; | |
context.ParentsStack.Add(menu3); | |
Menu menu7 = menu3; | |
Grid.SetRow(menu7, 2); | |
menu7.HorizontalAlignment = HorizontalAlignment.Right; | |
obj2 = menu7; | |
BindingExtension bindingExtension10 = new BindingExtension("!!$self.DataContext"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menu7, Visual.IsVisibleProperty, context, value); | |
IEnumerable items3 = menu7.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj2 = (object)menuItem8; | |
((IList)items3).Add(obj2); | |
ISupportInitialize supportInitialize9 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "insert"; | |
obj2 = menuItem10; | |
BindingExtension bindingExtension11 = new BindingExtension("$parent[Window].DataContext.OnInsertGroup"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandProperty, context, value); | |
obj2 = menuItem10; | |
BindingExtension bindingExtension12 = new BindingExtension("Selected"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandParameterProperty, context, value); | |
obj2 = menuItem10; | |
BindingExtension bindingExtension13 = new BindingExtension("!!Selected"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
IEnumerable items4 = menu7.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj2 = (object)menuItem11; | |
((IList)items4).Add(obj2); | |
ISupportInitialize supportInitialize10 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "+"; | |
obj2 = menuItem13; | |
BindingExtension bindingExtension14 = new BindingExtension("$parent[Window].DataContext.OnAddGroup"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, value); | |
obj2 = menuItem13; | |
BindingExtension bindingExtension15 = new BindingExtension(); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandParameterProperty, context, value); | |
obj2 = menuItem13; | |
BindingExtension bindingExtension17; | |
BindingExtension bindingExtension16 = bindingExtension17 = new BindingExtension("$parent[Window].DataContext.Project.CurrentContainer.CurrentShape"); | |
context.ParentsStack.Add(bindingExtension17); | |
object obj5; | |
object obj4 = obj5 = bindingExtension17; | |
StaticResourceExtension staticResourceExtension = new StaticResourceExtension("IsGroupConverter"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
object obj6 = staticResourceExtension.ProvideValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj6 is IBinding) && !(obj6 is UnsetValueType)) | |
{ | |
obj4.Converter = (IValueConverter)obj6; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, "Converter", context, obj6); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension16.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
IEnumerable items5 = menu7.Items; | |
MenuItem menuItem15; | |
MenuItem menuItem14 = menuItem15 = new MenuItem(); | |
((ISupportInitialize)menuItem14).BeginInit(); | |
obj5 = (object)menuItem14; | |
((IList)items5).Add(obj5); | |
ISupportInitialize supportInitialize11 = menuItem3 = menuItem15; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem16 = menuItem3; | |
menuItem16.Header = "˗"; | |
obj6 = menuItem16; | |
BindingExtension bindingExtension18 = new BindingExtension("$parent[Window].DataContext.OnRemoveGroup"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, MenuItem.CommandProperty, context, value); | |
obj2 = menuItem16; | |
BindingExtension bindingExtension19 = new BindingExtension("Selected"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, MenuItem.CommandParameterProperty, context, value); | |
obj5 = menuItem16; | |
BindingExtension bindingExtension20 = new BindingExtension("!!Selected"); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
AvaloniaList<IControl> children6 = grid4.Children; | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
children6.Add(listBox); | |
ListBox listBox3; | |
ISupportInitialize supportInitialize12 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
ListBox listBox4 = listBox3; | |
StyledElement styledElement = (StyledElement)listBox4; | |
string name = "groups"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj6 = listBox4; | |
BindingExtension bindingExtension21 = new BindingExtension("Items"); | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension21.ProvideTypedValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, ItemsControl.ItemsProperty, context, value); | |
obj2 = listBox4; | |
BindingExtension bindingExtension22 = new BindingExtension("Selected"); | |
bindingExtension22.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider22 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension22.ProvideTypedValue(serviceProvider22); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, SelectingItemsControl.SelectedItemProperty, context, value); | |
Grid.SetRow(listBox4, 3); | |
listBox4.Classes = Classes.Parse("default"); | |
List<KeyBinding> keyBindings = listBox4.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item2 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj7 = obj5 = keyBinding; | |
BindingExtension bindingExtension23 = new BindingExtension("$parent[Window].DataContext.OnAddGroup"); | |
IServiceProvider serviceProvider23 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension23.ProvideTypedValue(serviceProvider23); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, KeyBinding.CommandProperty, context, value); | |
obj6 = obj7; | |
BindingExtension bindingExtension24 = new BindingExtension("#groups.DataContext"); | |
IServiceProvider serviceProvider24 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension24.ProvideTypedValue(serviceProvider24); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, KeyBinding.CommandParameterProperty, context, value); | |
obj7.Gesture = KeyGesture.Parse("Ctrl+N"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item2); | |
List<KeyBinding> keyBindings2 = listBox4.KeyBindings; | |
KeyBinding item3 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj8 = obj2 = keyBinding; | |
BindingExtension bindingExtension25 = new BindingExtension("$parent[Window].DataContext.OnRemoveGroup"); | |
IServiceProvider serviceProvider25 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension25.ProvideTypedValue(serviceProvider25); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, KeyBinding.CommandProperty, context, value); | |
obj5 = obj8; | |
BindingExtension bindingExtension26 = new BindingExtension("#groups.SelectedItem"); | |
IServiceProvider serviceProvider26 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension26.ProvideTypedValue(serviceProvider26); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, KeyBinding.CommandParameterProperty, context, value); | |
obj8.Gesture = KeyGesture.Parse("Delete"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings2.Add(item3); | |
List<KeyBinding> keyBindings3 = listBox4.KeyBindings; | |
KeyBinding item4 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj9 = obj6 = keyBinding; | |
BindingExtension bindingExtension27 = new BindingExtension("$parent[Window].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider27 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension27.ProvideTypedValue(serviceProvider27); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, KeyBinding.CommandProperty, context, value); | |
obj2 = obj9; | |
BindingExtension bindingExtension28 = new BindingExtension("#groups.SelectedItem"); | |
IServiceProvider serviceProvider28 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension28.ProvideTypedValue(serviceProvider28); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, KeyBinding.CommandParameterProperty, context, value); | |
obj9.Gesture = KeyGesture.Parse("Ctrl+E"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings3.Add(item4); | |
AvaloniaList<IDataTemplate> dataTemplates2 = listBox4.DataTemplates; | |
IDataTemplate item5 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IGroupShape); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_99632730-3674-4c34-9238-aa0b490f41d3.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates2.Add(item5); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
AvaloniaList<IControl> children7 = grid4.Children; | |
Grid grid9; | |
Grid grid8 = grid9 = new Grid(); | |
((ISupportInitialize)grid8).BeginInit(); | |
children7.Add(grid8); | |
ISupportInitialize supportInitialize13 = grid3 = grid9; | |
context.ParentsStack.Add(grid3); | |
Grid grid10 = grid3; | |
grid10.RowDefinitions = RowDefinitions.Parse("Auto"); | |
grid10.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
Grid.SetRow(grid10, 4); | |
obj5 = grid10; | |
BindingExtension bindingExtension29 = new BindingExtension("!!#groups.SelectedItem"); | |
IServiceProvider serviceProvider29 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension29.ProvideTypedValue(serviceProvider29); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(grid10, Visual.IsVisibleProperty, context, value); | |
AvaloniaList<IControl> children8 = grid10.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children8.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children9 = grid10.Children; | |
TextBox textBox5; | |
TextBox textBox4 = textBox5 = new TextBox(); | |
((ISupportInitialize)textBox4).BeginInit(); | |
children9.Add(textBox4); | |
ISupportInitialize supportInitialize14 = textBox3 = textBox5; | |
context.ParentsStack.Add(textBox3); | |
object obj10 = obj6 = textBox3; | |
BindingExtension bindingExtension30 = new BindingExtension("#groups.SelectedItem.Name"); | |
bindingExtension30.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider30 = context; | |
context.ProvideTargetObject = obj6; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension30.ProvideTypedValue(serviceProvider30); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj10, TextBox.TextProperty, context, value); | |
obj10.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj10, 0); | |
Grid.SetColumn(obj10, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600027C RID: 636 RVA: 0x0001B430 File Offset: 0x00019630 | |
public static void xaml(IServiceProvider A_0, ImagesControl A_1) | |
{ | |
XamlIlContext.Context<ImagesControl> context = new XamlIlContext.Context<ImagesControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/ImagesControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/ImagesControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
A_1.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize2 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto,*"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize3 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetRow(menu4, 0); | |
Grid.SetColumn(menu4, 0); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
object obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize4 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
object obj2 = obj = menuItem3; | |
BindingExtension bindingExtension = new BindingExtension("$parent[Window].DataContext.OnAddImageKey"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, MenuItem.CommandProperty, context, value); | |
obj2.Header = "+"; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children2.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
Grid.SetColumn(textBlock3, 0); | |
Grid.SetRow(textBlock3, 1); | |
textBlock3.VerticalAlignment = VerticalAlignment.Center; | |
textBlock3.Text = "Key"; | |
textBlock3.Classes = Classes.Parse("default"); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
ItemsControl itemsControl2; | |
ItemsControl itemsControl = itemsControl2 = new ItemsControl(); | |
((ISupportInitialize)itemsControl).BeginInit(); | |
children3.Add(itemsControl); | |
ItemsControl itemsControl3; | |
ISupportInitialize supportInitialize5 = itemsControl3 = itemsControl2; | |
context.ParentsStack.Add(itemsControl3); | |
ItemsControl itemsControl4 = itemsControl3; | |
itemsControl4.VerticalAlignment = VerticalAlignment.Stretch; | |
Grid.SetColumn(itemsControl4, 0); | |
Grid.SetRow(itemsControl4, 2); | |
obj = itemsControl4; | |
BindingExtension bindingExtension2 = new BindingExtension("Keys"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(itemsControl4, ItemsControl.ItemsProperty, context, value); | |
AvaloniaList<IDataTemplate> dataTemplates = itemsControl4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IImageKey); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_b0ee462b-27cb-4e8f-bde1-579162282792.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600027D RID: 637 RVA: 0x0001B898 File Offset: 0x00019A98 | |
public static void xaml(IServiceProvider A_0, LayerControl A_1) | |
{ | |
XamlIlContext.Context<LayerControl> context = new XamlIlContext.Context<LayerControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/LayerControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/LayerControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Layer"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children2.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize5 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj2 = obj = textBox3; | |
BindingExtension bindingExtension = new BindingExtension("Name"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, TextBox.TextProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "IsVisible"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 1); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children4.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize6 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj3 = obj = checkBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("IsVisible"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ToggleButton.IsCheckedProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 1); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize7 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Owner"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ContentControl contentControl3; | |
ContentControl contentControl2 = contentControl3 = new ContentControl(); | |
((ISupportInitialize)contentControl2).BeginInit(); | |
tabItem7.Content = contentControl2; | |
ContentControl contentControl4; | |
ISupportInitialize supportInitialize8 = contentControl4 = contentControl3; | |
context.ParentsStack.Add(contentControl4); | |
object target = obj = contentControl4; | |
BindingExtension bindingExtension3 = new BindingExtension("Owner"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize9 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Shapes"; | |
tabItem10.Classes = Classes.Parse("property"); | |
TabControl tabControl6; | |
TabControl tabControl5 = tabControl6 = new TabControl(); | |
((ISupportInitialize)tabControl5).BeginInit(); | |
tabItem10.Content = tabControl5; | |
ISupportInitialize supportInitialize10 = tabControl3 = tabControl6; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl7 = tabControl3; | |
tabControl7.Classes = Classes.Parse("default"); | |
IEnumerable items4 = tabControl7.Items; | |
TabItem tabItem12; | |
TabItem tabItem11 = tabItem12 = new TabItem(); | |
((ISupportInitialize)tabItem11).BeginInit(); | |
obj = (object)tabItem11; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize11 = tabItem3 = tabItem12; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem13 = tabItem3; | |
tabItem13.Header = "Shapes"; | |
tabItem13.Classes = Classes.Parse("property"); | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
tabItem13.Content = listBox; | |
ListBox listBox3; | |
ISupportInitialize supportInitialize12 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
ListBox listBox4 = listBox3; | |
StyledElement styledElement = (StyledElement)listBox4; | |
string name = "shapes"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj = listBox4; | |
BindingExtension bindingExtension4 = new BindingExtension("Shapes"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, ItemsControl.ItemsProperty, context, value); | |
listBox4.Classes = Classes.Parse("default"); | |
AvaloniaList<IDataTemplate> dataTemplates = listBox4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IBaseShape); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_0fd2c3d0-a722-4973-85a8-c3d7c0531adb.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
IEnumerable items5 = tabControl7.Items; | |
TabItem tabItem15; | |
TabItem tabItem14 = tabItem15 = new TabItem(); | |
((ISupportInitialize)tabItem14).BeginInit(); | |
obj = (object)tabItem14; | |
((IList)items5).Add(obj); | |
ISupportInitialize supportInitialize13 = tabItem3 = tabItem15; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem16 = tabItem3; | |
tabItem16.Header = "Selected"; | |
tabItem16.Classes = Classes.Parse("property"); | |
ContentControl contentControl6; | |
ContentControl contentControl5 = contentControl6 = new ContentControl(); | |
((ISupportInitialize)contentControl5).BeginInit(); | |
tabItem16.Content = contentControl5; | |
ISupportInitialize supportInitialize14 = contentControl4 = contentControl6; | |
context.ParentsStack.Add(contentControl4); | |
object target2 = obj = contentControl4; | |
BindingExtension bindingExtension5 = new BindingExtension("#shapes.SelectedItem"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target2, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600027E RID: 638 RVA: 0x0001C310 File Offset: 0x0001A510 | |
public static void xaml(IServiceProvider A_0, LayersControl A_1) | |
{ | |
XamlIlContext.Context<LayersControl> context = new XamlIlContext.Context<LayersControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/LayersControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/LayersControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Layers"; | |
tabItem4.Classes = Classes.Parse("property"); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
tabItem4.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize3 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*,Auto"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize4 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetRow(menu4, 0); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items2 = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
obj = (object)menuItem; | |
((IList)items2).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "+"; | |
obj = menuItem4; | |
BindingExtension bindingExtension = new BindingExtension("$parent[Window].DataContext.OnAddLayer"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, value); | |
obj = menuItem4; | |
BindingExtension bindingExtension2 = new BindingExtension(); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandParameterProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items3 = menu4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj = (object)menuItem5; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "˗"; | |
obj = menuItem7; | |
BindingExtension bindingExtension3 = new BindingExtension("$parent[Window].DataContext.OnRemoveLayer"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
obj = menuItem7; | |
BindingExtension bindingExtension4 = new BindingExtension("CurrentLayer"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, value); | |
obj = menuItem7; | |
BindingExtension bindingExtension5 = new BindingExtension("!!CurrentLayer"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
children2.Add(listBox); | |
ListBox listBox3; | |
ISupportInitialize supportInitialize7 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
ListBox listBox4 = listBox3; | |
StyledElement styledElement = (StyledElement)listBox4; | |
string name = "layers"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj = listBox4; | |
BindingExtension bindingExtension6 = new BindingExtension("Layers"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, ItemsControl.ItemsProperty, context, value); | |
obj = listBox4; | |
BindingExtension bindingExtension7 = new BindingExtension("CurrentLayer"); | |
bindingExtension7.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, SelectingItemsControl.SelectedItemProperty, context, value); | |
listBox4.Classes = Classes.Parse("default"); | |
Grid.SetRow(listBox4, 1); | |
List<KeyBinding> keyBindings = listBox4.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj2 = obj = keyBinding; | |
BindingExtension bindingExtension8 = new BindingExtension("$parent[Window].DataContext.OnAddLayer"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, KeyBinding.CommandProperty, context, value); | |
obj = obj2; | |
BindingExtension bindingExtension9 = new BindingExtension("#layers.DataContext"); | |
bindingExtension9.Mode = BindingMode.OneWay; | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, KeyBinding.CommandParameterProperty, context, value); | |
obj2.Gesture = KeyGesture.Parse("Ctrl+N"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item); | |
List<KeyBinding> keyBindings2 = listBox4.KeyBindings; | |
KeyBinding item2 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj3 = obj = keyBinding; | |
BindingExtension bindingExtension10 = new BindingExtension("$parent[Window].DataContext.OnRemoveLayer"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandProperty, context, value); | |
obj = obj3; | |
BindingExtension bindingExtension11 = new BindingExtension("#layers.SelectedItem"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandParameterProperty, context, value); | |
obj3.Gesture = KeyGesture.Parse("Delete"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings2.Add(item2); | |
AvaloniaList<IDataTemplate> dataTemplates = listBox4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item3 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(ILayerContainer); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_f32a1cce-a531-409a-9ad0-5c4e5fe327c6.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item3); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
children3.Add(grid5); | |
ISupportInitialize supportInitialize8 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("Auto"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
Grid.SetRow(grid7, 2); | |
obj = grid7; | |
BindingExtension bindingExtension12 = new BindingExtension("!!CurrentLayer"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(grid7, Visual.IsVisibleProperty, context, value); | |
AvaloniaList<IControl> children4 = grid7.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children4.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children5 = grid7.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children5.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize9 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj4 = obj = textBox3; | |
BindingExtension bindingExtension13 = new BindingExtension("CurrentLayer.Name"); | |
bindingExtension13.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, TextBox.TextProperty, context, value); | |
obj4.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj4, 0); | |
Grid.SetColumn(obj4, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items4 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize10 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Selected"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ContentControl contentControl2; | |
ContentControl contentControl = contentControl2 = new ContentControl(); | |
((ISupportInitialize)contentControl).BeginInit(); | |
tabItem7.Content = contentControl; | |
ContentControl contentControl3; | |
ISupportInitialize supportInitialize11 = contentControl3 = contentControl2; | |
context.ParentsStack.Add(contentControl3); | |
object target = obj = contentControl3; | |
BindingExtension bindingExtension14 = new BindingExtension("CurrentLayer"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600027F RID: 639 RVA: 0x0001D024 File Offset: 0x0001B224 | |
public static void xaml(IServiceProvider A_0, LibraryControl A_1) | |
{ | |
XamlIlContext.Context<LibraryControl> context = new XamlIlContext.Context<LibraryControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/LibraryControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/LibraryControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,50,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children2.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize2 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object provideTargetObject; | |
object obj = provideTargetObject = textBox3; | |
BindingExtension bindingExtension = new BindingExtension("Name"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, TextBox.TextProperty, context, value); | |
obj.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj, 0); | |
Grid.SetColumn(obj, 1); | |
Grid.SetColumnSpan(obj, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000280 RID: 640 RVA: 0x0001D270 File Offset: 0x0001B470 | |
public static void xaml(IServiceProvider A_0, OptionsControl A_1) | |
{ | |
XamlIlContext.Context<OptionsControl> context = new XamlIlContext.Context<OptionsControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/OptionsControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/OptionsControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "General"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto,Auto,Auto,Auto,Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,50,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "SnapToGrid"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children2.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize5 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj2 = obj = checkBox3; | |
BindingExtension bindingExtension = new BindingExtension("SnapToGrid"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ToggleButton.IsCheckedProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
Grid.SetColumnSpan(obj2, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "SnapX"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 1); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children4.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize6 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj3 = obj = textBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("SnapX"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, TextBox.TextProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 1); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
AvaloniaList<IControl> children5 = grid4.Children; | |
Slider slider2; | |
Slider slider = slider2 = new Slider(); | |
((ISupportInitialize)slider).BeginInit(); | |
children5.Add(slider); | |
Slider slider3; | |
ISupportInitialize supportInitialize7 = slider3 = slider2; | |
context.ParentsStack.Add(slider3); | |
Slider slider4 = slider3; | |
slider4.Classes = Classes.Parse("slider"); | |
obj = slider4; | |
BindingExtension bindingExtension3 = new BindingExtension("SnapX"); | |
bindingExtension3.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = RangeBase.ValueProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(slider4, RangeBase.ValueProperty, context, value); | |
slider4.Minimum = 0.0; | |
slider4.Maximum = 30.0; | |
Grid.SetRow(slider4, 1); | |
Grid.SetColumn(slider4, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
AvaloniaList<IControl> children6 = grid4.Children; | |
TextBlock textBlock8; | |
TextBlock textBlock7 = textBlock8 = new TextBlock(); | |
((ISupportInitialize)textBlock7).BeginInit(); | |
children6.Add(textBlock7); | |
TextBlock textBlock9 = textBlock8; | |
textBlock9.Text = "SnapY"; | |
textBlock9.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock9, 2); | |
Grid.SetColumn(textBlock9, 0); | |
((ISupportInitialize)textBlock9).EndInit(); | |
AvaloniaList<IControl> children7 = grid4.Children; | |
TextBox textBox5; | |
TextBox textBox4 = textBox5 = new TextBox(); | |
((ISupportInitialize)textBox4).BeginInit(); | |
children7.Add(textBox4); | |
ISupportInitialize supportInitialize8 = textBox3 = textBox5; | |
context.ParentsStack.Add(textBox3); | |
object obj4 = obj = textBox3; | |
BindingExtension bindingExtension4 = new BindingExtension("SnapY"); | |
bindingExtension4.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, TextBox.TextProperty, context, value); | |
obj4.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj4, 2); | |
Grid.SetColumn(obj4, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
AvaloniaList<IControl> children8 = grid4.Children; | |
Slider slider6; | |
Slider slider5 = slider6 = new Slider(); | |
((ISupportInitialize)slider5).BeginInit(); | |
children8.Add(slider5); | |
ISupportInitialize supportInitialize9 = slider3 = slider6; | |
context.ParentsStack.Add(slider3); | |
Slider slider7 = slider3; | |
slider7.Classes = Classes.Parse("slider"); | |
obj = slider7; | |
BindingExtension bindingExtension5 = new BindingExtension("SnapY"); | |
bindingExtension5.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = RangeBase.ValueProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(slider7, RangeBase.ValueProperty, context, value); | |
slider7.Minimum = 0.0; | |
slider7.Maximum = 30.0; | |
Grid.SetRow(slider7, 2); | |
Grid.SetColumn(slider7, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
AvaloniaList<IControl> children9 = grid4.Children; | |
TextBlock textBlock11; | |
TextBlock textBlock10 = textBlock11 = new TextBlock(); | |
((ISupportInitialize)textBlock10).BeginInit(); | |
children9.Add(textBlock10); | |
TextBlock textBlock12 = textBlock11; | |
textBlock12.Text = "HitThreshold"; | |
textBlock12.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock12, 3); | |
Grid.SetColumn(textBlock12, 0); | |
((ISupportInitialize)textBlock12).EndInit(); | |
AvaloniaList<IControl> children10 = grid4.Children; | |
TextBox textBox7; | |
TextBox textBox6 = textBox7 = new TextBox(); | |
((ISupportInitialize)textBox6).BeginInit(); | |
children10.Add(textBox6); | |
ISupportInitialize supportInitialize10 = textBox3 = textBox7; | |
context.ParentsStack.Add(textBox3); | |
object obj5 = obj = textBox3; | |
BindingExtension bindingExtension6 = new BindingExtension("HitThreshold"); | |
bindingExtension6.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, TextBox.TextProperty, context, value); | |
obj5.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj5, 3); | |
Grid.SetColumn(obj5, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
AvaloniaList<IControl> children11 = grid4.Children; | |
Slider slider9; | |
Slider slider8 = slider9 = new Slider(); | |
((ISupportInitialize)slider8).BeginInit(); | |
children11.Add(slider8); | |
ISupportInitialize supportInitialize11 = slider3 = slider9; | |
context.ParentsStack.Add(slider3); | |
Slider slider10 = slider3; | |
slider10.Classes = Classes.Parse("slider"); | |
obj = slider10; | |
BindingExtension bindingExtension7 = new BindingExtension("HitThreshold"); | |
bindingExtension7.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = RangeBase.ValueProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(slider10, RangeBase.ValueProperty, context, value); | |
slider10.Minimum = 0.0; | |
slider10.Maximum = 30.0; | |
Grid.SetRow(slider10, 3); | |
Grid.SetColumn(slider10, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
AvaloniaList<IControl> children12 = grid4.Children; | |
TextBlock textBlock14; | |
TextBlock textBlock13 = textBlock14 = new TextBlock(); | |
((ISupportInitialize)textBlock13).BeginInit(); | |
children12.Add(textBlock13); | |
TextBlock textBlock15 = textBlock14; | |
textBlock15.Text = "MoveMode"; | |
textBlock15.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock15, 4); | |
Grid.SetColumn(textBlock15, 0); | |
((ISupportInitialize)textBlock15).EndInit(); | |
AvaloniaList<IControl> children13 = grid4.Children; | |
ComboBox comboBox2; | |
ComboBox comboBox = comboBox2 = new ComboBox(); | |
((ISupportInitialize)comboBox).BeginInit(); | |
children13.Add(comboBox); | |
ComboBox comboBox3; | |
ISupportInitialize supportInitialize12 = comboBox3 = comboBox2; | |
context.ParentsStack.Add(comboBox3); | |
ComboBox comboBox4 = comboBox3; | |
comboBox4.Items = Enums.MoveModeValues; | |
obj = comboBox4; | |
BindingExtension bindingExtension8 = new BindingExtension("MoveMode"); | |
bindingExtension8.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(comboBox4, SelectingItemsControl.SelectedItemProperty, context, value); | |
comboBox4.Classes = Classes.Parse("default"); | |
Grid.SetRow(comboBox4, 4); | |
Grid.SetColumn(comboBox4, 1); | |
Grid.SetColumnSpan(comboBox4, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
AvaloniaList<IControl> children14 = grid4.Children; | |
TextBlock textBlock17; | |
TextBlock textBlock16 = textBlock17 = new TextBlock(); | |
((ISupportInitialize)textBlock16).BeginInit(); | |
children14.Add(textBlock16); | |
TextBlock textBlock18 = textBlock17; | |
textBlock18.Text = "TryToConnect"; | |
textBlock18.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock18, 5); | |
Grid.SetColumn(textBlock18, 0); | |
((ISupportInitialize)textBlock18).EndInit(); | |
AvaloniaList<IControl> children15 = grid4.Children; | |
CheckBox checkBox5; | |
CheckBox checkBox4 = checkBox5 = new CheckBox(); | |
((ISupportInitialize)checkBox4).BeginInit(); | |
children15.Add(checkBox4); | |
ISupportInitialize supportInitialize13 = checkBox3 = checkBox5; | |
context.ParentsStack.Add(checkBox3); | |
object obj6 = obj = checkBox3; | |
BindingExtension bindingExtension9 = new BindingExtension("TryToConnect"); | |
bindingExtension9.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, ToggleButton.IsCheckedProperty, context, value); | |
obj6.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj6, 5); | |
Grid.SetColumn(obj6, 1); | |
Grid.SetColumnSpan(obj6, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
AvaloniaList<IControl> children16 = grid4.Children; | |
TextBlock textBlock20; | |
TextBlock textBlock19 = textBlock20 = new TextBlock(); | |
((ISupportInitialize)textBlock19).BeginInit(); | |
children16.Add(textBlock19); | |
TextBlock textBlock21 = textBlock20; | |
textBlock21.Text = "CloneStyle"; | |
textBlock21.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock21, 6); | |
Grid.SetColumn(textBlock21, 0); | |
((ISupportInitialize)textBlock21).EndInit(); | |
AvaloniaList<IControl> children17 = grid4.Children; | |
CheckBox checkBox7; | |
CheckBox checkBox6 = checkBox7 = new CheckBox(); | |
((ISupportInitialize)checkBox6).BeginInit(); | |
children17.Add(checkBox6); | |
ISupportInitialize supportInitialize14 = checkBox3 = checkBox7; | |
context.ParentsStack.Add(checkBox3); | |
object obj7 = obj = checkBox3; | |
BindingExtension bindingExtension10 = new BindingExtension("CloneStyle"); | |
bindingExtension10.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, ToggleButton.IsCheckedProperty, context, value); | |
obj7.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj7, 6); | |
Grid.SetColumn(obj7, 1); | |
Grid.SetColumnSpan(obj7, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize15 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Defaults"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer5; | |
ScrollViewer scrollViewer4 = scrollViewer5 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer4).BeginInit(); | |
tabItem7.Content = scrollViewer4; | |
ISupportInitialize supportInitialize16 = scrollViewer3 = scrollViewer5; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl2 = scrollViewer3; | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
contentControl2.Content = grid5; | |
ISupportInitialize supportInitialize17 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("Auto,Auto,Auto,Auto,Auto"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children18 = grid7.Children; | |
TextBlock textBlock23; | |
TextBlock textBlock22 = textBlock23 = new TextBlock(); | |
((ISupportInitialize)textBlock22).BeginInit(); | |
children18.Add(textBlock22); | |
TextBlock textBlock24 = textBlock23; | |
textBlock24.Text = "IsStroked"; | |
textBlock24.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock24, 0); | |
Grid.SetColumn(textBlock24, 0); | |
((ISupportInitialize)textBlock24).EndInit(); | |
AvaloniaList<IControl> children19 = grid7.Children; | |
CheckBox checkBox9; | |
CheckBox checkBox8 = checkBox9 = new CheckBox(); | |
((ISupportInitialize)checkBox8).BeginInit(); | |
children19.Add(checkBox8); | |
ISupportInitialize supportInitialize18 = checkBox3 = checkBox9; | |
context.ParentsStack.Add(checkBox3); | |
object obj8 = obj = checkBox3; | |
BindingExtension bindingExtension11 = new BindingExtension("DefaultIsStroked"); | |
bindingExtension11.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, ToggleButton.IsCheckedProperty, context, value); | |
obj8.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj8, 0); | |
Grid.SetColumn(obj8, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize18.EndInit(); | |
AvaloniaList<IControl> children20 = grid7.Children; | |
TextBlock textBlock26; | |
TextBlock textBlock25 = textBlock26 = new TextBlock(); | |
((ISupportInitialize)textBlock25).BeginInit(); | |
children20.Add(textBlock25); | |
TextBlock textBlock27 = textBlock26; | |
textBlock27.Text = "IsFilled"; | |
textBlock27.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock27, 1); | |
Grid.SetColumn(textBlock27, 0); | |
((ISupportInitialize)textBlock27).EndInit(); | |
AvaloniaList<IControl> children21 = grid7.Children; | |
CheckBox checkBox11; | |
CheckBox checkBox10 = checkBox11 = new CheckBox(); | |
((ISupportInitialize)checkBox10).BeginInit(); | |
children21.Add(checkBox10); | |
ISupportInitialize supportInitialize19 = checkBox3 = checkBox11; | |
context.ParentsStack.Add(checkBox3); | |
object obj9 = obj = checkBox3; | |
BindingExtension bindingExtension12 = new BindingExtension("DefaultIsFilled"); | |
bindingExtension12.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, ToggleButton.IsCheckedProperty, context, value); | |
obj9.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj9, 1); | |
Grid.SetColumn(obj9, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize19.EndInit(); | |
AvaloniaList<IControl> children22 = grid7.Children; | |
TextBlock textBlock29; | |
TextBlock textBlock28 = textBlock29 = new TextBlock(); | |
((ISupportInitialize)textBlock28).BeginInit(); | |
children22.Add(textBlock28); | |
TextBlock textBlock30 = textBlock29; | |
textBlock30.Text = "IsClosed"; | |
textBlock30.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock30, 2); | |
Grid.SetColumn(textBlock30, 0); | |
((ISupportInitialize)textBlock30).EndInit(); | |
AvaloniaList<IControl> children23 = grid7.Children; | |
CheckBox checkBox13; | |
CheckBox checkBox12 = checkBox13 = new CheckBox(); | |
((ISupportInitialize)checkBox12).BeginInit(); | |
children23.Add(checkBox12); | |
ISupportInitialize supportInitialize20 = checkBox3 = checkBox13; | |
context.ParentsStack.Add(checkBox3); | |
object obj10 = obj = checkBox3; | |
BindingExtension bindingExtension13 = new BindingExtension("DefaultIsClosed"); | |
bindingExtension13.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj10, ToggleButton.IsCheckedProperty, context, value); | |
obj10.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj10, 2); | |
Grid.SetColumn(obj10, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize20.EndInit(); | |
AvaloniaList<IControl> children24 = grid7.Children; | |
TextBlock textBlock32; | |
TextBlock textBlock31 = textBlock32 = new TextBlock(); | |
((ISupportInitialize)textBlock31).BeginInit(); | |
children24.Add(textBlock31); | |
TextBlock textBlock33 = textBlock32; | |
textBlock33.Text = "IsSmoothJoin"; | |
textBlock33.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock33, 3); | |
Grid.SetColumn(textBlock33, 0); | |
((ISupportInitialize)textBlock33).EndInit(); | |
AvaloniaList<IControl> children25 = grid7.Children; | |
CheckBox checkBox15; | |
CheckBox checkBox14 = checkBox15 = new CheckBox(); | |
((ISupportInitialize)checkBox14).BeginInit(); | |
children25.Add(checkBox14); | |
ISupportInitialize supportInitialize21 = checkBox3 = checkBox15; | |
context.ParentsStack.Add(checkBox3); | |
object obj11 = obj = checkBox3; | |
BindingExtension bindingExtension14 = new BindingExtension("DefaultIsSmoothJoin"); | |
bindingExtension14.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj11, ToggleButton.IsCheckedProperty, context, value); | |
obj11.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj11, 3); | |
Grid.SetColumn(obj11, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize21.EndInit(); | |
AvaloniaList<IControl> children26 = grid7.Children; | |
TextBlock textBlock35; | |
TextBlock textBlock34 = textBlock35 = new TextBlock(); | |
((ISupportInitialize)textBlock34).BeginInit(); | |
children26.Add(textBlock34); | |
TextBlock textBlock36 = textBlock35; | |
textBlock36.Text = "FillRule"; | |
textBlock36.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock36, 4); | |
Grid.SetColumn(textBlock36, 0); | |
((ISupportInitialize)textBlock36).EndInit(); | |
AvaloniaList<IControl> children27 = grid7.Children; | |
ComboBox comboBox6; | |
ComboBox comboBox5 = comboBox6 = new ComboBox(); | |
((ISupportInitialize)comboBox5).BeginInit(); | |
children27.Add(comboBox5); | |
ISupportInitialize supportInitialize22 = comboBox3 = comboBox6; | |
context.ParentsStack.Add(comboBox3); | |
ComboBox comboBox7 = comboBox3; | |
comboBox7.Items = Enums.XFillRuleValues; | |
obj = comboBox7; | |
BindingExtension bindingExtension15 = new BindingExtension("DefaultFillRule"); | |
bindingExtension15.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(comboBox7, SelectingItemsControl.SelectedItemProperty, context, value); | |
comboBox7.Classes = Classes.Parse("default"); | |
Grid.SetRow(comboBox7, 4); | |
Grid.SetColumn(comboBox7, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize22.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize17.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize16.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize15.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize23 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Advanced"; | |
tabItem10.Classes = Classes.Parse("property"); | |
TabControl tabControl6; | |
TabControl tabControl5 = tabControl6 = new TabControl(); | |
((ISupportInitialize)tabControl5).BeginInit(); | |
tabItem10.Content = tabControl5; | |
ISupportInitialize supportInitialize24 = tabControl3 = tabControl6; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl7 = tabControl3; | |
tabControl7.Classes = Classes.Parse("default"); | |
IEnumerable items4 = tabControl7.Items; | |
TabItem tabItem12; | |
TabItem tabItem11 = tabItem12 = new TabItem(); | |
((ISupportInitialize)tabItem11).BeginInit(); | |
obj = (object)tabItem11; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize25 = tabItem3 = tabItem12; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem13 = tabItem3; | |
tabItem13.Header = "PointShape"; | |
tabItem13.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer7; | |
ScrollViewer scrollViewer6 = scrollViewer7 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer6).BeginInit(); | |
tabItem13.Content = scrollViewer6; | |
ISupportInitialize supportInitialize26 = scrollViewer3 = scrollViewer7; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl3 = scrollViewer3; | |
ContentControl contentControl5; | |
ContentControl contentControl4 = contentControl5 = new ContentControl(); | |
((ISupportInitialize)contentControl4).BeginInit(); | |
contentControl3.Content = contentControl4; | |
ContentControl contentControl6; | |
ISupportInitialize supportInitialize27 = contentControl6 = contentControl5; | |
context.ParentsStack.Add(contentControl6); | |
object target = obj = contentControl6; | |
BindingExtension bindingExtension16 = new BindingExtension("PointShape"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize27.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize26.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize25.EndInit(); | |
IEnumerable items5 = tabControl7.Items; | |
TabItem tabItem15; | |
TabItem tabItem14 = tabItem15 = new TabItem(); | |
((ISupportInitialize)tabItem14).BeginInit(); | |
obj = (object)tabItem14; | |
((IList)items5).Add(obj); | |
ISupportInitialize supportInitialize28 = tabItem3 = tabItem15; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem16 = tabItem3; | |
tabItem16.Header = "PointStyle"; | |
tabItem16.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer9; | |
ScrollViewer scrollViewer8 = scrollViewer9 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer8).BeginInit(); | |
tabItem16.Content = scrollViewer8; | |
ISupportInitialize supportInitialize29 = scrollViewer3 = scrollViewer9; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl7 = scrollViewer3; | |
ContentControl contentControl9; | |
ContentControl contentControl8 = contentControl9 = new ContentControl(); | |
((ISupportInitialize)contentControl8).BeginInit(); | |
contentControl7.Content = contentControl8; | |
ISupportInitialize supportInitialize30 = contentControl6 = contentControl9; | |
context.ParentsStack.Add(contentControl6); | |
object target2 = obj = contentControl6; | |
BindingExtension bindingExtension17 = new BindingExtension("PointStyle"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target2, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize30.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize29.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize28.EndInit(); | |
IEnumerable items6 = tabControl7.Items; | |
TabItem tabItem18; | |
TabItem tabItem17 = tabItem18 = new TabItem(); | |
((ISupportInitialize)tabItem17).BeginInit(); | |
obj = (object)tabItem17; | |
((IList)items6).Add(obj); | |
ISupportInitialize supportInitialize31 = tabItem3 = tabItem18; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem19 = tabItem3; | |
tabItem19.Header = "SelectionStyle"; | |
tabItem19.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer11; | |
ScrollViewer scrollViewer10 = scrollViewer11 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer10).BeginInit(); | |
tabItem19.Content = scrollViewer10; | |
ISupportInitialize supportInitialize32 = scrollViewer3 = scrollViewer11; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl10 = scrollViewer3; | |
ContentControl contentControl12; | |
ContentControl contentControl11 = contentControl12 = new ContentControl(); | |
((ISupportInitialize)contentControl11).BeginInit(); | |
contentControl10.Content = contentControl11; | |
ISupportInitialize supportInitialize33 = contentControl6 = contentControl12; | |
context.ParentsStack.Add(contentControl6); | |
object target3 = obj = contentControl6; | |
BindingExtension bindingExtension18 = new BindingExtension("SelectionStyle"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target3, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize33.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize32.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize31.EndInit(); | |
IEnumerable items7 = tabControl7.Items; | |
TabItem tabItem21; | |
TabItem tabItem20 = tabItem21 = new TabItem(); | |
((ISupportInitialize)tabItem20).BeginInit(); | |
obj = (object)tabItem20; | |
((IList)items7).Add(obj); | |
ISupportInitialize supportInitialize34 = tabItem3 = tabItem21; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem22 = tabItem3; | |
tabItem22.Header = "HelperStyle"; | |
tabItem22.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer13; | |
ScrollViewer scrollViewer12 = scrollViewer13 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer12).BeginInit(); | |
tabItem22.Content = scrollViewer12; | |
ISupportInitialize supportInitialize35 = scrollViewer3 = scrollViewer13; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl13 = scrollViewer3; | |
ContentControl contentControl15; | |
ContentControl contentControl14 = contentControl15 = new ContentControl(); | |
((ISupportInitialize)contentControl14).BeginInit(); | |
contentControl13.Content = contentControl14; | |
ISupportInitialize supportInitialize36 = contentControl6 = contentControl15; | |
context.ParentsStack.Add(contentControl6); | |
object target4 = obj = contentControl6; | |
BindingExtension bindingExtension19 = new BindingExtension("HelperStyle"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target4, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize36.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize35.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize34.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize24.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize23.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000281 RID: 641 RVA: 0x0001F074 File Offset: 0x0001D274 | |
public static void xaml(IServiceProvider A_0, ProjectControl A_1) | |
{ | |
XamlIlContext.Context<ProjectControl> context = new XamlIlContext.Context<ProjectControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/ProjectControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/ProjectControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Resources.Add("TreeViewDropHandler", new Core2D.UI.Avalonia.Dock.Handlers.TreeViewDropHandler()); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
children.Add(grid5); | |
ISupportInitialize supportInitialize2 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
Grid.SetRow(grid7, 0); | |
grid7.RowDefinitions = RowDefinitions.Parse("*"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("*,Auto"); | |
AvaloniaList<IControl> children2 = grid7.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children2.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize3 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj2; | |
object obj = obj2 = textBox3; | |
BindingExtension bindingExtension = new BindingExtension("Name"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
IBinding binding = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, TextBox.TextProperty, context, binding); | |
obj.Classes = Classes.Parse("left"); | |
Grid.SetColumn(obj, 0); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children3 = grid7.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children3.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize4 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetColumn(menu4, 1); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
obj2 = (object)menuItem; | |
((IList)items).Add(obj2); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "+"; | |
obj2 = menuItem4; | |
BindingExtension bindingExtension2 = new BindingExtension("$parent[Window].DataContext.OnNew"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem4; | |
BindingExtension bindingExtension3 = new BindingExtension("Selected"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items2 = menu4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj2 = (object)menuItem5; | |
((IList)items2).Add(obj2); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "˗"; | |
obj2 = menuItem7; | |
BindingExtension bindingExtension4 = new BindingExtension("$parent[Window].DataContext.OnDelete"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem7; | |
BindingExtension bindingExtension5 = new BindingExtension("Selected"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, binding); | |
obj2 = menuItem7; | |
BindingExtension bindingExtension6 = new BindingExtension("!!Selected"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
binding = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, Visual.IsVisibleProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
TreeView treeView2; | |
TreeView treeView = treeView2 = new TreeView(); | |
((ISupportInitialize)treeView).BeginInit(); | |
children4.Add(treeView); | |
TreeView treeView3; | |
ISupportInitialize supportInitialize7 = treeView3 = treeView2; | |
context.ParentsStack.Add(treeView3); | |
TreeView treeView4 = treeView3; | |
StyledElement styledElement = (StyledElement)treeView4; | |
string name = "documents"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj2 = treeView4; | |
BindingExtension bindingExtension7 = new BindingExtension("Documents"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
binding = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeView4, ItemsControl.ItemsProperty, context, binding); | |
obj2 = treeView4; | |
BindingExtension bindingExtension8 = new BindingExtension("Selected"); | |
bindingExtension8.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = TreeView.SelectedItemProperty; | |
binding = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeView4, TreeView.SelectedItemProperty, context, binding); | |
Grid.SetRow(treeView4, 1); | |
treeView4.Classes = Classes.Parse("default"); | |
List<KeyBinding> keyBindings = treeView4.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj3 = obj2 = keyBinding; | |
BindingExtension bindingExtension9 = new BindingExtension("$parent[Window].DataContext.OnNew"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandProperty, context, binding); | |
obj2 = obj3; | |
BindingExtension bindingExtension10 = new BindingExtension("#documents.SelectedItem"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandParameterProperty, context, binding); | |
obj3.Gesture = KeyGesture.Parse("Ctrl+N"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item); | |
List<KeyBinding> keyBindings2 = treeView4.KeyBindings; | |
KeyBinding item2 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj4 = obj2 = keyBinding; | |
BindingExtension bindingExtension11 = new BindingExtension("$parent[Window].DataContext.OnCut"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, KeyBinding.CommandProperty, context, binding); | |
obj2 = obj4; | |
BindingExtension bindingExtension12 = new BindingExtension("#documents.SelectedItem"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, KeyBinding.CommandParameterProperty, context, binding); | |
obj4.Gesture = KeyGesture.Parse("Ctrl+X"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings2.Add(item2); | |
List<KeyBinding> keyBindings3 = treeView4.KeyBindings; | |
KeyBinding item3 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj5 = obj2 = keyBinding; | |
BindingExtension bindingExtension13 = new BindingExtension("$parent[Window].DataContext.OnCopy"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, KeyBinding.CommandProperty, context, binding); | |
obj2 = obj5; | |
BindingExtension bindingExtension14 = new BindingExtension("#documents.SelectedItem"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, KeyBinding.CommandParameterProperty, context, binding); | |
obj5.Gesture = KeyGesture.Parse("Ctrl+C"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings3.Add(item3); | |
List<KeyBinding> keyBindings4 = treeView4.KeyBindings; | |
KeyBinding item4 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj6 = obj2 = keyBinding; | |
BindingExtension bindingExtension15 = new BindingExtension("$parent[Window].DataContext.OnPaste"); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, KeyBinding.CommandProperty, context, binding); | |
obj2 = obj6; | |
BindingExtension bindingExtension16 = new BindingExtension("#documents.SelectedItem"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, KeyBinding.CommandParameterProperty, context, binding); | |
obj6.Gesture = KeyGesture.Parse("Ctrl+V"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings4.Add(item4); | |
List<KeyBinding> keyBindings5 = treeView4.KeyBindings; | |
KeyBinding item5 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj7 = obj2 = keyBinding; | |
BindingExtension bindingExtension17 = new BindingExtension("$parent[Window].DataContext.OnDelete"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, KeyBinding.CommandProperty, context, binding); | |
obj2 = obj7; | |
BindingExtension bindingExtension18 = new BindingExtension("#documents.SelectedItem"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, KeyBinding.CommandParameterProperty, context, binding); | |
obj7.Gesture = KeyGesture.Parse("Delete"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings5.Add(item5); | |
List<KeyBinding> keyBindings6 = treeView4.KeyBindings; | |
KeyBinding item6 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj8 = obj2 = keyBinding; | |
BindingExtension bindingExtension19 = new BindingExtension("$parent[Window].DataContext.Platform.OnExport"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, KeyBinding.CommandProperty, context, binding); | |
obj2 = obj8; | |
BindingExtension bindingExtension20 = new BindingExtension("#documents.SelectedItem"); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, KeyBinding.CommandParameterProperty, context, binding); | |
obj8.Gesture = KeyGesture.Parse("Ctrl+E"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings6.Add(item6); | |
ContextMenu contextMenu2; | |
ContextMenu contextMenu = contextMenu2 = new ContextMenu(); | |
((ISupportInitialize)contextMenu).BeginInit(); | |
treeView4.ContextMenu = contextMenu; | |
ContextMenu contextMenu3; | |
ISupportInitialize supportInitialize8 = contextMenu3 = contextMenu2; | |
context.ParentsStack.Add(contextMenu3); | |
ContextMenu contextMenu4 = contextMenu3; | |
contextMenu4.Classes = Classes.Parse("default"); | |
IEnumerable items3 = contextMenu4.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj2 = (object)menuItem8; | |
((IList)items3).Add(obj2); | |
ISupportInitialize supportInitialize9 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "_Add Document"; | |
obj2 = menuItem10; | |
BindingExtension bindingExtension21 = new BindingExtension("$parent[Window].DataContext.OnAddDocument"); | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension21.ProvideTypedValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem10; | |
BindingExtension bindingExtension22 = new BindingExtension(); | |
bindingExtension22.Mode = BindingMode.OneWay; | |
IServiceProvider serviceProvider22 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension22.ProvideTypedValue(serviceProvider22); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
IEnumerable items4 = contextMenu4.Items; | |
Separator separator2; | |
Separator separator = separator2 = new Separator(); | |
((ISupportInitialize)separator).BeginInit(); | |
obj2 = (object)separator; | |
((IList)items4).Add(obj2); | |
((ISupportInitialize)separator2).EndInit(); | |
IEnumerable items5 = contextMenu4.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj2 = (object)menuItem11; | |
((IList)items5).Add(obj2); | |
ISupportInitialize supportInitialize10 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "E_xport"; | |
obj2 = menuItem13; | |
BindingExtension bindingExtension23 = new BindingExtension("$parent[Window].DataContext.Platform.OnExport"); | |
IServiceProvider serviceProvider23 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension23.ProvideTypedValue(serviceProvider23); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, binding); | |
obj2 = menuItem13; | |
BindingExtension bindingExtension24 = new BindingExtension(); | |
bindingExtension24.Mode = BindingMode.OneWay; | |
IServiceProvider serviceProvider24 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension24.ProvideTypedValue(serviceProvider24); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
Styles styles = treeView4.Styles; | |
Style style; | |
IStyle item7 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style2 = style; | |
style2.Selector = Selectors.OfType((Selector)null, typeof(TreeViewItem)); | |
ICollection<ISetter> setters = style2.Setters; | |
Setter setter; | |
ISetter item8 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter2 = setter; | |
setter2.Property = TreeViewItem.IsExpandedProperty; | |
obj2 = setter2; | |
BindingExtension bindingExtension25 = new BindingExtension("IsExpanded"); | |
bindingExtension25.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider25 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "Value"; | |
binding = bindingExtension25.ProvideTypedValue(serviceProvider25); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter2.Value = binding; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters.Add(item8); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles.Add(item7); | |
AvaloniaList<IDataTemplate> dataTemplates = treeView4.DataTemplates; | |
TreeDataTemplate treeDataTemplate; | |
IDataTemplate item9 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate2 = treeDataTemplate; | |
treeDataTemplate2.DataType = typeof(IDocumentContainer); | |
obj2 = treeDataTemplate2; | |
BindingExtension bindingExtension26 = new BindingExtension("Pages"); | |
IServiceProvider serviceProvider26 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension26.ProvideTypedValue(serviceProvider26); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate2.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate2, "ItemsSource", context, binding); | |
} | |
treeDataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_86fc9939-30cc-428e-b6da-7a24b68eec83.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item9); | |
AvaloniaList<IDataTemplate> dataTemplates2 = treeView4.DataTemplates; | |
IDataTemplate item10 = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate3 = treeDataTemplate; | |
treeDataTemplate3.DataType = typeof(IPageContainer); | |
obj2 = treeDataTemplate3; | |
BindingExtension bindingExtension27 = new BindingExtension("Layers"); | |
IServiceProvider serviceProvider27 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension27.ProvideTypedValue(serviceProvider27); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate3.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate3, "ItemsSource", context, binding); | |
} | |
treeDataTemplate3.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_6a9d7977-4a40-4840-a388-314a6f09b63b.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates2.Add(item10); | |
AvaloniaList<IDataTemplate> dataTemplates3 = treeView4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item11 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(ILayerContainer); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_e4757a03-e7e7-4572-97c5-1d6cb44fb392.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates3.Add(item11); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
AvaloniaList<IControl> children5 = grid4.Children; | |
Grid grid9; | |
Grid grid8 = grid9 = new Grid(); | |
((ISupportInitialize)grid8).BeginInit(); | |
children5.Add(grid8); | |
ISupportInitialize supportInitialize11 = grid3 = grid9; | |
context.ParentsStack.Add(grid3); | |
Grid grid10 = grid3; | |
grid10.RowDefinitions = RowDefinitions.Parse("Auto"); | |
grid10.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
Grid.SetRow(grid10, 2); | |
obj2 = grid10; | |
BindingExtension bindingExtension28 = new BindingExtension("!!Selected"); | |
IServiceProvider serviceProvider28 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
binding = bindingExtension28.ProvideTypedValue(serviceProvider28); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(grid10, Visual.IsVisibleProperty, context, binding); | |
AvaloniaList<IControl> children6 = grid10.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children6.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children7 = grid10.Children; | |
TextBox textBox5; | |
TextBox textBox4 = textBox5 = new TextBox(); | |
((ISupportInitialize)textBox4).BeginInit(); | |
children7.Add(textBox4); | |
ISupportInitialize supportInitialize12 = textBox3 = textBox5; | |
context.ParentsStack.Add(textBox3); | |
object obj9 = obj2 = textBox3; | |
BindingExtension bindingExtension29 = new BindingExtension("Selected.Name"); | |
bindingExtension29.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider29 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
binding = bindingExtension29.ProvideTypedValue(serviceProvider29); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, TextBox.TextProperty, context, binding); | |
obj9.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj9, 0); | |
Grid.SetColumn(obj9, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000282 RID: 642 RVA: 0x000207A4 File Offset: 0x0001E9A4 | |
public static void xaml(IServiceProvider A_0, ShapesControl A_1) | |
{ | |
XamlIlContext.Context<ShapesControl> context = new XamlIlContext.Context<ShapesControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/ShapesControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/ShapesControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Shapes"; | |
tabItem4.Classes = Classes.Parse("property"); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
tabItem4.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize3 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*,Auto"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize4 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetRow(menu4, 0); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items2 = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
obj = (object)menuItem; | |
((IList)items2).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "˗"; | |
obj = menuItem4; | |
BindingExtension bindingExtension = new BindingExtension("$parent[Window].DataContext.OnRemoveShape"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, value); | |
obj = menuItem4; | |
BindingExtension bindingExtension2 = new BindingExtension("CurrentShape"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandParameterProperty, context, value); | |
obj = menuItem4; | |
BindingExtension bindingExtension3 = new BindingExtension("!!CurrentShape"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
children2.Add(listBox); | |
ListBox listBox3; | |
ISupportInitialize supportInitialize6 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
ListBox listBox4 = listBox3; | |
StyledElement styledElement = (StyledElement)listBox4; | |
string name = "shapes"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj = listBox4; | |
BindingExtension bindingExtension4 = new BindingExtension("CurrentLayer.Shapes"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, ItemsControl.ItemsProperty, context, value); | |
obj = listBox4; | |
BindingExtension bindingExtension5 = new BindingExtension("CurrentShape"); | |
bindingExtension5.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, SelectingItemsControl.SelectedItemProperty, context, value); | |
listBox4.VirtualizationMode = ItemVirtualizationMode.Simple; | |
listBox4.Classes = Classes.Parse("default"); | |
Grid.SetRow(listBox4, 1); | |
listBox4.ItemsPanel = new ItemsPanelTemplate | |
{ | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_79decbae-ab08-4dc6-b4ea-84852760dcdb.Build), context) | |
}; | |
List<KeyBinding> keyBindings = listBox4.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj2 = obj = keyBinding; | |
BindingExtension bindingExtension6 = new BindingExtension("$parent[Window].DataContext.OnRemoveShape"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, KeyBinding.CommandProperty, context, value); | |
obj = obj2; | |
BindingExtension bindingExtension7 = new BindingExtension("#shapes.SelectedItem"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, KeyBinding.CommandParameterProperty, context, value); | |
obj2.Gesture = KeyGesture.Parse("Delete"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item); | |
AvaloniaList<IDataTemplate> dataTemplates = listBox4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item2 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IBaseShape); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_66ddf083-32e0-485a-87ae-1f3869812a74.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
children3.Add(grid5); | |
ISupportInitialize supportInitialize7 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("Auto"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
Grid.SetRow(grid7, 2); | |
obj = grid7; | |
BindingExtension bindingExtension8 = new BindingExtension("!!CurrentShape"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(grid7, Visual.IsVisibleProperty, context, value); | |
AvaloniaList<IControl> children4 = grid7.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children4.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children5 = grid7.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children5.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize8 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj3 = obj = textBox3; | |
BindingExtension bindingExtension9 = new BindingExtension("CurrentShape.Name"); | |
bindingExtension9.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, TextBox.TextProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 0); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize9 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Selected"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ContentControl contentControl2; | |
ContentControl contentControl = contentControl2 = new ContentControl(); | |
((ISupportInitialize)contentControl).BeginInit(); | |
tabItem7.Content = contentControl; | |
ContentControl contentControl3; | |
ISupportInitialize supportInitialize10 = contentControl3 = contentControl2; | |
context.ParentsStack.Add(contentControl3); | |
object target = obj = contentControl3; | |
BindingExtension bindingExtension10 = new BindingExtension("CurrentShape"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000283 RID: 643 RVA: 0x00021280 File Offset: 0x0001F480 | |
public static void xaml(IServiceProvider A_0, StylesControl A_1) | |
{ | |
XamlIlContext.Context<StylesControl> context = new XamlIlContext.Context<StylesControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/StylesControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/StylesControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Resources.Add("ListBoxDropHandler", new Core2D.UI.Avalonia.Dock.Handlers.ListBoxDropHandler()); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto,Auto,*,Auto"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
children.Add(grid5); | |
ISupportInitialize supportInitialize2 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("*"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("*,Auto"); | |
Grid.SetRow(grid7, 0); | |
AvaloniaList<IControl> children2 = grid7.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children2.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize3 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj2; | |
object obj = obj2 = textBox3; | |
BindingExtension bindingExtension = new BindingExtension("Name"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, TextBox.TextProperty, context, value); | |
obj.Classes = Classes.Parse("left"); | |
Grid.SetColumn(obj, 0); | |
obj2 = obj; | |
BindingExtension bindingExtension2 = new BindingExtension("!!$self.DataContext"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children3 = grid7.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children3.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize4 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetColumn(menu4, 1); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
obj2 = (object)menuItem; | |
((IList)items).Add(obj2); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "+"; | |
obj2 = menuItem4; | |
BindingExtension bindingExtension3 = new BindingExtension("$parent[Window].DataContext.OnAddStyleLibrary"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items2 = menu4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj2 = (object)menuItem5; | |
((IList)items2).Add(obj2); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "˗"; | |
obj2 = menuItem7; | |
BindingExtension bindingExtension4 = new BindingExtension("$parent[Window].DataContext.OnRemoveStyleLibrary"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
obj2 = menuItem7; | |
BindingExtension bindingExtension5 = new BindingExtension(); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, value); | |
obj2 = menuItem7; | |
BindingExtension bindingExtension6 = new BindingExtension("!!$self.DataContext"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
ComboBox comboBox2; | |
ComboBox comboBox = comboBox2 = new ComboBox(); | |
((ISupportInitialize)comboBox).BeginInit(); | |
children4.Add(comboBox); | |
ComboBox comboBox3; | |
ISupportInitialize supportInitialize7 = comboBox3 = comboBox2; | |
context.ParentsStack.Add(comboBox3); | |
object obj3 = obj2 = comboBox3; | |
BindingExtension bindingExtension7 = new BindingExtension("$parent[Window].DataContext.Project.StyleLibraries"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ItemsControl.ItemsProperty, context, value); | |
obj2 = obj3; | |
BindingExtension bindingExtension8 = new BindingExtension("$parent[Window].DataContext.Project.CurrentStyleLibrary"); | |
bindingExtension8.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, SelectingItemsControl.SelectedItemProperty, context, value); | |
Grid.SetRow(obj3, 1); | |
obj3.Classes = Classes.Parse("default"); | |
obj2 = obj3; | |
BindingExtension bindingExtension9 = new BindingExtension("!!$self.DataContext"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, Visual.IsVisibleProperty, context, value); | |
AvaloniaList<IDataTemplate> dataTemplates = obj3.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
dataTemplate.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_10fdf74c-dbe9-49b4-bbe3-36ed9a3c93df.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
AvaloniaList<IControl> children5 = grid4.Children; | |
Menu menu6; | |
Menu menu5 = menu6 = new Menu(); | |
((ISupportInitialize)menu5).BeginInit(); | |
children5.Add(menu5); | |
ISupportInitialize supportInitialize8 = menu3 = menu6; | |
context.ParentsStack.Add(menu3); | |
Menu menu7 = menu3; | |
Grid.SetRow(menu7, 2); | |
menu7.HorizontalAlignment = HorizontalAlignment.Right; | |
obj2 = menu7; | |
BindingExtension bindingExtension10 = new BindingExtension("!!$self.DataContext"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menu7, Visual.IsVisibleProperty, context, value); | |
IEnumerable items3 = menu7.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj2 = (object)menuItem8; | |
((IList)items3).Add(obj2); | |
ISupportInitialize supportInitialize9 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "apply"; | |
obj2 = menuItem10; | |
BindingExtension bindingExtension11 = new BindingExtension("$parent[Window].DataContext.OnApplyStyle"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandProperty, context, value); | |
obj2 = menuItem10; | |
BindingExtension bindingExtension12 = new BindingExtension("Selected"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandParameterProperty, context, value); | |
obj2 = menuItem10; | |
BindingExtension bindingExtension13 = new BindingExtension("!!Selected"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
IEnumerable items4 = menu7.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj2 = (object)menuItem11; | |
((IList)items4).Add(obj2); | |
ISupportInitialize supportInitialize10 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "+"; | |
obj2 = menuItem13; | |
BindingExtension bindingExtension14 = new BindingExtension("$parent[Window].DataContext.OnAddStyle"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, value); | |
obj2 = menuItem13; | |
BindingExtension bindingExtension15 = new BindingExtension(); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandParameterProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
IEnumerable items5 = menu7.Items; | |
MenuItem menuItem15; | |
MenuItem menuItem14 = menuItem15 = new MenuItem(); | |
((ISupportInitialize)menuItem14).BeginInit(); | |
obj2 = (object)menuItem14; | |
((IList)items5).Add(obj2); | |
ISupportInitialize supportInitialize11 = menuItem3 = menuItem15; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem16 = menuItem3; | |
menuItem16.Header = "˗"; | |
obj2 = menuItem16; | |
BindingExtension bindingExtension16 = new BindingExtension("$parent[Window].DataContext.OnRemoveStyle"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, MenuItem.CommandProperty, context, value); | |
obj2 = menuItem16; | |
BindingExtension bindingExtension17 = new BindingExtension("Selected"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, MenuItem.CommandParameterProperty, context, value); | |
obj2 = menuItem16; | |
BindingExtension bindingExtension18 = new BindingExtension("!!Selected"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
AvaloniaList<IControl> children6 = grid4.Children; | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
children6.Add(listBox); | |
ListBox listBox3; | |
ISupportInitialize supportInitialize12 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
ListBox listBox4 = listBox3; | |
StyledElement styledElement = (StyledElement)listBox4; | |
string name = "styles"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj2 = listBox4; | |
BindingExtension bindingExtension19 = new BindingExtension("Items"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, ItemsControl.ItemsProperty, context, value); | |
obj2 = listBox4; | |
BindingExtension bindingExtension20 = new BindingExtension("Selected"); | |
bindingExtension20.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, SelectingItemsControl.SelectedItemProperty, context, value); | |
Grid.SetRow(listBox4, 3); | |
listBox4.Classes = Classes.Parse("default"); | |
List<KeyBinding> keyBindings = listBox4.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item2 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj4 = obj2 = keyBinding; | |
BindingExtension bindingExtension21 = new BindingExtension("$parent[Window].DataContext.OnAddStyle"); | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension21.ProvideTypedValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, KeyBinding.CommandProperty, context, value); | |
obj2 = obj4; | |
BindingExtension bindingExtension22 = new BindingExtension("#styles.DataContext"); | |
bindingExtension22.Mode = BindingMode.OneWay; | |
IServiceProvider serviceProvider22 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension22.ProvideTypedValue(serviceProvider22); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, KeyBinding.CommandParameterProperty, context, value); | |
obj4.Gesture = KeyGesture.Parse("Ctrl+N"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item2); | |
List<KeyBinding> keyBindings2 = listBox4.KeyBindings; | |
KeyBinding item3 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj5 = obj2 = keyBinding; | |
BindingExtension bindingExtension23 = new BindingExtension("$parent[Window].DataContext.OnRemoveStyle"); | |
IServiceProvider serviceProvider23 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension23.ProvideTypedValue(serviceProvider23); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, KeyBinding.CommandProperty, context, value); | |
obj2 = obj5; | |
BindingExtension bindingExtension24 = new BindingExtension("#styles.SelectedItem"); | |
IServiceProvider serviceProvider24 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension24.ProvideTypedValue(serviceProvider24); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, KeyBinding.CommandParameterProperty, context, value); | |
obj5.Gesture = KeyGesture.Parse("Delete"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings2.Add(item3); | |
List<KeyBinding> keyBindings3 = listBox4.KeyBindings; | |
KeyBinding item4 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj6 = obj2 = keyBinding; | |
BindingExtension bindingExtension25 = new BindingExtension("$parent[Window].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider25 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension25.ProvideTypedValue(serviceProvider25); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, KeyBinding.CommandProperty, context, value); | |
obj2 = obj6; | |
BindingExtension bindingExtension26 = new BindingExtension("#styles.SelectedItem"); | |
IServiceProvider serviceProvider26 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension26.ProvideTypedValue(serviceProvider26); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, KeyBinding.CommandParameterProperty, context, value); | |
obj6.Gesture = KeyGesture.Parse("Ctrl+E"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings3.Add(item4); | |
AvaloniaList<IDataTemplate> dataTemplates2 = listBox4.DataTemplates; | |
IDataTemplate item5 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IShapeStyle); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_798ab39f-8ab9-4c3e-be27-cdc96f8e25f7.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates2.Add(item5); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
AvaloniaList<IControl> children7 = grid4.Children; | |
Grid grid9; | |
Grid grid8 = grid9 = new Grid(); | |
((ISupportInitialize)grid8).BeginInit(); | |
children7.Add(grid8); | |
ISupportInitialize supportInitialize13 = grid3 = grid9; | |
context.ParentsStack.Add(grid3); | |
Grid grid10 = grid3; | |
grid10.RowDefinitions = RowDefinitions.Parse("Auto"); | |
grid10.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
Grid.SetRow(grid10, 4); | |
obj2 = grid10; | |
BindingExtension bindingExtension27 = new BindingExtension("!!#styles.SelectedItem"); | |
IServiceProvider serviceProvider27 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension27.ProvideTypedValue(serviceProvider27); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(grid10, Visual.IsVisibleProperty, context, value); | |
AvaloniaList<IControl> children8 = grid10.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children8.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children9 = grid10.Children; | |
TextBox textBox5; | |
TextBox textBox4 = textBox5 = new TextBox(); | |
((ISupportInitialize)textBox4).BeginInit(); | |
children9.Add(textBox4); | |
ISupportInitialize supportInitialize14 = textBox3 = textBox5; | |
context.ParentsStack.Add(textBox3); | |
object obj7 = obj2 = textBox3; | |
BindingExtension bindingExtension28 = new BindingExtension("#styles.SelectedItem.Name"); | |
bindingExtension28.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider28 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension28.ProvideTypedValue(serviceProvider28); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, TextBox.TextProperty, context, value); | |
obj7.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj7, 0); | |
Grid.SetColumn(obj7, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000284 RID: 644 RVA: 0x00022784 File Offset: 0x00020984 | |
public static void xaml(IServiceProvider A_0, TemplatesControl A_1) | |
{ | |
XamlIlContext.Context<TemplatesControl> context = new XamlIlContext.Context<TemplatesControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/TemplatesControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/TemplatesControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Resources.Add("ListBoxDropHandler", new Core2D.UI.Avalonia.Dock.Handlers.ListBoxDropHandler()); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*,Auto"); | |
AvaloniaList<IControl> children = grid4.Children; | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
children.Add(listBox); | |
ListBox listBox3; | |
ISupportInitialize supportInitialize2 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
ListBox listBox4 = listBox3; | |
StyledElement styledElement = (StyledElement)listBox4; | |
string name = "templates"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
object obj = listBox4; | |
BindingExtension bindingExtension = new BindingExtension("Templates"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, ItemsControl.ItemsProperty, context, value); | |
obj = listBox4; | |
BindingExtension bindingExtension2 = new BindingExtension("CurrentTemplate"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, SelectingItemsControl.SelectedItemProperty, context, value); | |
Grid.SetRow(listBox4, 1); | |
listBox4.Classes = Classes.Parse("default"); | |
List<KeyBinding> keyBindings = listBox4.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj2 = obj = keyBinding; | |
BindingExtension bindingExtension3 = new BindingExtension("$parent[Window].DataContext.OnApplyTemplate"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, KeyBinding.CommandProperty, context, value); | |
obj2.Gesture = KeyGesture.Parse("Ctrl+N"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item); | |
List<KeyBinding> keyBindings2 = listBox4.KeyBindings; | |
KeyBinding item2 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj3 = obj = keyBinding; | |
BindingExtension bindingExtension4 = new BindingExtension("$parent[Window].DataContext.OnEditTemplate"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandProperty, context, value); | |
obj = obj3; | |
BindingExtension bindingExtension5 = new BindingExtension("#templates.SelectedItem"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandParameterProperty, context, value); | |
obj3.Gesture = KeyGesture.Parse("Ctrl+T"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings2.Add(item2); | |
List<KeyBinding> keyBindings3 = listBox4.KeyBindings; | |
KeyBinding item3 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj4 = obj = keyBinding; | |
BindingExtension bindingExtension6 = new BindingExtension("$parent[Window].DataContext.OnRemoveTemplate"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, KeyBinding.CommandProperty, context, value); | |
obj = obj4; | |
BindingExtension bindingExtension7 = new BindingExtension("#templates.SelectedItem"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, KeyBinding.CommandParameterProperty, context, value); | |
obj4.Gesture = KeyGesture.Parse("Delete"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings3.Add(item3); | |
List<KeyBinding> keyBindings4 = listBox4.KeyBindings; | |
KeyBinding item4 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj5 = obj = keyBinding; | |
BindingExtension bindingExtension8 = new BindingExtension("$parent[Window].DataContext.Platform.OnExportObject"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, KeyBinding.CommandProperty, context, value); | |
obj = obj5; | |
BindingExtension bindingExtension9 = new BindingExtension("#templates.SelectedItem"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, KeyBinding.CommandParameterProperty, context, value); | |
obj5.Gesture = KeyGesture.Parse("Ctrl+E"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings4.Add(item4); | |
AvaloniaList<IDataTemplate> dataTemplates = listBox4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item5 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IPageContainer); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_e0a46f51-1a43-40ae-8151-593cb0eb1c35.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item5); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children2.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize3 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetRow(menu4, 0); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize4 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "apply"; | |
obj = menuItem4; | |
BindingExtension bindingExtension10 = new BindingExtension("$parent[Window].DataContext.OnApplyTemplate"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, value); | |
obj = menuItem4; | |
BindingExtension bindingExtension11 = new BindingExtension("CurrentTemplate"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandParameterProperty, context, value); | |
obj = menuItem4; | |
BindingExtension bindingExtension12 = new BindingExtension("!!#templates.SelectedItem"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
IEnumerable items2 = menu4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj = (object)menuItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "edit"; | |
obj = menuItem7; | |
BindingExtension bindingExtension13 = new BindingExtension("$parent[Window].DataContext.OnEditTemplate"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
obj = menuItem7; | |
BindingExtension bindingExtension14 = new BindingExtension("CurrentTemplate"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, value); | |
obj = menuItem7; | |
BindingExtension bindingExtension15 = new BindingExtension("!!#templates.SelectedItem"); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items3 = menu4.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj = (object)menuItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "+"; | |
obj = menuItem10; | |
BindingExtension bindingExtension16 = new BindingExtension("$parent[Window].DataContext.OnAddTemplate"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
IEnumerable items4 = menu4.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj = (object)menuItem11; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize7 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "˗"; | |
obj = menuItem13; | |
BindingExtension bindingExtension17 = new BindingExtension("$parent[Window].DataContext.OnRemoveTemplate"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, value); | |
obj = menuItem13; | |
BindingExtension bindingExtension18 = new BindingExtension("CurrentTemplate"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandParameterProperty, context, value); | |
obj = menuItem13; | |
BindingExtension bindingExtension19 = new BindingExtension("!!#templates.SelectedItem"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
children3.Add(grid5); | |
ISupportInitialize supportInitialize8 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("Auto"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
Grid.SetRow(grid7, 2); | |
obj = grid7; | |
BindingExtension bindingExtension20 = new BindingExtension("!!#templates.SelectedItem"); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(grid7, Visual.IsVisibleProperty, context, value); | |
AvaloniaList<IControl> children4 = grid7.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children4.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children5 = grid7.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children5.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize9 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj6 = obj = textBox3; | |
BindingExtension bindingExtension21 = new BindingExtension("#templates.SelectedItem.Name"); | |
bindingExtension21.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension21.ProvideTypedValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, TextBox.TextProperty, context, value); | |
obj6.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj6, 0); | |
Grid.SetColumn(obj6, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000285 RID: 645 RVA: 0x00023740 File Offset: 0x00021940 | |
public static void xaml(IServiceProvider A_0, ZoomControl A_1) | |
{ | |
XamlIlContext.Context<ZoomControl> context = new XamlIlContext.Context<ZoomControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Containers/ZoomControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Containers/ZoomControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Status"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto,Auto,Auto,Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "ZoomX:"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children2.Add(textBlock4); | |
TextBlock textBlock6; | |
ISupportInitialize supportInitialize5 = textBlock6 = textBlock5; | |
context.ParentsStack.Add(textBlock6); | |
object obj2 = obj = textBlock6; | |
BindingExtension bindingExtension = new BindingExtension("ZoomX"); | |
bindingExtension.Mode = BindingMode.OneWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, TextBlock.TextProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock8; | |
TextBlock textBlock7 = textBlock8 = new TextBlock(); | |
((ISupportInitialize)textBlock7).BeginInit(); | |
children3.Add(textBlock7); | |
TextBlock textBlock9 = textBlock8; | |
textBlock9.Text = "ZoomY:"; | |
textBlock9.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock9, 1); | |
Grid.SetColumn(textBlock9, 0); | |
((ISupportInitialize)textBlock9).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
TextBlock textBlock11; | |
TextBlock textBlock10 = textBlock11 = new TextBlock(); | |
((ISupportInitialize)textBlock10).BeginInit(); | |
children4.Add(textBlock10); | |
ISupportInitialize supportInitialize6 = textBlock6 = textBlock11; | |
context.ParentsStack.Add(textBlock6); | |
object obj3 = obj = textBlock6; | |
BindingExtension bindingExtension2 = new BindingExtension("ZoomY"); | |
bindingExtension2.Mode = BindingMode.OneWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, TextBlock.TextProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 1); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
AvaloniaList<IControl> children5 = grid4.Children; | |
TextBlock textBlock13; | |
TextBlock textBlock12 = textBlock13 = new TextBlock(); | |
((ISupportInitialize)textBlock12).BeginInit(); | |
children5.Add(textBlock12); | |
TextBlock textBlock14 = textBlock13; | |
textBlock14.Text = "OffsetX:"; | |
textBlock14.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock14, 2); | |
Grid.SetColumn(textBlock14, 0); | |
((ISupportInitialize)textBlock14).EndInit(); | |
AvaloniaList<IControl> children6 = grid4.Children; | |
TextBlock textBlock16; | |
TextBlock textBlock15 = textBlock16 = new TextBlock(); | |
((ISupportInitialize)textBlock15).BeginInit(); | |
children6.Add(textBlock15); | |
ISupportInitialize supportInitialize7 = textBlock6 = textBlock16; | |
context.ParentsStack.Add(textBlock6); | |
object obj4 = obj = textBlock6; | |
BindingExtension bindingExtension3 = new BindingExtension("OffsetX"); | |
bindingExtension3.Mode = BindingMode.OneWay; | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, TextBlock.TextProperty, context, value); | |
obj4.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj4, 2); | |
Grid.SetColumn(obj4, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
AvaloniaList<IControl> children7 = grid4.Children; | |
TextBlock textBlock18; | |
TextBlock textBlock17 = textBlock18 = new TextBlock(); | |
((ISupportInitialize)textBlock17).BeginInit(); | |
children7.Add(textBlock17); | |
TextBlock textBlock19 = textBlock18; | |
textBlock19.Text = "OffsetY:"; | |
textBlock19.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock19, 3); | |
Grid.SetColumn(textBlock19, 0); | |
((ISupportInitialize)textBlock19).EndInit(); | |
AvaloniaList<IControl> children8 = grid4.Children; | |
TextBlock textBlock21; | |
TextBlock textBlock20 = textBlock21 = new TextBlock(); | |
((ISupportInitialize)textBlock20).BeginInit(); | |
children8.Add(textBlock20); | |
ISupportInitialize supportInitialize8 = textBlock6 = textBlock21; | |
context.ParentsStack.Add(textBlock6); | |
object obj5 = obj = textBlock6; | |
BindingExtension bindingExtension4 = new BindingExtension("OffsetY"); | |
bindingExtension4.Mode = BindingMode.OneWay; | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBlock.TextProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, TextBlock.TextProperty, context, value); | |
obj5.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj5, 3); | |
Grid.SetColumn(obj5, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
AvaloniaList<IControl> children9 = grid4.Children; | |
Button button2; | |
Button button = button2 = new Button(); | |
((ISupportInitialize)button).BeginInit(); | |
children9.Add(button); | |
Button button3; | |
ISupportInitialize supportInitialize9 = button3 = button2; | |
context.ParentsStack.Add(button3); | |
Button button4 = button3; | |
button4.Content = "Reset"; | |
obj = button4; | |
BindingExtension bindingExtension5 = new BindingExtension("$parent[Window].DataContext.Platform.OnZoomReset"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Button.CommandProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(button4, Button.CommandProperty, context, value); | |
button4.Classes = Classes.Parse("default"); | |
Grid.SetRow(button4, 4); | |
Grid.SetColumn(button4, 0); | |
Grid.SetColumnSpan(button4, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
AvaloniaList<IControl> children10 = grid4.Children; | |
Button button6; | |
Button button5 = button6 = new Button(); | |
((ISupportInitialize)button5).BeginInit(); | |
children10.Add(button5); | |
ISupportInitialize supportInitialize10 = button3 = button6; | |
context.ParentsStack.Add(button3); | |
Button button7 = button3; | |
button7.Content = "AutoFit"; | |
obj = button7; | |
BindingExtension bindingExtension6 = new BindingExtension("$parent[Window].DataContext.Platform.OnZoomAutoFit"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Button.CommandProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(button7, Button.CommandProperty, context, value); | |
button7.Classes = Classes.Parse("default"); | |
Grid.SetRow(button7, 5); | |
Grid.SetColumn(button7, 0); | |
Grid.SetColumnSpan(button7, 2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize11 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Options"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer5; | |
ScrollViewer scrollViewer4 = scrollViewer5 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer4).BeginInit(); | |
tabItem7.Content = scrollViewer4; | |
ISupportInitialize supportInitialize12 = scrollViewer3 = scrollViewer5; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl2 = scrollViewer3; | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
contentControl2.Content = grid5; | |
ISupportInitialize supportInitialize13 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("Auto,Auto,Auto,Auto"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children11 = grid7.Children; | |
TextBlock textBlock23; | |
TextBlock textBlock22 = textBlock23 = new TextBlock(); | |
((ISupportInitialize)textBlock22).BeginInit(); | |
children11.Add(textBlock22); | |
TextBlock textBlock24 = textBlock23; | |
textBlock24.Text = "PanButton:"; | |
textBlock24.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock24, 0); | |
Grid.SetColumn(textBlock24, 0); | |
((ISupportInitialize)textBlock24).EndInit(); | |
AvaloniaList<IControl> children12 = grid7.Children; | |
ComboBox comboBox2; | |
ComboBox comboBox = comboBox2 = new ComboBox(); | |
((ISupportInitialize)comboBox).BeginInit(); | |
children12.Add(comboBox); | |
ComboBox comboBox3; | |
ISupportInitialize supportInitialize14 = comboBox3 = comboBox2; | |
context.ParentsStack.Add(comboBox3); | |
ComboBox comboBox4 = comboBox3; | |
comboBox4.Items = ZoomBorder.ButtonNames; | |
obj = comboBox4; | |
BindingExtension bindingExtension7 = new BindingExtension("PanButton"); | |
bindingExtension7.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(comboBox4, SelectingItemsControl.SelectedItemProperty, context, value); | |
comboBox4.Classes = Classes.Parse("default"); | |
Grid.SetRow(comboBox4, 0); | |
Grid.SetColumn(comboBox4, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
AvaloniaList<IControl> children13 = grid7.Children; | |
TextBlock textBlock26; | |
TextBlock textBlock25 = textBlock26 = new TextBlock(); | |
((ISupportInitialize)textBlock25).BeginInit(); | |
children13.Add(textBlock25); | |
TextBlock textBlock27 = textBlock26; | |
textBlock27.Text = "Stretch:"; | |
textBlock27.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock27, 1); | |
Grid.SetColumn(textBlock27, 0); | |
((ISupportInitialize)textBlock27).EndInit(); | |
AvaloniaList<IControl> children14 = grid7.Children; | |
ComboBox comboBox6; | |
ComboBox comboBox5 = comboBox6 = new ComboBox(); | |
((ISupportInitialize)comboBox5).BeginInit(); | |
children14.Add(comboBox5); | |
ISupportInitialize supportInitialize15 = comboBox3 = comboBox6; | |
context.ParentsStack.Add(comboBox3); | |
ComboBox comboBox7 = comboBox3; | |
comboBox7.Items = ZoomBorder.StretchModes; | |
obj = comboBox7; | |
BindingExtension bindingExtension8 = new BindingExtension("Stretch"); | |
bindingExtension8.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(comboBox7, SelectingItemsControl.SelectedItemProperty, context, value); | |
comboBox7.Classes = Classes.Parse("default"); | |
Grid.SetRow(comboBox7, 1); | |
Grid.SetColumn(comboBox7, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize15.EndInit(); | |
AvaloniaList<IControl> children15 = grid7.Children; | |
TextBlock textBlock29; | |
TextBlock textBlock28 = textBlock29 = new TextBlock(); | |
((ISupportInitialize)textBlock28).BeginInit(); | |
children15.Add(textBlock28); | |
TextBlock textBlock30 = textBlock29; | |
textBlock30.Text = "ZoomSpeed:"; | |
textBlock30.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock30, 2); | |
Grid.SetColumn(textBlock30, 0); | |
((ISupportInitialize)textBlock30).EndInit(); | |
AvaloniaList<IControl> children16 = grid7.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children16.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize16 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj6 = obj = textBox3; | |
BindingExtension bindingExtension9 = new BindingExtension("ZoomSpeed"); | |
bindingExtension9.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, TextBox.TextProperty, context, value); | |
obj6.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj6, 2); | |
Grid.SetColumn(obj6, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize16.EndInit(); | |
AvaloniaList<IControl> children17 = grid7.Children; | |
TextBlock textBlock32; | |
TextBlock textBlock31 = textBlock32 = new TextBlock(); | |
((ISupportInitialize)textBlock31).BeginInit(); | |
children17.Add(textBlock31); | |
TextBlock textBlock33 = textBlock32; | |
textBlock33.Text = "EnableInput:"; | |
textBlock33.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock33, 3); | |
Grid.SetColumn(textBlock33, 0); | |
((ISupportInitialize)textBlock33).EndInit(); | |
AvaloniaList<IControl> children18 = grid7.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children18.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize17 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj7 = obj = checkBox3; | |
BindingExtension bindingExtension10 = new BindingExtension("EnableInput"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, ToggleButton.IsCheckedProperty, context, value); | |
obj7.Content = ""; | |
obj7.Classes = Classes.Parse("default"); | |
Grid.SetRow(obj7, 3); | |
Grid.SetColumn(obj7, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize17.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize18 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Constrains"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer7; | |
ScrollViewer scrollViewer6 = scrollViewer7 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer6).BeginInit(); | |
tabItem10.Content = scrollViewer6; | |
ISupportInitialize supportInitialize19 = scrollViewer3 = scrollViewer7; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl3 = scrollViewer3; | |
Grid grid9; | |
Grid grid8 = grid9 = new Grid(); | |
((ISupportInitialize)grid8).BeginInit(); | |
contentControl3.Content = grid8; | |
ISupportInitialize supportInitialize20 = grid3 = grid9; | |
context.ParentsStack.Add(grid3); | |
Grid grid10 = grid3; | |
grid10.RowDefinitions = RowDefinitions.Parse("Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto"); | |
grid10.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children19 = grid10.Children; | |
TextBlock textBlock35; | |
TextBlock textBlock34 = textBlock35 = new TextBlock(); | |
((ISupportInitialize)textBlock34).BeginInit(); | |
children19.Add(textBlock34); | |
TextBlock textBlock36 = textBlock35; | |
textBlock36.Text = "MinZoomX:"; | |
textBlock36.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock36, 0); | |
Grid.SetColumn(textBlock36, 0); | |
((ISupportInitialize)textBlock36).EndInit(); | |
AvaloniaList<IControl> children20 = grid10.Children; | |
TextBox textBox5; | |
TextBox textBox4 = textBox5 = new TextBox(); | |
((ISupportInitialize)textBox4).BeginInit(); | |
children20.Add(textBox4); | |
ISupportInitialize supportInitialize21 = textBox3 = textBox5; | |
context.ParentsStack.Add(textBox3); | |
object obj8 = obj = textBox3; | |
BindingExtension bindingExtension11 = new BindingExtension("MinZoomX"); | |
bindingExtension11.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, TextBox.TextProperty, context, value); | |
obj8.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj8, 0); | |
Grid.SetColumn(obj8, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize21.EndInit(); | |
AvaloniaList<IControl> children21 = grid10.Children; | |
TextBlock textBlock38; | |
TextBlock textBlock37 = textBlock38 = new TextBlock(); | |
((ISupportInitialize)textBlock37).BeginInit(); | |
children21.Add(textBlock37); | |
TextBlock textBlock39 = textBlock38; | |
textBlock39.Text = "MaxZoomX:"; | |
textBlock39.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock39, 1); | |
Grid.SetColumn(textBlock39, 0); | |
((ISupportInitialize)textBlock39).EndInit(); | |
AvaloniaList<IControl> children22 = grid10.Children; | |
TextBox textBox7; | |
TextBox textBox6 = textBox7 = new TextBox(); | |
((ISupportInitialize)textBox6).BeginInit(); | |
children22.Add(textBox6); | |
ISupportInitialize supportInitialize22 = textBox3 = textBox7; | |
context.ParentsStack.Add(textBox3); | |
object obj9 = obj = textBox3; | |
BindingExtension bindingExtension12 = new BindingExtension("MaxZoomX"); | |
bindingExtension12.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, TextBox.TextProperty, context, value); | |
obj9.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj9, 1); | |
Grid.SetColumn(obj9, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize22.EndInit(); | |
AvaloniaList<IControl> children23 = grid10.Children; | |
TextBlock textBlock41; | |
TextBlock textBlock40 = textBlock41 = new TextBlock(); | |
((ISupportInitialize)textBlock40).BeginInit(); | |
children23.Add(textBlock40); | |
TextBlock textBlock42 = textBlock41; | |
textBlock42.Text = "MinZoomY:"; | |
textBlock42.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock42, 2); | |
Grid.SetColumn(textBlock42, 0); | |
((ISupportInitialize)textBlock42).EndInit(); | |
AvaloniaList<IControl> children24 = grid10.Children; | |
TextBox textBox9; | |
TextBox textBox8 = textBox9 = new TextBox(); | |
((ISupportInitialize)textBox8).BeginInit(); | |
children24.Add(textBox8); | |
ISupportInitialize supportInitialize23 = textBox3 = textBox9; | |
context.ParentsStack.Add(textBox3); | |
object obj10 = obj = textBox3; | |
BindingExtension bindingExtension13 = new BindingExtension("MinZoomY"); | |
bindingExtension13.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj10, TextBox.TextProperty, context, value); | |
obj10.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj10, 2); | |
Grid.SetColumn(obj10, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize23.EndInit(); | |
AvaloniaList<IControl> children25 = grid10.Children; | |
TextBlock textBlock44; | |
TextBlock textBlock43 = textBlock44 = new TextBlock(); | |
((ISupportInitialize)textBlock43).BeginInit(); | |
children25.Add(textBlock43); | |
TextBlock textBlock45 = textBlock44; | |
textBlock45.Text = "MaxZoomY:"; | |
textBlock45.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock45, 3); | |
Grid.SetColumn(textBlock45, 0); | |
((ISupportInitialize)textBlock45).EndInit(); | |
AvaloniaList<IControl> children26 = grid10.Children; | |
TextBox textBox11; | |
TextBox textBox10 = textBox11 = new TextBox(); | |
((ISupportInitialize)textBox10).BeginInit(); | |
children26.Add(textBox10); | |
ISupportInitialize supportInitialize24 = textBox3 = textBox11; | |
context.ParentsStack.Add(textBox3); | |
object obj11 = obj = textBox3; | |
BindingExtension bindingExtension14 = new BindingExtension("MaxZoomY"); | |
bindingExtension14.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj11, TextBox.TextProperty, context, value); | |
obj11.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj11, 3); | |
Grid.SetColumn(obj11, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize24.EndInit(); | |
AvaloniaList<IControl> children27 = grid10.Children; | |
TextBlock textBlock47; | |
TextBlock textBlock46 = textBlock47 = new TextBlock(); | |
((ISupportInitialize)textBlock46).BeginInit(); | |
children27.Add(textBlock46); | |
TextBlock textBlock48 = textBlock47; | |
textBlock48.Text = "MinOffsetY:"; | |
textBlock48.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock48, 4); | |
Grid.SetColumn(textBlock48, 0); | |
((ISupportInitialize)textBlock48).EndInit(); | |
AvaloniaList<IControl> children28 = grid10.Children; | |
TextBox textBox13; | |
TextBox textBox12 = textBox13 = new TextBox(); | |
((ISupportInitialize)textBox12).BeginInit(); | |
children28.Add(textBox12); | |
ISupportInitialize supportInitialize25 = textBox3 = textBox13; | |
context.ParentsStack.Add(textBox3); | |
object obj12 = obj = textBox3; | |
BindingExtension bindingExtension15 = new BindingExtension("MinOffsetY"); | |
bindingExtension15.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj12, TextBox.TextProperty, context, value); | |
obj12.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj12, 4); | |
Grid.SetColumn(obj12, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize25.EndInit(); | |
AvaloniaList<IControl> children29 = grid10.Children; | |
TextBlock textBlock50; | |
TextBlock textBlock49 = textBlock50 = new TextBlock(); | |
((ISupportInitialize)textBlock49).BeginInit(); | |
children29.Add(textBlock49); | |
TextBlock textBlock51 = textBlock50; | |
textBlock51.Text = "MaxOffsetX:"; | |
textBlock51.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock51, 5); | |
Grid.SetColumn(textBlock51, 0); | |
((ISupportInitialize)textBlock51).EndInit(); | |
AvaloniaList<IControl> children30 = grid10.Children; | |
TextBox textBox15; | |
TextBox textBox14 = textBox15 = new TextBox(); | |
((ISupportInitialize)textBox14).BeginInit(); | |
children30.Add(textBox14); | |
ISupportInitialize supportInitialize26 = textBox3 = textBox15; | |
context.ParentsStack.Add(textBox3); | |
object obj13 = obj = textBox3; | |
BindingExtension bindingExtension16 = new BindingExtension("MaxOffsetX"); | |
bindingExtension16.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj13, TextBox.TextProperty, context, value); | |
obj13.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj13, 5); | |
Grid.SetColumn(obj13, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize26.EndInit(); | |
AvaloniaList<IControl> children31 = grid10.Children; | |
TextBlock textBlock53; | |
TextBlock textBlock52 = textBlock53 = new TextBlock(); | |
((ISupportInitialize)textBlock52).BeginInit(); | |
children31.Add(textBlock52); | |
TextBlock textBlock54 = textBlock53; | |
textBlock54.Text = "MinOffsetX:"; | |
textBlock54.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock54, 6); | |
Grid.SetColumn(textBlock54, 0); | |
((ISupportInitialize)textBlock54).EndInit(); | |
AvaloniaList<IControl> children32 = grid10.Children; | |
TextBox textBox17; | |
TextBox textBox16 = textBox17 = new TextBox(); | |
((ISupportInitialize)textBox16).BeginInit(); | |
children32.Add(textBox16); | |
ISupportInitialize supportInitialize27 = textBox3 = textBox17; | |
context.ParentsStack.Add(textBox3); | |
object obj14 = obj = textBox3; | |
BindingExtension bindingExtension17 = new BindingExtension("MinOffsetX"); | |
bindingExtension17.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj14, TextBox.TextProperty, context, value); | |
obj14.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj14, 6); | |
Grid.SetColumn(obj14, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize27.EndInit(); | |
AvaloniaList<IControl> children33 = grid10.Children; | |
TextBlock textBlock56; | |
TextBlock textBlock55 = textBlock56 = new TextBlock(); | |
((ISupportInitialize)textBlock55).BeginInit(); | |
children33.Add(textBlock55); | |
TextBlock textBlock57 = textBlock56; | |
textBlock57.Text = "MaxOffsetY:"; | |
textBlock57.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock57, 7); | |
Grid.SetColumn(textBlock57, 0); | |
((ISupportInitialize)textBlock57).EndInit(); | |
AvaloniaList<IControl> children34 = grid10.Children; | |
TextBox textBox19; | |
TextBox textBox18 = textBox19 = new TextBox(); | |
((ISupportInitialize)textBox18).BeginInit(); | |
children34.Add(textBox18); | |
ISupportInitialize supportInitialize28 = textBox3 = textBox19; | |
context.ParentsStack.Add(textBox3); | |
object obj15 = obj = textBox3; | |
BindingExtension bindingExtension18 = new BindingExtension("MaxOffsetY"); | |
bindingExtension18.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj15, TextBox.TextProperty, context, value); | |
obj15.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj15, 7); | |
Grid.SetColumn(obj15, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize28.EndInit(); | |
AvaloniaList<IControl> children35 = grid10.Children; | |
TextBlock textBlock59; | |
TextBlock textBlock58 = textBlock59 = new TextBlock(); | |
((ISupportInitialize)textBlock58).BeginInit(); | |
children35.Add(textBlock58); | |
TextBlock textBlock60 = textBlock59; | |
textBlock60.Text = "EnableConstrains:"; | |
textBlock60.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock60, 8); | |
Grid.SetColumn(textBlock60, 0); | |
((ISupportInitialize)textBlock60).EndInit(); | |
AvaloniaList<IControl> children36 = grid10.Children; | |
CheckBox checkBox5; | |
CheckBox checkBox4 = checkBox5 = new CheckBox(); | |
((ISupportInitialize)checkBox4).BeginInit(); | |
children36.Add(checkBox4); | |
ISupportInitialize supportInitialize29 = checkBox3 = checkBox5; | |
context.ParentsStack.Add(checkBox3); | |
object obj16 = obj = checkBox3; | |
BindingExtension bindingExtension19 = new BindingExtension("EnableConstrains"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj16, ToggleButton.IsCheckedProperty, context, value); | |
obj16.Content = ""; | |
obj16.Classes = Classes.Parse("default"); | |
Grid.SetRow(obj16, 8); | |
Grid.SetColumn(obj16, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize29.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize20.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize19.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize18.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000286 RID: 646 RVA: 0x00025434 File Offset: 0x00023634 | |
public static void xaml(IServiceProvider A_0, DashboardControl A_1) | |
{ | |
XamlIlContext.Context<DashboardControl> context = new XamlIlContext.Context<DashboardControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/DashboardControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/DashboardControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Background = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent"); | |
A_1.Resources.Add("ListBoxDropHandler", new Core2D.UI.Avalonia.Dock.Handlers.ListBoxDropHandler()); | |
A_1.Resources.Add("EditorDropHandler", new EditorDropHandler()); | |
AvaloniaList<AvaloniaObject> behaviors = Interaction.GetBehaviors(A_1); | |
DropBehavior dropBehavior; | |
AvaloniaObject item = dropBehavior = new DropBehavior(); | |
context.ParentsStack.Add(dropBehavior); | |
object obj2; | |
object obj = obj2 = dropBehavior; | |
BindingExtension bindingExtension = new BindingExtension(); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = DropBehavior.ContextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, DropBehavior.ContextProperty, context, value); | |
object provideTargetObject = obj; | |
StaticResourceExtension staticResourceExtension = new StaticResourceExtension("EditorDropHandler"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = DropBehavior.HandlerProperty; | |
obj2 = staticResourceExtension.ProvideValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj2 is IBinding) && !(obj2 is UnsetValueType)) | |
{ | |
obj.Handler = (IDropHandler)obj2; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, DropBehavior.HandlerProperty, context, obj2); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
behaviors.Add(item); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.MaxWidth = 800.0; | |
grid4.MaxHeight = 600.0; | |
grid4.RowDefinitions = RowDefinitions.Parse("0.2*,50,30,1*,30,1*,30,1*,20,0.2*"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("5*,50*,30,40*,5*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Core2D"; | |
textBlock3.Classes = Classes.Parse("title"); | |
Grid.SetColumn(textBlock3, 1); | |
Grid.SetColumnSpan(textBlock3, 3); | |
Grid.SetRow(textBlock3, 1); | |
Grid.SetRowSpan(textBlock3, 1); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
Button button2; | |
Button button = button2 = new Button(); | |
((ISupportInitialize)button).BeginInit(); | |
children2.Add(button); | |
Button button3; | |
ISupportInitialize supportInitialize2 = button3 = button2; | |
context.ParentsStack.Add(button3); | |
Button button4 = button3; | |
button4.Content = "New Project"; | |
button4.Classes = Classes.Parse("project"); | |
Grid.SetColumn(button4, 1); | |
Grid.SetRow(button4, 3); | |
Grid.SetColumnSpan(button4, 1); | |
Grid.SetRowSpan(button4, 1); | |
provideTargetObject = button4; | |
BindingExtension bindingExtension2 = new BindingExtension("OnNewProject"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = Button.CommandProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(button4, Button.CommandProperty, context, value); | |
Interaction.GetBehaviors(button4).Add(new FocusOnPointerMovedBehavior()); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
Button button6; | |
Button button5 = button6 = new Button(); | |
((ISupportInitialize)button5).BeginInit(); | |
children3.Add(button5); | |
ISupportInitialize supportInitialize3 = button3 = button6; | |
context.ParentsStack.Add(button3); | |
Button button7 = button3; | |
button7.Content = "Open Project"; | |
button7.Classes = Classes.Parse("project"); | |
Grid.SetColumn(button7, 1); | |
Grid.SetRow(button7, 5); | |
Grid.SetColumnSpan(button7, 1); | |
Grid.SetRowSpan(button7, 1); | |
obj2 = button7; | |
BindingExtension bindingExtension3 = new BindingExtension("Platform.OnOpen"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Button.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(button7, Button.CommandProperty, context, value); | |
Interaction.GetBehaviors(button7).Add(new FocusOnPointerMovedBehavior()); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
Button button9; | |
Button button8 = button9 = new Button(); | |
((ISupportInitialize)button8).BeginInit(); | |
children4.Add(button8); | |
ISupportInitialize supportInitialize4 = button3 = button9; | |
context.ParentsStack.Add(button3); | |
Button button10 = button3; | |
button10.Content = "Open Recent"; | |
button10.Classes = Classes.Parse("project"); | |
Grid.SetColumn(button10, 1); | |
Grid.SetRow(button10, 7); | |
Grid.SetColumnSpan(button10, 1); | |
Grid.SetRowSpan(button10, 1); | |
provideTargetObject = button10; | |
BindingExtension bindingExtension4 = new BindingExtension("OnOpenProject"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = Button.CommandProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(button10, Button.CommandProperty, context, value); | |
obj2 = button10; | |
BindingExtension bindingExtension5 = new BindingExtension("CurrentRecentProject.Path"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Button.CommandParameterProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(button10, Button.CommandParameterProperty, context, value); | |
Interaction.GetBehaviors(button10).Add(new FocusOnPointerMovedBehavior()); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
AvaloniaList<IControl> children5 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children5.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "recent"; | |
textBlock6.Classes = Classes.Parse("recent"); | |
Grid.SetColumn(textBlock6, 3); | |
Grid.SetColumnSpan(textBlock6, 1); | |
Grid.SetRow(textBlock6, 2); | |
Grid.SetRowSpan(textBlock6, 1); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children6 = grid4.Children; | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
children6.Add(listBox); | |
ListBox listBox3; | |
ISupportInitialize supportInitialize5 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
object obj3 = provideTargetObject = listBox3; | |
BindingExtension bindingExtension6 = new BindingExtension("RecentProjects"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ItemsControl.ItemsProperty, context, value); | |
obj2 = obj3; | |
BindingExtension bindingExtension7 = new BindingExtension("CurrentRecentProject"); | |
bindingExtension7.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, SelectingItemsControl.SelectedItemProperty, context, value); | |
obj3.Classes = Classes.Parse("recents"); | |
Grid.SetColumn(obj3, 3); | |
Grid.SetRow(obj3, 3); | |
Grid.SetColumnSpan(obj3, 1); | |
Grid.SetRowSpan(obj3, 5); | |
AvaloniaList<AvaloniaObject> behaviors2 = Interaction.GetBehaviors(obj3); | |
AvaloniaObject item2 = dropBehavior = new DropBehavior(); | |
context.ParentsStack.Add(dropBehavior); | |
object obj4 = provideTargetObject = dropBehavior; | |
BindingExtension bindingExtension8 = new BindingExtension(); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = DropBehavior.ContextProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, DropBehavior.ContextProperty, context, value); | |
provideTargetObject = obj4; | |
StaticResourceExtension staticResourceExtension2 = new StaticResourceExtension("ListBoxDropHandler"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = DropBehavior.HandlerProperty; | |
obj2 = staticResourceExtension2.ProvideValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj2 is IBinding) && !(obj2 is UnsetValueType)) | |
{ | |
obj4.Handler = (IDropHandler)obj2; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, DropBehavior.HandlerProperty, context, obj2); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
behaviors2.Add(item2); | |
AvaloniaList<IDataTemplate> dataTemplates = obj3.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item3 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(RecentFile); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_a389ac71-a004-470e-9ded-4b301e3ed3ba.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item3); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000287 RID: 647 RVA: 0x00025E84 File Offset: 0x00024084 | |
public static void xaml(IServiceProvider A_0, DashboardMenuControl A_1) | |
{ | |
XamlIlContext.Context<DashboardMenuControl> context = new XamlIlContext.Context<DashboardMenuControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/DashboardMenuControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/DashboardMenuControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Resources.Add("ObjectEqualityMultiConverter", new ObjectEqualityMultiConverter()); | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
A_1.Content = menu; | |
Menu menu3; | |
ISupportInitialize supportInitialize = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
menu4.Classes = Classes.Parse("default"); | |
menu4.ItemsPanel = new ItemsPanelTemplate | |
{ | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_76475f6a-4ea4-40bf-9209-ae57abc52cfc.Build), context) | |
}; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
object obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize2 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "_File"; | |
IEnumerable items2 = menuItem4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj = (object)menuItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize3 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "_New"; | |
obj = menuItem7; | |
BindingExtension bindingExtension = new BindingExtension("OnNew"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
obj = menuItem7; | |
BindingExtension bindingExtension2 = new BindingExtension(); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
IEnumerable items3 = menuItem4.Items; | |
Separator separator2; | |
Separator separator = separator2 = new Separator(); | |
((ISupportInitialize)separator).BeginInit(); | |
obj = (object)separator; | |
((IList)items3).Add(obj); | |
((ISupportInitialize)separator2).EndInit(); | |
IEnumerable items4 = menuItem4.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj = (object)menuItem8; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize4 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "_Open..."; | |
obj = menuItem10; | |
BindingExtension bindingExtension3 = new BindingExtension("Platform.OnOpen"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
IEnumerable items5 = menuItem4.Items; | |
Separator separator4; | |
Separator separator3 = separator4 = new Separator(); | |
((ISupportInitialize)separator3).BeginInit(); | |
obj = (object)separator3; | |
((IList)items5).Add(obj); | |
((ISupportInitialize)separator4).EndInit(); | |
IEnumerable items6 = menuItem4.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj = (object)menuItem11; | |
((IList)items6).Add(obj); | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "Execu_te Script..."; | |
obj = menuItem13; | |
BindingExtension bindingExtension4 = new BindingExtension("Platform.OnExecuteScript"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items7 = menuItem4.Items; | |
Separator separator6; | |
Separator separator5 = separator6 = new Separator(); | |
((ISupportInitialize)separator5).BeginInit(); | |
obj = (object)separator5; | |
((IList)items7).Add(obj); | |
((ISupportInitialize)separator6).EndInit(); | |
IEnumerable items8 = menuItem4.Items; | |
MenuItem menuItem15; | |
MenuItem menuItem14 = menuItem15 = new MenuItem(); | |
((ISupportInitialize)menuItem14).BeginInit(); | |
obj = (object)menuItem14; | |
((IList)items8).Add(obj); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem15; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem16 = menuItem3; | |
menuItem16.Header = "_Recent"; | |
obj = menuItem16; | |
BindingExtension bindingExtension5 = new BindingExtension("RecentProjects"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, ItemsControl.ItemsProperty, context, value); | |
Styles styles = menuItem16.Styles; | |
Style style; | |
IStyle item = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style2 = style; | |
style2.Selector = Selectors.OfType((Selector)null, typeof(MenuItem)); | |
ICollection<ISetter> setters = style2.Setters; | |
Setter setter; | |
ISetter item2 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter2 = setter; | |
setter2.Property = HeaderedSelectingItemsControl.HeaderProperty; | |
obj = setter2; | |
BindingExtension bindingExtension6 = new BindingExtension("Name"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter2.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters.Add(item2); | |
ICollection<ISetter> setters2 = style2.Setters; | |
ISetter item3 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter3 = setter; | |
setter3.Property = MenuItem.CommandProperty; | |
obj = setter3; | |
BindingExtension bindingExtension7 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnOpen"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter3.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters2.Add(item3); | |
ICollection<ISetter> setters3 = style2.Setters; | |
ISetter item4 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter4 = setter; | |
setter4.Property = MenuItem.CommandParameterProperty; | |
obj = setter4; | |
BindingExtension bindingExtension8 = new BindingExtension("Path"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter4.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters3.Add(item4); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
IEnumerable items9 = menuItem4.Items; | |
Separator separator8; | |
Separator separator7 = separator8 = new Separator(); | |
((ISupportInitialize)separator7).BeginInit(); | |
obj = (object)separator7; | |
((IList)items9).Add(obj); | |
((ISupportInitialize)separator8).EndInit(); | |
IEnumerable items10 = menuItem4.Items; | |
MenuItem menuItem18; | |
MenuItem menuItem17 = menuItem18 = new MenuItem(); | |
((ISupportInitialize)menuItem17).BeginInit(); | |
obj = (object)menuItem17; | |
((IList)items10).Add(obj); | |
ISupportInitialize supportInitialize7 = menuItem3 = menuItem18; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem19 = menuItem3; | |
menuItem19.Header = "E_xit"; | |
obj = menuItem19; | |
BindingExtension bindingExtension9 = new BindingExtension("Platform.OnExit"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem19, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items11 = menu4.Items; | |
MenuItem menuItem21; | |
MenuItem menuItem20 = menuItem21 = new MenuItem(); | |
((ISupportInitialize)menuItem20).BeginInit(); | |
obj = (object)menuItem20; | |
((IList)items11).Add(obj); | |
ISupportInitialize supportInitialize8 = menuItem3 = menuItem21; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem22 = menuItem3; | |
menuItem22.Header = "_View"; | |
IEnumerable items12 = menuItem22.Items; | |
MenuItem menuItem24; | |
MenuItem menuItem23 = menuItem24 = new MenuItem(); | |
((ISupportInitialize)menuItem23).BeginInit(); | |
obj = (object)menuItem23; | |
((IList)items12).Add(obj); | |
ISupportInitialize supportInitialize9 = menuItem3 = menuItem24; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem25 = menuItem3; | |
menuItem25.Header = "_Script Editor..."; | |
obj = menuItem25; | |
BindingExtension bindingExtension10 = new BindingExtension("Platform.OnScriptEditor"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem25, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
IEnumerable items13 = menuItem22.Items; | |
Separator separator10; | |
Separator separator9 = separator10 = new Separator(); | |
((ISupportInitialize)separator9).BeginInit(); | |
obj = (object)separator9; | |
((IList)items13).Add(obj); | |
((ISupportInitialize)separator10).EndInit(); | |
IEnumerable items14 = menuItem22.Items; | |
MenuItem menuItem27; | |
MenuItem menuItem26 = menuItem27 = new MenuItem(); | |
((ISupportInitialize)menuItem26).BeginInit(); | |
obj = (object)menuItem26; | |
((IList)items14).Add(obj); | |
ISupportInitialize supportInitialize10 = menuItem3 = menuItem27; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem28 = menuItem3; | |
menuItem28.Header = "_Views"; | |
obj = menuItem28; | |
BindingExtension bindingExtension11 = new BindingExtension("Layout.Views"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem28, ItemsControl.ItemsProperty, context, value); | |
Styles styles2 = menuItem28.Styles; | |
IStyle item5 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style3 = style; | |
style3.Selector = Selectors.OfType((Selector)null, typeof(MenuItem)); | |
ICollection<ISetter> setters4 = style3.Setters; | |
ISetter item6 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter5 = setter; | |
setter5.Property = HeaderedSelectingItemsControl.HeaderProperty; | |
obj = setter5; | |
BindingExtension bindingExtension12 = new BindingExtension("Title"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter5.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters4.Add(item6); | |
ICollection<ISetter> setters5 = style3.Setters; | |
ISetter item7 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter6 = setter; | |
setter6.Property = MenuItem.CommandProperty; | |
obj = setter6; | |
BindingExtension bindingExtension13 = new BindingExtension("$parent[UserControl].DataContext.OnNavigate"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter6.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters5.Add(item7); | |
ICollection<ISetter> setters6 = style3.Setters; | |
ISetter item8 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter7 = setter; | |
setter7.Property = MenuItem.CommandParameterProperty; | |
obj = setter7; | |
BindingExtension bindingExtension14 = new BindingExtension(); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter7.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters6.Add(item8); | |
ICollection<ISetter> setters7 = style3.Setters; | |
ISetter item9 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter8 = setter; | |
setter8.Property = MenuItem.IconProperty; | |
Template template; | |
object value2 = template = new Template(); | |
context.ParentsStack.Add(template); | |
template.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_897a4d29-5a8d-4c2d-af7b-bf4f8264553d.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setter8.Value = value2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters7.Add(item9); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles2.Add(item5); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
IEnumerable items15 = menuItem22.Items; | |
Separator separator12; | |
Separator separator11 = separator12 = new Separator(); | |
((ISupportInitialize)separator11).BeginInit(); | |
obj = (object)separator11; | |
((IList)items15).Add(obj); | |
((ISupportInitialize)separator12).EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
IEnumerable items16 = menu4.Items; | |
MenuItem menuItem30; | |
MenuItem menuItem29 = menuItem30 = new MenuItem(); | |
((ISupportInitialize)menuItem29).BeginInit(); | |
obj = (object)menuItem29; | |
((IList)items16).Add(obj); | |
ISupportInitialize supportInitialize11 = menuItem3 = menuItem30; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem31 = menuItem3; | |
menuItem31.Header = "_Window"; | |
IEnumerable items17 = menuItem31.Items; | |
MenuItem menuItem33; | |
MenuItem menuItem32 = menuItem33 = new MenuItem(); | |
((ISupportInitialize)menuItem32).BeginInit(); | |
obj = (object)menuItem32; | |
((IList)items17).Add(obj); | |
ISupportInitialize supportInitialize12 = menuItem3 = menuItem33; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem34 = menuItem3; | |
menuItem34.Header = "_Load Layout..."; | |
obj = menuItem34; | |
BindingExtension bindingExtension15 = new BindingExtension("LayoutPlatform.LoadLayout"); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem34, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
IEnumerable items18 = menuItem31.Items; | |
Separator separator14; | |
Separator separator13 = separator14 = new Separator(); | |
((ISupportInitialize)separator13).BeginInit(); | |
obj = (object)separator13; | |
((IList)items18).Add(obj); | |
((ISupportInitialize)separator14).EndInit(); | |
IEnumerable items19 = menuItem31.Items; | |
MenuItem menuItem36; | |
MenuItem menuItem35 = menuItem36 = new MenuItem(); | |
((ISupportInitialize)menuItem35).BeginInit(); | |
obj = (object)menuItem35; | |
((IList)items19).Add(obj); | |
ISupportInitialize supportInitialize13 = menuItem3 = menuItem36; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem37 = menuItem3; | |
menuItem37.Header = "_Save Layout..."; | |
obj = menuItem37; | |
BindingExtension bindingExtension16 = new BindingExtension("LayoutPlatform.SaveLayout"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem37, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
IEnumerable items20 = menuItem31.Items; | |
Separator separator16; | |
Separator separator15 = separator16 = new Separator(); | |
((ISupportInitialize)separator15).BeginInit(); | |
obj = (object)separator15; | |
((IList)items20).Add(obj); | |
((ISupportInitialize)separator16).EndInit(); | |
IEnumerable items21 = menuItem31.Items; | |
MenuItem menuItem39; | |
MenuItem menuItem38 = menuItem39 = new MenuItem(); | |
((ISupportInitialize)menuItem38).BeginInit(); | |
obj = (object)menuItem38; | |
((IList)items21).Add(obj); | |
ISupportInitialize supportInitialize14 = menuItem3 = menuItem39; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem40 = menuItem3; | |
menuItem40.Header = "_Reset Layout"; | |
obj = menuItem40; | |
BindingExtension bindingExtension17 = new BindingExtension("LayoutPlatform.ResetLayout"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem40, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
IEnumerable items22 = menu4.Items; | |
MenuItem menuItem42; | |
MenuItem menuItem41 = menuItem42 = new MenuItem(); | |
((ISupportInitialize)menuItem41).BeginInit(); | |
obj = (object)menuItem41; | |
((IList)items22).Add(obj); | |
ISupportInitialize supportInitialize15 = menuItem3 = menuItem42; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem43 = menuItem3; | |
menuItem43.Header = "_Debug"; | |
IEnumerable items23 = menuItem43.Items; | |
MenuItem menuItem45; | |
MenuItem menuItem44 = menuItem45 = new MenuItem(); | |
((ISupportInitialize)menuItem44).BeginInit(); | |
obj = (object)menuItem44; | |
((IList)items23).Add(obj); | |
ISupportInitialize supportInitialize16 = menuItem3 = menuItem45; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem46 = menuItem3; | |
menuItem46.Header = "Draw_DirtyRects"; | |
menuItem46.Click += context.RootObject.DebugDrawDirtyRects_Click; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
menuItem46.Icon = checkBox; | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize17 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
CheckBox checkBox4 = checkBox3; | |
checkBox4.Classes = Classes.Parse("menu"); | |
obj = checkBox4; | |
BindingExtension bindingExtension18 = new BindingExtension("$parent[views:DashboardMenuControl].DrawDirtyRects"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(checkBox4, ToggleButton.IsCheckedProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize17.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize16.EndInit(); | |
IEnumerable items24 = menuItem43.Items; | |
Separator separator18; | |
Separator separator17 = separator18 = new Separator(); | |
((ISupportInitialize)separator17).BeginInit(); | |
obj = (object)separator17; | |
((IList)items24).Add(obj); | |
((ISupportInitialize)separator18).EndInit(); | |
IEnumerable items25 = menuItem43.Items; | |
MenuItem menuItem48; | |
MenuItem menuItem47 = menuItem48 = new MenuItem(); | |
((ISupportInitialize)menuItem47).BeginInit(); | |
obj = (object)menuItem47; | |
((IList)items25).Add(obj); | |
ISupportInitialize supportInitialize18 = menuItem3 = menuItem48; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem49 = menuItem3; | |
menuItem49.Header = "Draw_Fps"; | |
menuItem49.Click += context.RootObject.DebugDrawFps_Click; | |
CheckBox checkBox6; | |
CheckBox checkBox5 = checkBox6 = new CheckBox(); | |
((ISupportInitialize)checkBox5).BeginInit(); | |
menuItem49.Icon = checkBox5; | |
ISupportInitialize supportInitialize19 = checkBox3 = checkBox6; | |
context.ParentsStack.Add(checkBox3); | |
CheckBox checkBox7 = checkBox3; | |
checkBox7.Classes = Classes.Parse("menu"); | |
obj = checkBox7; | |
BindingExtension bindingExtension19 = new BindingExtension("$parent[views:DashboardMenuControl].DrawFps"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(checkBox7, ToggleButton.IsCheckedProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize19.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize18.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize15.EndInit(); | |
IEnumerable items26 = menu4.Items; | |
MenuItem menuItem51; | |
MenuItem menuItem50 = menuItem51 = new MenuItem(); | |
((ISupportInitialize)menuItem50).BeginInit(); | |
obj = (object)menuItem50; | |
((IList)items26).Add(obj); | |
ISupportInitialize supportInitialize20 = menuItem3 = menuItem51; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem52 = menuItem3; | |
menuItem52.Header = "_Help"; | |
IEnumerable items27 = menuItem52.Items; | |
MenuItem menuItem54; | |
MenuItem menuItem53 = menuItem54 = new MenuItem(); | |
((ISupportInitialize)menuItem53).BeginInit(); | |
obj = (object)menuItem53; | |
((IList)items27).Add(obj); | |
ISupportInitialize supportInitialize21 = menuItem3 = menuItem54; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem55 = menuItem3; | |
menuItem55.Header = "_About Core2D"; | |
obj = menuItem55; | |
BindingExtension bindingExtension20 = new BindingExtension("Platform.OnAboutDialog"); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem55, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize21.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize20.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000288 RID: 648 RVA: 0x00027660 File Offset: 0x00025860 | |
public static void xaml(IServiceProvider A_0, ColumnsControl A_1) | |
{ | |
XamlIlContext.Context<ColumnsControl> context = new XamlIlContext.Context<ColumnsControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Data/ColumnsControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Data/ColumnsControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto,*"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize2 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetRow(menu4, 0); | |
Grid.SetColumn(menu4, 0); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
object obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize3 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "+"; | |
obj = menuItem4; | |
BindingExtension bindingExtension = new BindingExtension("$parent[Window].DataContext.OnAddColumn"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, value); | |
obj = menuItem4; | |
BindingExtension bindingExtension2 = new BindingExtension(); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandParameterProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children2.Add(textBlock); | |
TextBlock textBlock3; | |
ISupportInitialize supportInitialize4 = textBlock3 = textBlock2; | |
context.ParentsStack.Add(textBlock3); | |
TextBlock textBlock4 = textBlock3; | |
Grid.SetColumn(textBlock4, 0); | |
Grid.SetRow(textBlock4, 1); | |
textBlock4.VerticalAlignment = VerticalAlignment.Center; | |
textBlock4.Text = "Name"; | |
textBlock4.Classes = Classes.Parse("default"); | |
obj = textBlock4; | |
BindingExtension bindingExtension3 = new BindingExtension("!!Columns.Length"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(textBlock4, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
children3.Add(scrollViewer); | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize5 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ScrollViewer scrollViewer4 = scrollViewer3; | |
Grid.SetColumn(scrollViewer4, 0); | |
Grid.SetRow(scrollViewer4, 2); | |
obj = scrollViewer4; | |
BindingExtension bindingExtension4 = new BindingExtension("!!Columns.Length"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(scrollViewer4, Visual.IsVisibleProperty, context, value); | |
ItemsControl itemsControl2; | |
ItemsControl itemsControl = itemsControl2 = new ItemsControl(); | |
((ISupportInitialize)itemsControl).BeginInit(); | |
scrollViewer4.Content = itemsControl; | |
ItemsControl itemsControl3; | |
ISupportInitialize supportInitialize6 = itemsControl3 = itemsControl2; | |
context.ParentsStack.Add(itemsControl3); | |
object obj2 = obj = itemsControl3; | |
BindingExtension bindingExtension5 = new BindingExtension("Columns"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ItemsControl.ItemsProperty, context, value); | |
obj2.VerticalAlignment = VerticalAlignment.Stretch; | |
AvaloniaList<IDataTemplate> dataTemplates = obj2.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IColumn); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_7dc1dd7d-d7b2-4839-813a-a8f1371ec81f.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000289 RID: 649 RVA: 0x00027C2C File Offset: 0x00025E2C | |
public static void xaml(IServiceProvider A_0, DatabaseControl A_1) | |
{ | |
XamlIlContext.Context<DatabaseControl> context = new XamlIlContext.Context<DatabaseControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Data/DatabaseControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Data/DatabaseControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Database"; | |
tabItem4.Classes = Classes.Parse("property"); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
tabItem4.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize3 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children2.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize4 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj2 = obj = textBox3; | |
BindingExtension bindingExtension = new BindingExtension("Name"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, TextBox.TextProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
RecordsControl recordsControl2; | |
RecordsControl recordsControl = recordsControl2 = new RecordsControl(); | |
((ISupportInitialize)recordsControl).BeginInit(); | |
children3.Add(recordsControl); | |
RecordsControl recordsControl3 = recordsControl2; | |
Grid.SetRow(recordsControl3, 1); | |
Grid.SetColumn(recordsControl3, 0); | |
Grid.SetColumnSpan(recordsControl3, 2); | |
((ISupportInitialize)recordsControl3).EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
TabItem tabItem7 = tabItem6; | |
tabItem7.Header = "Columns"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ColumnsControl columnsControl2; | |
ColumnsControl columnsControl = columnsControl2 = new ColumnsControl(); | |
((ISupportInitialize)columnsControl).BeginInit(); | |
tabItem7.Content = columnsControl; | |
((ISupportInitialize)columnsControl2).EndInit(); | |
((ISupportInitialize)tabItem7).EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize5 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Selected"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ContentControl contentControl2; | |
ContentControl contentControl = contentControl2 = new ContentControl(); | |
((ISupportInitialize)contentControl).BeginInit(); | |
tabItem10.Content = contentControl; | |
ContentControl contentControl3; | |
ISupportInitialize supportInitialize6 = contentControl3 = contentControl2; | |
context.ParentsStack.Add(contentControl3); | |
object target = obj = contentControl3; | |
BindingExtension bindingExtension2 = new BindingExtension("CurrentRecord"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600028A RID: 650 RVA: 0x00028168 File Offset: 0x00026368 | |
public static void xaml(IServiceProvider A_0, DataControl A_1) | |
{ | |
XamlIlContext.Context<DataControl> context = new XamlIlContext.Context<DataControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Data/DataControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Data/DataControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
object obj = tabControl4; | |
BindingExtension bindingExtension = new BindingExtension("!!$self.DataContext"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(tabControl4, Visual.IsVisibleProperty, context, value); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Record"; | |
tabItem4.Classes = Classes.Parse("property"); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
tabItem4.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize3 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize4 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetRow(menu4, 0); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
obj = menu4; | |
BindingExtension bindingExtension2 = new BindingExtension("!!Record"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menu4, Visual.IsVisibleProperty, context, value); | |
IEnumerable items2 = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
obj = (object)menuItem; | |
((IList)items2).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "˗"; | |
obj = menuItem4; | |
BindingExtension bindingExtension3 = new BindingExtension("$parent[Window].DataContext.OnResetRecord"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, value); | |
obj = menuItem4; | |
BindingExtension bindingExtension4 = new BindingExtension(); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandParameterProperty, context, value); | |
obj = menuItem4; | |
BindingExtension bindingExtension5 = new BindingExtension("!!Record"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, Visual.IsVisibleProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
ContentControl contentControl2; | |
ContentControl contentControl = contentControl2 = new ContentControl(); | |
((ISupportInitialize)contentControl).BeginInit(); | |
children2.Add(contentControl); | |
ContentControl contentControl3; | |
ISupportInitialize supportInitialize6 = contentControl3 = contentControl2; | |
context.ParentsStack.Add(contentControl3); | |
object obj2 = obj = contentControl3; | |
BindingExtension bindingExtension6 = new BindingExtension("Record"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ContentControl.ContentProperty, context, value); | |
Grid.SetRow(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items3).Add(obj); | |
TabItem tabItem7 = tabItem6; | |
tabItem7.Header = "Properties"; | |
tabItem7.Classes = Classes.Parse("property"); | |
PropertiesControl propertiesControl2; | |
PropertiesControl propertiesControl = propertiesControl2 = new PropertiesControl(); | |
((ISupportInitialize)propertiesControl).BeginInit(); | |
tabItem7.Content = propertiesControl; | |
((ISupportInitialize)propertiesControl2).EndInit(); | |
((ISupportInitialize)tabItem7).EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600028B RID: 651 RVA: 0x0002877C File Offset: 0x0002697C | |
public static void xaml(IServiceProvider A_0, PropertiesControl A_1) | |
{ | |
XamlIlContext.Context<PropertiesControl> context = new XamlIlContext.Context<PropertiesControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Data/PropertiesControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Data/PropertiesControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize2 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetRow(menu4, 0); | |
Grid.SetColumn(menu4, 0); | |
Grid.SetColumnSpan(menu4, 3); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
object obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize3 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "+"; | |
obj = menuItem4; | |
BindingExtension bindingExtension = new BindingExtension("$parent[Window].DataContext.OnAddProperty"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, value); | |
obj = menuItem4; | |
BindingExtension bindingExtension2 = new BindingExtension(); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandParameterProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
children2.Add(scrollViewer); | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize4 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ScrollViewer scrollViewer4 = scrollViewer3; | |
Grid.SetRow(scrollViewer4, 1); | |
Grid.SetColumn(scrollViewer4, 0); | |
obj = scrollViewer4; | |
BindingExtension bindingExtension3 = new BindingExtension("!!Properties.Length"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(scrollViewer4, Visual.IsVisibleProperty, context, value); | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
scrollViewer4.Content = grid5; | |
ISupportInitialize supportInitialize5 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("Auto,*"); | |
grid7.ColumnDefinitions = ColumnDefinitions.Parse("50*,Auto,50*"); | |
AvaloniaList<IControl> children3 = grid7.Children; | |
GridSplitter gridSplitter2; | |
GridSplitter gridSplitter = gridSplitter2 = new GridSplitter(); | |
((ISupportInitialize)gridSplitter).BeginInit(); | |
children3.Add(gridSplitter); | |
GridSplitter gridSplitter3 = gridSplitter2; | |
gridSplitter3.Classes = Classes.Parse("vertical"); | |
Grid.SetColumn(gridSplitter3, 1); | |
Grid.SetRow(gridSplitter3, 1); | |
Grid.SetRowSpan(gridSplitter3, 2); | |
gridSplitter3.Width = 6.0; | |
((ISupportInitialize)gridSplitter3).EndInit(); | |
AvaloniaList<IControl> children4 = grid7.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children4.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
Grid.SetColumn(textBlock3, 0); | |
Grid.SetRow(textBlock3, 0); | |
textBlock3.VerticalAlignment = VerticalAlignment.Center; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("default"); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children5 = grid7.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children5.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
Grid.SetColumn(textBlock6, 2); | |
Grid.SetRow(textBlock6, 0); | |
textBlock6.VerticalAlignment = VerticalAlignment.Center; | |
textBlock6.Text = "Value"; | |
textBlock6.Classes = Classes.Parse("default"); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children6 = grid7.Children; | |
ItemsControl itemsControl2; | |
ItemsControl itemsControl = itemsControl2 = new ItemsControl(); | |
((ISupportInitialize)itemsControl).BeginInit(); | |
children6.Add(itemsControl); | |
ItemsControl itemsControl3; | |
ISupportInitialize supportInitialize6 = itemsControl3 = itemsControl2; | |
context.ParentsStack.Add(itemsControl3); | |
ItemsControl itemsControl4 = itemsControl3; | |
itemsControl4.VerticalAlignment = VerticalAlignment.Stretch; | |
Grid.SetColumn(itemsControl4, 0); | |
Grid.SetRow(itemsControl4, 1); | |
obj = itemsControl4; | |
BindingExtension bindingExtension4 = new BindingExtension("Properties"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(itemsControl4, ItemsControl.ItemsProperty, context, value); | |
AvaloniaList<IDataTemplate> dataTemplates = itemsControl4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IProperty); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_ff2ebda2-d6df-460e-b102-401457484204.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
AvaloniaList<IControl> children7 = grid7.Children; | |
ItemsControl itemsControl6; | |
ItemsControl itemsControl5 = itemsControl6 = new ItemsControl(); | |
((ISupportInitialize)itemsControl5).BeginInit(); | |
children7.Add(itemsControl5); | |
ISupportInitialize supportInitialize7 = itemsControl3 = itemsControl6; | |
context.ParentsStack.Add(itemsControl3); | |
ItemsControl itemsControl7 = itemsControl3; | |
itemsControl7.VerticalAlignment = VerticalAlignment.Stretch; | |
Grid.SetColumn(itemsControl7, 2); | |
Grid.SetRow(itemsControl7, 1); | |
obj = itemsControl7; | |
BindingExtension bindingExtension5 = new BindingExtension("Properties"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(itemsControl7, ItemsControl.ItemsProperty, context, value); | |
AvaloniaList<IDataTemplate> dataTemplates2 = itemsControl7.DataTemplates; | |
IDataTemplate item2 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate3 = dataTemplate; | |
dataTemplate3.DataType = typeof(IProperty); | |
dataTemplate3.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_c4342a75-050a-4763-b4ec-949c9495274e.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates2.Add(item2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600028C RID: 652 RVA: 0x00028F68 File Offset: 0x00027168 | |
public static void xaml(IServiceProvider A_0, RecordControl A_1) | |
{ | |
XamlIlContext.Context<RecordControl> context = new XamlIlContext.Context<RecordControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Data/RecordControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Data/RecordControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
A_1.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize2 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("50*,Auto,50*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
GridSplitter gridSplitter2; | |
GridSplitter gridSplitter = gridSplitter2 = new GridSplitter(); | |
((ISupportInitialize)gridSplitter).BeginInit(); | |
children.Add(gridSplitter); | |
GridSplitter gridSplitter3 = gridSplitter2; | |
gridSplitter3.Classes = Classes.Parse("vertical"); | |
Grid.SetColumn(gridSplitter3, 1); | |
Grid.SetRow(gridSplitter3, 0); | |
Grid.SetRowSpan(gridSplitter3, 2); | |
gridSplitter3.Width = 6.0; | |
((ISupportInitialize)gridSplitter3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children2.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
Grid.SetColumn(textBlock3, 0); | |
Grid.SetRow(textBlock3, 0); | |
textBlock3.VerticalAlignment = VerticalAlignment.Center; | |
textBlock3.Text = "Name"; | |
textBlock3.Classes = Classes.Parse("default"); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
Grid.SetColumn(textBlock6, 2); | |
Grid.SetRow(textBlock6, 0); | |
textBlock6.VerticalAlignment = VerticalAlignment.Center; | |
textBlock6.Text = "Value"; | |
textBlock6.Classes = Classes.Parse("default"); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
ItemsControl itemsControl2; | |
ItemsControl itemsControl = itemsControl2 = new ItemsControl(); | |
((ISupportInitialize)itemsControl).BeginInit(); | |
children4.Add(itemsControl); | |
ItemsControl itemsControl3; | |
ISupportInitialize supportInitialize3 = itemsControl3 = itemsControl2; | |
context.ParentsStack.Add(itemsControl3); | |
ItemsControl itemsControl4 = itemsControl3; | |
itemsControl4.VerticalAlignment = VerticalAlignment.Stretch; | |
Grid.SetColumn(itemsControl4, 0); | |
Grid.SetRow(itemsControl4, 1); | |
object provideTargetObject = itemsControl4; | |
BindingExtension bindingExtension = new BindingExtension("Owner.Columns"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(itemsControl4, ItemsControl.ItemsProperty, context, value); | |
AvaloniaList<IDataTemplate> dataTemplates = itemsControl4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IColumn); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_32b10307-a40e-413b-9901-f64be5430e4f.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children5 = grid4.Children; | |
ItemsControl itemsControl6; | |
ItemsControl itemsControl5 = itemsControl6 = new ItemsControl(); | |
((ISupportInitialize)itemsControl5).BeginInit(); | |
children5.Add(itemsControl5); | |
ISupportInitialize supportInitialize4 = itemsControl3 = itemsControl6; | |
context.ParentsStack.Add(itemsControl3); | |
ItemsControl itemsControl7 = itemsControl3; | |
itemsControl7.VerticalAlignment = VerticalAlignment.Stretch; | |
Grid.SetColumn(itemsControl7, 2); | |
Grid.SetRow(itemsControl7, 1); | |
provideTargetObject = itemsControl7; | |
BindingExtension bindingExtension2 = new BindingExtension("Values"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(itemsControl7, ItemsControl.ItemsProperty, context, value); | |
AvaloniaList<IDataTemplate> dataTemplates2 = itemsControl7.DataTemplates; | |
IDataTemplate item2 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate3 = dataTemplate; | |
dataTemplate3.DataType = typeof(IValue); | |
dataTemplate3.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_9acfd64d-1783-465e-820a-5e97068aaaba.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates2.Add(item2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600028D RID: 653 RVA: 0x00029490 File Offset: 0x00027690 | |
public static void xaml(IServiceProvider A_0, RecordsControl A_1) | |
{ | |
XamlIlContext.Context<RecordsControl> context = new XamlIlContext.Context<RecordsControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Data/RecordsControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Data/RecordsControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(DataGrid)), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = DataGrid.CanUserReorderColumnsProperty, | |
Value = (object)true | |
}, | |
new Setter | |
{ | |
Property = DataGrid.CanUserResizeColumnsProperty, | |
Value = (object)true | |
}, | |
new Setter | |
{ | |
Property = DataGrid.CanUserSortColumnsProperty, | |
Value = (object)true | |
} | |
} | |
}); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "Records"; | |
tabItem4.Classes = Classes.Parse("property"); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
tabItem4.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize3 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
children.Add(menu); | |
Menu menu3; | |
ISupportInitialize supportInitialize4 = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
Grid.SetRow(menu4, 0); | |
menu4.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items2 = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
obj = (object)menuItem; | |
((IList)items2).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "apply"; | |
obj = menuItem4; | |
BindingExtension bindingExtension = new BindingExtension("$parent[Window].DataContext.OnApplyRecord"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding binding = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandProperty, context, binding); | |
obj = menuItem4; | |
BindingExtension bindingExtension2 = new BindingExtension("CurrentRecord"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, MenuItem.CommandParameterProperty, context, binding); | |
obj = menuItem4; | |
BindingExtension bindingExtension3 = new BindingExtension("!!CurrentRecord"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
binding = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem4, Visual.IsVisibleProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items3 = menu4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj = (object)menuItem5; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "+"; | |
obj = menuItem7; | |
BindingExtension bindingExtension4 = new BindingExtension("$parent[Window].DataContext.OnAddRecord"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, binding); | |
obj = menuItem7; | |
BindingExtension bindingExtension5 = new BindingExtension(); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
IEnumerable items4 = menu4.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj = (object)menuItem8; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize7 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "˗"; | |
obj = menuItem10; | |
BindingExtension bindingExtension6 = new BindingExtension("$parent[Window].DataContext.OnRemoveRecord"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandProperty, context, binding); | |
obj = menuItem10; | |
BindingExtension bindingExtension7 = new BindingExtension("CurrentRecord"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandParameterProperty, context, binding); | |
obj = menuItem10; | |
BindingExtension bindingExtension8 = new BindingExtension("!!CurrentRecord"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
binding = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, Visual.IsVisibleProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
children2.Add(listBox); | |
ListBox listBox3; | |
ISupportInitialize supportInitialize8 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
ListBox listBox4 = listBox3; | |
StyledElement styledElement = (StyledElement)listBox4; | |
string name = "records"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj = listBox4; | |
BindingExtension bindingExtension9 = new BindingExtension("Records"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
binding = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, ItemsControl.ItemsProperty, context, binding); | |
obj = listBox4; | |
BindingExtension bindingExtension10 = new BindingExtension("CurrentRecord"); | |
bindingExtension10.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
binding = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, SelectingItemsControl.SelectedItemProperty, context, binding); | |
listBox4.VirtualizationMode = ItemVirtualizationMode.Simple; | |
Grid.SetRow(listBox4, 1); | |
listBox4.Classes = Classes.Parse("default"); | |
listBox4.ItemsPanel = new ItemsPanelTemplate | |
{ | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_ba5a3c7e-8a04-4040-84f4-a62e0c937516.Build), context) | |
}; | |
List<KeyBinding> keyBindings = listBox4.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj2 = obj = keyBinding; | |
BindingExtension bindingExtension11 = new BindingExtension("$parent[Window].DataContext.OnAddRecord"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, KeyBinding.CommandProperty, context, binding); | |
obj = obj2; | |
BindingExtension bindingExtension12 = new BindingExtension("#records.DataContext"); | |
bindingExtension12.Mode = BindingMode.OneWay; | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, KeyBinding.CommandParameterProperty, context, binding); | |
obj2.Gesture = KeyGesture.Parse("Ctrl+N"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item); | |
List<KeyBinding> keyBindings2 = listBox4.KeyBindings; | |
KeyBinding item2 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj3 = obj = keyBinding; | |
BindingExtension bindingExtension13 = new BindingExtension("$parent[Window].DataContext.OnRemoveRecord"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
binding = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandProperty, context, binding); | |
obj = obj3; | |
BindingExtension bindingExtension14 = new BindingExtension("#records.SelectedItem"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
binding = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandParameterProperty, context, binding); | |
obj3.Gesture = KeyGesture.Parse("Delete"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings2.Add(item2); | |
AvaloniaList<IDataTemplate> dataTemplates = listBox4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item3 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IRecord); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_0337108e-ddbc-4a79-ae32-3bd591d834c4.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item3); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items5 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items5).Add(obj); | |
ISupportInitialize supportInitialize9 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Columns"; | |
tabItem7.Classes = Classes.Parse("property"); | |
Grid grid6; | |
Grid grid5 = grid6 = new Grid(); | |
((ISupportInitialize)grid5).BeginInit(); | |
tabItem7.Content = grid5; | |
ISupportInitialize supportInitialize10 = grid3 = grid6; | |
context.ParentsStack.Add(grid3); | |
Grid grid7 = grid3; | |
grid7.RowDefinitions = RowDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children3 = grid7.Children; | |
Menu menu6; | |
Menu menu5 = menu6 = new Menu(); | |
((ISupportInitialize)menu5).BeginInit(); | |
children3.Add(menu5); | |
ISupportInitialize supportInitialize11 = menu3 = menu6; | |
context.ParentsStack.Add(menu3); | |
Menu menu7 = menu3; | |
Grid.SetRow(menu7, 0); | |
menu7.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items6 = menu7.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj = (object)menuItem11; | |
((IList)items6).Add(obj); | |
ISupportInitialize supportInitialize12 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
object obj4 = obj = menuItem3; | |
BindingExtension bindingExtension15 = new BindingExtension("$parent[Window].DataContext.OnRemoveColumn"); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, MenuItem.CommandProperty, context, binding); | |
obj = obj4; | |
BindingExtension bindingExtension16 = new BindingExtension("#columns.SelectedItem"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, MenuItem.CommandParameterProperty, context, binding); | |
obj4.Header = "˗"; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
IEnumerable items7 = menu7.Items; | |
MenuItem menuItem14; | |
MenuItem menuItem13 = menuItem14 = new MenuItem(); | |
((ISupportInitialize)menuItem13).BeginInit(); | |
obj = (object)menuItem13; | |
((IList)items7).Add(obj); | |
ISupportInitialize supportInitialize13 = menuItem3 = menuItem14; | |
context.ParentsStack.Add(menuItem3); | |
object obj5 = obj = menuItem3; | |
BindingExtension bindingExtension17 = new BindingExtension("$parent[Window].DataContext.OnAddColumn"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, MenuItem.CommandProperty, context, binding); | |
obj = obj5; | |
BindingExtension bindingExtension18 = new BindingExtension(); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, MenuItem.CommandParameterProperty, context, binding); | |
obj5.Header = "+"; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
AvaloniaList<IControl> children4 = grid7.Children; | |
DataGrid dataGrid2; | |
DataGrid dataGrid = dataGrid2 = new DataGrid(); | |
((ISupportInitialize)dataGrid).BeginInit(); | |
children4.Add(dataGrid); | |
DataGrid dataGrid3; | |
ISupportInitialize supportInitialize14 = dataGrid3 = dataGrid2; | |
context.ParentsStack.Add(dataGrid3); | |
DataGrid dataGrid4 = dataGrid3; | |
styledElement = (StyledElement)dataGrid4; | |
name = "columns"; | |
styledElement.Name = name; | |
nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj = dataGrid4; | |
BindingExtension bindingExtension19 = new BindingExtension("Columns"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = DataGrid.ItemsProperty; | |
binding = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGrid4, DataGrid.ItemsProperty, context, binding); | |
dataGrid4.AutoGenerateColumns = false; | |
Grid.SetRow(dataGrid4, 1); | |
Collection<DataGridColumn> columns = dataGrid4.Columns; | |
DataGridTextColumn dataGridTextColumn; | |
DataGridColumn item4 = dataGridTextColumn = new DataGridTextColumn(); | |
context.ParentsStack.Add(dataGridTextColumn); | |
DataGridTextColumn dataGridTextColumn2 = dataGridTextColumn; | |
dataGridTextColumn2.Header = "Name"; | |
obj = dataGridTextColumn2; | |
BindingExtension bindingExtension20 = new BindingExtension("Name"); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Binding"; | |
binding = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
dataGridTextColumn2.Binding = binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGridTextColumn2, "Binding", context, binding); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
columns.Add(item4); | |
Collection<DataGridColumn> columns2 = dataGrid4.Columns; | |
DataGridColumn item5 = dataGridTextColumn = new DataGridTextColumn(); | |
context.ParentsStack.Add(dataGridTextColumn); | |
DataGridTextColumn dataGridTextColumn3 = dataGridTextColumn; | |
dataGridTextColumn3.Header = "Width"; | |
obj = dataGridTextColumn3; | |
BindingExtension bindingExtension21 = new BindingExtension("Width"); | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Binding"; | |
binding = bindingExtension21.ProvideTypedValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
dataGridTextColumn3.Binding = binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGridTextColumn3, "Binding", context, binding); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
columns2.Add(item5); | |
Collection<DataGridColumn> columns3 = dataGrid4.Columns; | |
DataGridCheckBoxColumn dataGridCheckBoxColumn; | |
DataGridColumn item6 = dataGridCheckBoxColumn = new DataGridCheckBoxColumn(); | |
context.ParentsStack.Add(dataGridCheckBoxColumn); | |
DataGridCheckBoxColumn dataGridCheckBoxColumn2 = dataGridCheckBoxColumn; | |
dataGridCheckBoxColumn2.Header = "IsVisible"; | |
obj = dataGridCheckBoxColumn2; | |
BindingExtension bindingExtension22 = new BindingExtension("IsVisible"); | |
IServiceProvider serviceProvider22 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Binding"; | |
binding = bindingExtension22.ProvideTypedValue(serviceProvider22); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
dataGridCheckBoxColumn2.Binding = binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGridCheckBoxColumn2, "Binding", context, binding); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
columns3.Add(item6); | |
Collection<DataGridColumn> columns4 = dataGrid4.Columns; | |
DataGridColumn item7 = dataGridTextColumn = new DataGridTextColumn(); | |
context.ParentsStack.Add(dataGridTextColumn); | |
DataGridTextColumn dataGridTextColumn4 = dataGridTextColumn; | |
dataGridTextColumn4.Header = "Owner"; | |
obj = dataGridTextColumn4; | |
BindingExtension bindingExtension23 = new BindingExtension("Owner.Name"); | |
IServiceProvider serviceProvider23 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Binding"; | |
binding = bindingExtension23.ProvideTypedValue(serviceProvider23); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
dataGridTextColumn4.Binding = binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGridTextColumn4, "Binding", context, binding); | |
} | |
dataGridTextColumn4.IsReadOnly = true; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
columns4.Add(item7); | |
Collection<DataGridColumn> columns5 = dataGrid4.Columns; | |
DataGridColumn item8 = dataGridTextColumn = new DataGridTextColumn(); | |
context.ParentsStack.Add(dataGridTextColumn); | |
DataGridTextColumn dataGridTextColumn5 = dataGridTextColumn; | |
dataGridTextColumn5.Header = "Id"; | |
obj = dataGridTextColumn5; | |
BindingExtension bindingExtension24 = new BindingExtension("Id"); | |
IServiceProvider serviceProvider24 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Binding"; | |
binding = bindingExtension24.ProvideTypedValue(serviceProvider24); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
dataGridTextColumn5.Binding = binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGridTextColumn5, "Binding", context, binding); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
columns5.Add(item8); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
IEnumerable items8 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items8).Add(obj); | |
ISupportInitialize supportInitialize15 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Rows"; | |
tabItem10.Classes = Classes.Parse("property"); | |
Grid grid9; | |
Grid grid8 = grid9 = new Grid(); | |
((ISupportInitialize)grid8).BeginInit(); | |
tabItem10.Content = grid8; | |
ISupportInitialize supportInitialize16 = grid3 = grid9; | |
context.ParentsStack.Add(grid3); | |
Grid grid10 = grid3; | |
grid10.RowDefinitions = RowDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children5 = grid10.Children; | |
Menu menu9; | |
Menu menu8 = menu9 = new Menu(); | |
((ISupportInitialize)menu8).BeginInit(); | |
children5.Add(menu8); | |
ISupportInitialize supportInitialize17 = menu3 = menu9; | |
context.ParentsStack.Add(menu3); | |
Menu menu10 = menu3; | |
Grid.SetRow(menu10, 1); | |
menu10.HorizontalAlignment = HorizontalAlignment.Right; | |
IEnumerable items9 = menu10.Items; | |
MenuItem menuItem16; | |
MenuItem menuItem15 = menuItem16 = new MenuItem(); | |
((ISupportInitialize)menuItem15).BeginInit(); | |
obj = (object)menuItem15; | |
((IList)items9).Add(obj); | |
ISupportInitialize supportInitialize18 = menuItem3 = menuItem16; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem17 = menuItem3; | |
menuItem17.Header = "apply"; | |
obj = menuItem17; | |
BindingExtension bindingExtension25 = new BindingExtension("$parent[Window].DataContext.OnApplyRecord"); | |
IServiceProvider serviceProvider25 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension25.ProvideTypedValue(serviceProvider25); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem17, MenuItem.CommandProperty, context, binding); | |
obj = menuItem17; | |
BindingExtension bindingExtension26 = new BindingExtension("CurrentRecord"); | |
IServiceProvider serviceProvider26 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension26.ProvideTypedValue(serviceProvider26); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem17, MenuItem.CommandParameterProperty, context, binding); | |
obj = menuItem17; | |
BindingExtension bindingExtension27 = new BindingExtension("!!CurrentRecord"); | |
IServiceProvider serviceProvider27 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
binding = bindingExtension27.ProvideTypedValue(serviceProvider27); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem17, Visual.IsVisibleProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize18.EndInit(); | |
IEnumerable items10 = menu10.Items; | |
MenuItem menuItem19; | |
MenuItem menuItem18 = menuItem19 = new MenuItem(); | |
((ISupportInitialize)menuItem18).BeginInit(); | |
obj = (object)menuItem18; | |
((IList)items10).Add(obj); | |
ISupportInitialize supportInitialize19 = menuItem3 = menuItem19; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem20 = menuItem3; | |
menuItem20.Header = "+"; | |
obj = menuItem20; | |
BindingExtension bindingExtension28 = new BindingExtension("$parent[Window].DataContext.OnAddRecord"); | |
IServiceProvider serviceProvider28 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension28.ProvideTypedValue(serviceProvider28); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem20, MenuItem.CommandProperty, context, binding); | |
obj = menuItem20; | |
BindingExtension bindingExtension29 = new BindingExtension(); | |
IServiceProvider serviceProvider29 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension29.ProvideTypedValue(serviceProvider29); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem20, MenuItem.CommandParameterProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize19.EndInit(); | |
IEnumerable items11 = menu10.Items; | |
MenuItem menuItem22; | |
MenuItem menuItem21 = menuItem22 = new MenuItem(); | |
((ISupportInitialize)menuItem21).BeginInit(); | |
obj = (object)menuItem21; | |
((IList)items11).Add(obj); | |
ISupportInitialize supportInitialize20 = menuItem3 = menuItem22; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem23 = menuItem3; | |
menuItem23.Header = "˗"; | |
obj = menuItem23; | |
BindingExtension bindingExtension30 = new BindingExtension("$parent[Window].DataContext.OnRemoveRecord"); | |
IServiceProvider serviceProvider30 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
binding = bindingExtension30.ProvideTypedValue(serviceProvider30); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem23, MenuItem.CommandProperty, context, binding); | |
obj = menuItem23; | |
BindingExtension bindingExtension31 = new BindingExtension("CurrentRecord"); | |
IServiceProvider serviceProvider31 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
binding = bindingExtension31.ProvideTypedValue(serviceProvider31); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem23, MenuItem.CommandParameterProperty, context, binding); | |
obj = menuItem23; | |
BindingExtension bindingExtension32 = new BindingExtension("!!CurrentRecord"); | |
IServiceProvider serviceProvider32 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = Visual.IsVisibleProperty; | |
binding = bindingExtension32.ProvideTypedValue(serviceProvider32); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem23, Visual.IsVisibleProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize20.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize17.EndInit(); | |
AvaloniaList<IControl> children6 = grid10.Children; | |
DataGrid dataGrid6; | |
DataGrid dataGrid5 = dataGrid6 = new DataGrid(); | |
((ISupportInitialize)dataGrid5).BeginInit(); | |
children6.Add(dataGrid5); | |
ISupportInitialize supportInitialize21 = dataGrid3 = dataGrid6; | |
context.ParentsStack.Add(dataGrid3); | |
DataGrid dataGrid7 = dataGrid3; | |
styledElement = (StyledElement)dataGrid7; | |
name = "rows"; | |
styledElement.Name = name; | |
nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj = dataGrid7; | |
BindingExtension bindingExtension33 = new BindingExtension("Records"); | |
IServiceProvider serviceProvider33 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = DataGrid.ItemsProperty; | |
binding = bindingExtension33.ProvideTypedValue(serviceProvider33); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGrid7, DataGrid.ItemsProperty, context, binding); | |
obj = dataGrid7; | |
BindingExtension bindingExtension34 = new BindingExtension("CurrentRecord"); | |
IServiceProvider serviceProvider34 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = DataGrid.SelectedItemProperty; | |
binding = bindingExtension34.ProvideTypedValue(serviceProvider34); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGrid7, DataGrid.SelectedItemProperty, context, binding); | |
dataGrid7.AutoGenerateColumns = false; | |
Grid.SetRow(dataGrid7, 1); | |
Collection<DataGridColumn> columns6 = dataGrid7.Columns; | |
DataGridColumn item9 = dataGridTextColumn = new DataGridTextColumn(); | |
context.ParentsStack.Add(dataGridTextColumn); | |
DataGridTextColumn dataGridTextColumn6 = dataGridTextColumn; | |
dataGridTextColumn6.Header = "Owner"; | |
obj = dataGridTextColumn6; | |
BindingExtension bindingExtension35 = new BindingExtension("Owner.Name"); | |
IServiceProvider serviceProvider35 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Binding"; | |
binding = bindingExtension35.ProvideTypedValue(serviceProvider35); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
dataGridTextColumn6.Binding = binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGridTextColumn6, "Binding", context, binding); | |
} | |
dataGridTextColumn6.IsReadOnly = true; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
columns6.Add(item9); | |
Collection<DataGridColumn> columns7 = dataGrid7.Columns; | |
DataGridColumn item10 = dataGridTextColumn = new DataGridTextColumn(); | |
context.ParentsStack.Add(dataGridTextColumn); | |
DataGridTextColumn dataGridTextColumn7 = dataGridTextColumn; | |
dataGridTextColumn7.Header = "Id"; | |
obj = dataGridTextColumn7; | |
BindingExtension bindingExtension36 = new BindingExtension("Id"); | |
IServiceProvider serviceProvider36 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Binding"; | |
binding = bindingExtension36.ProvideTypedValue(serviceProvider36); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
dataGridTextColumn7.Binding = binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(dataGridTextColumn7, "Binding", context, binding); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
columns7.Add(item10); | |
IDataTemplate rowDetailsTemplate = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
dataTemplate.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_5fbd732f-53b3-417d-91cd-e44774bedcfe.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataGrid7.RowDetailsTemplate = rowDetailsTemplate; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize21.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize16.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize15.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600028E RID: 654 RVA: 0x0002B394 File Offset: 0x00029594 | |
public static void xaml(IServiceProvider A_0, Core2D.UI.Avalonia.Views.DocumentControl A_1) | |
{ | |
XamlIlContext.Context<Core2D.UI.Avalonia.Views.DocumentControl> context = new XamlIlContext.Context<Core2D.UI.Avalonia.Views.DocumentControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/DocumentControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/DocumentControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.Classes = Classes.Parse("container"); | |
object provideTargetObject = grid4; | |
BindingExtension bindingExtension = new BindingExtension("Renderers[1]"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = RendererOptions.RendererProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(grid4, RendererOptions.RendererProperty, context, value); | |
provideTargetObject = grid4; | |
BindingExtension bindingExtension2 = new BindingExtension("DataFlow"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = RendererOptions.DataFlowProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(grid4, RendererOptions.DataFlowProperty, context, value); | |
AvaloniaList<IControl> children = grid4.Children; | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
children.Add(scrollViewer); | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize2 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ScrollViewer scrollViewer4 = scrollViewer3; | |
scrollViewer4.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto; | |
scrollViewer4.VerticalScrollBarVisibility = ScrollBarVisibility.Auto; | |
Carousel carousel2; | |
Carousel carousel = carousel2 = new Carousel(); | |
((ISupportInitialize)carousel).BeginInit(); | |
scrollViewer4.Content = carousel; | |
Carousel carousel3; | |
ISupportInitialize supportInitialize3 = carousel3 = carousel2; | |
context.ParentsStack.Add(carousel3); | |
object obj = provideTargetObject = carousel3; | |
BindingExtension bindingExtension3 = new BindingExtension("Project.Documents"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, ItemsControl.ItemsProperty, context, value); | |
provideTargetObject = obj; | |
BindingExtension bindingExtension4 = new BindingExtension("Project.CurrentDocument"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, SelectingItemsControl.SelectedItemProperty, context, value); | |
obj.IsVirtualized = false; | |
obj.VerticalAlignment = VerticalAlignment.Center; | |
obj.Margin = Thickness.Parse("2"); | |
AvaloniaList<IDataTemplate> dataTemplates = obj.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IDocumentContainer); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_3f7125e9-b01e-4458-89f8-c3278b99f998.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600028F RID: 655 RVA: 0x0002B774 File Offset: 0x00029974 | |
public static void xaml(IServiceProvider A_0, DocumentMenuControl A_1) | |
{ | |
XamlIlContext.Context<DocumentMenuControl> context = new XamlIlContext.Context<DocumentMenuControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/DocumentMenuControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/DocumentMenuControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
A_1.Content = menu; | |
Menu menu3; | |
ISupportInitialize supportInitialize = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
menu4.Classes = Classes.Parse("default"); | |
menu4.ItemsPanel = new ItemsPanelTemplate | |
{ | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_1cdf3f60-b439-405d-bbd6-76a8a074ddcd.Build), context) | |
}; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
object obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize2 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "_File"; | |
IEnumerable items2 = menuItem4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj = (object)menuItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize3 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "E_xit"; | |
obj = menuItem7; | |
BindingExtension bindingExtension = new BindingExtension("Platform.OnExit"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items3 = menu4.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj = (object)menuItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize4 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "_View"; | |
IEnumerable items4 = menuItem10.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj = (object)menuItem11; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "_Script Editor..."; | |
obj = menuItem13; | |
BindingExtension bindingExtension2 = new BindingExtension("Platform.OnScriptEditor"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items5 = menuItem10.Items; | |
Separator separator2; | |
Separator separator = separator2 = new Separator(); | |
((ISupportInitialize)separator).BeginInit(); | |
obj = (object)separator; | |
((IList)items5).Add(obj); | |
((ISupportInitialize)separator2).EndInit(); | |
IEnumerable items6 = menuItem10.Items; | |
MenuItem menuItem15; | |
MenuItem menuItem14 = menuItem15 = new MenuItem(); | |
((ISupportInitialize)menuItem14).BeginInit(); | |
obj = (object)menuItem14; | |
((IList)items6).Add(obj); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem15; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem16 = menuItem3; | |
menuItem16.Header = "_Views"; | |
obj = menuItem16; | |
BindingExtension bindingExtension3 = new BindingExtension("Layout.Views"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, ItemsControl.ItemsProperty, context, value); | |
Styles styles = menuItem16.Styles; | |
Style style; | |
IStyle item = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style2 = style; | |
style2.Selector = Selectors.OfType((Selector)null, typeof(MenuItem)); | |
ICollection<ISetter> setters = style2.Setters; | |
Setter setter; | |
ISetter item2 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter2 = setter; | |
setter2.Property = HeaderedSelectingItemsControl.HeaderProperty; | |
obj = setter2; | |
BindingExtension bindingExtension4 = new BindingExtension("Title"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter2.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters.Add(item2); | |
ICollection<ISetter> setters2 = style2.Setters; | |
ISetter item3 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter3 = setter; | |
setter3.Property = MenuItem.CommandProperty; | |
obj = setter3; | |
BindingExtension bindingExtension5 = new BindingExtension("$parent[UserControl].DataContext.OnNavigate"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter3.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters2.Add(item3); | |
ICollection<ISetter> setters3 = style2.Setters; | |
ISetter item4 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter4 = setter; | |
setter4.Property = MenuItem.CommandParameterProperty; | |
obj = setter4; | |
BindingExtension bindingExtension6 = new BindingExtension(); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter4.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters3.Add(item4); | |
ICollection<ISetter> setters4 = style2.Setters; | |
ISetter item5 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter5 = setter; | |
setter5.Property = MenuItem.IconProperty; | |
Template template; | |
object value2 = template = new Template(); | |
context.ParentsStack.Add(template); | |
template.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_1bd2ae49-db1b-4b0a-bfc6-a2c7e1d7c864.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setter5.Value = value2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters4.Add(item5); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000290 RID: 656 RVA: 0x0002BF60 File Offset: 0x0002A160 | |
public static void xaml(IServiceProvider A_0, EditorControl A_1) | |
{ | |
XamlIlContext.Context<EditorControl> context = new XamlIlContext.Context<EditorControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/EditorControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/EditorControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
A_1.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("*"); | |
grid4.RowDefinitions = RowDefinitions.Parse("*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
ContentControl contentControl2; | |
ContentControl contentControl = contentControl2 = new ContentControl(); | |
((ISupportInitialize)contentControl).BeginInit(); | |
children.Add(contentControl); | |
ContentControl contentControl3; | |
ISupportInitialize supportInitialize2 = contentControl3 = contentControl2; | |
context.ParentsStack.Add(contentControl3); | |
object provideTargetObject; | |
object obj = provideTargetObject = contentControl3; | |
BindingExtension bindingExtension = new BindingExtension("CurrentView"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, ContentControl.ContentProperty, context, value); | |
Grid.SetColumn(obj, 0); | |
Grid.SetRow(obj, 0); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000291 RID: 657 RVA: 0x0002C130 File Offset: 0x0002A330 | |
public static void xaml(IServiceProvider A_0, EditorMenuControl A_1) | |
{ | |
XamlIlContext.Context<EditorMenuControl> context = new XamlIlContext.Context<EditorMenuControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/EditorMenuControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/EditorMenuControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Resources.Add("ObjectEqualityMultiConverter", new ObjectEqualityMultiConverter()); | |
A_1.Resources.Add("ObjectEqualsConverter", new ObjectEqualsConverter()); | |
Menu menu2; | |
Menu menu = menu2 = new Menu(); | |
((ISupportInitialize)menu).BeginInit(); | |
A_1.Content = menu; | |
Menu menu3; | |
ISupportInitialize supportInitialize = menu3 = menu2; | |
context.ParentsStack.Add(menu3); | |
Menu menu4 = menu3; | |
menu4.Classes = Classes.Parse("default"); | |
menu4.ItemsPanel = new ItemsPanelTemplate | |
{ | |
Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_f9dabb67-69f5-4267-b8a7-aee98748e4df.Build), context) | |
}; | |
IEnumerable items = menu4.Items; | |
MenuItem menuItem2; | |
MenuItem menuItem = menuItem2 = new MenuItem(); | |
((ISupportInitialize)menuItem).BeginInit(); | |
object obj = (object)menuItem; | |
((IList)items).Add(obj); | |
MenuItem menuItem3; | |
ISupportInitialize supportInitialize2 = menuItem3 = menuItem2; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem4 = menuItem3; | |
menuItem4.Header = "_File"; | |
IEnumerable items2 = menuItem4.Items; | |
MenuItem menuItem6; | |
MenuItem menuItem5 = menuItem6 = new MenuItem(); | |
((ISupportInitialize)menuItem5).BeginInit(); | |
obj = (object)menuItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize3 = menuItem3 = menuItem6; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem7 = menuItem3; | |
menuItem7.Header = "_New"; | |
obj = menuItem7; | |
BindingExtension bindingExtension = new BindingExtension("OnNew"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandProperty, context, value); | |
obj = menuItem7; | |
BindingExtension bindingExtension2 = new BindingExtension(); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem7, MenuItem.CommandParameterProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
IEnumerable items3 = menuItem4.Items; | |
Separator separator2; | |
Separator separator = separator2 = new Separator(); | |
((ISupportInitialize)separator).BeginInit(); | |
obj = (object)separator; | |
((IList)items3).Add(obj); | |
((ISupportInitialize)separator2).EndInit(); | |
IEnumerable items4 = menuItem4.Items; | |
MenuItem menuItem9; | |
MenuItem menuItem8 = menuItem9 = new MenuItem(); | |
((ISupportInitialize)menuItem8).BeginInit(); | |
obj = (object)menuItem8; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize4 = menuItem3 = menuItem9; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem10 = menuItem3; | |
menuItem10.Header = "_Open..."; | |
obj = menuItem10; | |
BindingExtension bindingExtension3 = new BindingExtension("Platform.OnOpen"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem10, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
IEnumerable items5 = menuItem4.Items; | |
Separator separator4; | |
Separator separator3 = separator4 = new Separator(); | |
((ISupportInitialize)separator3).BeginInit(); | |
obj = (object)separator3; | |
((IList)items5).Add(obj); | |
((ISupportInitialize)separator4).EndInit(); | |
IEnumerable items6 = menuItem4.Items; | |
MenuItem menuItem12; | |
MenuItem menuItem11 = menuItem12 = new MenuItem(); | |
((ISupportInitialize)menuItem11).BeginInit(); | |
obj = (object)menuItem11; | |
((IList)items6).Add(obj); | |
ISupportInitialize supportInitialize5 = menuItem3 = menuItem12; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem13 = menuItem3; | |
menuItem13.Header = "_Close"; | |
obj = menuItem13; | |
BindingExtension bindingExtension4 = new BindingExtension("OnCloseProject"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem13, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
IEnumerable items7 = menuItem4.Items; | |
Separator separator6; | |
Separator separator5 = separator6 = new Separator(); | |
((ISupportInitialize)separator5).BeginInit(); | |
obj = (object)separator5; | |
((IList)items7).Add(obj); | |
((ISupportInitialize)separator6).EndInit(); | |
IEnumerable items8 = menuItem4.Items; | |
MenuItem menuItem15; | |
MenuItem menuItem14 = menuItem15 = new MenuItem(); | |
((ISupportInitialize)menuItem14).BeginInit(); | |
obj = (object)menuItem14; | |
((IList)items8).Add(obj); | |
ISupportInitialize supportInitialize6 = menuItem3 = menuItem15; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem16 = menuItem3; | |
menuItem16.Header = "_Save"; | |
obj = menuItem16; | |
BindingExtension bindingExtension5 = new BindingExtension("Platform.OnSave"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem16, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
IEnumerable items9 = menuItem4.Items; | |
MenuItem menuItem18; | |
MenuItem menuItem17 = menuItem18 = new MenuItem(); | |
((ISupportInitialize)menuItem17).BeginInit(); | |
obj = (object)menuItem17; | |
((IList)items9).Add(obj); | |
ISupportInitialize supportInitialize7 = menuItem3 = menuItem18; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem19 = menuItem3; | |
menuItem19.Header = "Save _As..."; | |
obj = menuItem19; | |
BindingExtension bindingExtension6 = new BindingExtension("Platform.OnSaveAs"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem19, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
IEnumerable items10 = menuItem4.Items; | |
Separator separator8; | |
Separator separator7 = separator8 = new Separator(); | |
((ISupportInitialize)separator7).BeginInit(); | |
obj = (object)separator7; | |
((IList)items10).Add(obj); | |
((ISupportInitialize)separator8).EndInit(); | |
IEnumerable items11 = menuItem4.Items; | |
MenuItem menuItem21; | |
MenuItem menuItem20 = menuItem21 = new MenuItem(); | |
((ISupportInitialize)menuItem20).BeginInit(); | |
obj = (object)menuItem20; | |
((IList)items11).Add(obj); | |
ISupportInitialize supportInitialize8 = menuItem3 = menuItem21; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem22 = menuItem3; | |
menuItem22.Header = "Execu_te Script..."; | |
obj = menuItem22; | |
BindingExtension bindingExtension7 = new BindingExtension("Platform.OnExecuteScript"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem22, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
IEnumerable items12 = menuItem4.Items; | |
Separator separator10; | |
Separator separator9 = separator10 = new Separator(); | |
((ISupportInitialize)separator9).BeginInit(); | |
obj = (object)separator9; | |
((IList)items12).Add(obj); | |
((ISupportInitialize)separator10).EndInit(); | |
IEnumerable items13 = menuItem4.Items; | |
MenuItem menuItem24; | |
MenuItem menuItem23 = menuItem24 = new MenuItem(); | |
((ISupportInitialize)menuItem23).BeginInit(); | |
obj = (object)menuItem23; | |
((IList)items13).Add(obj); | |
ISupportInitialize supportInitialize9 = menuItem3 = menuItem24; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem25 = menuItem3; | |
menuItem25.Header = "Import Xa_ml..."; | |
obj = menuItem25; | |
BindingExtension bindingExtension8 = new BindingExtension("Platform.OnImportXaml"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem25, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
IEnumerable items14 = menuItem4.Items; | |
MenuItem menuItem27; | |
MenuItem menuItem26 = menuItem27 = new MenuItem(); | |
((ISupportInitialize)menuItem26).BeginInit(); | |
obj = (object)menuItem26; | |
((IList)items14).Add(obj); | |
ISupportInitialize supportInitialize10 = menuItem3 = menuItem27; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem28 = menuItem3; | |
menuItem28.Header = "Import _Json..."; | |
obj = menuItem28; | |
BindingExtension bindingExtension9 = new BindingExtension("Platform.OnImportJson"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem28, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
IEnumerable items15 = menuItem4.Items; | |
Separator separator12; | |
Separator separator11 = separator12 = new Separator(); | |
((ISupportInitialize)separator11).BeginInit(); | |
obj = (object)separator11; | |
((IList)items15).Add(obj); | |
((ISupportInitialize)separator12).EndInit(); | |
IEnumerable items16 = menuItem4.Items; | |
MenuItem menuItem30; | |
MenuItem menuItem29 = menuItem30 = new MenuItem(); | |
((ISupportInitialize)menuItem29).BeginInit(); | |
obj = (object)menuItem29; | |
((IList)items16).Add(obj); | |
ISupportInitialize supportInitialize11 = menuItem3 = menuItem30; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem31 = menuItem3; | |
menuItem31.Header = "_Export..."; | |
obj = menuItem31; | |
BindingExtension bindingExtension10 = new BindingExtension("Platform.OnExport"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem31, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
IEnumerable items17 = menuItem4.Items; | |
Separator separator14; | |
Separator separator13 = separator14 = new Separator(); | |
((ISupportInitialize)separator13).BeginInit(); | |
obj = (object)separator13; | |
((IList)items17).Add(obj); | |
((ISupportInitialize)separator14).EndInit(); | |
IEnumerable items18 = menuItem4.Items; | |
MenuItem menuItem33; | |
MenuItem menuItem32 = menuItem33 = new MenuItem(); | |
((ISupportInitialize)menuItem32).BeginInit(); | |
obj = (object)menuItem32; | |
((IList)items18).Add(obj); | |
ISupportInitialize supportInitialize12 = menuItem3 = menuItem33; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem34 = menuItem3; | |
menuItem34.Header = "_Recent"; | |
obj = menuItem34; | |
BindingExtension bindingExtension11 = new BindingExtension("RecentProjects"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem34, ItemsControl.ItemsProperty, context, value); | |
Styles styles = menuItem34.Styles; | |
Style style; | |
IStyle item = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style2 = style; | |
style2.Selector = Selectors.OfType((Selector)null, typeof(MenuItem)); | |
ICollection<ISetter> setters = style2.Setters; | |
Setter setter; | |
ISetter item2 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter2 = setter; | |
setter2.Property = HeaderedSelectingItemsControl.HeaderProperty; | |
obj = setter2; | |
BindingExtension bindingExtension12 = new BindingExtension("Name"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter2.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters.Add(item2); | |
ICollection<ISetter> setters2 = style2.Setters; | |
ISetter item3 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter3 = setter; | |
setter3.Property = MenuItem.CommandProperty; | |
obj = setter3; | |
BindingExtension bindingExtension13 = new BindingExtension("$parent[UserControl].DataContext.Platform.OnOpen"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter3.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters2.Add(item3); | |
ICollection<ISetter> setters3 = style2.Setters; | |
ISetter item4 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter4 = setter; | |
setter4.Property = MenuItem.CommandParameterProperty; | |
obj = setter4; | |
BindingExtension bindingExtension14 = new BindingExtension("Path"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter4.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters3.Add(item4); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
IEnumerable items19 = menuItem4.Items; | |
Separator separator16; | |
Separator separator15 = separator16 = new Separator(); | |
((ISupportInitialize)separator15).BeginInit(); | |
obj = (object)separator15; | |
((IList)items19).Add(obj); | |
((ISupportInitialize)separator16).EndInit(); | |
IEnumerable items20 = menuItem4.Items; | |
MenuItem menuItem36; | |
MenuItem menuItem35 = menuItem36 = new MenuItem(); | |
((ISupportInitialize)menuItem35).BeginInit(); | |
obj = (object)menuItem35; | |
((IList)items20).Add(obj); | |
ISupportInitialize supportInitialize13 = menuItem3 = menuItem36; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem37 = menuItem3; | |
menuItem37.Header = "E_xit"; | |
obj = menuItem37; | |
BindingExtension bindingExtension15 = new BindingExtension("Platform.OnExit"); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem37, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items21 = menu4.Items; | |
MenuItem menuItem39; | |
MenuItem menuItem38 = menuItem39 = new MenuItem(); | |
((ISupportInitialize)menuItem38).BeginInit(); | |
obj = (object)menuItem38; | |
((IList)items21).Add(obj); | |
ISupportInitialize supportInitialize14 = menuItem3 = menuItem39; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem40 = menuItem3; | |
menuItem40.Header = "_Edit"; | |
IEnumerable items22 = menuItem40.Items; | |
MenuItem menuItem42; | |
MenuItem menuItem41 = menuItem42 = new MenuItem(); | |
((ISupportInitialize)menuItem41).BeginInit(); | |
obj = (object)menuItem41; | |
((IList)items22).Add(obj); | |
ISupportInitialize supportInitialize15 = menuItem3 = menuItem42; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem43 = menuItem3; | |
menuItem43.Header = "_Undo"; | |
obj = menuItem43; | |
BindingExtension bindingExtension16 = new BindingExtension("OnUndo"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem43, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize15.EndInit(); | |
IEnumerable items23 = menuItem40.Items; | |
MenuItem menuItem45; | |
MenuItem menuItem44 = menuItem45 = new MenuItem(); | |
((ISupportInitialize)menuItem44).BeginInit(); | |
obj = (object)menuItem44; | |
((IList)items23).Add(obj); | |
ISupportInitialize supportInitialize16 = menuItem3 = menuItem45; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem46 = menuItem3; | |
menuItem46.Header = "_Redo"; | |
obj = menuItem46; | |
BindingExtension bindingExtension17 = new BindingExtension("OnRedo"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem46, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize16.EndInit(); | |
IEnumerable items24 = menuItem40.Items; | |
Separator separator18; | |
Separator separator17 = separator18 = new Separator(); | |
((ISupportInitialize)separator17).BeginInit(); | |
obj = (object)separator17; | |
((IList)items24).Add(obj); | |
((ISupportInitialize)separator18).EndInit(); | |
IEnumerable items25 = menuItem40.Items; | |
MenuItem menuItem48; | |
MenuItem menuItem47 = menuItem48 = new MenuItem(); | |
((ISupportInitialize)menuItem47).BeginInit(); | |
obj = (object)menuItem47; | |
((IList)items25).Add(obj); | |
ISupportInitialize supportInitialize17 = menuItem3 = menuItem48; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem49 = menuItem3; | |
menuItem49.Header = "Copy As _Metafile"; | |
obj = menuItem49; | |
BindingExtension bindingExtension18 = new BindingExtension("Platform.OnCopyAsEmf"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem49, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize17.EndInit(); | |
IEnumerable items26 = menuItem40.Items; | |
Separator separator20; | |
Separator separator19 = separator20 = new Separator(); | |
((ISupportInitialize)separator19).BeginInit(); | |
obj = (object)separator19; | |
((IList)items26).Add(obj); | |
((ISupportInitialize)separator20).EndInit(); | |
IEnumerable items27 = menuItem40.Items; | |
MenuItem menuItem51; | |
MenuItem menuItem50 = menuItem51 = new MenuItem(); | |
((ISupportInitialize)menuItem50).BeginInit(); | |
obj = (object)menuItem50; | |
((IList)items27).Add(obj); | |
ISupportInitialize supportInitialize18 = menuItem3 = menuItem51; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem52 = menuItem3; | |
menuItem52.Header = "Cu_t"; | |
obj = menuItem52; | |
BindingExtension bindingExtension19 = new BindingExtension("OnCut"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem52, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize18.EndInit(); | |
IEnumerable items28 = menuItem40.Items; | |
MenuItem menuItem54; | |
MenuItem menuItem53 = menuItem54 = new MenuItem(); | |
((ISupportInitialize)menuItem53).BeginInit(); | |
obj = (object)menuItem53; | |
((IList)items28).Add(obj); | |
ISupportInitialize supportInitialize19 = menuItem3 = menuItem54; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem55 = menuItem3; | |
menuItem55.Header = "_Copy"; | |
obj = menuItem55; | |
BindingExtension bindingExtension20 = new BindingExtension("OnCopy"); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem55, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize19.EndInit(); | |
IEnumerable items29 = menuItem40.Items; | |
MenuItem menuItem57; | |
MenuItem menuItem56 = menuItem57 = new MenuItem(); | |
((ISupportInitialize)menuItem56).BeginInit(); | |
obj = (object)menuItem56; | |
((IList)items29).Add(obj); | |
ISupportInitialize supportInitialize20 = menuItem3 = menuItem57; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem58 = menuItem3; | |
menuItem58.Header = "_Paste"; | |
obj = menuItem58; | |
BindingExtension bindingExtension21 = new BindingExtension("OnPaste"); | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension21.ProvideTypedValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem58, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize20.EndInit(); | |
IEnumerable items30 = menuItem40.Items; | |
MenuItem menuItem60; | |
MenuItem menuItem59 = menuItem60 = new MenuItem(); | |
((ISupportInitialize)menuItem59).BeginInit(); | |
obj = (object)menuItem59; | |
((IList)items30).Add(obj); | |
ISupportInitialize supportInitialize21 = menuItem3 = menuItem60; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem61 = menuItem3; | |
menuItem61.Header = "_Delete"; | |
obj = menuItem61; | |
BindingExtension bindingExtension22 = new BindingExtension("OnDelete"); | |
IServiceProvider serviceProvider22 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension22.ProvideTypedValue(serviceProvider22); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem61, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize21.EndInit(); | |
IEnumerable items31 = menuItem40.Items; | |
Separator separator22; | |
Separator separator21 = separator22 = new Separator(); | |
((ISupportInitialize)separator21).BeginInit(); | |
obj = (object)separator21; | |
((IList)items31).Add(obj); | |
((ISupportInitialize)separator22).EndInit(); | |
IEnumerable items32 = menuItem40.Items; | |
MenuItem menuItem63; | |
MenuItem menuItem62 = menuItem63 = new MenuItem(); | |
((ISupportInitialize)menuItem62).BeginInit(); | |
obj = (object)menuItem62; | |
((IList)items32).Add(obj); | |
ISupportInitialize supportInitialize22 = menuItem3 = menuItem63; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem64 = menuItem3; | |
menuItem64.Header = "Select _All"; | |
obj = menuItem64; | |
BindingExtension bindingExtension23 = new BindingExtension("OnSelectAll"); | |
IServiceProvider serviceProvider23 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension23.ProvideTypedValue(serviceProvider23); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem64, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize22.EndInit(); | |
IEnumerable items33 = menuItem40.Items; | |
MenuItem menuItem66; | |
MenuItem menuItem65 = menuItem66 = new MenuItem(); | |
((ISupportInitialize)menuItem65).BeginInit(); | |
obj = (object)menuItem65; | |
((IList)items33).Add(obj); | |
ISupportInitialize supportInitialize23 = menuItem3 = menuItem66; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem67 = menuItem3; | |
menuItem67.Header = "De_select All"; | |
obj = menuItem67; | |
BindingExtension bindingExtension24 = new BindingExtension("OnDeselectAll"); | |
IServiceProvider serviceProvider24 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension24.ProvideTypedValue(serviceProvider24); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem67, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize23.EndInit(); | |
IEnumerable items34 = menuItem40.Items; | |
Separator separator24; | |
Separator separator23 = separator24 = new Separator(); | |
((ISupportInitialize)separator23).BeginInit(); | |
obj = (object)separator23; | |
((IList)items34).Add(obj); | |
((ISupportInitialize)separator24).EndInit(); | |
IEnumerable items35 = menuItem40.Items; | |
MenuItem menuItem69; | |
MenuItem menuItem68 = menuItem69 = new MenuItem(); | |
((ISupportInitialize)menuItem68).BeginInit(); | |
obj = (object)menuItem68; | |
((IList)items35).Add(obj); | |
ISupportInitialize supportInitialize24 = menuItem3 = menuItem69; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem70 = menuItem3; | |
menuItem70.Header = "Cl_ear All"; | |
obj = menuItem70; | |
BindingExtension bindingExtension25 = new BindingExtension("OnClearAll"); | |
IServiceProvider serviceProvider25 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension25.ProvideTypedValue(serviceProvider25); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem70, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize24.EndInit(); | |
IEnumerable items36 = menuItem40.Items; | |
Separator separator26; | |
Separator separator25 = separator26 = new Separator(); | |
((ISupportInitialize)separator25).BeginInit(); | |
obj = (object)separator25; | |
((IList)items36).Add(obj); | |
((ISupportInitialize)separator26).EndInit(); | |
IEnumerable items37 = menuItem40.Items; | |
MenuItem menuItem72; | |
MenuItem menuItem71 = menuItem72 = new MenuItem(); | |
((ISupportInitialize)menuItem71).BeginInit(); | |
obj = (object)menuItem71; | |
((IList)items37).Add(obj); | |
ISupportInitialize supportInitialize25 = menuItem3 = menuItem72; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem73 = menuItem3; | |
menuItem73.Header = "_Group"; | |
obj = menuItem73; | |
BindingExtension bindingExtension26 = new BindingExtension("OnGroupSelected"); | |
IServiceProvider serviceProvider26 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension26.ProvideTypedValue(serviceProvider26); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem73, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize25.EndInit(); | |
IEnumerable items38 = menuItem40.Items; | |
MenuItem menuItem75; | |
MenuItem menuItem74 = menuItem75 = new MenuItem(); | |
((ISupportInitialize)menuItem74).BeginInit(); | |
obj = (object)menuItem74; | |
((IList)items38).Add(obj); | |
ISupportInitialize supportInitialize26 = menuItem3 = menuItem75; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem76 = menuItem3; | |
menuItem76.Header = "U_ngroup"; | |
obj = menuItem76; | |
BindingExtension bindingExtension27 = new BindingExtension("OnUngroupSelected"); | |
IServiceProvider serviceProvider27 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension27.ProvideTypedValue(serviceProvider27); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem76, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize26.EndInit(); | |
IEnumerable items39 = menuItem40.Items; | |
Separator separator28; | |
Separator separator27 = separator28 = new Separator(); | |
((ISupportInitialize)separator27).BeginInit(); | |
obj = (object)separator27; | |
((IList)items39).Add(obj); | |
((ISupportInitialize)separator28).EndInit(); | |
IEnumerable items40 = menuItem40.Items; | |
MenuItem menuItem78; | |
MenuItem menuItem77 = menuItem78 = new MenuItem(); | |
((ISupportInitialize)menuItem77).BeginInit(); | |
obj = (object)menuItem77; | |
((IList)items40).Add(obj); | |
ISupportInitialize supportInitialize27 = menuItem3 = menuItem78; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem79 = menuItem3; | |
menuItem79.Header = "_Move"; | |
IEnumerable items41 = menuItem79.Items; | |
MenuItem menuItem81; | |
MenuItem menuItem80 = menuItem81 = new MenuItem(); | |
((ISupportInitialize)menuItem80).BeginInit(); | |
obj = (object)menuItem80; | |
((IList)items41).Add(obj); | |
ISupportInitialize supportInitialize28 = menuItem3 = menuItem81; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem82 = menuItem3; | |
menuItem82.Header = "_Up"; | |
obj = menuItem82; | |
BindingExtension bindingExtension28 = new BindingExtension("OnMoveUpSelected"); | |
IServiceProvider serviceProvider28 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension28.ProvideTypedValue(serviceProvider28); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem82, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize28.EndInit(); | |
IEnumerable items42 = menuItem79.Items; | |
MenuItem menuItem84; | |
MenuItem menuItem83 = menuItem84 = new MenuItem(); | |
((ISupportInitialize)menuItem83).BeginInit(); | |
obj = (object)menuItem83; | |
((IList)items42).Add(obj); | |
ISupportInitialize supportInitialize29 = menuItem3 = menuItem84; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem85 = menuItem3; | |
menuItem85.Header = "_Down"; | |
obj = menuItem85; | |
BindingExtension bindingExtension29 = new BindingExtension("OnMoveDownSelected"); | |
IServiceProvider serviceProvider29 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension29.ProvideTypedValue(serviceProvider29); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem85, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize29.EndInit(); | |
IEnumerable items43 = menuItem79.Items; | |
MenuItem menuItem87; | |
MenuItem menuItem86 = menuItem87 = new MenuItem(); | |
((ISupportInitialize)menuItem86).BeginInit(); | |
obj = (object)menuItem86; | |
((IList)items43).Add(obj); | |
ISupportInitialize supportInitialize30 = menuItem3 = menuItem87; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem88 = menuItem3; | |
menuItem88.Header = "_Left"; | |
obj = menuItem88; | |
BindingExtension bindingExtension30 = new BindingExtension("OnMoveLeftSelected"); | |
IServiceProvider serviceProvider30 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension30.ProvideTypedValue(serviceProvider30); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem88, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize30.EndInit(); | |
IEnumerable items44 = menuItem79.Items; | |
MenuItem menuItem90; | |
MenuItem menuItem89 = menuItem90 = new MenuItem(); | |
((ISupportInitialize)menuItem89).BeginInit(); | |
obj = (object)menuItem89; | |
((IList)items44).Add(obj); | |
ISupportInitialize supportInitialize31 = menuItem3 = menuItem90; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem91 = menuItem3; | |
menuItem91.Header = "_Right"; | |
obj = menuItem91; | |
BindingExtension bindingExtension31 = new BindingExtension("OnMoveRightSelected"); | |
IServiceProvider serviceProvider31 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension31.ProvideTypedValue(serviceProvider31); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem91, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize31.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize27.EndInit(); | |
IEnumerable items45 = menuItem40.Items; | |
Separator separator30; | |
Separator separator29 = separator30 = new Separator(); | |
((ISupportInitialize)separator29).BeginInit(); | |
obj = (object)separator29; | |
((IList)items45).Add(obj); | |
((ISupportInitialize)separator30).EndInit(); | |
IEnumerable items46 = menuItem40.Items; | |
MenuItem menuItem93; | |
MenuItem menuItem92 = menuItem93 = new MenuItem(); | |
((ISupportInitialize)menuItem92).BeginInit(); | |
obj = (object)menuItem92; | |
((IList)items46).Add(obj); | |
ISupportInitialize supportInitialize32 = menuItem3 = menuItem93; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem94 = menuItem3; | |
menuItem94.Header = "_Order"; | |
IEnumerable items47 = menuItem94.Items; | |
MenuItem menuItem96; | |
MenuItem menuItem95 = menuItem96 = new MenuItem(); | |
((ISupportInitialize)menuItem95).BeginInit(); | |
obj = (object)menuItem95; | |
((IList)items47).Add(obj); | |
ISupportInitialize supportInitialize33 = menuItem3 = menuItem96; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem97 = menuItem3; | |
menuItem97.Header = "Send to _Back"; | |
obj = menuItem97; | |
BindingExtension bindingExtension32 = new BindingExtension("OnSendToBackSelected"); | |
IServiceProvider serviceProvider32 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension32.ProvideTypedValue(serviceProvider32); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem97, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize33.EndInit(); | |
IEnumerable items48 = menuItem94.Items; | |
MenuItem menuItem99; | |
MenuItem menuItem98 = menuItem99 = new MenuItem(); | |
((ISupportInitialize)menuItem98).BeginInit(); | |
obj = (object)menuItem98; | |
((IList)items48).Add(obj); | |
ISupportInitialize supportInitialize34 = menuItem3 = menuItem99; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem100 = menuItem3; | |
menuItem100.Header = "Send Ba_ckward"; | |
obj = menuItem100; | |
BindingExtension bindingExtension33 = new BindingExtension("OnSendBackwardSelected"); | |
IServiceProvider serviceProvider33 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension33.ProvideTypedValue(serviceProvider33); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem100, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize34.EndInit(); | |
IEnumerable items49 = menuItem94.Items; | |
Separator separator32; | |
Separator separator31 = separator32 = new Separator(); | |
((ISupportInitialize)separator31).BeginInit(); | |
obj = (object)separator31; | |
((IList)items49).Add(obj); | |
((ISupportInitialize)separator32).EndInit(); | |
IEnumerable items50 = menuItem94.Items; | |
MenuItem menuItem102; | |
MenuItem menuItem101 = menuItem102 = new MenuItem(); | |
((ISupportInitialize)menuItem101).BeginInit(); | |
obj = (object)menuItem101; | |
((IList)items50).Add(obj); | |
ISupportInitialize supportInitialize35 = menuItem3 = menuItem102; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem103 = menuItem3; | |
menuItem103.Header = "Bring Fo_rward"; | |
obj = menuItem103; | |
BindingExtension bindingExtension34 = new BindingExtension("OnBringForwardSelected"); | |
IServiceProvider serviceProvider34 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension34.ProvideTypedValue(serviceProvider34); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem103, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize35.EndInit(); | |
IEnumerable items51 = menuItem94.Items; | |
MenuItem menuItem105; | |
MenuItem menuItem104 = menuItem105 = new MenuItem(); | |
((ISupportInitialize)menuItem104).BeginInit(); | |
obj = (object)menuItem104; | |
((IList)items51).Add(obj); | |
ISupportInitialize supportInitialize36 = menuItem3 = menuItem105; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem106 = menuItem3; | |
menuItem106.Header = "Bring to _Front"; | |
obj = menuItem106; | |
BindingExtension bindingExtension35 = new BindingExtension("OnBringToFrontSelected"); | |
IServiceProvider serviceProvider35 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension35.ProvideTypedValue(serviceProvider35); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem106, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize36.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize32.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize14.EndInit(); | |
IEnumerable items52 = menu4.Items; | |
MenuItem menuItem108; | |
MenuItem menuItem107 = menuItem108 = new MenuItem(); | |
((ISupportInitialize)menuItem107).BeginInit(); | |
obj = (object)menuItem107; | |
((IList)items52).Add(obj); | |
ISupportInitialize supportInitialize37 = menuItem3 = menuItem108; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem109 = menuItem3; | |
menuItem109.Header = "_View"; | |
IEnumerable items53 = menuItem109.Items; | |
MenuItem menuItem111; | |
MenuItem menuItem110 = menuItem111 = new MenuItem(); | |
((ISupportInitialize)menuItem110).BeginInit(); | |
obj = (object)menuItem110; | |
((IList)items53).Add(obj); | |
ISupportInitialize supportInitialize38 = menuItem3 = menuItem111; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem112 = menuItem3; | |
menuItem112.Header = "_Object Browser..."; | |
obj = menuItem112; | |
BindingExtension bindingExtension36 = new BindingExtension("Platform.OnObjectBrowser"); | |
IServiceProvider serviceProvider36 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension36.ProvideTypedValue(serviceProvider36); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem112, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize38.EndInit(); | |
IEnumerable items54 = menuItem109.Items; | |
Separator separator34; | |
Separator separator33 = separator34 = new Separator(); | |
((ISupportInitialize)separator33).BeginInit(); | |
obj = (object)separator33; | |
((IList)items54).Add(obj); | |
((ISupportInitialize)separator34).EndInit(); | |
IEnumerable items55 = menuItem109.Items; | |
MenuItem menuItem114; | |
MenuItem menuItem113 = menuItem114 = new MenuItem(); | |
((ISupportInitialize)menuItem113).BeginInit(); | |
obj = (object)menuItem113; | |
((IList)items55).Add(obj); | |
ISupportInitialize supportInitialize39 = menuItem3 = menuItem114; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem115 = menuItem3; | |
menuItem115.Header = "_Document Viewer..."; | |
obj = menuItem115; | |
BindingExtension bindingExtension37 = new BindingExtension("Platform.OnDocumentViewer"); | |
IServiceProvider serviceProvider37 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension37.ProvideTypedValue(serviceProvider37); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem115, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize39.EndInit(); | |
IEnumerable items56 = menuItem109.Items; | |
Separator separator36; | |
Separator separator35 = separator36 = new Separator(); | |
((ISupportInitialize)separator35).BeginInit(); | |
obj = (object)separator35; | |
((IList)items56).Add(obj); | |
((ISupportInitialize)separator36).EndInit(); | |
IEnumerable items57 = menuItem109.Items; | |
MenuItem menuItem117; | |
MenuItem menuItem116 = menuItem117 = new MenuItem(); | |
((ISupportInitialize)menuItem116).BeginInit(); | |
obj = (object)menuItem116; | |
((IList)items57).Add(obj); | |
ISupportInitialize supportInitialize40 = menuItem3 = menuItem117; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem118 = menuItem3; | |
menuItem118.Header = "_Script Editor..."; | |
obj = menuItem118; | |
BindingExtension bindingExtension38 = new BindingExtension("Platform.OnScriptEditor"); | |
IServiceProvider serviceProvider38 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension38.ProvideTypedValue(serviceProvider38); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem118, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize40.EndInit(); | |
IEnumerable items58 = menuItem109.Items; | |
Separator separator38; | |
Separator separator37 = separator38 = new Separator(); | |
((ISupportInitialize)separator37).BeginInit(); | |
obj = (object)separator37; | |
((IList)items58).Add(obj); | |
((ISupportInitialize)separator38).EndInit(); | |
IEnumerable items59 = menuItem109.Items; | |
MenuItem menuItem120; | |
MenuItem menuItem119 = menuItem120 = new MenuItem(); | |
((ISupportInitialize)menuItem119).BeginInit(); | |
obj = (object)menuItem119; | |
((IList)items59).Add(obj); | |
ISupportInitialize supportInitialize41 = menuItem3 = menuItem120; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem121 = menuItem3; | |
menuItem121.Header = "_Reset Zoom"; | |
obj = menuItem121; | |
BindingExtension bindingExtension39 = new BindingExtension("Platform.OnZoomReset"); | |
IServiceProvider serviceProvider39 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension39.ProvideTypedValue(serviceProvider39); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem121, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize41.EndInit(); | |
IEnumerable items60 = menuItem109.Items; | |
Separator separator40; | |
Separator separator39 = separator40 = new Separator(); | |
((ISupportInitialize)separator39).BeginInit(); | |
obj = (object)separator39; | |
((IList)items60).Add(obj); | |
((ISupportInitialize)separator40).EndInit(); | |
IEnumerable items61 = menuItem109.Items; | |
MenuItem menuItem123; | |
MenuItem menuItem122 = menuItem123 = new MenuItem(); | |
((ISupportInitialize)menuItem122).BeginInit(); | |
obj = (object)menuItem122; | |
((IList)items61).Add(obj); | |
ISupportInitialize supportInitialize42 = menuItem3 = menuItem123; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem124 = menuItem3; | |
menuItem124.Header = "_AutoFit Zoom"; | |
obj = menuItem124; | |
BindingExtension bindingExtension40 = new BindingExtension("Platform.OnZoomAutoFit"); | |
IServiceProvider serviceProvider40 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension40.ProvideTypedValue(serviceProvider40); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem124, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize42.EndInit(); | |
IEnumerable items62 = menuItem109.Items; | |
Separator separator42; | |
Separator separator41 = separator42 = new Separator(); | |
((ISupportInitialize)separator41).BeginInit(); | |
obj = (object)separator41; | |
((IList)items62).Add(obj); | |
((ISupportInitialize)separator42).EndInit(); | |
IEnumerable items63 = menuItem109.Items; | |
MenuItem menuItem126; | |
MenuItem menuItem125 = menuItem126 = new MenuItem(); | |
((ISupportInitialize)menuItem125).BeginInit(); | |
obj = (object)menuItem125; | |
((IList)items63).Add(obj); | |
ISupportInitialize supportInitialize43 = menuItem3 = menuItem126; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem127 = menuItem3; | |
menuItem127.Header = "_Views"; | |
obj = menuItem127; | |
BindingExtension bindingExtension41 = new BindingExtension("Layout.Views"); | |
IServiceProvider serviceProvider41 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension41.ProvideTypedValue(serviceProvider41); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem127, ItemsControl.ItemsProperty, context, value); | |
Styles styles2 = menuItem127.Styles; | |
IStyle item5 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style3 = style; | |
style3.Selector = Selectors.OfType((Selector)null, typeof(MenuItem)); | |
ICollection<ISetter> setters4 = style3.Setters; | |
ISetter item6 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter5 = setter; | |
setter5.Property = HeaderedSelectingItemsControl.HeaderProperty; | |
obj = setter5; | |
BindingExtension bindingExtension42 = new BindingExtension("Title"); | |
IServiceProvider serviceProvider42 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension42.ProvideTypedValue(serviceProvider42); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter5.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters4.Add(item6); | |
ICollection<ISetter> setters5 = style3.Setters; | |
ISetter item7 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter6 = setter; | |
setter6.Property = MenuItem.CommandProperty; | |
obj = setter6; | |
BindingExtension bindingExtension43 = new BindingExtension("$parent[UserControl].DataContext.OnNavigate"); | |
IServiceProvider serviceProvider43 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension43.ProvideTypedValue(serviceProvider43); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter6.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters5.Add(item7); | |
ICollection<ISetter> setters6 = style3.Setters; | |
ISetter item8 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter7 = setter; | |
setter7.Property = MenuItem.CommandParameterProperty; | |
obj = setter7; | |
BindingExtension bindingExtension44 = new BindingExtension(); | |
IServiceProvider serviceProvider44 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension44.ProvideTypedValue(serviceProvider44); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter7.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters6.Add(item8); | |
ICollection<ISetter> setters7 = style3.Setters; | |
ISetter item9 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter8 = setter; | |
setter8.Property = MenuItem.IconProperty; | |
Template template; | |
object value2 = template = new Template(); | |
context.ParentsStack.Add(template); | |
template.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_384998ed-dcf9-4121-9d03-f2b54fe42c7b.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setter8.Value = value2; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters7.Add(item9); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles2.Add(item5); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize43.EndInit(); | |
IEnumerable items64 = menuItem109.Items; | |
Separator separator44; | |
Separator separator43 = separator44 = new Separator(); | |
((ISupportInitialize)separator43).BeginInit(); | |
obj = (object)separator43; | |
((IList)items64).Add(obj); | |
((ISupportInitialize)separator44).EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize37.EndInit(); | |
IEnumerable items65 = menu4.Items; | |
MenuItem menuItem129; | |
MenuItem menuItem128 = menuItem129 = new MenuItem(); | |
((ISupportInitialize)menuItem128).BeginInit(); | |
obj = (object)menuItem128; | |
((IList)items65).Add(obj); | |
ISupportInitialize supportInitialize44 = menuItem3 = menuItem129; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem130 = menuItem3; | |
menuItem130.Header = "_Tool"; | |
IEnumerable items66 = menuItem130.Items; | |
MenuItem menuItem132; | |
MenuItem menuItem131 = menuItem132 = new MenuItem(); | |
((ISupportInitialize)menuItem131).BeginInit(); | |
obj = (object)menuItem131; | |
((IList)items66).Add(obj); | |
ISupportInitialize supportInitialize45 = menuItem3 = menuItem132; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem133 = menuItem3; | |
menuItem133.Header = "_None"; | |
obj = menuItem133; | |
BindingExtension bindingExtension45 = new BindingExtension("OnToolNone"); | |
IServiceProvider serviceProvider45 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension45.ProvideTypedValue(serviceProvider45); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem133, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
menuItem133.Icon = checkBox; | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize46 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj2 = obj = checkBox3; | |
BindingExtension bindingExtension47; | |
BindingExtension bindingExtension46 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj4; | |
object obj3 = obj4 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider46 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = "Converter"; | |
object obj5 = staticResourceExtension.ProvideValue(serviceProvider46); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj5 is IBinding) && !(obj5 is UnsetValueType)) | |
{ | |
obj3.Converter = (IValueConverter)obj5; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, "Converter", context, obj5); | |
} | |
obj3.ConverterParameter = "None"; | |
obj3.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider47 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension46.ProvideTypedValue(serviceProvider47); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ToggleButton.IsCheckedProperty, context, value); | |
obj2.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize46.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize45.EndInit(); | |
IEnumerable items67 = menuItem130.Items; | |
Separator separator46; | |
Separator separator45 = separator46 = new Separator(); | |
((ISupportInitialize)separator45).BeginInit(); | |
obj4 = (object)separator45; | |
((IList)items67).Add(obj4); | |
((ISupportInitialize)separator46).EndInit(); | |
IEnumerable items68 = menuItem130.Items; | |
MenuItem menuItem135; | |
MenuItem menuItem134 = menuItem135 = new MenuItem(); | |
((ISupportInitialize)menuItem134).BeginInit(); | |
obj5 = (object)menuItem134; | |
((IList)items68).Add(obj5); | |
ISupportInitialize supportInitialize47 = menuItem3 = menuItem135; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem136 = menuItem3; | |
menuItem136.Header = "_Selection"; | |
obj = menuItem136; | |
BindingExtension bindingExtension48 = new BindingExtension("OnToolSelection"); | |
IServiceProvider serviceProvider48 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension48.ProvideTypedValue(serviceProvider48); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem136, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox5; | |
CheckBox checkBox4 = checkBox5 = new CheckBox(); | |
((ISupportInitialize)checkBox4).BeginInit(); | |
menuItem136.Icon = checkBox4; | |
ISupportInitialize supportInitialize48 = checkBox3 = checkBox5; | |
context.ParentsStack.Add(checkBox3); | |
object obj6 = obj4 = checkBox3; | |
BindingExtension bindingExtension49 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj7 = obj = bindingExtension47; | |
StaticResourceExtension staticResourceExtension2 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider49 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Converter"; | |
obj5 = staticResourceExtension2.ProvideValue(serviceProvider49); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj5 is IBinding) && !(obj5 is UnsetValueType)) | |
{ | |
obj7.Converter = (IValueConverter)obj5; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, "Converter", context, obj5); | |
} | |
obj7.ConverterParameter = "Selection"; | |
obj7.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider50 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension49.ProvideTypedValue(serviceProvider50); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, ToggleButton.IsCheckedProperty, context, value); | |
obj6.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize48.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize47.EndInit(); | |
IEnumerable items69 = menuItem130.Items; | |
Separator separator48; | |
Separator separator47 = separator48 = new Separator(); | |
((ISupportInitialize)separator47).BeginInit(); | |
obj = (object)separator47; | |
((IList)items69).Add(obj); | |
((ISupportInitialize)separator48).EndInit(); | |
IEnumerable items70 = menuItem130.Items; | |
MenuItem menuItem138; | |
MenuItem menuItem137 = menuItem138 = new MenuItem(); | |
((ISupportInitialize)menuItem137).BeginInit(); | |
obj5 = (object)menuItem137; | |
((IList)items70).Add(obj5); | |
ISupportInitialize supportInitialize49 = menuItem3 = menuItem138; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem139 = menuItem3; | |
menuItem139.Header = "_Point"; | |
obj4 = menuItem139; | |
BindingExtension bindingExtension50 = new BindingExtension("OnToolPoint"); | |
IServiceProvider serviceProvider51 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension50.ProvideTypedValue(serviceProvider51); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem139, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox7; | |
CheckBox checkBox6 = checkBox7 = new CheckBox(); | |
((ISupportInitialize)checkBox6).BeginInit(); | |
menuItem139.Icon = checkBox6; | |
ISupportInitialize supportInitialize50 = checkBox3 = checkBox7; | |
context.ParentsStack.Add(checkBox3); | |
object obj8 = obj = checkBox3; | |
BindingExtension bindingExtension51 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj9 = obj4 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension3 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider52 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = "Converter"; | |
obj5 = staticResourceExtension3.ProvideValue(serviceProvider52); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj5 is IBinding) && !(obj5 is UnsetValueType)) | |
{ | |
obj9.Converter = (IValueConverter)obj5; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, "Converter", context, obj5); | |
} | |
obj9.ConverterParameter = "Point"; | |
obj9.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider53 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension51.ProvideTypedValue(serviceProvider53); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, ToggleButton.IsCheckedProperty, context, value); | |
obj8.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize50.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize49.EndInit(); | |
IEnumerable items71 = menuItem130.Items; | |
Separator separator50; | |
Separator separator49 = separator50 = new Separator(); | |
((ISupportInitialize)separator49).BeginInit(); | |
obj4 = (object)separator49; | |
((IList)items71).Add(obj4); | |
((ISupportInitialize)separator50).EndInit(); | |
IEnumerable items72 = menuItem130.Items; | |
MenuItem menuItem141; | |
MenuItem menuItem140 = menuItem141 = new MenuItem(); | |
((ISupportInitialize)menuItem140).BeginInit(); | |
obj5 = (object)menuItem140; | |
((IList)items72).Add(obj5); | |
ISupportInitialize supportInitialize51 = menuItem3 = menuItem141; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem142 = menuItem3; | |
menuItem142.Header = "_Line"; | |
obj = menuItem142; | |
BindingExtension bindingExtension52 = new BindingExtension("OnToolLine"); | |
IServiceProvider serviceProvider54 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension52.ProvideTypedValue(serviceProvider54); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem142, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox9; | |
CheckBox checkBox8 = checkBox9 = new CheckBox(); | |
((ISupportInitialize)checkBox8).BeginInit(); | |
menuItem142.Icon = checkBox8; | |
ISupportInitialize supportInitialize52 = checkBox3 = checkBox9; | |
context.ParentsStack.Add(checkBox3); | |
object obj10 = obj4 = checkBox3; | |
BindingExtension bindingExtension53 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj11 = obj = bindingExtension47; | |
StaticResourceExtension staticResourceExtension4 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider55 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Converter"; | |
obj5 = staticResourceExtension4.ProvideValue(serviceProvider55); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj5 is IBinding) && !(obj5 is UnsetValueType)) | |
{ | |
obj11.Converter = (IValueConverter)obj5; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj11, "Converter", context, obj5); | |
} | |
obj11.ConverterParameter = "Line"; | |
obj11.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider56 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension53.ProvideTypedValue(serviceProvider56); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj10, ToggleButton.IsCheckedProperty, context, value); | |
obj10.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize52.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize51.EndInit(); | |
IEnumerable items73 = menuItem130.Items; | |
MenuItem menuItem144; | |
MenuItem menuItem143 = menuItem144 = new MenuItem(); | |
((ISupportInitialize)menuItem143).BeginInit(); | |
obj = (object)menuItem143; | |
((IList)items73).Add(obj); | |
ISupportInitialize supportInitialize53 = menuItem3 = menuItem144; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem145 = menuItem3; | |
menuItem145.Header = "_Arc"; | |
obj5 = menuItem145; | |
BindingExtension bindingExtension54 = new BindingExtension("OnToolArc"); | |
IServiceProvider serviceProvider57 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension54.ProvideTypedValue(serviceProvider57); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem145, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox11; | |
CheckBox checkBox10 = checkBox11 = new CheckBox(); | |
((ISupportInitialize)checkBox10).BeginInit(); | |
menuItem145.Icon = checkBox10; | |
ISupportInitialize supportInitialize54 = checkBox3 = checkBox11; | |
context.ParentsStack.Add(checkBox3); | |
object obj12 = obj4 = checkBox3; | |
BindingExtension bindingExtension55 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj13 = obj5 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension5 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider58 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
obj = staticResourceExtension5.ProvideValue(serviceProvider58); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj is IBinding) && !(obj is UnsetValueType)) | |
{ | |
obj13.Converter = (IValueConverter)obj; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj13, "Converter", context, obj); | |
} | |
obj13.ConverterParameter = "Arc"; | |
obj13.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider59 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension55.ProvideTypedValue(serviceProvider59); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj12, ToggleButton.IsCheckedProperty, context, value); | |
obj12.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize54.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize53.EndInit(); | |
IEnumerable items74 = menuItem130.Items; | |
MenuItem menuItem147; | |
MenuItem menuItem146 = menuItem147 = new MenuItem(); | |
((ISupportInitialize)menuItem146).BeginInit(); | |
obj5 = (object)menuItem146; | |
((IList)items74).Add(obj5); | |
ISupportInitialize supportInitialize55 = menuItem3 = menuItem147; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem148 = menuItem3; | |
menuItem148.Header = "Cubic _Bezier"; | |
obj = menuItem148; | |
BindingExtension bindingExtension56 = new BindingExtension("OnToolCubicBezier"); | |
IServiceProvider serviceProvider60 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension56.ProvideTypedValue(serviceProvider60); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem148, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox13; | |
CheckBox checkBox12 = checkBox13 = new CheckBox(); | |
((ISupportInitialize)checkBox12).BeginInit(); | |
menuItem148.Icon = checkBox12; | |
ISupportInitialize supportInitialize56 = checkBox3 = checkBox13; | |
context.ParentsStack.Add(checkBox3); | |
object obj14 = obj4 = checkBox3; | |
BindingExtension bindingExtension57 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj15 = obj = bindingExtension47; | |
StaticResourceExtension staticResourceExtension6 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider61 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Converter"; | |
obj5 = staticResourceExtension6.ProvideValue(serviceProvider61); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj5 is IBinding) && !(obj5 is UnsetValueType)) | |
{ | |
obj15.Converter = (IValueConverter)obj5; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj15, "Converter", context, obj5); | |
} | |
obj15.ConverterParameter = "CubicBezier"; | |
obj15.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider62 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension57.ProvideTypedValue(serviceProvider62); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj14, ToggleButton.IsCheckedProperty, context, value); | |
obj14.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize56.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize55.EndInit(); | |
IEnumerable items75 = menuItem130.Items; | |
MenuItem menuItem150; | |
MenuItem menuItem149 = menuItem150 = new MenuItem(); | |
((ISupportInitialize)menuItem149).BeginInit(); | |
obj = (object)menuItem149; | |
((IList)items75).Add(obj); | |
ISupportInitialize supportInitialize57 = menuItem3 = menuItem150; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem151 = menuItem3; | |
menuItem151.Header = "_Quadratic Bezier"; | |
obj5 = menuItem151; | |
BindingExtension bindingExtension58 = new BindingExtension("OnToolQuadraticBezier"); | |
IServiceProvider serviceProvider63 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension58.ProvideTypedValue(serviceProvider63); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem151, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox15; | |
CheckBox checkBox14 = checkBox15 = new CheckBox(); | |
((ISupportInitialize)checkBox14).BeginInit(); | |
menuItem151.Icon = checkBox14; | |
ISupportInitialize supportInitialize58 = checkBox3 = checkBox15; | |
context.ParentsStack.Add(checkBox3); | |
object obj16 = obj4 = checkBox3; | |
BindingExtension bindingExtension59 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj17 = obj5 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension7 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider64 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
obj = staticResourceExtension7.ProvideValue(serviceProvider64); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj is IBinding) && !(obj is UnsetValueType)) | |
{ | |
obj17.Converter = (IValueConverter)obj; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj17, "Converter", context, obj); | |
} | |
obj17.ConverterParameter = "QuadraticBezier"; | |
obj17.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider65 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension59.ProvideTypedValue(serviceProvider65); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj16, ToggleButton.IsCheckedProperty, context, value); | |
obj16.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize58.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize57.EndInit(); | |
IEnumerable items76 = menuItem130.Items; | |
Separator separator52; | |
Separator separator51 = separator52 = new Separator(); | |
((ISupportInitialize)separator51).BeginInit(); | |
obj5 = (object)separator51; | |
((IList)items76).Add(obj5); | |
((ISupportInitialize)separator52).EndInit(); | |
IEnumerable items77 = menuItem130.Items; | |
MenuItem menuItem153; | |
MenuItem menuItem152 = menuItem153 = new MenuItem(); | |
((ISupportInitialize)menuItem152).BeginInit(); | |
obj = (object)menuItem152; | |
((IList)items77).Add(obj); | |
ISupportInitialize supportInitialize59 = menuItem3 = menuItem153; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem154 = menuItem3; | |
menuItem154.Header = "Pat_h"; | |
obj4 = menuItem154; | |
BindingExtension bindingExtension60 = new BindingExtension("OnToolPath"); | |
IServiceProvider serviceProvider66 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension60.ProvideTypedValue(serviceProvider66); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem154, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox17; | |
CheckBox checkBox16 = checkBox17 = new CheckBox(); | |
((ISupportInitialize)checkBox16).BeginInit(); | |
menuItem154.Icon = checkBox16; | |
ISupportInitialize supportInitialize60 = checkBox3 = checkBox17; | |
context.ParentsStack.Add(checkBox3); | |
object obj18 = obj5 = checkBox3; | |
BindingExtension bindingExtension61 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj19 = obj4 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension8 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider67 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = "Converter"; | |
obj = staticResourceExtension8.ProvideValue(serviceProvider67); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj is IBinding) && !(obj is UnsetValueType)) | |
{ | |
obj19.Converter = (IValueConverter)obj; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj19, "Converter", context, obj); | |
} | |
obj19.ConverterParameter = "Path"; | |
obj19.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider68 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension61.ProvideTypedValue(serviceProvider68); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj18, ToggleButton.IsCheckedProperty, context, value); | |
obj18.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize60.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize59.EndInit(); | |
IEnumerable items78 = menuItem130.Items; | |
MenuItem menuItem156; | |
MenuItem menuItem155 = menuItem156 = new MenuItem(); | |
((ISupportInitialize)menuItem155).BeginInit(); | |
obj4 = (object)menuItem155; | |
((IList)items78).Add(obj4); | |
ISupportInitialize supportInitialize61 = menuItem3 = menuItem156; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem157 = menuItem3; | |
menuItem157.Header = "Path T_ool"; | |
IEnumerable items79 = menuItem157.Items; | |
MenuItem menuItem159; | |
MenuItem menuItem158 = menuItem159 = new MenuItem(); | |
((ISupportInitialize)menuItem158).BeginInit(); | |
obj = (object)menuItem158; | |
((IList)items79).Add(obj); | |
ISupportInitialize supportInitialize62 = menuItem3 = menuItem159; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem160 = menuItem3; | |
menuItem160.Header = "_Line"; | |
obj5 = menuItem160; | |
BindingExtension bindingExtension62 = new BindingExtension("OnToolLine"); | |
IServiceProvider serviceProvider69 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension62.ProvideTypedValue(serviceProvider69); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem160, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox19; | |
CheckBox checkBox18 = checkBox19 = new CheckBox(); | |
((ISupportInitialize)checkBox18).BeginInit(); | |
menuItem160.Icon = checkBox18; | |
ISupportInitialize supportInitialize63 = checkBox3 = checkBox19; | |
context.ParentsStack.Add(checkBox3); | |
object obj20 = obj4 = checkBox3; | |
BindingExtension bindingExtension63 = bindingExtension47 = new BindingExtension("CurrentPathTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj21 = obj5 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension9 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider70 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
obj = staticResourceExtension9.ProvideValue(serviceProvider70); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj is IBinding) && !(obj is UnsetValueType)) | |
{ | |
obj21.Converter = (IValueConverter)obj; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj21, "Converter", context, obj); | |
} | |
obj21.ConverterParameter = "Line"; | |
obj21.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider71 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension63.ProvideTypedValue(serviceProvider71); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj20, ToggleButton.IsCheckedProperty, context, value); | |
obj20.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize63.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize62.EndInit(); | |
IEnumerable items80 = menuItem157.Items; | |
MenuItem menuItem162; | |
MenuItem menuItem161 = menuItem162 = new MenuItem(); | |
((ISupportInitialize)menuItem161).BeginInit(); | |
obj5 = (object)menuItem161; | |
((IList)items80).Add(obj5); | |
ISupportInitialize supportInitialize64 = menuItem3 = menuItem162; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem163 = menuItem3; | |
menuItem163.Header = "_Arc"; | |
obj = menuItem163; | |
BindingExtension bindingExtension64 = new BindingExtension("OnToolArc"); | |
IServiceProvider serviceProvider72 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension64.ProvideTypedValue(serviceProvider72); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem163, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox21; | |
CheckBox checkBox20 = checkBox21 = new CheckBox(); | |
((ISupportInitialize)checkBox20).BeginInit(); | |
menuItem163.Icon = checkBox20; | |
ISupportInitialize supportInitialize65 = checkBox3 = checkBox21; | |
context.ParentsStack.Add(checkBox3); | |
object obj22 = obj4 = checkBox3; | |
BindingExtension bindingExtension65 = bindingExtension47 = new BindingExtension("CurrentPathTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj23 = obj = bindingExtension47; | |
StaticResourceExtension staticResourceExtension10 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider73 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Converter"; | |
obj5 = staticResourceExtension10.ProvideValue(serviceProvider73); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj5 is IBinding) && !(obj5 is UnsetValueType)) | |
{ | |
obj23.Converter = (IValueConverter)obj5; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj23, "Converter", context, obj5); | |
} | |
obj23.ConverterParameter = "Arc"; | |
obj23.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider74 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension65.ProvideTypedValue(serviceProvider74); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj22, ToggleButton.IsCheckedProperty, context, value); | |
obj22.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize65.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize64.EndInit(); | |
IEnumerable items81 = menuItem157.Items; | |
MenuItem menuItem165; | |
MenuItem menuItem164 = menuItem165 = new MenuItem(); | |
((ISupportInitialize)menuItem164).BeginInit(); | |
obj = (object)menuItem164; | |
((IList)items81).Add(obj); | |
ISupportInitialize supportInitialize66 = menuItem3 = menuItem165; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem166 = menuItem3; | |
menuItem166.Header = "Cubic _Bezier"; | |
obj5 = menuItem166; | |
BindingExtension bindingExtension66 = new BindingExtension("OnToolCubicBezier"); | |
IServiceProvider serviceProvider75 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension66.ProvideTypedValue(serviceProvider75); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem166, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox23; | |
CheckBox checkBox22 = checkBox23 = new CheckBox(); | |
((ISupportInitialize)checkBox22).BeginInit(); | |
menuItem166.Icon = checkBox22; | |
ISupportInitialize supportInitialize67 = checkBox3 = checkBox23; | |
context.ParentsStack.Add(checkBox3); | |
object obj24 = obj4 = checkBox3; | |
BindingExtension bindingExtension67 = bindingExtension47 = new BindingExtension("CurrentPathTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj25 = obj5 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension11 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider76 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
obj = staticResourceExtension11.ProvideValue(serviceProvider76); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj is IBinding) && !(obj is UnsetValueType)) | |
{ | |
obj25.Converter = (IValueConverter)obj; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj25, "Converter", context, obj); | |
} | |
obj25.ConverterParameter = "CubicBezier"; | |
obj25.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider77 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension67.ProvideTypedValue(serviceProvider77); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj24, ToggleButton.IsCheckedProperty, context, value); | |
obj24.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize67.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize66.EndInit(); | |
IEnumerable items82 = menuItem157.Items; | |
MenuItem menuItem168; | |
MenuItem menuItem167 = menuItem168 = new MenuItem(); | |
((ISupportInitialize)menuItem167).BeginInit(); | |
obj5 = (object)menuItem167; | |
((IList)items82).Add(obj5); | |
ISupportInitialize supportInitialize68 = menuItem3 = menuItem168; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem169 = menuItem3; | |
menuItem169.Header = "_Quadratic Bezier"; | |
obj = menuItem169; | |
BindingExtension bindingExtension68 = new BindingExtension("OnToolQuadraticBezier"); | |
IServiceProvider serviceProvider78 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension68.ProvideTypedValue(serviceProvider78); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem169, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox25; | |
CheckBox checkBox24 = checkBox25 = new CheckBox(); | |
((ISupportInitialize)checkBox24).BeginInit(); | |
menuItem169.Icon = checkBox24; | |
ISupportInitialize supportInitialize69 = checkBox3 = checkBox25; | |
context.ParentsStack.Add(checkBox3); | |
object obj26 = obj4 = checkBox3; | |
BindingExtension bindingExtension69 = bindingExtension47 = new BindingExtension("CurrentPathTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj27 = obj = bindingExtension47; | |
StaticResourceExtension staticResourceExtension12 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider79 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Converter"; | |
obj5 = staticResourceExtension12.ProvideValue(serviceProvider79); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj5 is IBinding) && !(obj5 is UnsetValueType)) | |
{ | |
obj27.Converter = (IValueConverter)obj5; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj27, "Converter", context, obj5); | |
} | |
obj27.ConverterParameter = "QuadraticBezier"; | |
obj27.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider80 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension69.ProvideTypedValue(serviceProvider80); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj26, ToggleButton.IsCheckedProperty, context, value); | |
obj26.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize69.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize68.EndInit(); | |
IEnumerable items83 = menuItem157.Items; | |
Separator separator54; | |
Separator separator53 = separator54 = new Separator(); | |
((ISupportInitialize)separator53).BeginInit(); | |
obj = (object)separator53; | |
((IList)items83).Add(obj); | |
((ISupportInitialize)separator54).EndInit(); | |
IEnumerable items84 = menuItem157.Items; | |
MenuItem menuItem171; | |
MenuItem menuItem170 = menuItem171 = new MenuItem(); | |
((ISupportInitialize)menuItem170).BeginInit(); | |
obj5 = (object)menuItem170; | |
((IList)items84).Add(obj5); | |
ISupportInitialize supportInitialize70 = menuItem3 = menuItem171; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem172 = menuItem3; | |
menuItem172.Header = "_Move"; | |
obj4 = menuItem172; | |
BindingExtension bindingExtension70 = new BindingExtension("OnToolMove"); | |
IServiceProvider serviceProvider81 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension70.ProvideTypedValue(serviceProvider81); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem172, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox27; | |
CheckBox checkBox26 = checkBox27 = new CheckBox(); | |
((ISupportInitialize)checkBox26).BeginInit(); | |
menuItem172.Icon = checkBox26; | |
ISupportInitialize supportInitialize71 = checkBox3 = checkBox27; | |
context.ParentsStack.Add(checkBox3); | |
object obj28 = obj = checkBox3; | |
BindingExtension bindingExtension71 = bindingExtension47 = new BindingExtension("CurrentPathTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj29 = obj4 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension13 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider82 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = "Converter"; | |
obj5 = staticResourceExtension13.ProvideValue(serviceProvider82); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj5 is IBinding) && !(obj5 is UnsetValueType)) | |
{ | |
obj29.Converter = (IValueConverter)obj5; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj29, "Converter", context, obj5); | |
} | |
obj29.ConverterParameter = "Move"; | |
obj29.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider83 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension71.ProvideTypedValue(serviceProvider83); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj28, ToggleButton.IsCheckedProperty, context, value); | |
obj28.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize71.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize70.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize61.EndInit(); | |
IEnumerable items85 = menuItem130.Items; | |
Separator separator56; | |
Separator separator55 = separator56 = new Separator(); | |
((ISupportInitialize)separator55).BeginInit(); | |
obj4 = (object)separator55; | |
((IList)items85).Add(obj4); | |
((ISupportInitialize)separator56).EndInit(); | |
IEnumerable items86 = menuItem130.Items; | |
MenuItem menuItem174; | |
MenuItem menuItem173 = menuItem174 = new MenuItem(); | |
((ISupportInitialize)menuItem173).BeginInit(); | |
obj5 = (object)menuItem173; | |
((IList)items86).Add(obj5); | |
ISupportInitialize supportInitialize72 = menuItem3 = menuItem174; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem175 = menuItem3; | |
menuItem175.Header = "_Rectangle"; | |
obj = menuItem175; | |
BindingExtension bindingExtension72 = new BindingExtension("OnToolRectangle"); | |
IServiceProvider serviceProvider84 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension72.ProvideTypedValue(serviceProvider84); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem175, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox29; | |
CheckBox checkBox28 = checkBox29 = new CheckBox(); | |
((ISupportInitialize)checkBox28).BeginInit(); | |
menuItem175.Icon = checkBox28; | |
ISupportInitialize supportInitialize73 = checkBox3 = checkBox29; | |
context.ParentsStack.Add(checkBox3); | |
object obj30 = obj4 = checkBox3; | |
BindingExtension bindingExtension73 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj31 = obj = bindingExtension47; | |
StaticResourceExtension staticResourceExtension14 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider85 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Converter"; | |
obj5 = staticResourceExtension14.ProvideValue(serviceProvider85); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj5 is IBinding) && !(obj5 is UnsetValueType)) | |
{ | |
obj31.Converter = (IValueConverter)obj5; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj31, "Converter", context, obj5); | |
} | |
obj31.ConverterParameter = "Rectangle"; | |
obj31.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider86 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension73.ProvideTypedValue(serviceProvider86); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj30, ToggleButton.IsCheckedProperty, context, value); | |
obj30.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize73.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize72.EndInit(); | |
IEnumerable items87 = menuItem130.Items; | |
MenuItem menuItem177; | |
MenuItem menuItem176 = menuItem177 = new MenuItem(); | |
((ISupportInitialize)menuItem176).BeginInit(); | |
obj = (object)menuItem176; | |
((IList)items87).Add(obj); | |
ISupportInitialize supportInitialize74 = menuItem3 = menuItem177; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem178 = menuItem3; | |
menuItem178.Header = "_Ellipse"; | |
obj5 = menuItem178; | |
BindingExtension bindingExtension74 = new BindingExtension("OnToolEllipse"); | |
IServiceProvider serviceProvider87 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension74.ProvideTypedValue(serviceProvider87); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem178, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox31; | |
CheckBox checkBox30 = checkBox31 = new CheckBox(); | |
((ISupportInitialize)checkBox30).BeginInit(); | |
menuItem178.Icon = checkBox30; | |
ISupportInitialize supportInitialize75 = checkBox3 = checkBox31; | |
context.ParentsStack.Add(checkBox3); | |
object obj32 = obj4 = checkBox3; | |
BindingExtension bindingExtension75 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj33 = obj5 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension15 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider88 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
obj = staticResourceExtension15.ProvideValue(serviceProvider88); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj is IBinding) && !(obj is UnsetValueType)) | |
{ | |
obj33.Converter = (IValueConverter)obj; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj33, "Converter", context, obj); | |
} | |
obj33.ConverterParameter = "Ellipse"; | |
obj33.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider89 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension75.ProvideTypedValue(serviceProvider89); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj32, ToggleButton.IsCheckedProperty, context, value); | |
obj32.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize75.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize74.EndInit(); | |
IEnumerable items88 = menuItem130.Items; | |
Separator separator58; | |
Separator separator57 = separator58 = new Separator(); | |
((ISupportInitialize)separator57).BeginInit(); | |
obj5 = (object)separator57; | |
((IList)items88).Add(obj5); | |
((ISupportInitialize)separator58).EndInit(); | |
IEnumerable items89 = menuItem130.Items; | |
MenuItem menuItem180; | |
MenuItem menuItem179 = menuItem180 = new MenuItem(); | |
((ISupportInitialize)menuItem179).BeginInit(); | |
obj = (object)menuItem179; | |
((IList)items89).Add(obj); | |
ISupportInitialize supportInitialize76 = menuItem3 = menuItem180; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem181 = menuItem3; | |
menuItem181.Header = "_Text"; | |
obj4 = menuItem181; | |
BindingExtension bindingExtension76 = new BindingExtension("OnToolText"); | |
IServiceProvider serviceProvider90 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension76.ProvideTypedValue(serviceProvider90); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem181, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox33; | |
CheckBox checkBox32 = checkBox33 = new CheckBox(); | |
((ISupportInitialize)checkBox32).BeginInit(); | |
menuItem181.Icon = checkBox32; | |
ISupportInitialize supportInitialize77 = checkBox3 = checkBox33; | |
context.ParentsStack.Add(checkBox3); | |
object obj34 = obj5 = checkBox3; | |
BindingExtension bindingExtension77 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj35 = obj4 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension16 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider91 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = "Converter"; | |
obj = staticResourceExtension16.ProvideValue(serviceProvider91); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj is IBinding) && !(obj is UnsetValueType)) | |
{ | |
obj35.Converter = (IValueConverter)obj; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj35, "Converter", context, obj); | |
} | |
obj35.ConverterParameter = "Text"; | |
obj35.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider92 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension77.ProvideTypedValue(serviceProvider92); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj34, ToggleButton.IsCheckedProperty, context, value); | |
obj34.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize77.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize76.EndInit(); | |
IEnumerable items90 = menuItem130.Items; | |
Separator separator60; | |
Separator separator59 = separator60 = new Separator(); | |
((ISupportInitialize)separator59).BeginInit(); | |
obj4 = (object)separator59; | |
((IList)items90).Add(obj4); | |
((ISupportInitialize)separator60).EndInit(); | |
IEnumerable items91 = menuItem130.Items; | |
MenuItem menuItem183; | |
MenuItem menuItem182 = menuItem183 = new MenuItem(); | |
((ISupportInitialize)menuItem182).BeginInit(); | |
obj = (object)menuItem182; | |
((IList)items91).Add(obj); | |
ISupportInitialize supportInitialize78 = menuItem3 = menuItem183; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem184 = menuItem3; | |
menuItem184.Header = "_Image"; | |
obj5 = menuItem184; | |
BindingExtension bindingExtension78 = new BindingExtension("OnToolImage"); | |
IServiceProvider serviceProvider93 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension78.ProvideTypedValue(serviceProvider93); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem184, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox35; | |
CheckBox checkBox34 = checkBox35 = new CheckBox(); | |
((ISupportInitialize)checkBox34).BeginInit(); | |
menuItem184.Icon = checkBox34; | |
ISupportInitialize supportInitialize79 = checkBox3 = checkBox35; | |
context.ParentsStack.Add(checkBox3); | |
object obj36 = obj4 = checkBox3; | |
BindingExtension bindingExtension79 = bindingExtension47 = new BindingExtension("CurrentTool.Title"); | |
context.ParentsStack.Add(bindingExtension47); | |
object obj37 = obj5 = bindingExtension47; | |
StaticResourceExtension staticResourceExtension17 = new StaticResourceExtension("ObjectEqualsConverter"); | |
IServiceProvider serviceProvider94 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Converter"; | |
obj = staticResourceExtension17.ProvideValue(serviceProvider94); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj is IBinding) && !(obj is UnsetValueType)) | |
{ | |
obj37.Converter = (IValueConverter)obj; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj37, "Converter", context, obj); | |
} | |
obj37.ConverterParameter = "Image"; | |
obj37.Mode = BindingMode.OneWay; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
IServiceProvider serviceProvider95 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension79.ProvideTypedValue(serviceProvider95); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj36, ToggleButton.IsCheckedProperty, context, value); | |
obj36.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize79.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize78.EndInit(); | |
IEnumerable items92 = menuItem130.Items; | |
Separator separator62; | |
Separator separator61 = separator62 = new Separator(); | |
((ISupportInitialize)separator61).BeginInit(); | |
obj5 = (object)separator61; | |
((IList)items92).Add(obj5); | |
((ISupportInitialize)separator62).EndInit(); | |
IEnumerable items93 = menuItem130.Items; | |
MenuItem menuItem186; | |
MenuItem menuItem185 = menuItem186 = new MenuItem(); | |
((ISupportInitialize)menuItem185).BeginInit(); | |
obj = (object)menuItem185; | |
((IList)items93).Add(obj); | |
ISupportInitialize supportInitialize80 = menuItem3 = menuItem186; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem187 = menuItem3; | |
menuItem187.Header = "Reset"; | |
obj4 = menuItem187; | |
BindingExtension bindingExtension80 = new BindingExtension("OnResetTool"); | |
IServiceProvider serviceProvider96 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension80.ProvideTypedValue(serviceProvider96); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem187, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize80.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize44.EndInit(); | |
IEnumerable items94 = menu4.Items; | |
MenuItem menuItem189; | |
MenuItem menuItem188 = menuItem189 = new MenuItem(); | |
((ISupportInitialize)menuItem188).BeginInit(); | |
obj5 = (object)menuItem188; | |
((IList)items94).Add(obj5); | |
ISupportInitialize supportInitialize81 = menuItem3 = menuItem189; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem190 = menuItem3; | |
menuItem190.Header = "_Data"; | |
IEnumerable items95 = menuItem190.Items; | |
MenuItem menuItem192; | |
MenuItem menuItem191 = menuItem192 = new MenuItem(); | |
((ISupportInitialize)menuItem191).BeginInit(); | |
obj = (object)menuItem191; | |
((IList)items95).Add(obj); | |
ISupportInitialize supportInitialize82 = menuItem3 = menuItem192; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem193 = menuItem3; | |
menuItem193.Header = "_Import..."; | |
obj4 = menuItem193; | |
BindingExtension bindingExtension81 = new BindingExtension("Platform.OnImportData"); | |
IServiceProvider serviceProvider97 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension81.ProvideTypedValue(serviceProvider97); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem193, MenuItem.CommandProperty, context, value); | |
obj5 = menuItem193; | |
BindingExtension bindingExtension82 = new BindingExtension("Project"); | |
IServiceProvider serviceProvider98 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension82.ProvideTypedValue(serviceProvider98); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem193, MenuItem.CommandParameterProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize82.EndInit(); | |
IEnumerable items96 = menuItem190.Items; | |
Separator separator64; | |
Separator separator63 = separator64 = new Separator(); | |
((ISupportInitialize)separator63).BeginInit(); | |
obj = (object)separator63; | |
((IList)items96).Add(obj); | |
((ISupportInitialize)separator64).EndInit(); | |
IEnumerable items97 = menuItem190.Items; | |
MenuItem menuItem195; | |
MenuItem menuItem194 = menuItem195 = new MenuItem(); | |
((ISupportInitialize)menuItem194).BeginInit(); | |
obj4 = (object)menuItem194; | |
((IList)items97).Add(obj4); | |
ISupportInitialize supportInitialize83 = menuItem3 = menuItem195; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem196 = menuItem3; | |
menuItem196.Header = "_Export..."; | |
obj5 = menuItem196; | |
BindingExtension bindingExtension83 = new BindingExtension("Platform.OnExportData"); | |
IServiceProvider serviceProvider99 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension83.ProvideTypedValue(serviceProvider99); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem196, MenuItem.CommandProperty, context, value); | |
obj = menuItem196; | |
BindingExtension bindingExtension84 = new BindingExtension("Project.CurrentDatabase"); | |
IServiceProvider serviceProvider100 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension84.ProvideTypedValue(serviceProvider100); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem196, MenuItem.CommandParameterProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize83.EndInit(); | |
IEnumerable items98 = menuItem190.Items; | |
Separator separator66; | |
Separator separator65 = separator66 = new Separator(); | |
((ISupportInitialize)separator65).BeginInit(); | |
obj4 = (object)separator65; | |
((IList)items98).Add(obj4); | |
((ISupportInitialize)separator66).EndInit(); | |
IEnumerable items99 = menuItem190.Items; | |
MenuItem menuItem198; | |
MenuItem menuItem197 = menuItem198 = new MenuItem(); | |
((ISupportInitialize)menuItem197).BeginInit(); | |
obj5 = (object)menuItem197; | |
((IList)items99).Add(obj5); | |
ISupportInitialize supportInitialize84 = menuItem3 = menuItem198; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem199 = menuItem3; | |
menuItem199.Header = "_Update..."; | |
obj = menuItem199; | |
BindingExtension bindingExtension85 = new BindingExtension("Platform.OnUpdateData"); | |
IServiceProvider serviceProvider101 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension85.ProvideTypedValue(serviceProvider101); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem199, MenuItem.CommandProperty, context, value); | |
obj4 = menuItem199; | |
BindingExtension bindingExtension86 = new BindingExtension("Project.CurrentDatabase"); | |
IServiceProvider serviceProvider102 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandParameterProperty; | |
value = bindingExtension86.ProvideTypedValue(serviceProvider102); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem199, MenuItem.CommandParameterProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize84.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize81.EndInit(); | |
IEnumerable items100 = menu4.Items; | |
MenuItem menuItem201; | |
MenuItem menuItem200 = menuItem201 = new MenuItem(); | |
((ISupportInitialize)menuItem200).BeginInit(); | |
obj5 = (object)menuItem200; | |
((IList)items100).Add(obj5); | |
ISupportInitialize supportInitialize85 = menuItem3 = menuItem201; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem202 = menuItem3; | |
menuItem202.Header = "Te_mplate"; | |
obj = menuItem202; | |
BindingExtension bindingExtension87 = new BindingExtension("Project.Templates"); | |
IServiceProvider serviceProvider103 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension87.ProvideTypedValue(serviceProvider103); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem202, ItemsControl.ItemsProperty, context, value); | |
Styles styles3 = menuItem202.Styles; | |
IStyle item10 = style = new Style(); | |
context.ParentsStack.Add(style); | |
Style style4 = style; | |
style4.Selector = Selectors.OfType((Selector)null, typeof(MenuItem)); | |
ICollection<ISetter> setters8 = style4.Setters; | |
ISetter item11 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter9 = setter; | |
setter9.Property = HeaderedSelectingItemsControl.HeaderProperty; | |
obj4 = setter9; | |
BindingExtension bindingExtension88 = new BindingExtension("Name"); | |
IServiceProvider serviceProvider104 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension88.ProvideTypedValue(serviceProvider104); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter9.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters8.Add(item11); | |
ICollection<ISetter> setters9 = style4.Setters; | |
ISetter item12 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter10 = setter; | |
setter10.Property = MenuItem.CommandProperty; | |
obj5 = setter10; | |
BindingExtension bindingExtension89 = new BindingExtension("$parent[UserControl].DataContext.OnApplyTemplate"); | |
IServiceProvider serviceProvider105 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension89.ProvideTypedValue(serviceProvider105); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter10.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters9.Add(item12); | |
ICollection<ISetter> setters10 = style4.Setters; | |
ISetter item13 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter11 = setter; | |
setter11.Property = MenuItem.CommandParameterProperty; | |
obj = setter11; | |
BindingExtension bindingExtension90 = new BindingExtension(); | |
IServiceProvider serviceProvider106 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "Value"; | |
value = bindingExtension90.ProvideTypedValue(serviceProvider106); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
setter11.Value = value; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters10.Add(item13); | |
ICollection<ISetter> setters11 = style4.Setters; | |
ISetter item14 = setter = new Setter(); | |
context.ParentsStack.Add(setter); | |
Setter setter12 = setter; | |
setter12.Property = MenuItem.IconProperty; | |
object value3 = template = new Template(); | |
context.ParentsStack.Add(template); | |
template.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_270d840c-cdaf-4c2a-a30f-2dd435e6b678.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setter12.Value = value3; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
setters11.Add(item14); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
styles3.Add(item10); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize85.EndInit(); | |
IEnumerable items101 = menu4.Items; | |
MenuItem menuItem204; | |
MenuItem menuItem203 = menuItem204 = new MenuItem(); | |
((ISupportInitialize)menuItem203).BeginInit(); | |
obj4 = (object)menuItem203; | |
((IList)items101).Add(obj4); | |
ISupportInitialize supportInitialize86 = menuItem3 = menuItem204; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem205 = menuItem3; | |
menuItem205.Header = "_Options"; | |
IEnumerable items102 = menuItem205.Items; | |
MenuItem menuItem207; | |
MenuItem menuItem206 = menuItem207 = new MenuItem(); | |
((ISupportInitialize)menuItem206).BeginInit(); | |
obj5 = (object)menuItem206; | |
((IList)items102).Add(obj5); | |
ISupportInitialize supportInitialize87 = menuItem3 = menuItem207; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem208 = menuItem3; | |
menuItem208.Header = "Default is Stro_ked"; | |
obj = menuItem208; | |
BindingExtension bindingExtension91 = new BindingExtension("OnToggleDefaultIsStroked"); | |
IServiceProvider serviceProvider107 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension91.ProvideTypedValue(serviceProvider107); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem208, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox37; | |
CheckBox checkBox36 = checkBox37 = new CheckBox(); | |
((ISupportInitialize)checkBox36).BeginInit(); | |
menuItem208.Icon = checkBox36; | |
ISupportInitialize supportInitialize88 = checkBox3 = checkBox37; | |
context.ParentsStack.Add(checkBox3); | |
object obj38 = obj4 = checkBox3; | |
BindingExtension bindingExtension92 = new BindingExtension("Project.Options.DefaultIsStroked"); | |
IServiceProvider serviceProvider108 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension92.ProvideTypedValue(serviceProvider108); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj38, ToggleButton.IsCheckedProperty, context, value); | |
obj38.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize88.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize87.EndInit(); | |
IEnumerable items103 = menuItem205.Items; | |
MenuItem menuItem210; | |
MenuItem menuItem209 = menuItem210 = new MenuItem(); | |
((ISupportInitialize)menuItem209).BeginInit(); | |
obj5 = (object)menuItem209; | |
((IList)items103).Add(obj5); | |
ISupportInitialize supportInitialize89 = menuItem3 = menuItem210; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem211 = menuItem3; | |
menuItem211.Header = "Default is _Filled"; | |
obj = menuItem211; | |
BindingExtension bindingExtension93 = new BindingExtension("OnToggleDefaultIsFilled"); | |
IServiceProvider serviceProvider109 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension93.ProvideTypedValue(serviceProvider109); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem211, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox39; | |
CheckBox checkBox38 = checkBox39 = new CheckBox(); | |
((ISupportInitialize)checkBox38).BeginInit(); | |
menuItem211.Icon = checkBox38; | |
ISupportInitialize supportInitialize90 = checkBox3 = checkBox39; | |
context.ParentsStack.Add(checkBox3); | |
object obj39 = obj4 = checkBox3; | |
BindingExtension bindingExtension94 = new BindingExtension("Project.Options.DefaultIsFilled"); | |
IServiceProvider serviceProvider110 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension94.ProvideTypedValue(serviceProvider110); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj39, ToggleButton.IsCheckedProperty, context, value); | |
obj39.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize90.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize89.EndInit(); | |
IEnumerable items104 = menuItem205.Items; | |
Separator separator68; | |
Separator separator67 = separator68 = new Separator(); | |
((ISupportInitialize)separator67).BeginInit(); | |
obj5 = (object)separator67; | |
((IList)items104).Add(obj5); | |
((ISupportInitialize)separator68).EndInit(); | |
IEnumerable items105 = menuItem205.Items; | |
MenuItem menuItem213; | |
MenuItem menuItem212 = menuItem213 = new MenuItem(); | |
((ISupportInitialize)menuItem212).BeginInit(); | |
obj = (object)menuItem212; | |
((IList)items105).Add(obj); | |
ISupportInitialize supportInitialize91 = menuItem3 = menuItem213; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem214 = menuItem3; | |
menuItem214.Header = "Default is Close_d"; | |
obj4 = menuItem214; | |
BindingExtension bindingExtension95 = new BindingExtension("OnToggleDefaultIsClosed"); | |
IServiceProvider serviceProvider111 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension95.ProvideTypedValue(serviceProvider111); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem214, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox41; | |
CheckBox checkBox40 = checkBox41 = new CheckBox(); | |
((ISupportInitialize)checkBox40).BeginInit(); | |
menuItem214.Icon = checkBox40; | |
ISupportInitialize supportInitialize92 = checkBox3 = checkBox41; | |
context.ParentsStack.Add(checkBox3); | |
object obj40 = obj5 = checkBox3; | |
BindingExtension bindingExtension96 = new BindingExtension("Project.Options.DefaultIsClosed"); | |
IServiceProvider serviceProvider112 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension96.ProvideTypedValue(serviceProvider112); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj40, ToggleButton.IsCheckedProperty, context, value); | |
obj40.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize92.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize91.EndInit(); | |
IEnumerable items106 = menuItem205.Items; | |
MenuItem menuItem216; | |
MenuItem menuItem215 = menuItem216 = new MenuItem(); | |
((ISupportInitialize)menuItem215).BeginInit(); | |
obj = (object)menuItem215; | |
((IList)items106).Add(obj); | |
ISupportInitialize supportInitialize93 = menuItem3 = menuItem216; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem217 = menuItem3; | |
menuItem217.Header = "Default is Smooth _Join"; | |
obj4 = menuItem217; | |
BindingExtension bindingExtension97 = new BindingExtension("OnToggleDefaultIsSmoothJoin"); | |
IServiceProvider serviceProvider113 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension97.ProvideTypedValue(serviceProvider113); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem217, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox43; | |
CheckBox checkBox42 = checkBox43 = new CheckBox(); | |
((ISupportInitialize)checkBox42).BeginInit(); | |
menuItem217.Icon = checkBox42; | |
ISupportInitialize supportInitialize94 = checkBox3 = checkBox43; | |
context.ParentsStack.Add(checkBox3); | |
object obj41 = obj5 = checkBox3; | |
BindingExtension bindingExtension98 = new BindingExtension("Project.Options.DefaultIsSmoothJoin"); | |
IServiceProvider serviceProvider114 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension98.ProvideTypedValue(serviceProvider114); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj41, ToggleButton.IsCheckedProperty, context, value); | |
obj41.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize94.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize93.EndInit(); | |
IEnumerable items107 = menuItem205.Items; | |
Separator separator70; | |
Separator separator69 = separator70 = new Separator(); | |
((ISupportInitialize)separator69).BeginInit(); | |
obj = (object)separator69; | |
((IList)items107).Add(obj); | |
((ISupportInitialize)separator70).EndInit(); | |
IEnumerable items108 = menuItem205.Items; | |
MenuItem menuItem219; | |
MenuItem menuItem218 = menuItem219 = new MenuItem(); | |
((ISupportInitialize)menuItem218).BeginInit(); | |
obj4 = (object)menuItem218; | |
((IList)items108).Add(obj4); | |
ISupportInitialize supportInitialize95 = menuItem3 = menuItem219; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem220 = menuItem3; | |
menuItem220.Header = "Snap to _Grid"; | |
obj5 = menuItem220; | |
BindingExtension bindingExtension99 = new BindingExtension("OnToggleSnapToGrid"); | |
IServiceProvider serviceProvider115 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension99.ProvideTypedValue(serviceProvider115); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem220, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox45; | |
CheckBox checkBox44 = checkBox45 = new CheckBox(); | |
((ISupportInitialize)checkBox44).BeginInit(); | |
menuItem220.Icon = checkBox44; | |
ISupportInitialize supportInitialize96 = checkBox3 = checkBox45; | |
context.ParentsStack.Add(checkBox3); | |
object obj42 = obj = checkBox3; | |
BindingExtension bindingExtension100 = new BindingExtension("Project.Options.SnapToGrid"); | |
IServiceProvider serviceProvider116 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension100.ProvideTypedValue(serviceProvider116); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj42, ToggleButton.IsCheckedProperty, context, value); | |
obj42.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize96.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize95.EndInit(); | |
IEnumerable items109 = menuItem205.Items; | |
Separator separator72; | |
Separator separator71 = separator72 = new Separator(); | |
((ISupportInitialize)separator71).BeginInit(); | |
obj4 = (object)separator71; | |
((IList)items109).Add(obj4); | |
((ISupportInitialize)separator72).EndInit(); | |
IEnumerable items110 = menuItem205.Items; | |
MenuItem menuItem222; | |
MenuItem menuItem221 = menuItem222 = new MenuItem(); | |
((ISupportInitialize)menuItem221).BeginInit(); | |
obj5 = (object)menuItem221; | |
((IList)items110).Add(obj5); | |
ISupportInitialize supportInitialize97 = menuItem3 = menuItem222; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem223 = menuItem3; | |
menuItem223.Header = "Try To _Connect"; | |
obj = menuItem223; | |
BindingExtension bindingExtension101 = new BindingExtension("OnToggleTryToConnect"); | |
IServiceProvider serviceProvider117 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension101.ProvideTypedValue(serviceProvider117); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem223, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox47; | |
CheckBox checkBox46 = checkBox47 = new CheckBox(); | |
((ISupportInitialize)checkBox46).BeginInit(); | |
menuItem223.Icon = checkBox46; | |
ISupportInitialize supportInitialize98 = checkBox3 = checkBox47; | |
context.ParentsStack.Add(checkBox3); | |
object obj43 = obj4 = checkBox3; | |
BindingExtension bindingExtension102 = new BindingExtension("Project.Options.TryToConnect"); | |
IServiceProvider serviceProvider118 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension102.ProvideTypedValue(serviceProvider118); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj43, ToggleButton.IsCheckedProperty, context, value); | |
obj43.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize98.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize97.EndInit(); | |
IEnumerable items111 = menuItem205.Items; | |
Separator separator74; | |
Separator separator73 = separator74 = new Separator(); | |
((ISupportInitialize)separator73).BeginInit(); | |
obj5 = (object)separator73; | |
((IList)items111).Add(obj5); | |
((ISupportInitialize)separator74).EndInit(); | |
IEnumerable items112 = menuItem205.Items; | |
MenuItem menuItem225; | |
MenuItem menuItem224 = menuItem225 = new MenuItem(); | |
((ISupportInitialize)menuItem224).BeginInit(); | |
obj = (object)menuItem224; | |
((IList)items112).Add(obj); | |
ISupportInitialize supportInitialize99 = menuItem3 = menuItem225; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem226 = menuItem3; | |
menuItem226.Header = "Clone St_yle"; | |
obj4 = menuItem226; | |
BindingExtension bindingExtension103 = new BindingExtension("OnToggleCloneStyle"); | |
IServiceProvider serviceProvider119 = context; | |
context.ProvideTargetObject = obj4; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension103.ProvideTypedValue(serviceProvider119); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem226, MenuItem.CommandProperty, context, value); | |
CheckBox checkBox49; | |
CheckBox checkBox48 = checkBox49 = new CheckBox(); | |
((ISupportInitialize)checkBox48).BeginInit(); | |
menuItem226.Icon = checkBox48; | |
ISupportInitialize supportInitialize100 = checkBox3 = checkBox49; | |
context.ParentsStack.Add(checkBox3); | |
object obj44 = obj5 = checkBox3; | |
BindingExtension bindingExtension104 = new BindingExtension("Project.Options.CloneStyle"); | |
IServiceProvider serviceProvider120 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension104.ProvideTypedValue(serviceProvider120); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj44, ToggleButton.IsCheckedProperty, context, value); | |
obj44.Classes = Classes.Parse("menu"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize100.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize99.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize86.EndInit(); | |
IEnumerable items113 = menu4.Items; | |
MenuItem menuItem228; | |
MenuItem menuItem227 = menuItem228 = new MenuItem(); | |
((ISupportInitialize)menuItem227).BeginInit(); | |
obj = (object)menuItem227; | |
((IList)items113).Add(obj); | |
ISupportInitialize supportInitialize101 = menuItem3 = menuItem228; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem229 = menuItem3; | |
menuItem229.Header = "_Window"; | |
IEnumerable items114 = menuItem229.Items; | |
MenuItem menuItem231; | |
MenuItem menuItem230 = menuItem231 = new MenuItem(); | |
((ISupportInitialize)menuItem230).BeginInit(); | |
obj4 = (object)menuItem230; | |
((IList)items114).Add(obj4); | |
ISupportInitialize supportInitialize102 = menuItem3 = menuItem231; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem232 = menuItem3; | |
menuItem232.Header = "_Load Layout..."; | |
obj5 = menuItem232; | |
BindingExtension bindingExtension105 = new BindingExtension("LayoutPlatform.LoadLayout"); | |
IServiceProvider serviceProvider121 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension105.ProvideTypedValue(serviceProvider121); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem232, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize102.EndInit(); | |
IEnumerable items115 = menuItem229.Items; | |
Separator separator76; | |
Separator separator75 = separator76 = new Separator(); | |
((ISupportInitialize)separator75).BeginInit(); | |
obj = (object)separator75; | |
((IList)items115).Add(obj); | |
((ISupportInitialize)separator76).EndInit(); | |
IEnumerable items116 = menuItem229.Items; | |
MenuItem menuItem234; | |
MenuItem menuItem233 = menuItem234 = new MenuItem(); | |
((ISupportInitialize)menuItem233).BeginInit(); | |
obj4 = (object)menuItem233; | |
((IList)items116).Add(obj4); | |
ISupportInitialize supportInitialize103 = menuItem3 = menuItem234; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem235 = menuItem3; | |
menuItem235.Header = "_Save Layout..."; | |
obj5 = menuItem235; | |
BindingExtension bindingExtension106 = new BindingExtension("LayoutPlatform.SaveLayout"); | |
IServiceProvider serviceProvider122 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension106.ProvideTypedValue(serviceProvider122); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem235, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize103.EndInit(); | |
IEnumerable items117 = menuItem229.Items; | |
Separator separator78; | |
Separator separator77 = separator78 = new Separator(); | |
((ISupportInitialize)separator77).BeginInit(); | |
obj = (object)separator77; | |
((IList)items117).Add(obj); | |
((ISupportInitialize)separator78).EndInit(); | |
IEnumerable items118 = menuItem229.Items; | |
MenuItem menuItem237; | |
MenuItem menuItem236 = menuItem237 = new MenuItem(); | |
((ISupportInitialize)menuItem236).BeginInit(); | |
obj4 = (object)menuItem236; | |
((IList)items118).Add(obj4); | |
ISupportInitialize supportInitialize104 = menuItem3 = menuItem237; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem238 = menuItem3; | |
menuItem238.Header = "_Reset Layout"; | |
obj5 = menuItem238; | |
BindingExtension bindingExtension107 = new BindingExtension("LayoutPlatform.ResetLayout"); | |
IServiceProvider serviceProvider123 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension107.ProvideTypedValue(serviceProvider123); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem238, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize104.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize101.EndInit(); | |
IEnumerable items119 = menu4.Items; | |
MenuItem menuItem240; | |
MenuItem menuItem239 = menuItem240 = new MenuItem(); | |
((ISupportInitialize)menuItem239).BeginInit(); | |
obj = (object)menuItem239; | |
((IList)items119).Add(obj); | |
ISupportInitialize supportInitialize105 = menuItem3 = menuItem240; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem241 = menuItem3; | |
menuItem241.Header = "_Debug"; | |
IEnumerable items120 = menuItem241.Items; | |
MenuItem menuItem243; | |
MenuItem menuItem242 = menuItem243 = new MenuItem(); | |
((ISupportInitialize)menuItem242).BeginInit(); | |
obj4 = (object)menuItem242; | |
((IList)items120).Add(obj4); | |
ISupportInitialize supportInitialize106 = menuItem3 = menuItem243; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem244 = menuItem3; | |
menuItem244.Header = "Draw_DirtyRects"; | |
menuItem244.Click += context.RootObject.DebugDrawDirtyRects_Click; | |
CheckBox checkBox51; | |
CheckBox checkBox50 = checkBox51 = new CheckBox(); | |
((ISupportInitialize)checkBox50).BeginInit(); | |
menuItem244.Icon = checkBox50; | |
ISupportInitialize supportInitialize107 = checkBox3 = checkBox51; | |
context.ParentsStack.Add(checkBox3); | |
CheckBox checkBox52 = checkBox3; | |
checkBox52.Classes = Classes.Parse("menu"); | |
obj5 = checkBox52; | |
BindingExtension bindingExtension108 = new BindingExtension("$parent[views:EditorMenuControl].DrawDirtyRects"); | |
IServiceProvider serviceProvider124 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension108.ProvideTypedValue(serviceProvider124); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(checkBox52, ToggleButton.IsCheckedProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize107.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize106.EndInit(); | |
IEnumerable items121 = menuItem241.Items; | |
Separator separator80; | |
Separator separator79 = separator80 = new Separator(); | |
((ISupportInitialize)separator79).BeginInit(); | |
obj = (object)separator79; | |
((IList)items121).Add(obj); | |
((ISupportInitialize)separator80).EndInit(); | |
IEnumerable items122 = menuItem241.Items; | |
MenuItem menuItem246; | |
MenuItem menuItem245 = menuItem246 = new MenuItem(); | |
((ISupportInitialize)menuItem245).BeginInit(); | |
obj4 = (object)menuItem245; | |
((IList)items122).Add(obj4); | |
ISupportInitialize supportInitialize108 = menuItem3 = menuItem246; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem247 = menuItem3; | |
menuItem247.Header = "Draw_Fps"; | |
menuItem247.Click += context.RootObject.DebugDrawFps_Click; | |
CheckBox checkBox54; | |
CheckBox checkBox53 = checkBox54 = new CheckBox(); | |
((ISupportInitialize)checkBox53).BeginInit(); | |
menuItem247.Icon = checkBox53; | |
ISupportInitialize supportInitialize109 = checkBox3 = checkBox54; | |
context.ParentsStack.Add(checkBox3); | |
CheckBox checkBox55 = checkBox3; | |
checkBox55.Classes = Classes.Parse("menu"); | |
obj5 = checkBox55; | |
BindingExtension bindingExtension109 = new BindingExtension("$parent[views:EditorMenuControl].DrawFps"); | |
IServiceProvider serviceProvider125 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension109.ProvideTypedValue(serviceProvider125); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(checkBox55, ToggleButton.IsCheckedProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize109.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize108.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize105.EndInit(); | |
IEnumerable items123 = menu4.Items; | |
MenuItem menuItem249; | |
MenuItem menuItem248 = menuItem249 = new MenuItem(); | |
((ISupportInitialize)menuItem248).BeginInit(); | |
obj = (object)menuItem248; | |
((IList)items123).Add(obj); | |
ISupportInitialize supportInitialize110 = menuItem3 = menuItem249; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem250 = menuItem3; | |
menuItem250.Header = "_Help"; | |
IEnumerable items124 = menuItem250.Items; | |
MenuItem menuItem252; | |
MenuItem menuItem251 = menuItem252 = new MenuItem(); | |
((ISupportInitialize)menuItem251).BeginInit(); | |
obj4 = (object)menuItem251; | |
((IList)items124).Add(obj4); | |
ISupportInitialize supportInitialize111 = menuItem3 = menuItem252; | |
context.ParentsStack.Add(menuItem3); | |
MenuItem menuItem253 = menuItem3; | |
menuItem253.Header = "_About Core2D"; | |
obj5 = menuItem253; | |
BindingExtension bindingExtension110 = new BindingExtension("Platform.OnAboutDialog"); | |
IServiceProvider serviceProvider126 = context; | |
context.ProvideTargetObject = obj5; | |
context.ProvideTargetProperty = MenuItem.CommandProperty; | |
value = bindingExtension110.ProvideTypedValue(serviceProvider126); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(menuItem253, MenuItem.CommandProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize111.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize110.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000292 RID: 658 RVA: 0x00033DEC File Offset: 0x00031FEC | |
public static void xaml(IServiceProvider A_0, MainControl A_1) | |
{ | |
XamlIlContext.Context<MainControl> context = new XamlIlContext.Context<MainControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/MainControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/MainControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.UseLayoutRounding = true; | |
List<KeyBinding> keyBindings = A_1.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object provideTargetObject; | |
object obj = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension = new BindingExtension("OnNew"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, KeyBinding.CommandProperty, context, value); | |
provideTargetObject = obj; | |
BindingExtension bindingExtension2 = new BindingExtension(); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, KeyBinding.CommandParameterProperty, context, value); | |
obj.Gesture = KeyGesture.Parse("Ctrl+N"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item); | |
List<KeyBinding> keyBindings2 = A_1.KeyBindings; | |
KeyBinding item2 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj2 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension3 = new BindingExtension("Platform.OnOpen"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, KeyBinding.CommandProperty, context, value); | |
obj2.Gesture = KeyGesture.Parse("Ctrl+O"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings2.Add(item2); | |
List<KeyBinding> keyBindings3 = A_1.KeyBindings; | |
KeyBinding item3 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj3 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension4 = new BindingExtension("OnCloseProject"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandProperty, context, value); | |
obj3.Gesture = KeyGesture.Parse("Ctrl+F4"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings3.Add(item3); | |
List<KeyBinding> keyBindings4 = A_1.KeyBindings; | |
KeyBinding item4 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj4 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension5 = new BindingExtension("Platform.OnSave"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, KeyBinding.CommandProperty, context, value); | |
obj4.Gesture = KeyGesture.Parse("Ctrl+S"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings4.Add(item4); | |
List<KeyBinding> keyBindings5 = A_1.KeyBindings; | |
KeyBinding item5 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj5 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension6 = new BindingExtension("Platform.OnSaveAs"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, KeyBinding.CommandProperty, context, value); | |
obj5.Gesture = KeyGesture.Parse("Ctrl+Shift+S"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings5.Add(item5); | |
List<KeyBinding> keyBindings6 = A_1.KeyBindings; | |
KeyBinding item6 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj6 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension7 = new BindingExtension("Platform.OnImportXaml"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, KeyBinding.CommandProperty, context, value); | |
obj6.Gesture = KeyGesture.Parse("Ctrl+Shift+X"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings6.Add(item6); | |
List<KeyBinding> keyBindings7 = A_1.KeyBindings; | |
KeyBinding item7 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj7 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension8 = new BindingExtension("Platform.OnImportJson"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, KeyBinding.CommandProperty, context, value); | |
obj7.Gesture = KeyGesture.Parse("Ctrl+Shift+J"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings7.Add(item7); | |
List<KeyBinding> keyBindings8 = A_1.KeyBindings; | |
KeyBinding item8 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj8 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension9 = new BindingExtension("Platform.OnExport"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, KeyBinding.CommandProperty, context, value); | |
obj8.Gesture = KeyGesture.Parse("Ctrl+E"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings8.Add(item8); | |
List<KeyBinding> keyBindings9 = A_1.KeyBindings; | |
KeyBinding item9 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj9 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension10 = new BindingExtension("Platform.OnExit"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, KeyBinding.CommandProperty, context, value); | |
obj9.Gesture = KeyGesture.Parse("Alt+F4"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings9.Add(item9); | |
List<KeyBinding> keyBindings10 = A_1.KeyBindings; | |
KeyBinding item10 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj10 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension11 = new BindingExtension("OnUndo"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj10, KeyBinding.CommandProperty, context, value); | |
obj10.Gesture = KeyGesture.Parse("Ctrl+Z"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings10.Add(item10); | |
List<KeyBinding> keyBindings11 = A_1.KeyBindings; | |
KeyBinding item11 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj11 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension12 = new BindingExtension("OnRedo"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj11, KeyBinding.CommandProperty, context, value); | |
obj11.Gesture = KeyGesture.Parse("Ctrl+Y"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings11.Add(item11); | |
List<KeyBinding> keyBindings12 = A_1.KeyBindings; | |
KeyBinding item12 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj12 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension13 = new BindingExtension("Platform.OnCopyAsEmf"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj12, KeyBinding.CommandProperty, context, value); | |
obj12.Gesture = KeyGesture.Parse("Ctrl+Shift+C"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings12.Add(item12); | |
List<KeyBinding> keyBindings13 = A_1.KeyBindings; | |
KeyBinding item13 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj13 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension14 = new BindingExtension("OnCut"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj13, KeyBinding.CommandProperty, context, value); | |
obj13.Gesture = KeyGesture.Parse("Ctrl+X"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings13.Add(item13); | |
List<KeyBinding> keyBindings14 = A_1.KeyBindings; | |
KeyBinding item14 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj14 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension15 = new BindingExtension("OnCopy"); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj14, KeyBinding.CommandProperty, context, value); | |
obj14.Gesture = KeyGesture.Parse("Ctrl+C"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings14.Add(item14); | |
List<KeyBinding> keyBindings15 = A_1.KeyBindings; | |
KeyBinding item15 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj15 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension16 = new BindingExtension("OnPaste"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj15, KeyBinding.CommandProperty, context, value); | |
obj15.Gesture = KeyGesture.Parse("Ctrl+V"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings15.Add(item15); | |
List<KeyBinding> keyBindings16 = A_1.KeyBindings; | |
KeyBinding item16 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj16 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension17 = new BindingExtension("OnSelectAll"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj16, KeyBinding.CommandProperty, context, value); | |
obj16.Gesture = KeyGesture.Parse("Ctrl+A"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings16.Add(item16); | |
List<KeyBinding> keyBindings17 = A_1.KeyBindings; | |
KeyBinding item17 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj17 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension18 = new BindingExtension("OnGroupSelected"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj17, KeyBinding.CommandProperty, context, value); | |
obj17.Gesture = KeyGesture.Parse("Ctrl+G"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings17.Add(item17); | |
List<KeyBinding> keyBindings18 = A_1.KeyBindings; | |
KeyBinding item18 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj18 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension19 = new BindingExtension("OnUngroupSelected"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj18, KeyBinding.CommandProperty, context, value); | |
obj18.Gesture = KeyGesture.Parse("Ctrl+U"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings18.Add(item18); | |
List<KeyBinding> keyBindings19 = A_1.KeyBindings; | |
KeyBinding item19 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj19 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension20 = new BindingExtension("Platform.OnObjectBrowser"); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj19, KeyBinding.CommandProperty, context, value); | |
obj19.Gesture = KeyGesture.Parse("Ctrl+J"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings19.Add(item19); | |
List<KeyBinding> keyBindings20 = A_1.KeyBindings; | |
KeyBinding item20 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj20 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension21 = new BindingExtension("Platform.OnDocumentViewer"); | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension21.ProvideTypedValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj20, KeyBinding.CommandProperty, context, value); | |
obj20.Gesture = KeyGesture.Parse("Ctrl+D"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings20.Add(item20); | |
List<KeyBinding> keyBindings21 = A_1.KeyBindings; | |
KeyBinding item21 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj21 = provideTargetObject = keyBinding; | |
BindingExtension bindingExtension22 = new BindingExtension("Platform.OnScriptEditor"); | |
IServiceProvider serviceProvider22 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension22.ProvideTypedValue(serviceProvider22); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj21, KeyBinding.CommandProperty, context, value); | |
obj21.Gesture = KeyGesture.Parse("Ctrl+R"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings21.Add(item21); | |
DockControl dockControl2; | |
DockControl dockControl = dockControl2 = new DockControl(); | |
((ISupportInitialize)dockControl).BeginInit(); | |
A_1.Content = dockControl; | |
DockControl dockControl3; | |
ISupportInitialize supportInitialize = dockControl3 = dockControl2; | |
context.ParentsStack.Add(dockControl3); | |
object target = provideTargetObject = dockControl3; | |
BindingExtension bindingExtension23 = new BindingExtension("Layout"); | |
IServiceProvider serviceProvider23 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = StyledElement.DataContextProperty; | |
value = bindingExtension23.ProvideTypedValue(serviceProvider23); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, StyledElement.DataContextProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000293 RID: 659 RVA: 0x00034F14 File Offset: 0x00033114 | |
public static void xaml(IServiceProvider A_0, PageControl A_1) | |
{ | |
XamlIlContext.Context<PageControl> context = new XamlIlContext.Context<PageControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/PageControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/PageControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
A_1.Resources.Add("DockDropHandler", new DockDropHandler()); | |
A_1.Resources.Add("EditorDropHandler", new EditorDropHandler()); | |
List<KeyBinding> keyBindings = A_1.KeyBindings; | |
KeyBinding keyBinding; | |
KeyBinding item = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj2; | |
object obj = obj2 = keyBinding; | |
BindingExtension bindingExtension = new BindingExtension("OnDelete"); | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, KeyBinding.CommandProperty, context, value); | |
obj2 = obj; | |
BindingExtension bindingExtension2 = new BindingExtension(); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandParameterProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, KeyBinding.CommandParameterProperty, context, value); | |
obj.Gesture = KeyGesture.Parse("Delete"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings.Add(item); | |
List<KeyBinding> keyBindings2 = A_1.KeyBindings; | |
KeyBinding item2 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj3 = obj2 = keyBinding; | |
BindingExtension bindingExtension3 = new BindingExtension("OnCancel"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, KeyBinding.CommandProperty, context, value); | |
obj3.Gesture = KeyGesture.Parse("Escape"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings2.Add(item2); | |
List<KeyBinding> keyBindings3 = A_1.KeyBindings; | |
KeyBinding item3 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj4 = obj2 = keyBinding; | |
BindingExtension bindingExtension4 = new BindingExtension("OnSendToBackSelected"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, KeyBinding.CommandProperty, context, value); | |
obj4.Gesture = KeyGesture.Parse("Shift+OemMinus"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings3.Add(item3); | |
List<KeyBinding> keyBindings4 = A_1.KeyBindings; | |
KeyBinding item4 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj5 = obj2 = keyBinding; | |
BindingExtension bindingExtension5 = new BindingExtension("OnSendBackwardSelected"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, KeyBinding.CommandProperty, context, value); | |
obj5.Gesture = KeyGesture.Parse("OemMinus"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings4.Add(item4); | |
List<KeyBinding> keyBindings5 = A_1.KeyBindings; | |
KeyBinding item5 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj6 = obj2 = keyBinding; | |
BindingExtension bindingExtension6 = new BindingExtension("OnBringForwardSelected"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj6, KeyBinding.CommandProperty, context, value); | |
obj6.Gesture = KeyGesture.Parse("OemPlus"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings5.Add(item5); | |
List<KeyBinding> keyBindings6 = A_1.KeyBindings; | |
KeyBinding item6 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj7 = obj2 = keyBinding; | |
BindingExtension bindingExtension7 = new BindingExtension("OnBringToFrontSelected"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj7, KeyBinding.CommandProperty, context, value); | |
obj7.Gesture = KeyGesture.Parse("Shift+OemPlus"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings6.Add(item6); | |
List<KeyBinding> keyBindings7 = A_1.KeyBindings; | |
KeyBinding item7 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj8 = obj2 = keyBinding; | |
BindingExtension bindingExtension8 = new BindingExtension("OnSendToBackSelected"); | |
IServiceProvider serviceProvider8 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension8.ProvideTypedValue(serviceProvider8); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj8, KeyBinding.CommandProperty, context, value); | |
obj8.Gesture = KeyGesture.Parse("Shift+Subtract"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings7.Add(item7); | |
List<KeyBinding> keyBindings8 = A_1.KeyBindings; | |
KeyBinding item8 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj9 = obj2 = keyBinding; | |
BindingExtension bindingExtension9 = new BindingExtension("OnSendBackwardSelected"); | |
IServiceProvider serviceProvider9 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension9.ProvideTypedValue(serviceProvider9); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj9, KeyBinding.CommandProperty, context, value); | |
obj9.Gesture = KeyGesture.Parse("Subtract"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings8.Add(item8); | |
List<KeyBinding> keyBindings9 = A_1.KeyBindings; | |
KeyBinding item9 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj10 = obj2 = keyBinding; | |
BindingExtension bindingExtension10 = new BindingExtension("OnBringForwardSelected"); | |
IServiceProvider serviceProvider10 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension10.ProvideTypedValue(serviceProvider10); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj10, KeyBinding.CommandProperty, context, value); | |
obj10.Gesture = KeyGesture.Parse("Add"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings9.Add(item9); | |
List<KeyBinding> keyBindings10 = A_1.KeyBindings; | |
KeyBinding item10 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj11 = obj2 = keyBinding; | |
BindingExtension bindingExtension11 = new BindingExtension("OnBringToFrontSelected"); | |
IServiceProvider serviceProvider11 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension11.ProvideTypedValue(serviceProvider11); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj11, KeyBinding.CommandProperty, context, value); | |
obj11.Gesture = KeyGesture.Parse("Shift+Add"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings10.Add(item10); | |
List<KeyBinding> keyBindings11 = A_1.KeyBindings; | |
KeyBinding item11 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj12 = obj2 = keyBinding; | |
BindingExtension bindingExtension12 = new BindingExtension("OnMoveUpSelected"); | |
IServiceProvider serviceProvider12 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension12.ProvideTypedValue(serviceProvider12); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj12, KeyBinding.CommandProperty, context, value); | |
obj12.Gesture = KeyGesture.Parse("Up"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings11.Add(item11); | |
List<KeyBinding> keyBindings12 = A_1.KeyBindings; | |
KeyBinding item12 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj13 = obj2 = keyBinding; | |
BindingExtension bindingExtension13 = new BindingExtension("OnMoveDownSelected"); | |
IServiceProvider serviceProvider13 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension13.ProvideTypedValue(serviceProvider13); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj13, KeyBinding.CommandProperty, context, value); | |
obj13.Gesture = KeyGesture.Parse("Down"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings12.Add(item12); | |
List<KeyBinding> keyBindings13 = A_1.KeyBindings; | |
KeyBinding item13 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj14 = obj2 = keyBinding; | |
BindingExtension bindingExtension14 = new BindingExtension("OnMoveLeftSelected"); | |
IServiceProvider serviceProvider14 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension14.ProvideTypedValue(serviceProvider14); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj14, KeyBinding.CommandProperty, context, value); | |
obj14.Gesture = KeyGesture.Parse("Left"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings13.Add(item13); | |
List<KeyBinding> keyBindings14 = A_1.KeyBindings; | |
KeyBinding item14 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj15 = obj2 = keyBinding; | |
BindingExtension bindingExtension15 = new BindingExtension("OnMoveRightSelected"); | |
IServiceProvider serviceProvider15 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension15.ProvideTypedValue(serviceProvider15); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj15, KeyBinding.CommandProperty, context, value); | |
obj15.Gesture = KeyGesture.Parse("Right"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings14.Add(item14); | |
List<KeyBinding> keyBindings15 = A_1.KeyBindings; | |
KeyBinding item15 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj16 = obj2 = keyBinding; | |
BindingExtension bindingExtension16 = new BindingExtension("Platform.OnZoomReset"); | |
IServiceProvider serviceProvider16 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension16.ProvideTypedValue(serviceProvider16); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj16, KeyBinding.CommandProperty, context, value); | |
obj16.Gesture = KeyGesture.Parse("Z"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings15.Add(item15); | |
List<KeyBinding> keyBindings16 = A_1.KeyBindings; | |
KeyBinding item16 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj17 = obj2 = keyBinding; | |
BindingExtension bindingExtension17 = new BindingExtension("Platform.OnZoomAutoFit"); | |
IServiceProvider serviceProvider17 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension17.ProvideTypedValue(serviceProvider17); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj17, KeyBinding.CommandProperty, context, value); | |
obj17.Gesture = KeyGesture.Parse("X"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings16.Add(item16); | |
List<KeyBinding> keyBindings17 = A_1.KeyBindings; | |
KeyBinding item17 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj18 = obj2 = keyBinding; | |
BindingExtension bindingExtension18 = new BindingExtension("OnToolNone"); | |
IServiceProvider serviceProvider18 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension18.ProvideTypedValue(serviceProvider18); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj18, KeyBinding.CommandProperty, context, value); | |
obj18.Gesture = KeyGesture.Parse("N"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings17.Add(item17); | |
List<KeyBinding> keyBindings18 = A_1.KeyBindings; | |
KeyBinding item18 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj19 = obj2 = keyBinding; | |
BindingExtension bindingExtension19 = new BindingExtension("OnToolSelection"); | |
IServiceProvider serviceProvider19 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension19.ProvideTypedValue(serviceProvider19); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj19, KeyBinding.CommandProperty, context, value); | |
obj19.Gesture = KeyGesture.Parse("S"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings18.Add(item18); | |
List<KeyBinding> keyBindings19 = A_1.KeyBindings; | |
KeyBinding item19 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj20 = obj2 = keyBinding; | |
BindingExtension bindingExtension20 = new BindingExtension("OnToolPoint"); | |
IServiceProvider serviceProvider20 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension20.ProvideTypedValue(serviceProvider20); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj20, KeyBinding.CommandProperty, context, value); | |
obj20.Gesture = KeyGesture.Parse("P"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings19.Add(item19); | |
List<KeyBinding> keyBindings20 = A_1.KeyBindings; | |
KeyBinding item20 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj21 = obj2 = keyBinding; | |
BindingExtension bindingExtension21 = new BindingExtension("OnToolLine"); | |
IServiceProvider serviceProvider21 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension21.ProvideTypedValue(serviceProvider21); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj21, KeyBinding.CommandProperty, context, value); | |
obj21.Gesture = KeyGesture.Parse("L"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings20.Add(item20); | |
List<KeyBinding> keyBindings21 = A_1.KeyBindings; | |
KeyBinding item21 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj22 = obj2 = keyBinding; | |
BindingExtension bindingExtension22 = new BindingExtension("OnToolArc"); | |
IServiceProvider serviceProvider22 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension22.ProvideTypedValue(serviceProvider22); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj22, KeyBinding.CommandProperty, context, value); | |
obj22.Gesture = KeyGesture.Parse("A"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings21.Add(item21); | |
List<KeyBinding> keyBindings22 = A_1.KeyBindings; | |
KeyBinding item22 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj23 = obj2 = keyBinding; | |
BindingExtension bindingExtension23 = new BindingExtension("OnToolCubicBezier"); | |
IServiceProvider serviceProvider23 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension23.ProvideTypedValue(serviceProvider23); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj23, KeyBinding.CommandProperty, context, value); | |
obj23.Gesture = KeyGesture.Parse("B"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings22.Add(item22); | |
List<KeyBinding> keyBindings23 = A_1.KeyBindings; | |
KeyBinding item23 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj24 = obj2 = keyBinding; | |
BindingExtension bindingExtension24 = new BindingExtension("OnToolQuadraticBezier"); | |
IServiceProvider serviceProvider24 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension24.ProvideTypedValue(serviceProvider24); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj24, KeyBinding.CommandProperty, context, value); | |
obj24.Gesture = KeyGesture.Parse("Q"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings23.Add(item23); | |
List<KeyBinding> keyBindings24 = A_1.KeyBindings; | |
KeyBinding item24 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj25 = obj2 = keyBinding; | |
BindingExtension bindingExtension25 = new BindingExtension("OnToolPath"); | |
IServiceProvider serviceProvider25 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension25.ProvideTypedValue(serviceProvider25); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj25, KeyBinding.CommandProperty, context, value); | |
obj25.Gesture = KeyGesture.Parse("H"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings24.Add(item24); | |
List<KeyBinding> keyBindings25 = A_1.KeyBindings; | |
KeyBinding item25 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj26 = obj2 = keyBinding; | |
BindingExtension bindingExtension26 = new BindingExtension("OnToolMove"); | |
IServiceProvider serviceProvider26 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension26.ProvideTypedValue(serviceProvider26); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj26, KeyBinding.CommandProperty, context, value); | |
obj26.Gesture = KeyGesture.Parse("M"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings25.Add(item25); | |
List<KeyBinding> keyBindings26 = A_1.KeyBindings; | |
KeyBinding item26 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj27 = obj2 = keyBinding; | |
BindingExtension bindingExtension27 = new BindingExtension("OnToolRectangle"); | |
IServiceProvider serviceProvider27 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension27.ProvideTypedValue(serviceProvider27); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj27, KeyBinding.CommandProperty, context, value); | |
obj27.Gesture = KeyGesture.Parse("R"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings26.Add(item26); | |
List<KeyBinding> keyBindings27 = A_1.KeyBindings; | |
KeyBinding item27 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj28 = obj2 = keyBinding; | |
BindingExtension bindingExtension28 = new BindingExtension("OnToolEllipse"); | |
IServiceProvider serviceProvider28 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension28.ProvideTypedValue(serviceProvider28); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj28, KeyBinding.CommandProperty, context, value); | |
obj28.Gesture = KeyGesture.Parse("E"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings27.Add(item27); | |
List<KeyBinding> keyBindings28 = A_1.KeyBindings; | |
KeyBinding item28 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj29 = obj2 = keyBinding; | |
BindingExtension bindingExtension29 = new BindingExtension("OnToolText"); | |
IServiceProvider serviceProvider29 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension29.ProvideTypedValue(serviceProvider29); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj29, KeyBinding.CommandProperty, context, value); | |
obj29.Gesture = KeyGesture.Parse("T"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings28.Add(item28); | |
List<KeyBinding> keyBindings29 = A_1.KeyBindings; | |
KeyBinding item29 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj30 = obj2 = keyBinding; | |
BindingExtension bindingExtension30 = new BindingExtension("OnToolImage"); | |
IServiceProvider serviceProvider30 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension30.ProvideTypedValue(serviceProvider30); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj30, KeyBinding.CommandProperty, context, value); | |
obj30.Gesture = KeyGesture.Parse("I"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings29.Add(item29); | |
List<KeyBinding> keyBindings30 = A_1.KeyBindings; | |
KeyBinding item30 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj31 = obj2 = keyBinding; | |
BindingExtension bindingExtension31 = new BindingExtension("OnToggleDefaultIsStroked"); | |
IServiceProvider serviceProvider31 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension31.ProvideTypedValue(serviceProvider31); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj31, KeyBinding.CommandProperty, context, value); | |
obj31.Gesture = KeyGesture.Parse("K"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings30.Add(item30); | |
List<KeyBinding> keyBindings31 = A_1.KeyBindings; | |
KeyBinding item31 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj32 = obj2 = keyBinding; | |
BindingExtension bindingExtension32 = new BindingExtension("OnToggleDefaultIsFilled"); | |
IServiceProvider serviceProvider32 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension32.ProvideTypedValue(serviceProvider32); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj32, KeyBinding.CommandProperty, context, value); | |
obj32.Gesture = KeyGesture.Parse("F"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings31.Add(item31); | |
List<KeyBinding> keyBindings32 = A_1.KeyBindings; | |
KeyBinding item32 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj33 = obj2 = keyBinding; | |
BindingExtension bindingExtension33 = new BindingExtension("OnToggleDefaultIsClosed"); | |
IServiceProvider serviceProvider33 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension33.ProvideTypedValue(serviceProvider33); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj33, KeyBinding.CommandProperty, context, value); | |
obj33.Gesture = KeyGesture.Parse("D"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings32.Add(item32); | |
List<KeyBinding> keyBindings33 = A_1.KeyBindings; | |
KeyBinding item33 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj34 = obj2 = keyBinding; | |
BindingExtension bindingExtension34 = new BindingExtension("OnToggleDefaultIsSmoothJoin"); | |
IServiceProvider serviceProvider34 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension34.ProvideTypedValue(serviceProvider34); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj34, KeyBinding.CommandProperty, context, value); | |
obj34.Gesture = KeyGesture.Parse("J"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings33.Add(item33); | |
List<KeyBinding> keyBindings34 = A_1.KeyBindings; | |
KeyBinding item34 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj35 = obj2 = keyBinding; | |
BindingExtension bindingExtension35 = new BindingExtension("OnToggleSnapToGrid"); | |
IServiceProvider serviceProvider35 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension35.ProvideTypedValue(serviceProvider35); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj35, KeyBinding.CommandProperty, context, value); | |
obj35.Gesture = KeyGesture.Parse("G"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings34.Add(item34); | |
List<KeyBinding> keyBindings35 = A_1.KeyBindings; | |
KeyBinding item35 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj36 = obj2 = keyBinding; | |
BindingExtension bindingExtension36 = new BindingExtension("OnToggleTryToConnect"); | |
IServiceProvider serviceProvider36 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension36.ProvideTypedValue(serviceProvider36); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj36, KeyBinding.CommandProperty, context, value); | |
obj36.Gesture = KeyGesture.Parse("C"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings35.Add(item35); | |
List<KeyBinding> keyBindings36 = A_1.KeyBindings; | |
KeyBinding item36 = keyBinding = new KeyBinding(); | |
context.ParentsStack.Add(keyBinding); | |
object obj37 = obj2 = keyBinding; | |
BindingExtension bindingExtension37 = new BindingExtension("OnToggleCloneStyle"); | |
IServiceProvider serviceProvider37 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = KeyBinding.CommandProperty; | |
value = bindingExtension37.ProvideTypedValue(serviceProvider37); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj37, KeyBinding.CommandProperty, context, value); | |
obj37.Gesture = KeyGesture.Parse("Y"); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
keyBindings36.Add(item36); | |
Interaction.GetBehaviors(A_1).Add(new FocusOnAttachedToVisualTreeBehavior()); | |
Interaction.GetBehaviors(A_1).Add(new FocusOnPointerMovedBehavior()); | |
AvaloniaList<AvaloniaObject> behaviors = Interaction.GetBehaviors(A_1); | |
DropBehavior dropBehavior; | |
AvaloniaObject item37 = dropBehavior = new DropBehavior(); | |
context.ParentsStack.Add(dropBehavior); | |
object obj38 = obj2 = dropBehavior; | |
BindingExtension bindingExtension38 = new BindingExtension(); | |
IServiceProvider serviceProvider38 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = DropBehavior.ContextProperty; | |
value = bindingExtension38.ProvideTypedValue(serviceProvider38); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj38, DropBehavior.ContextProperty, context, value); | |
object provideTargetObject = obj38; | |
StaticResourceExtension staticResourceExtension = new StaticResourceExtension("EditorDropHandler"); | |
IServiceProvider serviceProvider39 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = DropBehavior.HandlerProperty; | |
obj2 = staticResourceExtension.ProvideValue(serviceProvider39); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj2 is IBinding) && !(obj2 is UnsetValueType)) | |
{ | |
obj38.Handler = (IDropHandler)obj2; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj38, DropBehavior.HandlerProperty, context, obj2); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
behaviors.Add(item37); | |
Border border2; | |
Border border = border2 = new Border(); | |
((ISupportInitialize)border).BeginInit(); | |
A_1.Content = border; | |
Border border3; | |
ISupportInitialize supportInitialize = border3 = border2; | |
context.ParentsStack.Add(border3); | |
Border border4 = border3; | |
border4.Classes = Classes.Parse("container"); | |
AvaloniaList<AvaloniaObject> behaviors2 = Interaction.GetBehaviors(border4); | |
AvaloniaObject item38 = dropBehavior = new DropBehavior(); | |
context.ParentsStack.Add(dropBehavior); | |
object obj39 = provideTargetObject = dropBehavior; | |
BindingExtension bindingExtension39 = new BindingExtension(); | |
IServiceProvider serviceProvider40 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = DropBehavior.ContextProperty; | |
value = bindingExtension39.ProvideTypedValue(serviceProvider40); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj39, DropBehavior.ContextProperty, context, value); | |
provideTargetObject = obj39; | |
StaticResourceExtension staticResourceExtension2 = new StaticResourceExtension("EditorDropHandler"); | |
IServiceProvider serviceProvider41 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = DropBehavior.HandlerProperty; | |
obj2 = staticResourceExtension2.ProvideValue(serviceProvider41); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(obj2 is IBinding) && !(obj2 is UnsetValueType)) | |
{ | |
obj39.Handler = (IDropHandler)obj2; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj39, DropBehavior.HandlerProperty, context, obj2); | |
} | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
behaviors2.Add(item38); | |
Border border6; | |
Border border5 = border6 = new Border(); | |
((ISupportInitialize)border5).BeginInit(); | |
border4.Child = border5; | |
ISupportInitialize supportInitialize2 = border3 = border6; | |
context.ParentsStack.Add(border3); | |
Border border7 = border3; | |
border7.Classes = Classes.Parse("transparent"); | |
border7.ClipToBounds = true; | |
ZoomBorder zoomBorder2; | |
ZoomBorder zoomBorder = zoomBorder2 = new ZoomBorder(); | |
((ISupportInitialize)zoomBorder).BeginInit(); | |
border7.Child = zoomBorder; | |
ZoomBorder zoomBorder3; | |
ISupportInitialize supportInitialize3 = zoomBorder3 = zoomBorder2; | |
context.ParentsStack.Add(zoomBorder3); | |
ZoomBorder zoomBorder4 = zoomBorder3; | |
StyledElement styledElement = (StyledElement)zoomBorder4; | |
string name = "zoomBorder"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
zoomBorder4.Stretch = StretchMode.None; | |
zoomBorder4.ZoomSpeed = 1.2; | |
zoomBorder4.PanButton = ButtonName.Right; | |
provideTargetObject = zoomBorder4; | |
BindingExtension bindingExtension40 = new BindingExtension("IsToolIdle"); | |
IServiceProvider serviceProvider42 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = ZoomBorder.EnableInputProperty; | |
value = bindingExtension40.ProvideTypedValue(serviceProvider42); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(zoomBorder4, ZoomBorder.EnableInputProperty, context, value); | |
zoomBorder4.Background = (IBrush)new BrushConverter().ConvertFrom(context, CultureInfo.InvariantCulture, "Transparent"); | |
zoomBorder4.ClipToBounds = false; | |
zoomBorder4.VerticalAlignment = VerticalAlignment.Stretch; | |
zoomBorder4.HorizontalAlignment = HorizontalAlignment.Stretch; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
zoomBorder4.Child = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
styledElement = (StyledElement)grid4; | |
name = "gridTransformed"; | |
styledElement.Name = name; | |
nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
grid4.ClipToBounds = false; | |
AvaloniaList<IControl> children = grid4.Children; | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl2; | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl = containerControl2 = new Core2D.UI.Avalonia.Views.ContainerControl(); | |
((ISupportInitialize)containerControl).BeginInit(); | |
children.Add(containerControl); | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl3; | |
ISupportInitialize supportInitialize5 = containerControl3 = containerControl2; | |
context.ParentsStack.Add(containerControl3); | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl4 = containerControl3; | |
styledElement = (StyledElement)containerControl4; | |
name = "containerControlData"; | |
styledElement.Name = name; | |
nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj2 = containerControl4; | |
BindingExtension bindingExtension41 = new BindingExtension("Renderers[0]"); | |
IServiceProvider serviceProvider43 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Core2D.UI.Avalonia.Views.ContainerControl.RendererProperty; | |
value = bindingExtension41.ProvideTypedValue(serviceProvider43); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(containerControl4, Core2D.UI.Avalonia.Views.ContainerControl.RendererProperty, context, value); | |
provideTargetObject = containerControl4; | |
BindingExtension bindingExtension42 = new BindingExtension("DataFlow"); | |
IServiceProvider serviceProvider44 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = Core2D.UI.Avalonia.Views.ContainerControl.DataFlowProperty; | |
value = bindingExtension42.ProvideTypedValue(serviceProvider44); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(containerControl4, Core2D.UI.Avalonia.Views.ContainerControl.DataFlowProperty, context, value); | |
obj2 = containerControl4; | |
BindingExtension bindingExtension43 = new BindingExtension("Project.CurrentContainer"); | |
IServiceProvider serviceProvider45 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Core2D.UI.Avalonia.Views.ContainerControl.ContainerProperty; | |
value = bindingExtension43.ProvideTypedValue(serviceProvider45); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(containerControl4, Core2D.UI.Avalonia.Views.ContainerControl.ContainerProperty, context, value); | |
containerControl4.PresenterType = PresenterType.Data; | |
containerControl4.ClipToBounds = false; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl6; | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl5 = containerControl6 = new Core2D.UI.Avalonia.Views.ContainerControl(); | |
((ISupportInitialize)containerControl5).BeginInit(); | |
children2.Add(containerControl5); | |
ISupportInitialize supportInitialize6 = containerControl3 = containerControl6; | |
context.ParentsStack.Add(containerControl3); | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl7 = containerControl3; | |
styledElement = (StyledElement)containerControl7; | |
name = "containerControlTemplate"; | |
styledElement.Name = name; | |
nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
provideTargetObject = containerControl7; | |
BindingExtension bindingExtension44 = new BindingExtension("Renderers[0]"); | |
IServiceProvider serviceProvider46 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = Core2D.UI.Avalonia.Views.ContainerControl.RendererProperty; | |
value = bindingExtension44.ProvideTypedValue(serviceProvider46); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(containerControl7, Core2D.UI.Avalonia.Views.ContainerControl.RendererProperty, context, value); | |
obj2 = containerControl7; | |
BindingExtension bindingExtension45 = new BindingExtension("DataFlow"); | |
IServiceProvider serviceProvider47 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Core2D.UI.Avalonia.Views.ContainerControl.DataFlowProperty; | |
value = bindingExtension45.ProvideTypedValue(serviceProvider47); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(containerControl7, Core2D.UI.Avalonia.Views.ContainerControl.DataFlowProperty, context, value); | |
provideTargetObject = containerControl7; | |
BindingExtension bindingExtension46 = new BindingExtension("Project.CurrentContainer"); | |
IServiceProvider serviceProvider48 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = Core2D.UI.Avalonia.Views.ContainerControl.ContainerProperty; | |
value = bindingExtension46.ProvideTypedValue(serviceProvider48); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(containerControl7, Core2D.UI.Avalonia.Views.ContainerControl.ContainerProperty, context, value); | |
containerControl7.PresenterType = PresenterType.Template; | |
containerControl7.ClipToBounds = false; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl9; | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl8 = containerControl9 = new Core2D.UI.Avalonia.Views.ContainerControl(); | |
((ISupportInitialize)containerControl8).BeginInit(); | |
children3.Add(containerControl8); | |
ISupportInitialize supportInitialize7 = containerControl3 = containerControl9; | |
context.ParentsStack.Add(containerControl3); | |
Core2D.UI.Avalonia.Views.ContainerControl containerControl10 = containerControl3; | |
styledElement = (StyledElement)containerControl10; | |
name = "containerControlEditor"; | |
styledElement.Name = name; | |
nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj2 = containerControl10; | |
BindingExtension bindingExtension47 = new BindingExtension("Renderers[0]"); | |
IServiceProvider serviceProvider49 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Core2D.UI.Avalonia.Views.ContainerControl.RendererProperty; | |
value = bindingExtension47.ProvideTypedValue(serviceProvider49); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(containerControl10, Core2D.UI.Avalonia.Views.ContainerControl.RendererProperty, context, value); | |
provideTargetObject = containerControl10; | |
BindingExtension bindingExtension48 = new BindingExtension("DataFlow"); | |
IServiceProvider serviceProvider50 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = Core2D.UI.Avalonia.Views.ContainerControl.DataFlowProperty; | |
value = bindingExtension48.ProvideTypedValue(serviceProvider50); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(containerControl10, Core2D.UI.Avalonia.Views.ContainerControl.DataFlowProperty, context, value); | |
obj2 = containerControl10; | |
BindingExtension bindingExtension49 = new BindingExtension("Project.CurrentContainer"); | |
IServiceProvider serviceProvider51 = context; | |
context.ProvideTargetObject = obj2; | |
context.ProvideTargetProperty = Core2D.UI.Avalonia.Views.ContainerControl.ContainerProperty; | |
value = bindingExtension49.ProvideTypedValue(serviceProvider51); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(containerControl10, Core2D.UI.Avalonia.Views.ContainerControl.ContainerProperty, context, value); | |
containerControl10.PresenterType = PresenterType.Editor; | |
containerControl10.ClipToBounds = false; | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000294 RID: 660 RVA: 0x0003761C File Offset: 0x0003581C | |
public static void xaml(IServiceProvider A_0, ArcSegmentControl A_1) | |
{ | |
XamlIlContext.Context<ArcSegmentControl> context = new XamlIlContext.Context<ArcSegmentControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Path/ArcSegmentControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Path/ArcSegmentControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "ArcSegment"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto,Auto,Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "IsStroked"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children2.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize5 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj2 = obj = checkBox3; | |
BindingExtension bindingExtension = new BindingExtension("IsStroked"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ToggleButton.IsCheckedProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "IsSmoothJoin"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 1); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
CheckBox checkBox5; | |
CheckBox checkBox4 = checkBox5 = new CheckBox(); | |
((ISupportInitialize)checkBox4).BeginInit(); | |
children4.Add(checkBox4); | |
ISupportInitialize supportInitialize6 = checkBox3 = checkBox5; | |
context.ParentsStack.Add(checkBox3); | |
object obj3 = obj = checkBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("IsSmoothJoin"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ToggleButton.IsCheckedProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 1); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
AvaloniaList<IControl> children5 = grid4.Children; | |
TextBlock textBlock8; | |
TextBlock textBlock7 = textBlock8 = new TextBlock(); | |
((ISupportInitialize)textBlock7).BeginInit(); | |
children5.Add(textBlock7); | |
TextBlock textBlock9 = textBlock8; | |
textBlock9.Text = "RotationAngle"; | |
textBlock9.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock9, 2); | |
Grid.SetColumn(textBlock9, 0); | |
((ISupportInitialize)textBlock9).EndInit(); | |
AvaloniaList<IControl> children6 = grid4.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children6.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize7 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object obj4 = obj = textBox3; | |
BindingExtension bindingExtension3 = new BindingExtension("RotationAngle"); | |
bindingExtension3.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, TextBox.TextProperty, context, value); | |
obj4.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj4, 2); | |
Grid.SetColumn(obj4, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
AvaloniaList<IControl> children7 = grid4.Children; | |
TextBlock textBlock11; | |
TextBlock textBlock10 = textBlock11 = new TextBlock(); | |
((ISupportInitialize)textBlock10).BeginInit(); | |
children7.Add(textBlock10); | |
TextBlock textBlock12 = textBlock11; | |
textBlock12.Text = "IsLargeArc"; | |
textBlock12.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock12, 3); | |
Grid.SetColumn(textBlock12, 0); | |
((ISupportInitialize)textBlock12).EndInit(); | |
AvaloniaList<IControl> children8 = grid4.Children; | |
CheckBox checkBox7; | |
CheckBox checkBox6 = checkBox7 = new CheckBox(); | |
((ISupportInitialize)checkBox6).BeginInit(); | |
children8.Add(checkBox6); | |
ISupportInitialize supportInitialize8 = checkBox3 = checkBox7; | |
context.ParentsStack.Add(checkBox3); | |
object obj5 = obj = checkBox3; | |
BindingExtension bindingExtension4 = new BindingExtension("IsLargeArc"); | |
bindingExtension4.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj5, ToggleButton.IsCheckedProperty, context, value); | |
obj5.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj5, 3); | |
Grid.SetColumn(obj5, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
AvaloniaList<IControl> children9 = grid4.Children; | |
TextBlock textBlock14; | |
TextBlock textBlock13 = textBlock14 = new TextBlock(); | |
((ISupportInitialize)textBlock13).BeginInit(); | |
children9.Add(textBlock13); | |
TextBlock textBlock15 = textBlock14; | |
textBlock15.Text = "SweepDirection"; | |
textBlock15.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock15, 4); | |
Grid.SetColumn(textBlock15, 0); | |
((ISupportInitialize)textBlock15).EndInit(); | |
AvaloniaList<IControl> children10 = grid4.Children; | |
ComboBox comboBox2; | |
ComboBox comboBox = comboBox2 = new ComboBox(); | |
((ISupportInitialize)comboBox).BeginInit(); | |
children10.Add(comboBox); | |
ComboBox comboBox3; | |
ISupportInitialize supportInitialize9 = comboBox3 = comboBox2; | |
context.ParentsStack.Add(comboBox3); | |
ComboBox comboBox4 = comboBox3; | |
comboBox4.Items = Enums.XSweepDirectionValues; | |
obj = comboBox4; | |
BindingExtension bindingExtension5 = new BindingExtension("SweepDirection"); | |
bindingExtension5.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(comboBox4, SelectingItemsControl.SelectedItemProperty, context, value); | |
comboBox4.Classes = Classes.Parse("default"); | |
Grid.SetRow(comboBox4, 4); | |
Grid.SetColumn(comboBox4, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize10 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Point"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ContentControl contentControl3; | |
ContentControl contentControl2 = contentControl3 = new ContentControl(); | |
((ISupportInitialize)contentControl2).BeginInit(); | |
tabItem7.Content = contentControl2; | |
ContentControl contentControl4; | |
ISupportInitialize supportInitialize11 = contentControl4 = contentControl3; | |
context.ParentsStack.Add(contentControl4); | |
object target = obj = contentControl4; | |
BindingExtension bindingExtension6 = new BindingExtension("Point"); | |
IServiceProvider serviceProvider6 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension6.ProvideTypedValue(serviceProvider6); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize12 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Size"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ContentControl contentControl6; | |
ContentControl contentControl5 = contentControl6 = new ContentControl(); | |
((ISupportInitialize)contentControl5).BeginInit(); | |
tabItem10.Content = contentControl5; | |
ISupportInitialize supportInitialize13 = contentControl4 = contentControl6; | |
context.ParentsStack.Add(contentControl4); | |
object target2 = obj = contentControl4; | |
BindingExtension bindingExtension7 = new BindingExtension("Size"); | |
IServiceProvider serviceProvider7 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension7.ProvideTypedValue(serviceProvider7); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target2, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize13.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000295 RID: 661 RVA: 0x0003816C File Offset: 0x0003636C | |
public static void xaml(IServiceProvider A_0, CubicBezierSegmentControl A_1) | |
{ | |
XamlIlContext.Context<CubicBezierSegmentControl> context = new XamlIlContext.Context<CubicBezierSegmentControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Path/CubicBezierSegmentControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Path/CubicBezierSegmentControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "CubicBezierSegment"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "IsStroked"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children2.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize5 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj2 = obj = checkBox3; | |
BindingExtension bindingExtension = new BindingExtension("IsStroked"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ToggleButton.IsCheckedProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "IsSmoothJoin"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 1); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
CheckBox checkBox5; | |
CheckBox checkBox4 = checkBox5 = new CheckBox(); | |
((ISupportInitialize)checkBox4).BeginInit(); | |
children4.Add(checkBox4); | |
ISupportInitialize supportInitialize6 = checkBox3 = checkBox5; | |
context.ParentsStack.Add(checkBox3); | |
object obj3 = obj = checkBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("IsSmoothJoin"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ToggleButton.IsCheckedProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 1); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize7 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Point1"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ContentControl contentControl3; | |
ContentControl contentControl2 = contentControl3 = new ContentControl(); | |
((ISupportInitialize)contentControl2).BeginInit(); | |
tabItem7.Content = contentControl2; | |
ContentControl contentControl4; | |
ISupportInitialize supportInitialize8 = contentControl4 = contentControl3; | |
context.ParentsStack.Add(contentControl4); | |
object target = obj = contentControl4; | |
BindingExtension bindingExtension3 = new BindingExtension("Point1"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize9 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Point2"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ContentControl contentControl6; | |
ContentControl contentControl5 = contentControl6 = new ContentControl(); | |
((ISupportInitialize)contentControl5).BeginInit(); | |
tabItem10.Content = contentControl5; | |
ISupportInitialize supportInitialize10 = contentControl4 = contentControl6; | |
context.ParentsStack.Add(contentControl4); | |
object target2 = obj = contentControl4; | |
BindingExtension bindingExtension4 = new BindingExtension("Point2"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target2, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
IEnumerable items4 = tabControl4.Items; | |
TabItem tabItem12; | |
TabItem tabItem11 = tabItem12 = new TabItem(); | |
((ISupportInitialize)tabItem11).BeginInit(); | |
obj = (object)tabItem11; | |
((IList)items4).Add(obj); | |
ISupportInitialize supportInitialize11 = tabItem3 = tabItem12; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem13 = tabItem3; | |
tabItem13.Header = "Point3"; | |
tabItem13.Classes = Classes.Parse("property"); | |
ContentControl contentControl8; | |
ContentControl contentControl7 = contentControl8 = new ContentControl(); | |
((ISupportInitialize)contentControl7).BeginInit(); | |
tabItem13.Content = contentControl7; | |
ISupportInitialize supportInitialize12 = contentControl4 = contentControl8; | |
context.ParentsStack.Add(contentControl4); | |
object target3 = obj = contentControl4; | |
BindingExtension bindingExtension5 = new BindingExtension("Point3"); | |
IServiceProvider serviceProvider5 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension5.ProvideTypedValue(serviceProvider5); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target3, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize12.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize11.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000296 RID: 662 RVA: 0x00038A20 File Offset: 0x00036C20 | |
public static void xaml(IServiceProvider A_0, LineSegmentControl A_1) | |
{ | |
XamlIlContext.Context<LineSegmentControl> context = new XamlIlContext.Context<LineSegmentControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Path/LineSegmentControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Path/LineSegmentControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "LineSegment"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "IsStroked"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children2.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize5 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj2 = obj = checkBox3; | |
BindingExtension bindingExtension = new BindingExtension("IsStroked"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ToggleButton.IsCheckedProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "IsSmoothJoin"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 1); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
CheckBox checkBox5; | |
CheckBox checkBox4 = checkBox5 = new CheckBox(); | |
((ISupportInitialize)checkBox4).BeginInit(); | |
children4.Add(checkBox4); | |
ISupportInitialize supportInitialize6 = checkBox3 = checkBox5; | |
context.ParentsStack.Add(checkBox3); | |
object obj3 = obj = checkBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("IsSmoothJoin"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ToggleButton.IsCheckedProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 1); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize7 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Point"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ContentControl contentControl3; | |
ContentControl contentControl2 = contentControl3 = new ContentControl(); | |
((ISupportInitialize)contentControl2).BeginInit(); | |
tabItem7.Content = contentControl2; | |
ContentControl contentControl4; | |
ISupportInitialize supportInitialize8 = contentControl4 = contentControl3; | |
context.ParentsStack.Add(contentControl4); | |
object target = obj = contentControl4; | |
BindingExtension bindingExtension3 = new BindingExtension("Point"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000297 RID: 663 RVA: 0x00039040 File Offset: 0x00037240 | |
public static void xaml(IServiceProvider A_0, PathFigureControl A_1) | |
{ | |
XamlIlContext.Context<PathFigureControl> context = new XamlIlContext.Context<PathFigureControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Path/PathFigureControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Path/PathFigureControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "PathFigure"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "IsFilled"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children2.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize5 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj2 = obj = checkBox3; | |
BindingExtension bindingExtension = new BindingExtension("IsFilled"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ToggleButton.IsCheckedProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "IsClosed"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 1); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
CheckBox checkBox5; | |
CheckBox checkBox4 = checkBox5 = new CheckBox(); | |
((ISupportInitialize)checkBox4).BeginInit(); | |
children4.Add(checkBox4); | |
ISupportInitialize supportInitialize6 = checkBox3 = checkBox5; | |
context.ParentsStack.Add(checkBox3); | |
object obj3 = obj = checkBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("IsClosed"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ToggleButton.IsCheckedProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 1); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize7 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "StartPoint"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ContentControl contentControl3; | |
ContentControl contentControl2 = contentControl3 = new ContentControl(); | |
((ISupportInitialize)contentControl2).BeginInit(); | |
tabItem7.Content = contentControl2; | |
ContentControl contentControl4; | |
ISupportInitialize supportInitialize8 = contentControl4 = contentControl3; | |
context.ParentsStack.Add(contentControl4); | |
object target = obj = contentControl4; | |
BindingExtension bindingExtension3 = new BindingExtension("StartPoint"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize9 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Segments"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
tabItem10.Content = listBox; | |
ListBox listBox3; | |
ISupportInitialize supportInitialize10 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
object obj4 = obj = listBox3; | |
BindingExtension bindingExtension4 = new BindingExtension("Segments"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj4, ItemsControl.ItemsProperty, context, value); | |
obj4.Classes = Classes.Parse("default"); | |
AvaloniaList<IDataTemplate> dataTemplates = obj4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
dataTemplate.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_aa1779c1-a4dc-4d1b-8b8e-a72558ee83df.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000298 RID: 664 RVA: 0x00039820 File Offset: 0x00037A20 | |
public static void xaml(IServiceProvider A_0, PathGeometryControl A_1) | |
{ | |
XamlIlContext.Context<PathGeometryControl> context = new XamlIlContext.Context<PathGeometryControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Path/PathGeometryControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Path/PathGeometryControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "PathGeometry"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "FillRule"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
ComboBox comboBox2; | |
ComboBox comboBox = comboBox2 = new ComboBox(); | |
((ISupportInitialize)comboBox).BeginInit(); | |
children2.Add(comboBox); | |
ComboBox comboBox3; | |
ISupportInitialize supportInitialize5 = comboBox3 = comboBox2; | |
context.ParentsStack.Add(comboBox3); | |
ComboBox comboBox4 = comboBox3; | |
comboBox4.Items = Enums.XFillRuleValues; | |
obj = comboBox4; | |
BindingExtension bindingExtension = new BindingExtension("FillRule"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = SelectingItemsControl.SelectedItemProperty; | |
IBinding binding = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(comboBox4, SelectingItemsControl.SelectedItemProperty, context, binding); | |
comboBox4.Classes = Classes.Parse("default"); | |
Grid.SetRow(comboBox4, 0); | |
Grid.SetColumn(comboBox4, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize6 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Figures"; | |
tabItem7.Classes = Classes.Parse("property"); | |
TreeView treeView2; | |
TreeView treeView = treeView2 = new TreeView(); | |
((ISupportInitialize)treeView).BeginInit(); | |
tabItem7.Content = treeView; | |
TreeView treeView3; | |
ISupportInitialize supportInitialize7 = treeView3 = treeView2; | |
context.ParentsStack.Add(treeView3); | |
TreeView treeView4 = treeView3; | |
StyledElement styledElement = (StyledElement)treeView4; | |
string name = "tree"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj = treeView4; | |
BindingExtension bindingExtension2 = new BindingExtension("Figures"); | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
binding = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeView4, ItemsControl.ItemsProperty, context, binding); | |
treeView4.Classes = Classes.Parse("default"); | |
treeView4.Styles.Add(new Style | |
{ | |
Selector = Selectors.OfType((Selector)null, typeof(TreeViewItem)), | |
Setters = | |
{ | |
new Setter | |
{ | |
Property = TreeViewItem.IsExpandedProperty, | |
Value = (object)true | |
} | |
} | |
}); | |
AvaloniaList<IDataTemplate> dataTemplates = treeView4.DataTemplates; | |
TreeDataTemplate treeDataTemplate; | |
IDataTemplate item = treeDataTemplate = new TreeDataTemplate(); | |
context.ParentsStack.Add(treeDataTemplate); | |
TreeDataTemplate treeDataTemplate2 = treeDataTemplate; | |
treeDataTemplate2.DataType = typeof(IPathFigure); | |
obj = treeDataTemplate2; | |
BindingExtension bindingExtension3 = new BindingExtension("Segments"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = "ItemsSource"; | |
binding = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
if (!(binding is UnsetValueType)) | |
{ | |
treeDataTemplate2.ItemsSource = (Binding)binding; | |
} | |
else | |
{ | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(treeDataTemplate2, "ItemsSource", context, binding); | |
} | |
treeDataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_8e3e63bd-af0f-4f9d-b47d-b41bb7e09358.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
AvaloniaList<IDataTemplate> dataTemplates2 = treeView4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item2 = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
DataTemplate dataTemplate2 = dataTemplate; | |
dataTemplate2.DataType = typeof(IPathSegment); | |
dataTemplate2.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_45277603-63d3-42b1-94d0-3673c2f9f5af.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates2.Add(item2); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize8 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Selected"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ContentControl contentControl3; | |
ContentControl contentControl2 = contentControl3 = new ContentControl(); | |
((ISupportInitialize)contentControl2).BeginInit(); | |
tabItem10.Content = contentControl2; | |
ContentControl contentControl4; | |
ISupportInitialize supportInitialize9 = contentControl4 = contentControl3; | |
context.ParentsStack.Add(contentControl4); | |
object target = obj = contentControl4; | |
BindingExtension bindingExtension4 = new BindingExtension("#tree.SelectedItem"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
binding = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, binding); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x06000299 RID: 665 RVA: 0x0003A06C File Offset: 0x0003826C | |
public static void xaml(IServiceProvider A_0, PathSizeControl A_1) | |
{ | |
XamlIlContext.Context<PathSizeControl> context = new XamlIlContext.Context<PathSizeControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Path/PathSizeControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Path/PathSizeControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
A_1.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize2 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "Width"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
TextBox textBox2; | |
TextBox textBox = textBox2 = new TextBox(); | |
((ISupportInitialize)textBox).BeginInit(); | |
children2.Add(textBox); | |
TextBox textBox3; | |
ISupportInitialize supportInitialize3 = textBox3 = textBox2; | |
context.ParentsStack.Add(textBox3); | |
object provideTargetObject; | |
object obj = provideTargetObject = textBox3; | |
BindingExtension bindingExtension = new BindingExtension("Width"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj, TextBox.TextProperty, context, value); | |
obj.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj, 0); | |
Grid.SetColumn(obj, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "Height"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 1); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
TextBox textBox5; | |
TextBox textBox4 = textBox5 = new TextBox(); | |
((ISupportInitialize)textBox4).BeginInit(); | |
children4.Add(textBox4); | |
ISupportInitialize supportInitialize4 = textBox3 = textBox5; | |
context.ParentsStack.Add(textBox3); | |
object obj2 = provideTargetObject = textBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("Height"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = provideTargetObject; | |
context.ProvideTargetProperty = TextBox.TextProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, TextBox.TextProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 1); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600029A RID: 666 RVA: 0x0003A450 File Offset: 0x00038650 | |
public static void xaml(IServiceProvider A_0, PolyCubicBezierSegmentControl A_1) | |
{ | |
XamlIlContext.Context<PolyCubicBezierSegmentControl> context = new XamlIlContext.Context<PolyCubicBezierSegmentControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Path/PolyCubicBezierSegmentControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Path/PolyCubicBezierSegmentControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "PolyCubicBezierSegment"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "IsStroked"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children2.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize5 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj2 = obj = checkBox3; | |
BindingExtension bindingExtension = new BindingExtension("IsStroked"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ToggleButton.IsCheckedProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "IsSmoothJoin"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 1); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
CheckBox checkBox5; | |
CheckBox checkBox4 = checkBox5 = new CheckBox(); | |
((ISupportInitialize)checkBox4).BeginInit(); | |
children4.Add(checkBox4); | |
ISupportInitialize supportInitialize6 = checkBox3 = checkBox5; | |
context.ParentsStack.Add(checkBox3); | |
object obj3 = obj = checkBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("IsSmoothJoin"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ToggleButton.IsCheckedProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 1); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize7 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Points"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
tabItem7.Content = listBox; | |
ListBox listBox3; | |
ISupportInitialize supportInitialize8 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
ListBox listBox4 = listBox3; | |
StyledElement styledElement = (StyledElement)listBox4; | |
string name = "points"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj = listBox4; | |
BindingExtension bindingExtension3 = new BindingExtension("Points"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, ItemsControl.ItemsProperty, context, value); | |
listBox4.Classes = Classes.Parse("default"); | |
AvaloniaList<IDataTemplate> dataTemplates = listBox4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
dataTemplate.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_6957c264-6f04-4a85-9f00-5b3de1b70e24.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize9 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Selected"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ContentControl contentControl3; | |
ContentControl contentControl2 = contentControl3 = new ContentControl(); | |
((ISupportInitialize)contentControl2).BeginInit(); | |
tabItem10.Content = contentControl2; | |
ContentControl contentControl4; | |
ISupportInitialize supportInitialize10 = contentControl4 = contentControl3; | |
context.ParentsStack.Add(contentControl4); | |
object target = obj = contentControl4; | |
BindingExtension bindingExtension4 = new BindingExtension("#points.SelectedItem"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600029B RID: 667 RVA: 0x0003AC7C File Offset: 0x00038E7C | |
public static void xaml(IServiceProvider A_0, PolyLineSegmentControl A_1) | |
{ | |
XamlIlContext.Context<PolyLineSegmentControl> context = new XamlIlContext.Context<PolyLineSegmentControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Path/PolyLineSegmentControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Path/PolyLineSegmentControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "PolyLineSegment"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "IsStroked"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children2.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize5 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj2 = obj = checkBox3; | |
BindingExtension bindingExtension = new BindingExtension("IsStroked"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ToggleButton.IsCheckedProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "IsSmoothJoin"; | |
textBlock6.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock6, 1); | |
Grid.SetColumn(textBlock6, 0); | |
((ISupportInitialize)textBlock6).EndInit(); | |
AvaloniaList<IControl> children4 = grid4.Children; | |
CheckBox checkBox5; | |
CheckBox checkBox4 = checkBox5 = new CheckBox(); | |
((ISupportInitialize)checkBox4).BeginInit(); | |
children4.Add(checkBox4); | |
ISupportInitialize supportInitialize6 = checkBox3 = checkBox5; | |
context.ParentsStack.Add(checkBox3); | |
object obj3 = obj = checkBox3; | |
BindingExtension bindingExtension2 = new BindingExtension("IsSmoothJoin"); | |
bindingExtension2.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider2 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
value = bindingExtension2.ProvideTypedValue(serviceProvider2); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj3, ToggleButton.IsCheckedProperty, context, value); | |
obj3.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj3, 1); | |
Grid.SetColumn(obj3, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize6.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize4.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize3.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize2.EndInit(); | |
IEnumerable items2 = tabControl4.Items; | |
TabItem tabItem6; | |
TabItem tabItem5 = tabItem6 = new TabItem(); | |
((ISupportInitialize)tabItem5).BeginInit(); | |
obj = (object)tabItem5; | |
((IList)items2).Add(obj); | |
ISupportInitialize supportInitialize7 = tabItem3 = tabItem6; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem7 = tabItem3; | |
tabItem7.Header = "Points"; | |
tabItem7.Classes = Classes.Parse("property"); | |
ListBox listBox2; | |
ListBox listBox = listBox2 = new ListBox(); | |
((ISupportInitialize)listBox).BeginInit(); | |
tabItem7.Content = listBox; | |
ListBox listBox3; | |
ISupportInitialize supportInitialize8 = listBox3 = listBox2; | |
context.ParentsStack.Add(listBox3); | |
ListBox listBox4 = listBox3; | |
StyledElement styledElement = (StyledElement)listBox4; | |
string name = "points"; | |
styledElement.Name = name; | |
INameScope nameScope = ((ILogical)styledElement).FindNameScope(); | |
if (nameScope != null) | |
{ | |
nameScope.Register(name, styledElement); | |
} | |
obj = listBox4; | |
BindingExtension bindingExtension3 = new BindingExtension("Points"); | |
IServiceProvider serviceProvider3 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ItemsControl.ItemsProperty; | |
value = bindingExtension3.ProvideTypedValue(serviceProvider3); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(listBox4, ItemsControl.ItemsProperty, context, value); | |
listBox4.Classes = Classes.Parse("default"); | |
AvaloniaList<IDataTemplate> dataTemplates = listBox4.DataTemplates; | |
DataTemplate dataTemplate; | |
IDataTemplate item = dataTemplate = new DataTemplate(); | |
context.ParentsStack.Add(dataTemplate); | |
dataTemplate.Content = XamlIlRuntimeHelpers.DeferredTransformationFactoryV1(new Func<IServiceProvider, object>(!AvaloniaResources.XamlIlClosure_595b3351-69ed-42ce-9e0f-57664b3b4224.Build), context); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
dataTemplates.Add(item); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize8.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize7.EndInit(); | |
IEnumerable items3 = tabControl4.Items; | |
TabItem tabItem9; | |
TabItem tabItem8 = tabItem9 = new TabItem(); | |
((ISupportInitialize)tabItem8).BeginInit(); | |
obj = (object)tabItem8; | |
((IList)items3).Add(obj); | |
ISupportInitialize supportInitialize9 = tabItem3 = tabItem9; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem10 = tabItem3; | |
tabItem10.Header = "Selected"; | |
tabItem10.Classes = Classes.Parse("property"); | |
ContentControl contentControl3; | |
ContentControl contentControl2 = contentControl3 = new ContentControl(); | |
((ISupportInitialize)contentControl2).BeginInit(); | |
tabItem10.Content = contentControl2; | |
ContentControl contentControl4; | |
ISupportInitialize supportInitialize10 = contentControl4 = contentControl3; | |
context.ParentsStack.Add(contentControl4); | |
object target = obj = contentControl4; | |
BindingExtension bindingExtension4 = new BindingExtension("#points.SelectedItem"); | |
IServiceProvider serviceProvider4 = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ContentControl.ContentProperty; | |
value = bindingExtension4.ProvideTypedValue(serviceProvider4); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(target, ContentControl.ContentProperty, context, value); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize10.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize9.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize.EndInit(); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
((ISupportInitialize)A_1).EndInit(); | |
} | |
// Token: 0x0600029C RID: 668 RVA: 0x0003B4A8 File Offset: 0x000396A8 | |
public static void xaml(IServiceProvider A_0, PolyQuadraticBezierSegmentControl A_1) | |
{ | |
XamlIlContext.Context<PolyQuadraticBezierSegmentControl> context = new XamlIlContext.Context<PolyQuadraticBezierSegmentControl>(A_0, new object[] | |
{ | |
(object)!AvaloniaResources.NamespaceInfo:/Views/Path/PolyQuadraticBezierSegmentControl.xaml.Singleton | |
}, "avares://Core2D.UI.Avalonia/Views/Path/PolyQuadraticBezierSegmentControl.xaml"); | |
context.RootObject = A_1; | |
((ISupportInitialize)A_1).BeginInit(); | |
context.ParentsStack.Add(A_1); | |
TabControl tabControl2; | |
TabControl tabControl = tabControl2 = new TabControl(); | |
((ISupportInitialize)tabControl).BeginInit(); | |
A_1.Content = tabControl; | |
TabControl tabControl3; | |
ISupportInitialize supportInitialize = tabControl3 = tabControl2; | |
context.ParentsStack.Add(tabControl3); | |
TabControl tabControl4 = tabControl3; | |
tabControl4.Classes = Classes.Parse("default"); | |
IEnumerable items = tabControl4.Items; | |
TabItem tabItem2; | |
TabItem tabItem = tabItem2 = new TabItem(); | |
((ISupportInitialize)tabItem).BeginInit(); | |
object obj = (object)tabItem; | |
((IList)items).Add(obj); | |
TabItem tabItem3; | |
ISupportInitialize supportInitialize2 = tabItem3 = tabItem2; | |
context.ParentsStack.Add(tabItem3); | |
TabItem tabItem4 = tabItem3; | |
tabItem4.Header = "PolyQuadraticBezierSegment"; | |
tabItem4.Classes = Classes.Parse("property"); | |
ScrollViewer scrollViewer2; | |
ScrollViewer scrollViewer = scrollViewer2 = new ScrollViewer(); | |
((ISupportInitialize)scrollViewer).BeginInit(); | |
tabItem4.Content = scrollViewer; | |
ScrollViewer scrollViewer3; | |
ISupportInitialize supportInitialize3 = scrollViewer3 = scrollViewer2; | |
context.ParentsStack.Add(scrollViewer3); | |
ContentControl contentControl = scrollViewer3; | |
Grid grid2; | |
Grid grid = grid2 = new Grid(); | |
((ISupportInitialize)grid).BeginInit(); | |
contentControl.Content = grid; | |
Grid grid3; | |
ISupportInitialize supportInitialize4 = grid3 = grid2; | |
context.ParentsStack.Add(grid3); | |
Grid grid4 = grid3; | |
grid4.RowDefinitions = RowDefinitions.Parse("Auto,Auto"); | |
grid4.ColumnDefinitions = ColumnDefinitions.Parse("Auto,*"); | |
AvaloniaList<IControl> children = grid4.Children; | |
TextBlock textBlock2; | |
TextBlock textBlock = textBlock2 = new TextBlock(); | |
((ISupportInitialize)textBlock).BeginInit(); | |
children.Add(textBlock); | |
TextBlock textBlock3 = textBlock2; | |
textBlock3.Text = "IsStroked"; | |
textBlock3.Classes = Classes.Parse("left"); | |
Grid.SetRow(textBlock3, 0); | |
Grid.SetColumn(textBlock3, 0); | |
((ISupportInitialize)textBlock3).EndInit(); | |
AvaloniaList<IControl> children2 = grid4.Children; | |
CheckBox checkBox2; | |
CheckBox checkBox = checkBox2 = new CheckBox(); | |
((ISupportInitialize)checkBox).BeginInit(); | |
children2.Add(checkBox); | |
CheckBox checkBox3; | |
ISupportInitialize supportInitialize5 = checkBox3 = checkBox2; | |
context.ParentsStack.Add(checkBox3); | |
object obj2 = obj = checkBox3; | |
BindingExtension bindingExtension = new BindingExtension("IsStroked"); | |
bindingExtension.Mode = BindingMode.TwoWay; | |
IServiceProvider serviceProvider = context; | |
context.ProvideTargetObject = obj; | |
context.ProvideTargetProperty = ToggleButton.IsCheckedProperty; | |
IBinding value = bindingExtension.ProvideTypedValue(serviceProvider); | |
context.ProvideTargetObject = null; | |
context.ProvideTargetProperty = null; | |
XamlIlRuntimeHelpers.ApplyNonMatchingMarkupExtensionV1(obj2, ToggleButton.IsCheckedProperty, context, value); | |
obj2.Classes = Classes.Parse("left"); | |
Grid.SetRow(obj2, 0); | |
Grid.SetColumn(obj2, 1); | |
context.ParentsStack.RemoveAt(context.ParentsStack.Count - 1); | |
supportInitialize5.EndInit(); | |
AvaloniaList<IControl> children3 = grid4.Children; | |
TextBlock textBlock5; | |
TextBlock textBlock4 = textBlock5 = new TextBlock(); | |
((ISupportInitialize)textBlock4).BeginInit(); | |
children3.Add(textBlock4); | |
TextBlock textBlock6 = textBlock5; | |
textBlock6.Text = "IsSmoothJoin"; | |
textBlock6.Classes = Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment