私がそのように定義された添付プロパティを持っていると仮定します:
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));
プロパティ識別子(MyPropertyProperty
)とアクセサ(GetMyProperty
と)のドキュメントを書くことはできますが、実際のコード要素ではないため、MyClass.MyProperty添付プロパティSetMyProperty
のドキュメントをどこに置くかわかりません。
MSDNライブラリにはそのようなドキュメントが含まれているため(たとえばを参照Grid.Row
)、それが可能である必要があります...
添付プロパティのXMLドキュメントコメントはどこに配置すればよいですか?