In a WPF application, I can create an inherited property by using the FrameworkPropertyMetadata:
property = DependencyProperty.RegisterAttached (..., new FrameworkPropertyMetadata (..., FrameworkPropertyMetadataOptions.Inherits)
However, I can’t find FrameworkPropertyMetadata when writing a windows 8 metro app.
Does it exist?
Is it accomplished in a different way
I think you can’t do that. If you look at the documentation for
DependencyProperty.RegisterAttached(), you will notice it takes aPropertyMetadata. But there is no way to set theInheritsflag or anything similar.