internal void Prepare(WinPopup container) { SetCenterPopup(container); Container = container; Container.LostFocus += (s, e) => Container.Focus(); Container.IsOpen = true; }
private void SetCenterPopup(WinPopup popup) { var screen_w = System.Windows.SystemParameters.PrimaryScreenWidth; var screen_h = System.Windows.SystemParameters.PrimaryScreenHeight; popup.MaxHeight = screen_h - (screen_h * 0.2); popup.MaxWidth = screen_w - (screen_w * 0.2); var window = System.Windows.Application.Current.MainWindow; popup.Placement = System.Windows.Controls.Primitives.PlacementMode.Center; popup.PlacementTarget = window; }
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); }
private static global::System.Windows.TemplateInstance Instantiate_ControlTemplate_774828d401f24f19ae1284661393c433(global::System.Windows.FrameworkElement templateOwner) { var templateInstance_342dda018fca426091c96e0702ac85fb = new global::System.Windows.TemplateInstance(); templateInstance_342dda018fca426091c96e0702ac85fb.TemplateOwner = templateOwner; var Grid_d2c5f67656be49198b6e3efcfc9cc0d2 = new global::System.Windows.Controls.Grid(); ((global::System.Windows.Controls.Control)templateOwner).RegisterName("Root", Grid_d2c5f67656be49198b6e3efcfc9cc0d2); Grid_d2c5f67656be49198b6e3efcfc9cc0d2.Name = "Root"; var ColumnDefinition_ddc4243eeb7f4fd18e920ded79e45556 = new global::System.Windows.Controls.ColumnDefinition(); ColumnDefinition_ddc4243eeb7f4fd18e920ded79e45556.Width = (global::System.Windows.GridLength)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.GridLength), @"*"); var ColumnDefinition_4e2f238f21944fc592e92958b03da088 = new global::System.Windows.Controls.ColumnDefinition(); ColumnDefinition_4e2f238f21944fc592e92958b03da088.Width = (global::System.Windows.GridLength)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.GridLength), @"Auto"); Grid_d2c5f67656be49198b6e3efcfc9cc0d2.ColumnDefinitions.Add(ColumnDefinition_ddc4243eeb7f4fd18e920ded79e45556); Grid_d2c5f67656be49198b6e3efcfc9cc0d2.ColumnDefinitions.Add(ColumnDefinition_4e2f238f21944fc592e92958b03da088); var TextBox_0a7e5081c37049afb9e46a1ac2fe362e = new global::System.Windows.Controls.TextBox(); ((global::System.Windows.Controls.Control)templateOwner).RegisterName("TextBox", TextBox_0a7e5081c37049afb9e46a1ac2fe362e); TextBox_0a7e5081c37049afb9e46a1ac2fe362e.Name = "TextBox"; global::System.Windows.Controls.Grid.SetColumn(TextBox_0a7e5081c37049afb9e46a1ac2fe362e, (global::System.Int32)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Int32), @"0")); var Binding_eb3d83ca7da44eb18c9db7e502c3b63a = new global::System.Windows.Data.Binding(); Binding_eb3d83ca7da44eb18c9db7e502c3b63a.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Background"); var RelativeSource_323ad6d163484146883d96cb9cc2eb9e = new global::System.Windows.Data.RelativeSource(); RelativeSource_323ad6d163484146883d96cb9cc2eb9e.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_eb3d83ca7da44eb18c9db7e502c3b63a.RelativeSource = RelativeSource_323ad6d163484146883d96cb9cc2eb9e; Binding_eb3d83ca7da44eb18c9db7e502c3b63a.TemplateOwner = templateInstance_342dda018fca426091c96e0702ac85fb; var Binding_4c9a4ab572414c8ea08d360bbb994c8d = new global::System.Windows.Data.Binding(); Binding_4c9a4ab572414c8ea08d360bbb994c8d.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderBrush"); var RelativeSource_08803430b3334fb6860652dcecfd229b = new global::System.Windows.Data.RelativeSource(); RelativeSource_08803430b3334fb6860652dcecfd229b.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_4c9a4ab572414c8ea08d360bbb994c8d.RelativeSource = RelativeSource_08803430b3334fb6860652dcecfd229b; Binding_4c9a4ab572414c8ea08d360bbb994c8d.TemplateOwner = templateInstance_342dda018fca426091c96e0702ac85fb; var Binding_19f0d877cb1f46b9ba5b51e587a8a91f = new global::System.Windows.Data.Binding(); Binding_19f0d877cb1f46b9ba5b51e587a8a91f.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderThickness"); var RelativeSource_4da5f4bc2a4240c5b3d0b9c0218eba0a = new global::System.Windows.Data.RelativeSource(); RelativeSource_4da5f4bc2a4240c5b3d0b9c0218eba0a.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_19f0d877cb1f46b9ba5b51e587a8a91f.RelativeSource = RelativeSource_4da5f4bc2a4240c5b3d0b9c0218eba0a; Binding_19f0d877cb1f46b9ba5b51e587a8a91f.TemplateOwner = templateInstance_342dda018fca426091c96e0702ac85fb; var Binding_9a36a78445064710ab65f1d658bf125b = new global::System.Windows.Data.Binding(); Binding_9a36a78445064710ab65f1d658bf125b.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Padding"); var RelativeSource_0cdb916f603946958c43864dd854b034 = new global::System.Windows.Data.RelativeSource(); RelativeSource_0cdb916f603946958c43864dd854b034.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_9a36a78445064710ab65f1d658bf125b.RelativeSource = RelativeSource_0cdb916f603946958c43864dd854b034; Binding_9a36a78445064710ab65f1d658bf125b.TemplateOwner = templateInstance_342dda018fca426091c96e0702ac85fb; var Button_8764eb0dba1f477a89ef2fce3ec219de = new global::System.Windows.Controls.Button(); ((global::System.Windows.Controls.Control)templateOwner).RegisterName("Button", Button_8764eb0dba1f477a89ef2fce3ec219de); Button_8764eb0dba1f477a89ef2fce3ec219de.Name = "Button"; global::System.Windows.Controls.Grid.SetColumn(Button_8764eb0dba1f477a89ef2fce3ec219de, (global::System.Int32)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Int32), @"1")); Button_8764eb0dba1f477a89ef2fce3ec219de.Content = (global::System.Object)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Object), @"▼"); Button_8764eb0dba1f477a89ef2fce3ec219de.Width = (global::System.Double)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Double), @"30"); Button_8764eb0dba1f477a89ef2fce3ec219de.Margin = (global::System.Windows.Thickness)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Thickness), @"2,0,2,0"); var Binding_9bdb992db4ca466bbc8e2934d73a9d36 = new global::System.Windows.Data.Binding(); Binding_9bdb992db4ca466bbc8e2934d73a9d36.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Foreground"); var RelativeSource_4601b43081ef4624818772ad158addf4 = new global::System.Windows.Data.RelativeSource(); RelativeSource_4601b43081ef4624818772ad158addf4.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_9bdb992db4ca466bbc8e2934d73a9d36.RelativeSource = RelativeSource_4601b43081ef4624818772ad158addf4; Binding_9bdb992db4ca466bbc8e2934d73a9d36.TemplateOwner = templateInstance_342dda018fca426091c96e0702ac85fb; var Binding_53f6accb6bee4d689a7ffd667aaa847a = new global::System.Windows.Data.Binding(); Binding_53f6accb6bee4d689a7ffd667aaa847a.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderBrush"); var RelativeSource_475062fdac094166a83ecc21e5476083 = new global::System.Windows.Data.RelativeSource(); RelativeSource_475062fdac094166a83ecc21e5476083.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_53f6accb6bee4d689a7ffd667aaa847a.RelativeSource = RelativeSource_475062fdac094166a83ecc21e5476083; Binding_53f6accb6bee4d689a7ffd667aaa847a.TemplateOwner = templateInstance_342dda018fca426091c96e0702ac85fb; var Binding_69533b84f62846bf917e1fa02dede28a = new global::System.Windows.Data.Binding(); Binding_69533b84f62846bf917e1fa02dede28a.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderThickness"); var RelativeSource_7a862635a2824423b9375dbcca95d183 = new global::System.Windows.Data.RelativeSource(); RelativeSource_7a862635a2824423b9375dbcca95d183.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_69533b84f62846bf917e1fa02dede28a.RelativeSource = RelativeSource_7a862635a2824423b9375dbcca95d183; Binding_69533b84f62846bf917e1fa02dede28a.TemplateOwner = templateInstance_342dda018fca426091c96e0702ac85fb; var Popup_1a590b878d2d4275850bbfd54ef47c0d = new global::System.Windows.Controls.Primitives.Popup(); ((global::System.Windows.Controls.Control)templateOwner).RegisterName("Popup", Popup_1a590b878d2d4275850bbfd54ef47c0d); Popup_1a590b878d2d4275850bbfd54ef47c0d.Name = "Popup"; Popup_1a590b878d2d4275850bbfd54ef47c0d.VerticalAlignment = global::System.Windows.VerticalAlignment.Bottom; Grid_d2c5f67656be49198b6e3efcfc9cc0d2.Children.Add(TextBox_0a7e5081c37049afb9e46a1ac2fe362e); Grid_d2c5f67656be49198b6e3efcfc9cc0d2.Children.Add(Button_8764eb0dba1f477a89ef2fce3ec219de); Grid_d2c5f67656be49198b6e3efcfc9cc0d2.Children.Add(Popup_1a590b878d2d4275850bbfd54ef47c0d); TextBox_0a7e5081c37049afb9e46a1ac2fe362e.SetBinding(global::System.Windows.Controls.Control.BackgroundProperty, Binding_eb3d83ca7da44eb18c9db7e502c3b63a); TextBox_0a7e5081c37049afb9e46a1ac2fe362e.SetBinding(global::System.Windows.Controls.Control.BorderBrushProperty, Binding_4c9a4ab572414c8ea08d360bbb994c8d); TextBox_0a7e5081c37049afb9e46a1ac2fe362e.SetBinding(global::System.Windows.Controls.Control.BorderThicknessProperty, Binding_19f0d877cb1f46b9ba5b51e587a8a91f); TextBox_0a7e5081c37049afb9e46a1ac2fe362e.SetBinding(global::System.Windows.Controls.Control.PaddingProperty, Binding_9a36a78445064710ab65f1d658bf125b); Button_8764eb0dba1f477a89ef2fce3ec219de.SetBinding(global::System.Windows.Controls.Control.ForegroundProperty, Binding_9bdb992db4ca466bbc8e2934d73a9d36); Button_8764eb0dba1f477a89ef2fce3ec219de.SetBinding(global::System.Windows.Controls.Control.BorderBrushProperty, Binding_53f6accb6bee4d689a7ffd667aaa847a); Button_8764eb0dba1f477a89ef2fce3ec219de.SetBinding(global::System.Windows.Controls.Control.BorderThicknessProperty, Binding_69533b84f62846bf917e1fa02dede28a); templateInstance_342dda018fca426091c96e0702ac85fb.TemplateContent = Grid_d2c5f67656be49198b6e3efcfc9cc0d2; return(templateInstance_342dda018fca426091c96e0702ac85fb); }
private static global::System.Windows.TemplateInstance Instantiate_ControlTemplate_2edd8eda64044039bbbb3e6198beb231(global::System.Windows.FrameworkElement templateOwner) { var templateInstance_e63a3324cd3840b8bb6a590db0a94283 = new global::System.Windows.TemplateInstance(); templateInstance_e63a3324cd3840b8bb6a590db0a94283.TemplateOwner = templateOwner; var Grid_83fdab7a48894fd18f82be1c873d4679 = new global::System.Windows.Controls.Grid(); ((global::System.Windows.Controls.Control)templateOwner).RegisterName("Root", Grid_83fdab7a48894fd18f82be1c873d4679); Grid_83fdab7a48894fd18f82be1c873d4679.Name = "Root"; var ColumnDefinition_40e1206d34ca4895abfe888b8af328dc = new global::System.Windows.Controls.ColumnDefinition(); ColumnDefinition_40e1206d34ca4895abfe888b8af328dc.Width = (global::System.Windows.GridLength)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.GridLength), @"*"); var ColumnDefinition_527f5ebe8b8a487083fa30b3655a5eb4 = new global::System.Windows.Controls.ColumnDefinition(); ColumnDefinition_527f5ebe8b8a487083fa30b3655a5eb4.Width = (global::System.Windows.GridLength)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.GridLength), @"Auto"); Grid_83fdab7a48894fd18f82be1c873d4679.ColumnDefinitions.Add(ColumnDefinition_40e1206d34ca4895abfe888b8af328dc); Grid_83fdab7a48894fd18f82be1c873d4679.ColumnDefinitions.Add(ColumnDefinition_527f5ebe8b8a487083fa30b3655a5eb4); var TextBox_e8ad548eda0047e9a6f219e5890ad050 = new global::System.Windows.Controls.TextBox(); ((global::System.Windows.Controls.Control)templateOwner).RegisterName("TextBox", TextBox_e8ad548eda0047e9a6f219e5890ad050); TextBox_e8ad548eda0047e9a6f219e5890ad050.Name = "TextBox"; global::System.Windows.Controls.Grid.SetColumn(TextBox_e8ad548eda0047e9a6f219e5890ad050, (global::System.Int32)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Int32), @"0")); var Binding_9bfb5d7cf4aa44ac854b34116f9b6d66 = new global::System.Windows.Data.Binding(); Binding_9bfb5d7cf4aa44ac854b34116f9b6d66.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Background"); var RelativeSource_f4ee9cb21d2a4eb1bc400b2c26fd0dcc = new global::System.Windows.Data.RelativeSource(); RelativeSource_f4ee9cb21d2a4eb1bc400b2c26fd0dcc.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_9bfb5d7cf4aa44ac854b34116f9b6d66.RelativeSource = RelativeSource_f4ee9cb21d2a4eb1bc400b2c26fd0dcc; Binding_9bfb5d7cf4aa44ac854b34116f9b6d66.TemplateOwner = templateInstance_e63a3324cd3840b8bb6a590db0a94283; var Binding_c7b34b15a8fd4ff4acf94b73893e4529 = new global::System.Windows.Data.Binding(); Binding_c7b34b15a8fd4ff4acf94b73893e4529.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderBrush"); var RelativeSource_adefd8da691644fcabf12ad850c9e6a9 = new global::System.Windows.Data.RelativeSource(); RelativeSource_adefd8da691644fcabf12ad850c9e6a9.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_c7b34b15a8fd4ff4acf94b73893e4529.RelativeSource = RelativeSource_adefd8da691644fcabf12ad850c9e6a9; Binding_c7b34b15a8fd4ff4acf94b73893e4529.TemplateOwner = templateInstance_e63a3324cd3840b8bb6a590db0a94283; var Binding_b7b85e330b574a7ead3934864e6aef11 = new global::System.Windows.Data.Binding(); Binding_b7b85e330b574a7ead3934864e6aef11.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderThickness"); var RelativeSource_64d04ff10418401993520dd22b42ddbd = new global::System.Windows.Data.RelativeSource(); RelativeSource_64d04ff10418401993520dd22b42ddbd.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_b7b85e330b574a7ead3934864e6aef11.RelativeSource = RelativeSource_64d04ff10418401993520dd22b42ddbd; Binding_b7b85e330b574a7ead3934864e6aef11.TemplateOwner = templateInstance_e63a3324cd3840b8bb6a590db0a94283; var Binding_2ba4d05177cf40298950abe15a9ae41e = new global::System.Windows.Data.Binding(); Binding_2ba4d05177cf40298950abe15a9ae41e.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Padding"); var RelativeSource_6d1393c985644dea9ce7a991de1f4f55 = new global::System.Windows.Data.RelativeSource(); RelativeSource_6d1393c985644dea9ce7a991de1f4f55.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_2ba4d05177cf40298950abe15a9ae41e.RelativeSource = RelativeSource_6d1393c985644dea9ce7a991de1f4f55; Binding_2ba4d05177cf40298950abe15a9ae41e.TemplateOwner = templateInstance_e63a3324cd3840b8bb6a590db0a94283; var Button_98e020b5b2e247c4a65dde2bcf95be2e = new global::System.Windows.Controls.Button(); ((global::System.Windows.Controls.Control)templateOwner).RegisterName("Button", Button_98e020b5b2e247c4a65dde2bcf95be2e); Button_98e020b5b2e247c4a65dde2bcf95be2e.Name = "Button"; global::System.Windows.Controls.Grid.SetColumn(Button_98e020b5b2e247c4a65dde2bcf95be2e, (global::System.Int32)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Int32), @"1")); Button_98e020b5b2e247c4a65dde2bcf95be2e.Content = (global::System.Object)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Object), @"▼"); Button_98e020b5b2e247c4a65dde2bcf95be2e.Width = (global::System.Double)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Double), @"30"); Button_98e020b5b2e247c4a65dde2bcf95be2e.Margin = (global::System.Windows.Thickness)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.Thickness), @"2,0,2,0"); var Binding_fcba859302854aab9b9c439d2e871267 = new global::System.Windows.Data.Binding(); Binding_fcba859302854aab9b9c439d2e871267.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"Foreground"); var RelativeSource_8013d701695b46ad94dd5d59e00a2cb0 = new global::System.Windows.Data.RelativeSource(); RelativeSource_8013d701695b46ad94dd5d59e00a2cb0.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_fcba859302854aab9b9c439d2e871267.RelativeSource = RelativeSource_8013d701695b46ad94dd5d59e00a2cb0; Binding_fcba859302854aab9b9c439d2e871267.TemplateOwner = templateInstance_e63a3324cd3840b8bb6a590db0a94283; var Binding_9df19b0897774b359d6300faa9e11666 = new global::System.Windows.Data.Binding(); Binding_9df19b0897774b359d6300faa9e11666.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderBrush"); var RelativeSource_e7ff9ba4dbf841fa948dc73a29d77a53 = new global::System.Windows.Data.RelativeSource(); RelativeSource_e7ff9ba4dbf841fa948dc73a29d77a53.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_9df19b0897774b359d6300faa9e11666.RelativeSource = RelativeSource_e7ff9ba4dbf841fa948dc73a29d77a53; Binding_9df19b0897774b359d6300faa9e11666.TemplateOwner = templateInstance_e63a3324cd3840b8bb6a590db0a94283; var Binding_60e905380dcb41449831e462e6f80c83 = new global::System.Windows.Data.Binding(); Binding_60e905380dcb41449831e462e6f80c83.Path = (global::System.Windows.PropertyPath)global::DotNetForHtml5.Core.TypeFromStringConverters.ConvertFromInvariantString(typeof(global::System.Windows.PropertyPath), @"BorderThickness"); var RelativeSource_8d6049fc3c4147bdb7282c50459d6651 = new global::System.Windows.Data.RelativeSource(); RelativeSource_8d6049fc3c4147bdb7282c50459d6651.Mode = global::System.Windows.Data.RelativeSourceMode.TemplatedParent; Binding_60e905380dcb41449831e462e6f80c83.RelativeSource = RelativeSource_8d6049fc3c4147bdb7282c50459d6651; Binding_60e905380dcb41449831e462e6f80c83.TemplateOwner = templateInstance_e63a3324cd3840b8bb6a590db0a94283; var Popup_178cd792b23d46ccbcf76958fd333e1d = new global::System.Windows.Controls.Primitives.Popup(); ((global::System.Windows.Controls.Control)templateOwner).RegisterName("Popup", Popup_178cd792b23d46ccbcf76958fd333e1d); Popup_178cd792b23d46ccbcf76958fd333e1d.Name = "Popup"; Popup_178cd792b23d46ccbcf76958fd333e1d.VerticalAlignment = global::System.Windows.VerticalAlignment.Bottom; Grid_83fdab7a48894fd18f82be1c873d4679.Children.Add(TextBox_e8ad548eda0047e9a6f219e5890ad050); Grid_83fdab7a48894fd18f82be1c873d4679.Children.Add(Button_98e020b5b2e247c4a65dde2bcf95be2e); Grid_83fdab7a48894fd18f82be1c873d4679.Children.Add(Popup_178cd792b23d46ccbcf76958fd333e1d); TextBox_e8ad548eda0047e9a6f219e5890ad050.SetBinding(global::System.Windows.Controls.Control.BackgroundProperty, Binding_9bfb5d7cf4aa44ac854b34116f9b6d66); TextBox_e8ad548eda0047e9a6f219e5890ad050.SetBinding(global::System.Windows.Controls.Control.BorderBrushProperty, Binding_c7b34b15a8fd4ff4acf94b73893e4529); TextBox_e8ad548eda0047e9a6f219e5890ad050.SetBinding(global::System.Windows.Controls.Control.BorderThicknessProperty, Binding_b7b85e330b574a7ead3934864e6aef11); TextBox_e8ad548eda0047e9a6f219e5890ad050.SetBinding(global::System.Windows.Controls.Control.PaddingProperty, Binding_2ba4d05177cf40298950abe15a9ae41e); Button_98e020b5b2e247c4a65dde2bcf95be2e.SetBinding(global::System.Windows.Controls.Control.ForegroundProperty, Binding_fcba859302854aab9b9c439d2e871267); Button_98e020b5b2e247c4a65dde2bcf95be2e.SetBinding(global::System.Windows.Controls.Control.BorderBrushProperty, Binding_9df19b0897774b359d6300faa9e11666); Button_98e020b5b2e247c4a65dde2bcf95be2e.SetBinding(global::System.Windows.Controls.Control.BorderThicknessProperty, Binding_60e905380dcb41449831e462e6f80c83); templateInstance_e63a3324cd3840b8bb6a590db0a94283.TemplateContent = Grid_83fdab7a48894fd18f82be1c873d4679; return(templateInstance_e63a3324cd3840b8bb6a590db0a94283); }
internal void Destroy() { Container.IsOpen = false; Container = null; }
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); }