xamarin/Xamarin.Forms

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

Open

#9,480 建立於 2020年2月8日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)C# (5,644 star) (1,926 fork)batch import
a/framee/2 :clock2:help wantedp/UWPt/bug :bug:up-for-grabs

描述

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

貢獻者指南

[Bug] Setting Frame ControlTemplate causes the whole page to be blank · xamarin/Xamarin.Forms#9480 | Good First Issue