- dropDown.Size2D = new Size2D(900, 108);
- dropDown.Position2D = new Position2D(50, 300);
- dropDown.Style.HeaderText.Text = "TitleArea";
- dropDown.Style.HeaderText.TextColor = new Color(0, 0, 0, 1);
- dropDown.Style.HeaderText.PointSize = 28;
- dropDown.Style.HeaderText.FontFamily = "SamsungOneUI 500C";
- dropDown.Style.Button.Text.Text = "DropDown Text";
- dropDown.Style.Button.Text.TextColor = new Color(0, 0, 0, 1);
- dropDown.Style.Button.Text.PointSize = 20;
- dropDown.Style.Button.Text.FontFamily = "SamsungOneUI 500";
- dropDown.Style.Button.Icon.ResourceUrl = CommonResource.GetFHResourcePath() + "6. List/list_ic_dropdown.png";
- dropDown.Style.Button.Icon.Size = new Size(48, 48);
- dropDown.Style.Button.IconRelativeOrientation = Button.IconOrientation.Right;
- dropDown.Style.Button.PositionX = 56;
+ var style = dropDown.Style;
+ style.Button.BackgroundImage = "";
+ style.Button.Icon.ResourceUrl = CommonResource.GetFHResourcePath() + "6. List/list_ic_dropdown.png";
+ style.Button.Text.PointSize = 20;
+ style.Button.Text.FontFamily = "SamsungOneUI 500";
+ style.Button.Text.TextColor = new Color(0, 0, 0, 1);
+ dropDown.ApplyStyle(style);
+ dropDown.Size = new Size(900, 108);
+ dropDown.HeaderText.Text = "TitleArea";
+ dropDown.HeaderText.TextColor = new Color(0, 0, 0, 1);
+ dropDown.HeaderText.PointSize = 28;
+ dropDown.HeaderText.FontFamily = "SamsungOneUI 500C";
+ dropDown.HeaderText.PositionX = 50;
+ dropDown.Button.ButtonText.Text = "DropDown Text";
+ dropDown.Button.ButtonIcon.Size = new Size(48, 48);
+ dropDown.Button.IconRelativeOrientation = Button.IconOrientation.Right;
+ dropDown.Button.ParentOrigin = ParentOrigin.CenterLeft;
+ dropDown.Button.PivotPoint = PivotPoint.CenterLeft;
+ dropDown.Button.PositionX = 56;