Example #1
0
        private static global::System.Windows.TemplateInstance Instantiate_ControlTemplate_cb31ed612d244fd58aa64042bc419537(global::System.Windows.FrameworkElement templateOwner)
        {
            var templateInstance_d72aae7172324b038efcdd410575590a = new global::System.Windows.TemplateInstance();

            templateInstance_d72aae7172324b038efcdd410575590a.TemplateOwner = templateOwner;
            var Canvas_49ffcd1ce86748b4a50c7215a26ba822 = new global::System.Windows.Controls.Canvas();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("RootCanvas", Canvas_49ffcd1ce86748b4a50c7215a26ba822);
            Canvas_49ffcd1ce86748b4a50c7215a26ba822.Name = "RootCanvas";
            var Rectangle_ae7e1d68442f44d29706c85656055fc2 = new global::System.Windows.Shapes.Rectangle();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("RectangleBehind", Rectangle_ae7e1d68442f44d29706c85656055fc2);
            Rectangle_ae7e1d68442f44d29706c85656055fc2.Name = "RectangleBehind";
            var Binding_5ffb7685b796455f946f92f0c8005665 = new global::System.Windows.Data.Binding();

            Binding_5ffb7685b796455f946f92f0c8005665.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Background");
            var RelativeSource_7887ba0e62374d829443584d324f3d25 = new global::System.Windows.Data.RelativeSource();

            RelativeSource_7887ba0e62374d829443584d324f3d25.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent;

            Binding_5ffb7685b796455f946f92f0c8005665.RelativeSource = RelativeSource_7887ba0e62374d829443584d324f3d25;


            Binding_5ffb7685b796455f946f92f0c8005665.TemplateOwner = templateInstance_d72aae7172324b038efcdd410575590a;


            var Rectangle_801390188ac6495391f90e6a877da71f = new global::System.Windows.Shapes.Rectangle();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("RectangleInFront", Rectangle_801390188ac6495391f90e6a877da71f);
            Rectangle_801390188ac6495391f90e6a877da71f.Name = "RectangleInFront";
            var Binding_5ed878753a3b4efe8d92de66b9bab080 = new global::System.Windows.Data.Binding();

            Binding_5ed878753a3b4efe8d92de66b9bab080.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Foreground");
            var RelativeSource_fa20d292fe744bfa83fe3ab5a0b25a85 = new global::System.Windows.Data.RelativeSource();

            RelativeSource_fa20d292fe744bfa83fe3ab5a0b25a85.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent;

            Binding_5ed878753a3b4efe8d92de66b9bab080.RelativeSource = RelativeSource_fa20d292fe744bfa83fe3ab5a0b25a85;


            Binding_5ed878753a3b4efe8d92de66b9bab080.TemplateOwner = templateInstance_d72aae7172324b038efcdd410575590a;


            Canvas_49ffcd1ce86748b4a50c7215a26ba822.Children.Add(Rectangle_ae7e1d68442f44d29706c85656055fc2);
            Canvas_49ffcd1ce86748b4a50c7215a26ba822.Children.Add(Rectangle_801390188ac6495391f90e6a877da71f);



            Rectangle_ae7e1d68442f44d29706c85656055fc2.SetBinding(global::System.Windows.Shapes.Shape.FillProperty, Binding_5ffb7685b796455f946f92f0c8005665);
            Rectangle_801390188ac6495391f90e6a877da71f.SetBinding(global::System.Windows.Shapes.Shape.FillProperty, Binding_5ed878753a3b4efe8d92de66b9bab080);

            templateInstance_d72aae7172324b038efcdd410575590a.TemplateContent = Canvas_49ffcd1ce86748b4a50c7215a26ba822;
            return(templateInstance_d72aae7172324b038efcdd410575590a);
        }
Example #2
0
 public virtual void setCanvas(global::System.Windows.Controls.Canvas canvas)
 {
     unchecked
     {
         this._canvas             = canvas;
         this._currentPath        = new global::haxe.root.StringBuf();
         this._currentPathIsEmpty = true;
         this._lineWidth          = ((double)(1));
         this._font         = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString("sans-serif"), ((double)(10)), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>))));
         this._textAlign    = global::alphatab.platform.model.TextAlign.Left;
         this._textBaseline = global::alphatab.model.TextBaseline.Default;
         this.setColor(new global::alphatab.platform.model.Color(((int)(255)), ((int)(255)), ((int)(255)), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>)))));
     }
 }
