You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I need to display a long list of wide lines of text (logfiles) in a view. I find CollectionView should be the most suitable, but you can correct me.
I can't make the list to scroll down and(!) right so see the complete lines. It only scrolls downwards.
Can you explain how to do so?
<CollectionView x:Name="TelegramViewer" Grid.Row="0" Grid.Column="0" ItemSizingStrategy="MeasureFirstItem" SelectionMode="Multiple" HorizontalScrollBarVisibility="Always" VerticalScrollBarVisibility="Always"> <CollectionView.ItemTemplate> <DataTemplate> <Grid Padding="1" CompressedLayout.IsHeadless="True"> <Grid.ColumnDefinitions> <ColumnDefinition Width="220" /> <ColumnDefinition Width="45" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="25" /> </Grid.RowDefinitions> <Label Text="{Binding Time, Mode=OneTime}" HeightRequest="25" Padding="10,0,0,0"/> <Label Grid.Column="1" Text="{Binding TrainId, Mode=OneTime}" HeightRequest="25"/> <Label Grid.Column="2" Text="{Binding Converter={StaticResource messageConverter}, Mode=OneTime}" LineBreakMode="NoWrap" HeightRequest="25"/> </Grid> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView>
Beta Was this translation helpful? Give feedback.
All reactions