日期:2014-05-17  浏览次数:20829 次

附代码求问各位大神WPF的UI问题..

这是我UI的效果.. 实现方法就是用一Combobox内嵌一Checkbox..
xaml代码如下.. 
<ComboBox Name="cboSales" 
                              Grid.Row="7" 
                              VerticalAlignment="Center"
                              Grid.ColumnSpan="3" 
                              Margin="10,5,0,5"  
                              ItemsSource="{Binding SalesList}" 
                              Text="{Binding DisplaySales}"
                              SelectedIndex="{Binding SalesSelectedIndex,Mode=OneWay}"
                             >
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <CheckBox IsChecked="{Binding SalesChecked}" Content="{Binding DisplaySales}" IsEnabled="{Binding SalesEnabled}" Click="CheckBox_Click"/>
                            </DataTemplate>
                        </ComboBox.ItemTemplate>
                    </ComboBox>


PM说不够美观,要我把下图红框的内容删除/隐藏(反正就是不在UI上显示)


求问各位大大如何才能做出那种效果.. 求代码并详解..