Skip to content

SplitView control does not propagate the TemplatedParent properly when in a TemplatedControl #24

Closed

Description

@jeromelaban

When a SplitView control is hosted inside a templated Control, inner TemplateBindings in the Pane content are not applied properly.

The code below should show 42 twice.

	<Style TargetType="uwp:MyControl">
		<Setter Property="Tag" Value="42" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="uwp:MyControl">
					<SplitView>
						<SplitView.Pane>
							<Grid>
								<TextBox Text="{TemplatedParent Tag}" />							                                        </Grid>
						</SplitView.Pane>
						<SplitView.Content>
							<Grid>
								<TextBox Text="{TemplatedParent Tag}" />
							</Grid>
						</SplitView.Content>
					</SplitView>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

Activity

  1. added
    kind/bug
    on Jun 6, 2018
  2. jeromelaban commented on Jun 14, 2018

    @jeromelaban
    MemberAuthor

    Fixed as part of #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions