2017-08-26 33 views
0

使用devexpress wpf工具版本17.1。我在應用程序中使用淺灰色主題。 這裏是我的單選按鈕dev express如何對齊無線電及其在WPF中的內容

  <RadioButton Content="Forms" 
         Grid.Row="0" 
         GroupName="ActionGroup"/> 
     <RadioButton Content="All Questions" 
         Grid.Row="1" 
         GroupName="ActionGroup"/> 

     <RadioButton Content="Current Question" 
         Grid.Row="2" 
         GroupName="ActionGroup"/> 

XAML下面是輸出 enter image description here

內容頂部對齊,希望把它與圖像中心。我將這些單選按鈕放在dx:GroupFrame中,組框標題也有同樣的問題,標題停止對齊。

回答

0

您是否嘗試將RadioButtons的VerticalContentAlignment屬性設置爲Center?

東西沿着這條線:

<RadioButton Content="Current Question" 
    Grid.Row="2" 
    VerticalContentAlignment="Center" 
    GroupName="ActionGroup"/> 
+0

試圖用保證金,填充verticalContentAlignment,textAlignment沒有什麼工作 – GANI