0
我創建了一個XamGrid,其中我有一個三級分層結構。我已經在silverlight 4中創建了它。我在xamgrid上面有一個搜索文本框,它是一個自動完成框。當我從AutocompleteBox中選擇一個項目並且輸入priess時,我想讓網格中的項目得到擴展。我怎樣才能做到這一點?? PLZ建議..我的自動完成BOS是:當在搜索菜單中輸入項目時,展開xamgrid項目
<local:ExtendedAutoCompleteBox
x:Name="InvNamesSearch"
WaterMark="TypeName"
HorizontalAlignment="Left" VerticalAlignment="Center"
Width="300" Margin="5,0,0,0"
MinimumPrefixLength="3"
IsTextCompletionEnabled="False"
Text="{Binding InvestmentText, Mode=TwoWay}"
ItemsSource="{Binding A,Mode=OneWay}"
SelectedItem="{Binding Path=B, Mode=TwoWay}"
ValueMemberBinding="{Binding A}"
FilterMode="Contains" Canvas.Left="683" Canvas.Top="9"
Command="{Binding AutoSuggestEnterCommand}">
<local:ExtendedAutoCompleteBox.ItemTemplate>
<DataTemplate>
<TextBlock x:Name="txtAutoSelectedItem" Text="{Binding A}" />
</DataTemplate>
</local:ExtendedAutoCompleteBox.ItemTemplate>
</local:ExtendedAutoCompleteBox>