private static global::System.Windows.TemplateInstance Instantiate_ControlTemplate_d2528842177b4d42b5fa6765e0841e5e(global::System.Windows.FrameworkElement templateOwner)
        {
            var templateInstance_82c2e68d6ef24c5e90d456a94e511620 = new global::System.Windows.TemplateInstance();

            templateInstance_82c2e68d6ef24c5e90d456a94e511620.TemplateOwner = templateOwner;
            var StackPanel_88ea3dbd18db4daf93783037aab66e3a = new global::System.Windows.Controls.StackPanel();

            var Border_20d9adcdf5c74d56aacd768851f0395b = new global::System.Windows.Controls.Border();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("OuterBorder", Border_20d9adcdf5c74d56aacd768851f0395b);
            Border_20d9adcdf5c74d56aacd768851f0395b.Name = "OuterBorder";
            var Grid_86d48d9e220e4b56a3265cb1b7073abf         = new global::System.Windows.Controls.Grid();
            var ToggleButton_05554ddcffb4400da5d7d822c4ad4729 = new global::System.Windows.Controls.Primitives.ToggleButton();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("DropDownToggle", ToggleButton_05554ddcffb4400da5d7d822c4ad4729);
            ToggleButton_05554ddcffb4400da5d7d822c4ad4729.Name = "DropDownToggle";
            ToggleButton_05554ddcffb4400da5d7d822c4ad4729.HorizontalAlignment        = global::System.Windows.HorizontalAlignment.Stretch;
            ToggleButton_05554ddcffb4400da5d7d822c4ad4729.VerticalAlignment          = global::System.Windows.VerticalAlignment.Stretch;
            ToggleButton_05554ddcffb4400da5d7d822c4ad4729.HorizontalContentAlignment = global::System.Windows.HorizontalAlignment.Right;
            ToggleButton_05554ddcffb4400da5d7d822c4ad4729.VerticalContentAlignment   = global::System.Windows.VerticalAlignment.Center;
            var Path_970e4c9c536441aaa2b7cec321ab8522 = new global::System.Windows.Shapes.Path();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("arrow", Path_970e4c9c536441aaa2b7cec321ab8522);
            Path_970e4c9c536441aaa2b7cec321ab8522.Name                = "arrow";
            Path_970e4c9c536441aaa2b7cec321ab8522.Visibility          = global::System.Windows.Visibility.Visible;
            Path_970e4c9c536441aaa2b7cec321ab8522.Stroke              = (global::System.Windows.Media.Brush)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Media.Brush), @"Black");
            Path_970e4c9c536441aaa2b7cec321ab8522.Width               = (global::System.Double)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Double), @"13");
            Path_970e4c9c536441aaa2b7cec321ab8522.Height              = (global::System.Double)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Double), @"9");
            Path_970e4c9c536441aaa2b7cec321ab8522.StrokeThickness     = (global::System.Double)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Double), @"3");
            Path_970e4c9c536441aaa2b7cec321ab8522.HorizontalAlignment = global::System.Windows.HorizontalAlignment.Center;
            Path_970e4c9c536441aaa2b7cec321ab8522.VerticalAlignment   = global::System.Windows.VerticalAlignment.Center;
            Path_970e4c9c536441aaa2b7cec321ab8522.Stretch             = global::System.Windows.Media.Stretch.None;
            Path_970e4c9c536441aaa2b7cec321ab8522.Data                = (global::System.Windows.Media.Geometry)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Media.Geometry), @"M 1.5,2.25 L 6.75,7.5 L 12,2.25");

            ToggleButton_05554ddcffb4400da5d7d822c4ad4729.Content = Path_970e4c9c536441aaa2b7cec321ab8522;


            var ContentPresenter_9f86971e1dae47bc8ea39916b2b4fc4c = new global::System.Windows.Controls.ContentPresenter();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("ContentPresenter", ContentPresenter_9f86971e1dae47bc8ea39916b2b4fc4c);
            ContentPresenter_9f86971e1dae47bc8ea39916b2b4fc4c.Name             = "ContentPresenter";
            ContentPresenter_9f86971e1dae47bc8ea39916b2b4fc4c.IsHitTestVisible = (global::System.Boolean)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Boolean), @"False");
            ContentPresenter_9f86971e1dae47bc8ea39916b2b4fc4c.MinHeight        = (global::System.Double)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Double), @"24");
            var Binding_33874615a15f4f4a8e7a1b323f027661 = new global::System.Windows.Data.Binding();

            Binding_33874615a15f4f4a8e7a1b323f027661.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Padding");
            var RelativeSource_07f3d5f00ac24ae69b89f38d0c235cde = new global::System.Windows.Data.RelativeSource();

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

            Binding_33874615a15f4f4a8e7a1b323f027661.RelativeSource = RelativeSource_07f3d5f00ac24ae69b89f38d0c235cde;


            Binding_33874615a15f4f4a8e7a1b323f027661.TemplateOwner = templateInstance_82c2e68d6ef24c5e90d456a94e511620;

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

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

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

            Binding_7636a81645ff4681b77f33c835487470.RelativeSource = RelativeSource_e76ae58c16854addaddd66c7a1c7c2f1;


            Binding_7636a81645ff4681b77f33c835487470.TemplateOwner = templateInstance_82c2e68d6ef24c5e90d456a94e511620;

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

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

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

            Binding_5ac07c7327b640cc8f4d86a5562f82b1.RelativeSource = RelativeSource_0cf506501910429a8f6910618ca3a865;


            Binding_5ac07c7327b640cc8f4d86a5562f82b1.TemplateOwner = templateInstance_82c2e68d6ef24c5e90d456a94e511620;


            Grid_86d48d9e220e4b56a3265cb1b7073abf.Children.Add(ToggleButton_05554ddcffb4400da5d7d822c4ad4729);
            Grid_86d48d9e220e4b56a3265cb1b7073abf.Children.Add(ContentPresenter_9f86971e1dae47bc8ea39916b2b4fc4c);


            Border_20d9adcdf5c74d56aacd768851f0395b.Child = Grid_86d48d9e220e4b56a3265cb1b7073abf;

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

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

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

            Binding_6ba1ab7c5d3b4b12902abe26bb950e80.RelativeSource = RelativeSource_4201ad0529f54230bb21db229f3bef75;


            Binding_6ba1ab7c5d3b4b12902abe26bb950e80.TemplateOwner = templateInstance_82c2e68d6ef24c5e90d456a94e511620;

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

            Binding_2d77a6f469534fe8ae41b6bb9c1561b5.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderBrush");
            var RelativeSource_6c5f4f40220a4b309bdd18fc28fc3f1a = new global::System.Windows.Data.RelativeSource();

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

            Binding_2d77a6f469534fe8ae41b6bb9c1561b5.RelativeSource = RelativeSource_6c5f4f40220a4b309bdd18fc28fc3f1a;


            Binding_2d77a6f469534fe8ae41b6bb9c1561b5.TemplateOwner = templateInstance_82c2e68d6ef24c5e90d456a94e511620;

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

            Binding_401409c10d7a44d08f75e12adf5a1fec.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderThickness");
            var RelativeSource_9455df17ab39482e83977458c783f35f = new global::System.Windows.Data.RelativeSource();

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

            Binding_401409c10d7a44d08f75e12adf5a1fec.RelativeSource = RelativeSource_9455df17ab39482e83977458c783f35f;


            Binding_401409c10d7a44d08f75e12adf5a1fec.TemplateOwner = templateInstance_82c2e68d6ef24c5e90d456a94e511620;


            var Popup_71bbbf41c17841138e8da63a6e3cdbe0 = new global::System.Windows.Controls.Primitives.Popup();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("Popup", Popup_71bbbf41c17841138e8da63a6e3cdbe0);
            Popup_71bbbf41c17841138e8da63a6e3cdbe0.Name   = "Popup";
            Popup_71bbbf41c17841138e8da63a6e3cdbe0.IsOpen = (global::System.Boolean)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Boolean), @"False");
            var Border_ffceabf3c7fd4ca6bf00147427628def = new global::System.Windows.Controls.Border();

            Border_ffceabf3c7fd4ca6bf00147427628def.Background      = (global::System.Windows.Media.Brush)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Media.Brush), @"White");
            Border_ffceabf3c7fd4ca6bf00147427628def.BorderBrush     = (global::System.Windows.Media.Brush)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Media.Brush), @"Black");
            Border_ffceabf3c7fd4ca6bf00147427628def.BorderThickness = (global::System.Windows.Thickness)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Thickness), @"1");
            var ScrollViewer_75902183557049a3a0c20c1c02e344cf = new global::System.Windows.Controls.ScrollViewer();

            ScrollViewer_75902183557049a3a0c20c1c02e344cf.VerticalScrollBarVisibility   = global::System.Windows.Controls.ScrollBarVisibility.Auto;
            ScrollViewer_75902183557049a3a0c20c1c02e344cf.HorizontalScrollBarVisibility = global::System.Windows.Controls.ScrollBarVisibility.Disabled;
            var ItemsPresenter_3395888e6b3247d79b98cf06e33db542 = new global::System.Windows.Controls.ItemsPresenter();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("ItemsHost", ItemsPresenter_3395888e6b3247d79b98cf06e33db542);
            ItemsPresenter_3395888e6b3247d79b98cf06e33db542.Name = "ItemsHost";

            ScrollViewer_75902183557049a3a0c20c1c02e344cf.Content = ItemsPresenter_3395888e6b3247d79b98cf06e33db542;

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

            Binding_3cf6d6b574d54c96b2f3afda89bfc3a5.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"MaxDropDownHeight");
            var RelativeSource_e259ece9a2184ea5ae4f20c97a5eb0ff = new global::System.Windows.Data.RelativeSource();

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

            Binding_3cf6d6b574d54c96b2f3afda89bfc3a5.RelativeSource = RelativeSource_e259ece9a2184ea5ae4f20c97a5eb0ff;


            Binding_3cf6d6b574d54c96b2f3afda89bfc3a5.TemplateOwner = templateInstance_82c2e68d6ef24c5e90d456a94e511620;


            Border_ffceabf3c7fd4ca6bf00147427628def.Child = ScrollViewer_75902183557049a3a0c20c1c02e344cf;


            Popup_71bbbf41c17841138e8da63a6e3cdbe0.Child = Border_ffceabf3c7fd4ca6bf00147427628def;


            StackPanel_88ea3dbd18db4daf93783037aab66e3a.Children.Add(Border_20d9adcdf5c74d56aacd768851f0395b);
            StackPanel_88ea3dbd18db4daf93783037aab66e3a.Children.Add(Popup_71bbbf41c17841138e8da63a6e3cdbe0);



            ContentPresenter_9f86971e1dae47bc8ea39916b2b4fc4c.SetBinding(global::System.Windows.FrameworkElement.MarginProperty, Binding_33874615a15f4f4a8e7a1b323f027661);
            ContentPresenter_9f86971e1dae47bc8ea39916b2b4fc4c.SetBinding(global::System.Windows.Controls.ContentControl.ContentProperty, Binding_7636a81645ff4681b77f33c835487470);
            ContentPresenter_9f86971e1dae47bc8ea39916b2b4fc4c.SetBinding(global::System.Windows.Controls.ContentControl.ContentTemplateProperty, Binding_5ac07c7327b640cc8f4d86a5562f82b1);
            Border_20d9adcdf5c74d56aacd768851f0395b.SetBinding(global::System.Windows.Controls.Border.BackgroundProperty, Binding_6ba1ab7c5d3b4b12902abe26bb950e80);
            Border_20d9adcdf5c74d56aacd768851f0395b.SetBinding(global::System.Windows.Controls.Border.BorderBrushProperty, Binding_2d77a6f469534fe8ae41b6bb9c1561b5);
            Border_20d9adcdf5c74d56aacd768851f0395b.SetBinding(global::System.Windows.Controls.Border.BorderThicknessProperty, Binding_401409c10d7a44d08f75e12adf5a1fec);
            ScrollViewer_75902183557049a3a0c20c1c02e344cf.SetBinding(global::System.Windows.FrameworkElement.MaxHeightProperty, Binding_3cf6d6b574d54c96b2f3afda89bfc3a5);

            templateInstance_82c2e68d6ef24c5e90d456a94e511620.TemplateContent = StackPanel_88ea3dbd18db4daf93783037aab66e3a;
            return(templateInstance_82c2e68d6ef24c5e90d456a94e511620);
        }