Example #3
0
		public virtual   void setCanvas(global::System.Windows.Controls.Canvas canvas)
		{
			unchecked 
			{
				this._canvas = canvas;
				this._currentPath = new global::haxe.root.StringBuf();
				this._currentPathIsEmpty = true;
				this._lineWidth = ((double) (1) );
				this._font = new global::alphatab.platform.model.Font(global::haxe.lang.Runtime.toString("sans-serif"), ((double) (10) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
				this._textAlign = global::alphatab.platform.model.TextAlign.Left;
				this._textBaseline = global::alphatab.model.TextBaseline.Default;
				this.setColor(new global::alphatab.platform.model.Color(((int) (255) ), ((int) (255) ), ((int) (255) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )));
			}
		}
Example #4
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 672263473:
                {
                    this._textBaseline = ((global::alphatab.model.TextBaseline)(@value));
                    return(@value);
                }


                case 371286681:
                {
                    this._textAlign = ((global::alphatab.platform.model.TextAlign)(@value));
                    return(@value);
                }


                case 1993439662:
                {
                    this._font = ((global::alphatab.platform.model.Font)(@value));
                    return(@value);
                }


                case 1828730163:
                {
                    this._lineWidth = ((double)(global::haxe.lang.Runtime.toDouble(@value)));
                    return(@value);
                }


                case 887070651:
                {
                    this._brush = ((global::System.Windows.Media.SolidColorBrush)(@value));
                    return(@value);
                }


                case 649684599:
                {
                    this._canvas = ((global::System.Windows.Controls.Canvas)(@value));
                    return(@value);
                }


                case 1083160452:
                {
                    this._currentPathIsEmpty = ((bool)(@value));
                    return(@value);
                }


                case 1760390271:
                {
                    this._currentPath = ((global::haxe.root.StringBuf)(@value));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Example #5
0
        static global::System.Windows.TemplateInstance Instantiate_ControlTemplate_6c4d02d4d9bb4705910552a5e82ba6db(global::System.Windows.FrameworkElement templateOwner)
        {
            var templateInstance_afd8731f84664ee7869ebc710198bc74 = new global::System.Windows.TemplateInstance();

            templateInstance_afd8731f84664ee7869ebc710198bc74.TemplateOwner = templateOwner;
            var Canvas_76c5efc7e54f42a2a1f979bea34a10d4 = new global::System.Windows.Controls.Canvas();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("RootCanvas", Canvas_76c5efc7e54f42a2a1f979bea34a10d4);
            Canvas_76c5efc7e54f42a2a1f979bea34a10d4.Name = "RootCanvas";
            var ContentPresenter_c1bbf47361e14d578e96c403ddd418d7 = new global::System.Windows.Controls.ContentPresenter();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("Child", ContentPresenter_c1bbf47361e14d578e96c403ddd418d7);
            ContentPresenter_c1bbf47361e14d578e96c403ddd418d7.Name = "Child";
            var Binding_83a79b3ac6c5403db946e5064b89949f = new global::System.Windows.Data.Binding();

            Binding_83a79b3ac6c5403db946e5064b89949f.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"HorizontalAlignment");
            var RelativeSource_78808037afca4f5d89ce2dde90bdbcab = new global::System.Windows.Data.RelativeSource();

            RelativeSource_78808037afca4f5d89ce2dde90bdbcab.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent;

            Binding_83a79b3ac6c5403db946e5064b89949f.RelativeSource = RelativeSource_78808037afca4f5d89ce2dde90bdbcab;


            Binding_83a79b3ac6c5403db946e5064b89949f.TemplateOwner = templateInstance_afd8731f84664ee7869ebc710198bc74;

            var Binding_bb8c0ddfc42943ba957c53cbf26cc253 = new global::System.Windows.Data.Binding();

            Binding_bb8c0ddfc42943ba957c53cbf26cc253.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"VerticalAlignment");
            var RelativeSource_1b354f2ee5964974a02f31f8fb2a400f = new global::System.Windows.Data.RelativeSource();

            RelativeSource_1b354f2ee5964974a02f31f8fb2a400f.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent;

            Binding_bb8c0ddfc42943ba957c53cbf26cc253.RelativeSource = RelativeSource_1b354f2ee5964974a02f31f8fb2a400f;


            Binding_bb8c0ddfc42943ba957c53cbf26cc253.TemplateOwner = templateInstance_afd8731f84664ee7869ebc710198bc74;

            var Binding_13f023d0b6e44028b00b8e56eea426ac = new global::System.Windows.Data.Binding();

            Binding_13f023d0b6e44028b00b8e56eea426ac.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Content");
            var RelativeSource_4e1197bcef9f459ead5c4023f0241ee9 = new global::System.Windows.Data.RelativeSource();

            RelativeSource_4e1197bcef9f459ead5c4023f0241ee9.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent;

            Binding_13f023d0b6e44028b00b8e56eea426ac.RelativeSource = RelativeSource_4e1197bcef9f459ead5c4023f0241ee9;


            Binding_13f023d0b6e44028b00b8e56eea426ac.TemplateOwner = templateInstance_afd8731f84664ee7869ebc710198bc74;

            var Binding_08887a59fd0c4eebb0ebd2de7562148e = new global::System.Windows.Data.Binding();

            Binding_08887a59fd0c4eebb0ebd2de7562148e.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"ContentTemplate");
            var RelativeSource_8c0de59bddcc4fff9eca8eaaec7e6891 = new global::System.Windows.Data.RelativeSource();

            RelativeSource_8c0de59bddcc4fff9eca8eaaec7e6891.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent;

            Binding_08887a59fd0c4eebb0ebd2de7562148e.RelativeSource = RelativeSource_8c0de59bddcc4fff9eca8eaaec7e6891;


            Binding_08887a59fd0c4eebb0ebd2de7562148e.TemplateOwner = templateInstance_afd8731f84664ee7869ebc710198bc74;


            Canvas_76c5efc7e54f42a2a1f979bea34a10d4.Children.Add(ContentPresenter_c1bbf47361e14d578e96c403ddd418d7);



            ContentPresenter_c1bbf47361e14d578e96c403ddd418d7.SetBinding(global::System.Windows.FrameworkElement.HorizontalAlignmentProperty, Binding_83a79b3ac6c5403db946e5064b89949f);
            ContentPresenter_c1bbf47361e14d578e96c403ddd418d7.SetBinding(global::System.Windows.FrameworkElement.VerticalAlignmentProperty, Binding_bb8c0ddfc42943ba957c53cbf26cc253);
            ContentPresenter_c1bbf47361e14d578e96c403ddd418d7.SetBinding(global::System.Windows.Controls.ContentControl.ContentProperty, Binding_13f023d0b6e44028b00b8e56eea426ac);
            ContentPresenter_c1bbf47361e14d578e96c403ddd418d7.SetBinding(global::System.Windows.Controls.ContentControl.ContentTemplateProperty, Binding_08887a59fd0c4eebb0ebd2de7562148e);

            templateInstance_afd8731f84664ee7869ebc710198bc74.TemplateContent = Canvas_76c5efc7e54f42a2a1f979bea34a10d4;
            return(templateInstance_afd8731f84664ee7869ebc710198bc74);
        }
Example #6
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 672263473:
					{
						this._textBaseline = ((global::alphatab.model.TextBaseline) (@value) );
						return @value;
					}
					
					
					case 371286681:
					{
						this._textAlign = ((global::alphatab.platform.model.TextAlign) (@value) );
						return @value;
					}
					
					
					case 1993439662:
					{
						this._font = ((global::alphatab.platform.model.Font) (@value) );
						return @value;
					}
					
					
					case 1828730163:
					{
						this._lineWidth = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 887070651:
					{
						this._brush = ((global::System.Windows.Media.SolidColorBrush) (@value) );
						return @value;
					}
					
					
					case 649684599:
					{
						this._canvas = ((global::System.Windows.Controls.Canvas) (@value) );
						return @value;
					}
					
					
					case 1083160452:
					{
						this._currentPathIsEmpty = ((bool) (@value) );
						return @value;
					}
					
					
					case 1760390271:
					{
						this._currentPath = ((global::haxe.root.StringBuf) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}