I need to load a property when the tab this propertu is in get focus. I tried by creating a collectioview source in the xaml and having itemsource binded to the property
<CollectionViewSource x:Key="Sequences_View" Source="{Binding Path=Sequences}"/>
public BindingList<LNE_SEQUENCE> Sequences
{
get
{....}
}
since i do not have to bind my collection to anything I found out that it is never loaded. how can I perform the loading of my property?
I'm using c# and wpf and I'm in MVVM so I do not know when the tab get focus since the view model doesn't know about the UI.