WPF의 추가 XAML 내용에 "홀"을 지정하는 방법이 있습니까?WPF의 새 기본 창의 내용 루트 지정
예를 들어 MySuperWindowBase
을 만들고 레이아웃이있는 XAML이있는 경우 MySuperWindowBase
의 하위 클래스 레이아웃에 추가 콘텐츠를 배치 할 위치를 어떻게 지정할 수 있습니까? 간단한 예를 들어
MySuperWindowBase :
<Window>
<StackPanel>
<!-- Force child content here -->
</StackPanel>
</Window>
MyChildWindow :
<MySuperWindowBase>
<TextBlock>Place me in the StackPanel</TextBlock>
</MySuperWindowBase>
'ContentPresenter'와 (과) 같은 소리입니다. 귀하의 설명은 그 이상으로 당신에게 말하기에는 너무 모호합니다. –
@EdPlunkett 업데이트했습니다. –
이 Xamarin 또는 WPF입니까? StackLayout은 WPF에 존재하지 않습니다. Xamarin에서 WPF를 사용하고 있다면 WPF 답변을 드릴 수 있습니다. –