Skip to content

Responsiveview with multiple elements #1260

Answered by Xiaoy312
ashah7 asked this question in Q&A
Discussion options

You must be logged in to vote

You can only define a single element underneath a DataTemplate.
What you need is a panel that can contain multiple elements:

    <utu:ResponsiveView.WidestTemplate >
      <DataTemplate>
	      <StackPanel Orientation="Horizontal">
	        <TextBlock Text="Today" TextAlignment="Center" FontSize="20"></TextBlock>
	        <TextBlock Text="AnotherTextBox" FontSize="30"></TextBlock>
	      </StackPanel>
      </DataTemplate>
    </utu:ResponsiveView.WidestTemplate>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ashah7
Comment options

@Xiaoy312
Comment options

Xiaoy312 Oct 3, 2024
Collaborator

Answer selected by ashah7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants