Click here to Skip to main content
15,888,031 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used a pop up for auto complete text box.It is working fine but not closing while pressing alt+tab or opening new window.My xaml code is below-

XML
<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>


Plz help me
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900