-
I'm trying to setup responsive behaviour for 10's of textboxs. How can I use the below structure for multiple textboxes without decorating each control with the same syntax?
|
Beta Was this translation helpful? Give feedback.
Answered by
Xiaoy312
Oct 1, 2024
Replies: 1 comment 2 replies
-
You can only define a single element underneath a DataTemplate. <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> |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ashah7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can only define a single element underneath a DataTemplate.
What you need is a panel that can contain multiple elements: