Tho*_*que 5 c# wpf xml-documentation attached-properties
假设我有一个像这样定义的附加属性:
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));
Run Code Online (Sandbox Code Playgroud)
我可以编写属性identifier(MyPropertyProperty)和访问器(GetMyProperty和SetMyProperty)的文档,但我不知道在哪里放置MyClass.MyProperty附加属性的文档,因为它不是一个实际的代码元素.
MSDN库包含此类文档(例如Grid.Row,参见参考资料),因此必须可以......
我应该在哪里放置附加属性的XML文档注释?
| 归档时间: |
|
| 查看次数: |
484 次 |
| 最近记录: |