<StackPanel Margin="0"> <Label Content="" Width="auto" x:Name="AutocompleteLabel" Style="{DynamicResource LabelStyle}"/> <TextBox x:Name="AutoCompleteTextBox" Width="auto" Margin="0,0,5,0" TextWrapping="NoWrap" TextChanged="AutoCompleteTextBox_TextChanged" GotFocus="AutoCompleteTextBox_GotFocus" Style="{DynamicResource TextBoxStyle}" LostFocus="AutoCompleteTextBox_LostFocus"/> <Popup IsOpen="True" Placement="Bottom" Name="AutoCompletePopUp" AllowsTransparency="True"> <ListBox x:Name="SuggestionListBox" Background="#ffffffff" Visibility="Collapsed" VerticalAlignment="Top" Width="{Binding ElementName=AutoCompleteTextBox}" SelectionChanged="SuggestionListBox_SelectionChanged" HorizontalContentAlignment="Left" Focusable="False" Margin="0,0,5,0"/> </Popup> </StackPanel>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)