RickS RickS - 11 months ago 51
C# Question

How can I change the position of a radio button to the other side of the text?

I want to change the radio button from the left of the text to the right of the text


I currently have it as a

with a radio button style

<dxe:ListBoxEdit Name="xrbSplitFreight" Grid.Row="1" Grid.RowSpan="5" FontWeight="Bold" Grid.Column="8" Height="143" VerticalAlignment="center" Width="218" HorizontalAlignment="Left" Grid.ColumnSpan="3" ShowBorder="False" Margin="0,0,0,7">
<dxe:RadioListBoxEditStyleSettings />

and I'm populating the

private void InitSources()
List<String> source = new List<String>();
source.Add("Split Freight");
source.Add("Print Comment");
source.Add("Do Not Split Freight");

xrbSplitFreight.ItemsSource = source;

I have tried looking through all the properties but I can't find anything that will work.

Answer Source

You should set the property FlowDirection="RightToLeft" for your Radio Button to Make it reverse.

<RadioButton Content="Hello" FlowDirection="RightToLeft"/>