I think this property only means anything in the context of the stream. Therefore, you need to encapsulate your code in a stream. Even then, I'm not sure if this will work, because according to the documentation you cannot set this property in xaml.
See link
If I do not consider the wrong property, then ignore it.
mdm20 source
share