xamarin/Xamarin.Forms

[Bug] Setting Frame ControlTemplate causes the whole page to be blank

オープン

#9,480 opened on 2020/02/08

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
a/framee/2 :clock2:help wantedp/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

When trying to set ControlTemplate of a Frame, all other elements will disappear, no errors thrown

Steps to Reproduce

<Frame>
	<Label Text="This is from templated content" />
	<Frame.ControlTemplate>
		<ControlTemplate>
			<Grid BackgroundColor="Red">
				<ContentPresenter />
			</Grid>
		</ControlTemplate>
	</Frame.ControlTemplate>
</Frame>

Expected Behavior

All element to keep appearing on the page, and also the frame to be templated as it is a ContentView

Actual Behavior

The control template is not applied, and all other elements on the page will disappear

Project

FrameControlTemplate.zip

コントリビューターガイド