System.Windows.DispatcherObject
에서 파생 된 개체가 있지만 ControlTemplate
을 정의한 경우바인딩을 통해 비 UIElement 렌더링
public class B
{
public A NonUIElement {get; set;}
}
의 구성원
는public class A : System.Windows.DependencyObject
{
public ControlTemplate ControlTemplate {get; set;}
}
테두리 DataContext
가 B의 인스턴스로 설정되었다고 가정 결합 등
<Border Name="Border">
<ContentPresenter Margin="5,0" Content="{Binding NonUIElement }"/>
</Border>
에서이 오브젝트를 렌더링하는 것이 가능 ?
네, 작동해야합니다. 시도해 보셨습니까? –