假设我有一个如下所示的附加属性定义:
```xml ```
我可以为属性标识符 (
```xml ```
假设我有一个如上所示的附加属性定义:
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
和 SetMyProperty
) 编写文档,但我不知道应该在哪里放置关于 MyClass.MyProperty 附加属性的文档 ,因为它不是一个实际的代码元素。 MSDN库包含这样的文档(请参见例如Grid.Row
),所以一定有可能... 请问我应该在哪里为附加属性放置XML文档注释?