|
1 | | -<UserControl x:Class="WPFDevelopers.Samples.ExampleViews.MultiSelectSearchComboBoxExample" |
2 | | - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | | - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | | - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | | - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 | | - xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews" |
7 | | - xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers" |
8 | | - xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls" |
9 | | - xmlns:model="clr-namespace:WPFDevelopers.Sample.Models" |
10 | | - xmlns:vm="clr-namespace:WPFDevelopers.Samples.ViewModels" |
11 | | - mc:Ignorable="d" |
12 | | - d:DesignHeight="450" d:DesignWidth="800"> |
| 1 | +<UserControl |
| 2 | + x:Class="WPFDevelopers.Samples.ExampleViews.MultiSelectSearchComboBoxExample" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls" |
| 6 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 7 | + xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews" |
| 8 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 9 | + xmlns:model="clr-namespace:WPFDevelopers.Sample.Models" |
| 10 | + xmlns:vm="clr-namespace:WPFDevelopers.Samples.ViewModels" |
| 11 | + xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers" |
| 12 | + d:DesignHeight="450" |
| 13 | + d:DesignWidth="800" |
| 14 | + mc:Ignorable="d"> |
13 | 15 | <UserControl.Resources> |
14 | | - <model:HospitalList x:Key="myHospitalList"/> |
| 16 | + <model:HospitalList x:Key="myHospitalList" /> |
15 | 17 | </UserControl.Resources> |
16 | 18 | <controls:CodeViewer> |
17 | 19 | <Grid> |
18 | 20 | <Grid.RowDefinitions> |
19 | | - <RowDefinition Height="Auto"/> |
20 | | - <RowDefinition/> |
| 21 | + <RowDefinition Height="Auto" /> |
| 22 | + <RowDefinition /> |
21 | 23 | </Grid.RowDefinitions> |
22 | | - <Button Content="获取选中" |
23 | | - VerticalAlignment="Bottom" |
| 24 | + <Button |
| 25 | + Margin="0,20,0,0" |
| 26 | + HorizontalAlignment="Center" |
| 27 | + VerticalAlignment="Bottom" |
| 28 | + Click="Button_Click" |
| 29 | + Content="获取选中" |
| 30 | + Style="{StaticResource WD.SuccessPrimaryButton}" /> |
| 31 | + <UniformGrid |
| 32 | + Grid.Row="1" |
| 33 | + Columns="2" |
| 34 | + Rows="2"> |
| 35 | + <wd:MultiSelectionSearchComboBox |
| 36 | + Width="200" |
24 | 37 | HorizontalAlignment="Center" |
25 | | - Click="Button_Click" |
26 | | - Margin="0,20,0,0" |
27 | | - Style="{StaticResource WD.SuccessPrimaryButton}"/> |
28 | | - <UniformGrid Columns="2" Rows="2" Grid.Row="1"> |
| 38 | + VerticalContentAlignment="Center" |
| 39 | + Delimiter="," |
| 40 | + DisplayMemberPath="Number" |
| 41 | + IsSelectAllActive="True" |
| 42 | + ItemsSource="{Binding Drawings}" |
| 43 | + SelectedValuePath="Index"> |
| 44 | + <wd:MultiSelectionSearchComboBox.DataContext> |
| 45 | + <vm:DrawingExampleVM /> |
| 46 | + </wd:MultiSelectionSearchComboBox.DataContext> |
| 47 | + </wd:MultiSelectionSearchComboBox> |
29 | 48 | <wd:MultiSelectionSearchComboBox |
30 | | - VerticalContentAlignment="Center" |
31 | | - HorizontalAlignment="Center" |
32 | | - ItemsSource="{Binding Drawings}" |
33 | | - DisplayMemberPath="Number" |
34 | | - SelectedValuePath="Index" |
35 | | - Width="200" Delimiter="," |
36 | | - IsSelectAllActive="True"> |
| 49 | + Width="200" |
| 50 | + HorizontalAlignment="Center" |
| 51 | + VerticalContentAlignment="Center" |
| 52 | + wd:ElementHelper.Watermark="MultiSelectionSearchComboBox" |
| 53 | + Delimiter="^" |
| 54 | + DisplayMemberPath="Number" |
| 55 | + IsSelectAllActive="True" |
| 56 | + ItemsSource="{Binding Drawings}" |
| 57 | + SearchWatermark="请输入搜索内容" |
| 58 | + SelectedValuePath="Index"> |
37 | 59 | <wd:MultiSelectionSearchComboBox.DataContext> |
38 | | - <vm:DrawingExampleVM/> |
| 60 | + <vm:DrawingExampleVM /> |
39 | 61 | </wd:MultiSelectionSearchComboBox.DataContext> |
40 | 62 | </wd:MultiSelectionSearchComboBox> |
41 | 63 | <wd:MultiSelectionSearchComboBox |
42 | 64 | Name="MyMultiSelectionSearchComboBox2" |
43 | | - VerticalContentAlignment="Center" |
44 | | - HorizontalAlignment="Center" |
45 | | - ItemsSource="{Binding Drawings}" |
46 | | - DisplayMemberPath="Number" |
47 | | - SelectedValuePath="Index" |
48 | | - Width="200" Delimiter="^" |
49 | | - IsSelectAllActive="True" |
50 | | - wd:ElementHelper.Watermark="MultiSelectionSearchComboBox" |
51 | | - SearchWatermark="请输入搜索内容"> |
| 65 | + Width="200" |
| 66 | + HorizontalAlignment="Center" |
| 67 | + VerticalContentAlignment="Center" |
| 68 | + wd:ElementHelper.Watermark="下拉多选搜索" |
| 69 | + Delimiter="^" |
| 70 | + IsSelectAllActive="True" |
| 71 | + SearchWatermark="请输入搜索内容"> |
52 | 72 | <wd:MultiSelectionSearchComboBox.DataContext> |
53 | | - <vm:DrawingExampleVM/> |
| 73 | + <vm:DrawingExampleVM /> |
54 | 74 | </wd:MultiSelectionSearchComboBox.DataContext> |
55 | 75 | </wd:MultiSelectionSearchComboBox> |
56 | 76 | </UniformGrid> |
57 | 77 | </Grid> |
58 | 78 | <controls:CodeViewer.SourceCodes> |
59 | | - <controls:SourceCodeModel |
60 | | - CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/MultiSelectSearchComboBoxExample.xaml" |
61 | | - CodeType="Xaml"/> |
62 | | - <controls:SourceCodeModel |
63 | | - CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/MultiSelectSearchComboBoxExample.xaml.cs" |
64 | | - CodeType="CSharp"/> |
| 79 | + <controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/MultiSelectSearchComboBoxExample.xaml" CodeType="Xaml" /> |
| 80 | + <controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/MultiSelectSearchComboBoxExample.xaml.cs" CodeType="CSharp" /> |
65 | 81 | </controls:CodeViewer.SourceCodes> |
66 | 82 | </controls:CodeViewer> |
67 | 83 | </UserControl> |
0 commit comments