forked from MaterialDesignInXAML/MaterialDesignInXamlToolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutoSuggestTextBoxWithCollectionView.xaml
More file actions
30 lines (29 loc) · 1.54 KB
/
AutoSuggestTextBoxWithCollectionView.xaml
File metadata and controls
30 lines (29 loc) · 1.54 KB
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
<UserControl x:Class="MaterialDesignThemes.UITests.Samples.AutoSuggestBoxes.AutoSuggestTextBoxWithCollectionView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:MaterialDesignThemes.UITests.Samples.AutoSuggestBoxes"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type={x:Type local:AutoSuggestTextBoxWithCollectionViewViewModel}}"
d:DesignHeight="450" d:DesignWidth="800">
<!-- TODO: Selction Similar to SelectedItem="{Binding Suggestions/}" perhaps needing IsSynchronizedWithCurrentItem="True" -->
<StackPanel>
<materialDesign:AutoSuggestBox
materialDesign:HintAssist.HelperText="Name"
materialDesign:TextFieldAssist.HasClearButton="True"
Text="{Binding AutoSuggestText, UpdateSourceTrigger=PropertyChanged}"
Suggestions="{Binding Suggestions}"
SelectedItem="{Binding SelectedItem}"
>
</materialDesign:AutoSuggestBox>
<!--
<ComboBox ItemsSource="{Binding Suggestions}"
Margin="0,10"
IsSynchronizedWithCurrentItem="True"/>
<ListBox ItemsSource="{Binding Suggestions}"
IsSynchronizedWithCurrentItem="True"/>
-->
</StackPanel>
</UserControl>