Something like:
ItemsSource="{Binding Path=DataContext.LookupList,
RelativeSource={RelativeSource FindAncestor, AncestorType=ListBox}}"
You are right!! Late last night my fogged-up brain looked at this Cheat
Sheet <http://www.nbdtech.com/Free/WpfBinding.pdf> and I tried a few
combinations of RelativeSource but in all cases forgot to put the
DataContext qualifier on the LookupList. I think I forgot that DataContext
is not some magical thing, but just a property that can be used the way you
have.
I found a workaround by making my controller class a resource, loading and
casting it in the code, and using it as a StaticResource in the XAML. This
is technically valid, but slightly messier than just my original code
skeleton which has the style I prefer.
Thanks, Greg
_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf