如何将单选按钮的位置更改为文本的另一侧?
How can I change the position of a radio button to the other side of the text?
我想将单选按钮从文本左侧更改为文本右侧
我目前将其作为 ListBoxEdit
单选按钮样式
<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:ListBoxEdit.StyleSettings>
<dxe:RadioListBoxEditStyleSettings />
</dxe:ListBoxEdit.StyleSettings>
</dxe:ListBoxEdit>
我正在用
填充ListBoxEdit
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;
}
我已尝试查看所有属性,但找不到任何有用的东西。
您应该为您的 Radio Button
设置 属性 FlowDirection="RightToLeft"
使其反转。
<RadioButton Content="Hello" FlowDirection="RightToLeft"/>
我想将单选按钮从文本左侧更改为文本右侧
我目前将其作为 ListBoxEdit
单选按钮样式
<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:ListBoxEdit.StyleSettings>
<dxe:RadioListBoxEditStyleSettings />
</dxe:ListBoxEdit.StyleSettings>
</dxe:ListBoxEdit>
我正在用
填充ListBoxEdit
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;
}
我已尝试查看所有属性,但找不到任何有用的东西。
您应该为您的 Radio Button
设置 属性 FlowDirection="RightToLeft"
使其反转。
<RadioButton Content="Hello" FlowDirection="RightToLeft"/>