-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.xaml
31 lines (31 loc) · 1.46 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<Window x:Class="Q412037.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:local="clr-namespace:Q412037"
Title="MainWindow" Height="350" Width="525">
<StackPanel>
<dxg:LookUpEdit
x:Name="lookUpEdit" Width="290"
PopupMinHeight="150"
DisplayMember="LongName"
ValueMember="ID"
AutoPopulateColumns="False"
ImmediatePopup="True"
FilterCondition="Contains"
SubstituteDisplayFilter="lookUpEdit_SubstituteDisplayFilter">
<dxg:LookUpEdit.PopupContentTemplate>
<ControlTemplate>
<dxg:GridControl Name="PART_GridControl">
<dxg:GridColumn FieldName="ID" Header="ID"/>
<dxg:GridColumn FieldName="ShortName" Header="Name"/>
<dxg:GridColumn FieldName="LongName" Header="Long Name"/>
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True" BestFitModeOnSourceChange="AllRows"/>
</dxg:GridControl.View>
</dxg:GridControl>
</ControlTemplate>
</dxg:LookUpEdit.PopupContentTemplate>
</dxg:LookUpEdit>
</StackPanel>
</Window>