Hi,
I'm using UltraOptionSet.
I want that its text will be on its left side instead of its right side.
How can I do this?
Thanks,Yael
You want the radio buttons in the center? Do you mean vertically or horizontally? Where would the text go?
You could use a CreationFilter to rearrange the items however you want, you just set the Rect of each element.
Thank u...
It Works,..
My real problem is The alignment of RadioButton in the Group.
I want to align radiobutton in the center of the UltraOptionSet. How can i do that?
My option set adds radiobutton at runtime.
Me.UltraOptionSet1.CreationFilter = New MyUltraOptionSetCreationFilter()
Hi Mike,
How can i user this with optionset?
How can I extend this class with my base Control Class?
Hi Yael,
There's no property for this on the control, but you can do it using a CreationFilter, and it's a pretty simple one.
public class MyUltraOptionSetCreationFilter : IUIElementCreationFilter { #region IUIElementCreationFilter Members void IUIElementCreationFilter.AfterCreateChildElements(UIElement parent) { // Do nothing } bool IUIElementCreationFilter.BeforeCreateChildElements(UIElement parent) { OptionSetOptionButtonUIElement optionSetOptionButtonUIElement = parent as OptionSetOptionButtonUIElement; if (optionSetOptionButtonUIElement != null) { optionSetOptionButtonUIElement.CheckAlign = ContentAlignment.MiddleRight; } return false; } #endregion }