views:

98

answers:

1

Hi all,

Assuming I have an attached property defined like that :

    public static string GetMyProperty(DependencyObject obj)
    {
        return (string)obj.GetValue(MyPropertyProperty);
    }

    public static void SetMyProperty(DependencyObject obj, string value)
    {
        obj.SetValue(MyPropertyProperty, value);
    }

    // Using a DependencyProperty as the backing store for MyProperty.  This enables animation, styling, binding, etc...
    public static readonly DependencyProperty MyPropertyProperty =
        DependencyProperty.RegisterAttached("MyProperty", typeof(string), typeof(MyClass), new UIPropertyMetadata(0));

I can write the documentation for the property identifier (MyPropertyProperty) and for the accessors (GetMyProperty and SetMyProperty), but I have no idea where to put the documentation for MyClass.MyProperty attached property, since it is not an actual code element.

The MSDN library contains such documentation (see for instance Grid.Row), so it must be possible...

Where should I put the XML documentation comments for an attached property ?

+4  A: 

There's an article about that for Sandcastle.

kek444
Nice... I'll check it out, thanks !
Thomas Levesque
Exactly what I was looking for... thanks again
Thomas Levesque