SortDescription with custom attached property
Posted
by Krimson
on Stack Overflow
See other posts from Stack Overflow
or by Krimson
Published on 2010-06-16T13:19:01Z
Indexed on
2010/06/16
13:22 UTC
Read the original article
Hit count: 291
wpf
|attachedproperties
Hi,
In Xaml I can set a custom attached property using local:TestClass.TestProperty="1"
An I can bind to a custom attached property using {Binding Path=(Namespace:[OwnerType].[PropertyName])} {Binding Path=(local:TestClass.TestProperty)}
But how do I specify the namespace when I need to use a custom attached property in a SortDescription? I can bind to an attached property using new SortDescription("(Grid.Row)", ListSortDirection.Descending) but here I can't set a namespace anywhere...
Best Regards, Jesper
© Stack Overflow or respective owner