We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99fa180 commit 15ca8c8Copy full SHA for 15ca8c8
1 file changed
src/editors/xrSdkControls/Controls/ColorPicker/ColorPicker.cs
@@ -13,6 +13,7 @@ public sealed partial class ColorPicker : UserControl
13
private bool hexadecimal;
14
private bool ignoreOnChanged = false;
15
private bool alphaEnabled = true;
16
+ private HorizontalAlignment textAlignment = HorizontalAlignment.Left;
17
18
public ColorPicker()
19
{
@@ -78,6 +79,21 @@ public bool Hexadecimal
78
79
}
80
81
82
+ public HorizontalAlignment TextAlign
83
+ {
84
+ get { return textAlignment; }
85
+ set
86
87
+ if (textAlignment == value)
88
+ return;
89
+ textAlignment = value;
90
+ nslAlpha.TextAlign = value;
91
+ nslRed.TextAlign = value;
92
+ nslGreen.TextAlign = value;
93
+ nslBlue.TextAlign = value;
94
+ }
95
96
+
97
protected override void OnLoad(EventArgs e)
98
99
base.OnLoad(e);
0 commit comments