Last active
December 3, 2024 14:55
-
-
Save MartinZikmund/75612e8d17e3295cb409a0d2f34a9a3e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="*" /> | |
<RowDefinition Height="Auto" /> | |
</Grid.RowDefinitions> | |
<ListView SelectionMode="None" ItemsSource="{x:Bind ViewModel.Feed, Mode=OneWay}"> | |
<ListView.ItemTemplate> | |
<DataTemplate x:DataType="vm:FeedItemViewModel"> | |
<StackPanel CornerRadius="8" Margin="8,4,8,4" Padding="8" Spacing="8" Background="{ThemeResource ButtonBackground}"> | |
<TextBlock Text="{x:Bind Text}" TextWrapping="WrapWholeWords" /> | |
<TextBlock Text="{x:Bind Author}" FontWeight="Bold" /> | |
<StackPanel Orientation="Horizontal" Spacing="8"> | |
<TextBlock Text="{x:Bind Likes}" /> | |
<SymbolIcon Symbol="Like" /> | |
<TextBlock Text="{x:Bind Replies}" /> | |
<SymbolIcon Symbol="Comment" /> | |
<TextBlock Text="{x:Bind Reposts}" /> | |
<SymbolIcon Symbol="ReShare" /> | |
</StackPanel> | |
</StackPanel> | |
</DataTemplate> | |
</ListView.ItemTemplate> | |
</ListView> | |
<Grid Grid.Row="1" ColumnSpacing="4" Padding="8"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="*" /> | |
<ColumnDefinition Width="Auto" /> | |
<ColumnDefinition Width="Auto" /> | |
</Grid.ColumnDefinitions> | |
<TextBox Text="{x:Bind ViewModel.Text, Mode=TwoWay}" /> | |
<Button Grid.Column="1" Command="{x:Bind ViewModel.PostCommand}"> | |
<SymbolIcon Symbol="Send" /> | |
</Button> | |
<Button Grid.Column="2" Command="{x:Bind ViewModel.RefreshCommand}"> | |
<SymbolIcon Symbol="Refresh" /> | |
</Button> | |
</Grid> | |
</Grid> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment