WPF设置不能输入的下拉选择框MyLookUpEdit [操作系统入门]
<Base:MyLookUpEdit x:Name="comboBox_ss_no" Height="24" VerticalContentAlignment="Center" Grid.Column="1" Grid.Row="3"DisplayMember
="Name"ValueMember
="Code"AutoPopulateColumns
="False"AutoComplete
="False"IncrementalFiltering
="True"ImmediatePopup
="True"><Base:MyLookUpEdit.ColumnsToFilter>
<Base:ColumnItem FieldName="Name"/>
<Base:ColumnItem FieldName="ZiMu"/>
</Base:MyLookUpEdit.ColumnsToFilter>
<dxg:LookUpEdit.PopupContentTemplate>
<ControlTemplate>
<dxg:GridControl Name="PART_GridControl">
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="Name" Header="民族名称"/>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True" ShowSearchPanelFindButton="True"/>
</dxg:GridControl.View>
</dxg:GridControl>
</ControlTemplate>
</dxg:LookUpEdit.PopupContentTemplate>
</Base:MyLookUpEdit>
此代码为WPF程序开发, 控件效果如下图所示。
WPF:设置不能输入的下拉选择框--MyLookUpEdit
以上是 WPF设置不能输入的下拉选择框MyLookUpEdit [操作系统入门] 的全部内容, 来源链接: utcz.com/z/519455.html