示例#2
0
        private static global::System.Windows.TemplateInstance Instantiate_ControlTemplate_3c33b65970c541478d70fb65c9715b36(global::System.Windows.FrameworkElement templateOwner)
        {
            var templateInstance_9cf6f4031e244e378fbd44b6da78d542 = new global::System.Windows.TemplateInstance();

            templateInstance_9cf6f4031e244e378fbd44b6da78d542.TemplateOwner = templateOwner;
            var StackPanel_285680a0177a41e79eff544367e580f4 = new global::System.Windows.Controls.StackPanel();

            var Border_27d65d57cd084f3eb3867bd4318fbc3d = new global::System.Windows.Controls.Border();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("OuterBorder", Border_27d65d57cd084f3eb3867bd4318fbc3d);
            Border_27d65d57cd084f3eb3867bd4318fbc3d.Name = "OuterBorder";
            var Grid_702cfd4eccf44d1ab3820e53ffaf7a02         = new global::System.Windows.Controls.Grid();
            var ToggleButton_25d231cfe9064899839e7f5938a42ad4 = new global::System.Windows.Controls.Primitives.ToggleButton();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("DropDownToggle", ToggleButton_25d231cfe9064899839e7f5938a42ad4);
            ToggleButton_25d231cfe9064899839e7f5938a42ad4.Name = "DropDownToggle";
            ToggleButton_25d231cfe9064899839e7f5938a42ad4.HorizontalAlignment        = global::System.Windows.HorizontalAlignment.Stretch;
            ToggleButton_25d231cfe9064899839e7f5938a42ad4.VerticalAlignment          = global::System.Windows.VerticalAlignment.Stretch;
            ToggleButton_25d231cfe9064899839e7f5938a42ad4.HorizontalContentAlignment = global::System.Windows.HorizontalAlignment.Right;
            ToggleButton_25d231cfe9064899839e7f5938a42ad4.VerticalContentAlignment   = global::System.Windows.VerticalAlignment.Center;
            ToggleButton_25d231cfe9064899839e7f5938a42ad4.Visibility = global::System.Windows.Visibility.Collapsed;
            var Path_c434a408d2ad4c19b543923c76b79332 = new global::System.Windows.Shapes.Path();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("arrow", Path_c434a408d2ad4c19b543923c76b79332);
            Path_c434a408d2ad4c19b543923c76b79332.Name                = "arrow";
            Path_c434a408d2ad4c19b543923c76b79332.Visibility          = global::System.Windows.Visibility.Visible;
            Path_c434a408d2ad4c19b543923c76b79332.Stroke              = (global::System.Windows.Media.Brush)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Media.Brush), @"Black");
            Path_c434a408d2ad4c19b543923c76b79332.Width               = (global::System.Double)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Double), @"13");
            Path_c434a408d2ad4c19b543923c76b79332.Height              = (global::System.Double)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Double), @"9");
            Path_c434a408d2ad4c19b543923c76b79332.StrokeThickness     = (global::System.Double)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Double), @"3");
            Path_c434a408d2ad4c19b543923c76b79332.HorizontalAlignment = global::System.Windows.HorizontalAlignment.Center;
            Path_c434a408d2ad4c19b543923c76b79332.VerticalAlignment   = global::System.Windows.VerticalAlignment.Center;
            Path_c434a408d2ad4c19b543923c76b79332.Stretch             = global::System.Windows.Media.Stretch.Fill;
            Path_c434a408d2ad4c19b543923c76b79332.Data                = (global::System.Windows.Media.Geometry)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Media.Geometry), @"M 1,1.5 L 4.5,5 L 8,1.5");

            ToggleButton_25d231cfe9064899839e7f5938a42ad4.Content = Path_c434a408d2ad4c19b543923c76b79332;


            var TextBox_d5d5e82862824f008dcde072fa2252aa = new global::System.Windows.Controls.TextBox();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("PART_TextBox", TextBox_d5d5e82862824f008dcde072fa2252aa);
            TextBox_d5d5e82862824f008dcde072fa2252aa.Name = "PART_TextBox";
            var Binding_f559f93a7d0942d2a17d88186096d106 = new global::System.Windows.Data.Binding();

            Binding_f559f93a7d0942d2a17d88186096d106.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Text");
            Binding_f559f93a7d0942d2a17d88186096d106.Mode = global::System.Windows.Data.BindingMode.TwoWay;
            var RelativeSource_6038741616a04005933efbd77422536d = new global::System.Windows.Data.RelativeSource();

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

            Binding_f559f93a7d0942d2a17d88186096d106.RelativeSource = RelativeSource_6038741616a04005933efbd77422536d;


            Binding_f559f93a7d0942d2a17d88186096d106.TemplateOwner = templateInstance_9cf6f4031e244e378fbd44b6da78d542;


            Grid_702cfd4eccf44d1ab3820e53ffaf7a02.Children.Add(ToggleButton_25d231cfe9064899839e7f5938a42ad4);
            Grid_702cfd4eccf44d1ab3820e53ffaf7a02.Children.Add(TextBox_d5d5e82862824f008dcde072fa2252aa);


            Border_27d65d57cd084f3eb3867bd4318fbc3d.Child = Grid_702cfd4eccf44d1ab3820e53ffaf7a02;

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

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

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

            Binding_3c42e9f9a63640b7af3b2f5a4baae5bf.RelativeSource = RelativeSource_59b93c1a74a943f887c925b1e15be11a;


            Binding_3c42e9f9a63640b7af3b2f5a4baae5bf.TemplateOwner = templateInstance_9cf6f4031e244e378fbd44b6da78d542;

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

            Binding_770feaae588b4551b205a60e41588f10.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderBrush");
            var RelativeSource_cc16e563a9c64ac1a2ec1de25864bdee = new global::System.Windows.Data.RelativeSource();

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

            Binding_770feaae588b4551b205a60e41588f10.RelativeSource = RelativeSource_cc16e563a9c64ac1a2ec1de25864bdee;


            Binding_770feaae588b4551b205a60e41588f10.TemplateOwner = templateInstance_9cf6f4031e244e378fbd44b6da78d542;

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

            Binding_d915b91d4f76440489a36543faa32878.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderThickness");
            var RelativeSource_87f66a27501e481883df26e83d12a020 = new global::System.Windows.Data.RelativeSource();

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

            Binding_d915b91d4f76440489a36543faa32878.RelativeSource = RelativeSource_87f66a27501e481883df26e83d12a020;


            Binding_d915b91d4f76440489a36543faa32878.TemplateOwner = templateInstance_9cf6f4031e244e378fbd44b6da78d542;


            var Popup_7e1c46b466c54030be7cc857807fe2fd = new global::System.Windows.Controls.Primitives.Popup();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("Popup", Popup_7e1c46b466c54030be7cc857807fe2fd);
            Popup_7e1c46b466c54030be7cc857807fe2fd.Name   = "Popup";
            Popup_7e1c46b466c54030be7cc857807fe2fd.IsOpen = (global::System.Boolean)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Boolean), @"False");
            var Border_e86fd73fc01c4bfd8d7e2c3598b8197d = new global::System.Windows.Controls.Border();

            Border_e86fd73fc01c4bfd8d7e2c3598b8197d.Background      = (global::System.Windows.Media.Brush)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Media.Brush), @"White");
            Border_e86fd73fc01c4bfd8d7e2c3598b8197d.BorderBrush     = (global::System.Windows.Media.Brush)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Media.Brush), @"Black");
            Border_e86fd73fc01c4bfd8d7e2c3598b8197d.BorderThickness = (global::System.Windows.Thickness)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Thickness), @"1");
            var ScrollViewer_febc1aea8aab4404a2899bc90468013e = new global::System.Windows.Controls.ScrollViewer();

            ScrollViewer_febc1aea8aab4404a2899bc90468013e.VerticalScrollBarVisibility   = global::System.Windows.Controls.ScrollBarVisibility.Auto;
            ScrollViewer_febc1aea8aab4404a2899bc90468013e.HorizontalScrollBarVisibility = global::System.Windows.Controls.ScrollBarVisibility.Disabled;
            var ItemsPresenter_477893b8306546b7a300d0eb6d5278fe = new global::System.Windows.Controls.ItemsPresenter();

            ((global::System.Windows.Controls.Control)templateOwner).RegisterName("ItemsHost", ItemsPresenter_477893b8306546b7a300d0eb6d5278fe);
            ItemsPresenter_477893b8306546b7a300d0eb6d5278fe.Name = "ItemsHost";

            ScrollViewer_febc1aea8aab4404a2899bc90468013e.Content = ItemsPresenter_477893b8306546b7a300d0eb6d5278fe;

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

            Binding_a4e0a7bdc9404505a5305270c56d9f6c.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"MaxDropDownHeight");
            var RelativeSource_5e5e6d1ad4bd425596aca461ef4fa564 = new global::System.Windows.Data.RelativeSource();

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

            Binding_a4e0a7bdc9404505a5305270c56d9f6c.RelativeSource = RelativeSource_5e5e6d1ad4bd425596aca461ef4fa564;


            Binding_a4e0a7bdc9404505a5305270c56d9f6c.TemplateOwner = templateInstance_9cf6f4031e244e378fbd44b6da78d542;


            Border_e86fd73fc01c4bfd8d7e2c3598b8197d.Child = ScrollViewer_febc1aea8aab4404a2899bc90468013e;


            Popup_7e1c46b466c54030be7cc857807fe2fd.Child = Border_e86fd73fc01c4bfd8d7e2c3598b8197d;


            StackPanel_285680a0177a41e79eff544367e580f4.Children.Add(Border_27d65d57cd084f3eb3867bd4318fbc3d);
            StackPanel_285680a0177a41e79eff544367e580f4.Children.Add(Popup_7e1c46b466c54030be7cc857807fe2fd);



            TextBox_d5d5e82862824f008dcde072fa2252aa.SetBinding(global::System.Windows.Controls.TextBox.TextProperty, Binding_f559f93a7d0942d2a17d88186096d106);
            Border_27d65d57cd084f3eb3867bd4318fbc3d.SetBinding(global::System.Windows.Controls.Border.BackgroundProperty, Binding_3c42e9f9a63640b7af3b2f5a4baae5bf);
            Border_27d65d57cd084f3eb3867bd4318fbc3d.SetBinding(global::System.Windows.Controls.Border.BorderBrushProperty, Binding_770feaae588b4551b205a60e41588f10);
            Border_27d65d57cd084f3eb3867bd4318fbc3d.SetBinding(global::System.Windows.Controls.Border.BorderThicknessProperty, Binding_d915b91d4f76440489a36543faa32878);
            ScrollViewer_febc1aea8aab4404a2899bc90468013e.SetBinding(global::System.Windows.FrameworkElement.MaxHeightProperty, Binding_a4e0a7bdc9404505a5305270c56d9f6c);

            templateInstance_9cf6f4031e244e378fbd44b6da78d542.TemplateContent = StackPanel_285680a0177a41e79eff544367e580f4;
            return(templateInstance_9cf6f4031e244e378fbd44b6da78d542);
        }