Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The explicit property <Style.Setters> does not intialize style setters properly #26

Closed
jeromelaban opened this issue Jun 6, 2018 · 0 comments

Comments

@jeromelaban
Copy link
Member

jeromelaban commented Jun 6, 2018

The following style :

	<Style TargetType="Controls:Icon">
		<Style.Setters>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Controls:Icon">
						<TextBlock Text="123" />
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style.Setters>
	</Style>

Is not interpreted properly by the parser, leading to an empty style.

Found in Uno.UI 1.31.0-dev.8

Workaround

Write the style as follows:

	<Style TargetType="Controls:Icon">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Controls:Icon">
					<TextBlock Text="123" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant