Hello.
Can I access SearchPanel DataContext from another part of Template?
I have a HightLightningTextBlock Class that I want to use instead of the HighLightTextBlock used in DataColumn. I use a DataTemplate:
<DataTemplate x:Key="HighlightingTemplate"> <highLight:HighlightingTextBlock HighlightText="{Binding SearchViewModel.SearchText}" Text="{Binding Name}"> <i:Interaction.Behaviors> <highLigthBehavior:CellValueBindingBehavior /> </i:Interaction.Behaviors> </highLight:HighlightingTextBlock></DataTemplate>I asign the DataTemplate when adding a column:
column.CellTemplate = (DataTemplate)Application.Current.Resources["HighlightingTemplate"];I want to bind the "HighlightText" property to the "SearchText" of "PART_SearchAsYouTypeTextBox". The "Text" property works well. I use the HighlightingTextBlock because I want to change the background instead of the foreground when type in search box.
Thank you.
