2016-11-16 30 views
0

我想改變從文本左側的單選按鈕,文本如何將單選按鈕的位置更改爲文本的另一側?

screenshot

權我現在有它作爲一個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; 
} 

我試過l通過所有的屬性,但我找不到任何工作。

回答

1

您應該爲您的Radio Button設置屬性FlowDirection="RightToLeft"以使其反轉。

<RadioButton Content="Hello" FlowDirection="RightToLeft"/> 
相關問題