I have a user control in XAML code (a data grid) with this databind statement:
<WpfToolkit:DataGrid ItemsSource="{Binding Path=MyCollection}" x:Name="lvItems"
I use this user control in a presenter class where I istantiate a modelview class and set datacontext to an object in my view
...so MyCollection object is defined in may view class and not in the code behind of my control
but I Want to access this MyCollection property from codebehind because I want to implement a button event that filter my collection source
how can I access to MyCollection in codebehind or where i wrong...?
thanks