|
| 1 | +<UserControl xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:views="clr-namespace:FileTransfer.Views" |
| 6 | + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
| 7 | + x:Class="FileTransfer.Views.Popups.MaximizedTextView"> |
| 8 | + |
| 9 | + <Panel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{StaticResource DarkenedDialogBackground}"> |
| 10 | + <Border CornerRadius="30" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="40,50" |
| 11 | + Background="{StaticResource MainBackground}"> |
| 12 | + <Grid RowDefinitions="Auto,*,Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="20"> |
| 13 | + <Grid Grid.Row="0" RowDefinitions="Auto,Auto" HorizontalAlignment="Stretch"> |
| 14 | + <Viewbox Grid.Row="0" HorizontalAlignment="Left" MaxHeight="54" Margin="0,0,70,0"> |
| 15 | + <TextBlock HorizontalAlignment="Left" FontSize="48" FontWeight="Bold" TextAlignment="Left" |
| 16 | + Foreground="{StaticResource AppPurple}" Margin="0,0,0,5" |
| 17 | + Text="{Binding MaximizedMessage.Sender.Nickname}"/> |
| 18 | + </Viewbox> |
| 19 | + <TextBlock Grid.Row="1" HorizontalAlignment="Left" FontSize="20" Foreground="{StaticResource AppPurple}" |
| 20 | + Text="{Binding MaximizedMessage.TimeString}" FontStyle="Italic"/> |
| 21 | + <Button Grid.Row="0" Grid.RowSpan="2" Classes="selectable-button-effect highlight-no-change" |
| 22 | + HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" |
| 23 | + Command="{Binding $parent[views:MainWindow].DataContext.ToggleMaximizedMessage}" |
| 24 | + CommandParameter="null"> |
| 25 | + <Button.Template> |
| 26 | + <ControlTemplate> |
| 27 | + <Image Source="/Assets/X-Purple.png" Width="40" Height="40"/> |
| 28 | + </ControlTemplate> |
| 29 | + </Button.Template> |
| 30 | + </Button> |
| 31 | + </Grid> |
| 32 | + <Border Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Padding="0,20" |
| 33 | + Margin="0,5" BorderThickness="0,2,0,2" BorderBrush="{StaticResource AppPurple}"> |
| 34 | + <ScrollViewer Classes="standard" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" |
| 35 | + HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto"> |
| 36 | + <TextBox x:Name="TextMessage" Classes="text-acting-textbox" HorizontalAlignment="Stretch" FontSize="24" |
| 37 | + Foreground="{StaticResource Black}" TextAlignment="Left" TextWrapping="Wrap" |
| 38 | + Text="{Binding MaximizedMessage.TextMessage}"/> |
| 39 | + </ScrollViewer> |
| 40 | + </Border> |
| 41 | + <Grid Grid.Row="2" ColumnDefinitions="Auto,Auto" HorizontalAlignment="Left"> |
| 42 | + <Image Grid.Column="0" Source="/Assets/File-Purple.png" Width="28" Height="28" Margin="0,0,10,0"/> |
| 43 | + <TextBlock Grid.Column="1" Foreground="{StaticResource AppPurple}" FontSize="28" |
| 44 | + Text="{Binding MaximizedMessage.Files.Length, StringFormat='{}{0} files attached'}"/> |
| 45 | + </Grid> |
| 46 | + </Grid> |
| 47 | + </Border> |
| 48 | + </Panel> |
| 49 | + |
| 50 | +</UserControl> |
0 commit comments