I want 1. from the following image:
1.
My code is here:
<WrapPanel> <TextBlock Text="Title: " Style="{StaticResource Title}" TextWrapping="Wrap" /> <TextBlock Text="{Binding Description" Style="{StaticResource Normal}" TextWrapping="Wrap" /> </WrapPanel>
But if the Description text is short, it is displayed as 2. , if the Description text is long, it is displayed as 3.
Description
2.
3.
How to do it like 1. ?
I solved my question using Run :
Run
<TextBlock TextWrapping="Wrap"> <Run Text="Title: " Style="{StaticResource TitleRun}"/> <Run Text="{Binding Description,Mode=OneWay}" Style="{StaticResource NormalRun}"/> </TextBlock>
Just keep adding them to a table with 2 columns and n number of rows, adding new rows / columns as you add them.
You can create behavior for this.
Source: https://habr.com/ru/post/902187/More articles:android ClassCastException on findViewById - androidReplacing a navigation-based application template in Xcode 4.2? - iosHow to redirect to another page when an authenticated user accesses the login page - redirectAndroid: problem with aspect ratio of video image MediaPlayer - androidRunning a method only once at the beginning before running any tests in PyUnit - pythonChrome History API Issues - javascriptHow to get the names of applications visible on the main screen in Android? - androidsorting data into a tree - javascriptDownload and install an additional application using Install4J - install4jQmake: how to remove the compiler flag for a specific project without changing qmake.conf? - c ++All Articles