Windows store apps windows应用商店应用程序中带有单选按钮的组合框

Windows store apps windows应用商店应用程序中带有单选按钮的组合框,windows-store-apps,winrt-xaml,Windows Store Apps,Winrt Xaml,我有一个windows应用商店应用程序C和XAML,我通过向组合框中添加radiobutton来自定义组合框,其代码如下: <ComboBox x:Name="cmbSelectLocation" Height="55" Margin="10,10,10,10" Background="#eaeaea" BorderBrush="#eaeaea" PlaceholderText="Location" LostFocus="cmbSelectLocation_LostFocus">

我有一个windows应用商店应用程序C和XAML,我通过向组合框中添加radiobutton来自定义组合框,其代码如下:

<ComboBox x:Name="cmbSelectLocation" Height="55" Margin="10,10,10,10" Background="#eaeaea" BorderBrush="#eaeaea" PlaceholderText="Location" LostFocus="cmbSelectLocation_LostFocus">
   <ComboBox.ItemTemplate>
       <DataTemplate>
            <StackPanel Orientation="Horizontal" Background="#eaeaea" IsTapEnabled="False" VerticalAlignment="Center" Height="55" >
                 <RadioButton GroupName="grpLocation" CommandParameter="{Binding}" Click="RadioButton_Click" ClickMode="Press" />
                 <TextBlock Text="{Binding}" SelectionHighlightColor="Blue" Style="{StaticResource BodyTextBlockStyle}" FontSize="20" TextWrapping="Wrap" Foreground="Black" HorizontalAlignment="Left" Margin="15,10,20,10"></TextBlock>
            </StackPanel>
       </DataTemplate>
   </ComboBox.ItemTemplate>
</ComboBox>
在运行应用程序时,看起来是这样的:

我的问题是点击单选按钮,项目被选中,但我的单选按钮没有显示为选中,看起来像这样


有人能告诉我应该怎么做吗?我试图在点击时手动将其设置为选中,但它所做的只是在我展开组合框时显示选中的单选按钮,点击V箭头

在你的单选按钮上发出[ClickMode=Press]快照我添加了@ChrisW。这是我粘贴在上面的代码的一部分no@ChrisW。它不起作用,这是我在问题中使用的代码的一部分。。我没有编辑它..啊,该死的,我用这个技巧来处理类似列表框的项目,我想它在这里也可以用。然而,如果是我,我可能只会制作我自己的东西,只是看起来/表现得像一个组合框,但你可以尝试像这里所示的东西,因为SL通常很像RT。谢谢@ChrisW。谢谢你帮我的忙。。。我将尝试更多的时间,如果它不工作,我可能会删除单选按钮,并将与内置的组合框没有数据模板的一部分