0
다음은 클래스 MyContainer
의 계층 구조입니다. Panel
에는 Children
과 MyContainer
이 있습니다. Panel
의 Children
도 사용할 수 있습니까?Silverlight ContentProperty on abstract 클래스 패널
[ContentProperty("Children", true)]
의 의미는 무엇입니까? 요약 설명 :
를 지정합니다.
그러나 나는 그가 무슨 뜻인지 이해하지 못하고 있습니까?
[ContentProperty("Children", true)]
public abstract class Panel : FrameworkElement
{
//
// Summary:
// Gets the collection of child elements of the panel.
//
// Returns:
// The collection of child objects. The default is an empty collection.
public UIElementCollection Children { get; }
}
public class Canvas : Panel
{....}
public class MyContainer : Canvas
{
public MyContainer();
public ObservableCollection<MyObject> Children {get;}
}