All I wanted is to put autocomplete data in a textbox inside a user control listbox. This autocomplete textbox is source from a template. How do I set methods on that Controls:AutoCompleteBox that comes from the application resources and where?
Here is the code from the application.xaml file, notice that Controls:AutoCompleteBox
<Application.Resources>
<Style x:Key="TextBoxDescCell" TargetType="Controls:AutoCompleteBox">
<Setter Property="Margin" Value="5,5,5,5" />
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="Width" Value="400"/>
<Setter Property="Height" Value="25"/>
</Style>
<DataTemplate x:Key="DescriptionCellTemplate">
<Controls:AutoCompleteBox x:Name="descriptionBox" Text="{Binding Path=Description}" Style="{StaticResource TextBoxDescCell}" />
</DataTemplate>
</Application.Resources>
this is from IFormControl.xaml
<ListView ItemsSource="{Binding}" x:Name="listView" HorizontalAlignment="Left" Height="386" Margin="543,66,0,0" VerticalAlignment="Top" Width="663">
<ListView.View>
<GridView>
<GridViewColumn Header="Description" CellTemplate="{StaticResource DescriptionCellTemplate}"></GridViewColumn>
<GridViewColumn Header="Amount" DisplayMemberBinding="{Binding Amount}" Width="100" ></GridViewColumn>
</GridView>
</ListView.View>
</ListView>
I uses tabControl, every tab generates the userControl that uses templates
Dim item As New TabItem
Dim iForm = New IFormControl
item.Content = iForm
tabControl.Items.Add(item)
I have 2 years of experience with visual basic 7 during my college days, and now It has been 7 years I haven't touch it. I just started this one last 3 days ago. Any ideas please? Thanks a lot.