|
| 1 | +<Window x:Class="Smart_Summarize.MainWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:local="clr-namespace:Smart_Summarize" |
| 7 | + xmlns:PdfViewer="clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF" |
| 8 | + xmlns:Notification="clr-namespace:Syncfusion.Windows.Controls.Notification;assembly=Syncfusion.SfBusyIndicator.WPF" |
| 9 | + xmlns:syncfusionskin ="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF" |
| 10 | + mc:Ignorable="d" |
| 11 | + Title="MainWindow" Height="450" Width="800" WindowState="Maximized" |
| 12 | + syncfusionskin:SfSkinManager.Theme="{syncfusionskin:SkinManagerExtension ThemeName=Windows11Light}"> |
| 13 | + <Grid> |
| 14 | + <Grid.ColumnDefinitions> |
| 15 | + <ColumnDefinition Width="7*"/> |
| 16 | + <ColumnDefinition Width="auto"/> |
| 17 | + </Grid.ColumnDefinitions> |
| 18 | + <PdfViewer:PdfViewerControl x:Name="pdfViewer" Grid.Column="0" Loaded="pdfViewer_Loaded" DocumentLoaded="pdfViewer_DocumentLoaded"/> |
| 19 | + <Grid x:Name="summarizeGrid" Grid.Column="1" Visibility="Collapsed"> |
| 20 | + <Grid.RowDefinitions> |
| 21 | + <RowDefinition Height="41"/> |
| 22 | + <RowDefinition/> |
| 23 | + </Grid.RowDefinitions> |
| 24 | + <Grid.ColumnDefinitions> |
| 25 | + <ColumnDefinition Width="2"/> |
| 26 | + <ColumnDefinition/> |
| 27 | + </Grid.ColumnDefinitions> |
| 28 | + <Border x:Name="seperator" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BorderThickness="1,0,0,0"/> |
| 29 | + <Label x:Name="aI_Title" Grid.Row="0" Grid.Column="1" FontSize="14" Padding="6,12,0,0" Content="AI Assist" Width="350" HorizontalAlignment="Left"/> |
| 30 | + <Grid x:Name="chatGrid" Grid.Row="1" Grid.Column="1"> |
| 31 | + <Grid.RowDefinitions> |
| 32 | + <RowDefinition/> |
| 33 | + <RowDefinition Height="Auto"/> |
| 34 | + </Grid.RowDefinitions> |
| 35 | + <ScrollViewer Grid.Row="0" x:Name="ChatViewer" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" > |
| 36 | + <StackPanel x:Name="chatStack" Orientation="Vertical" > |
| 37 | + </StackPanel> |
| 38 | + </ScrollViewer> |
| 39 | + <StackPanel x:Name="inputStack" Grid.Row="1" Orientation="Horizontal"> |
| 40 | + <Grid> |
| 41 | + <TextBox x:Name="inputText" Width="340" Padding="0,10,35,10" MinHeight="40" VerticalContentAlignment="Top" AcceptsReturn="True" MaxHeight="90" Margin="5,10" TextWrapping="Wrap" GotFocus="inputText_GotFocus" LostFocus="inputText_LostFocus"/> |
| 42 | + <Button x:Name="sendButton" Margin="5,10,6,15" Height="25" Width="25" VerticalAlignment="Bottom" HorizontalAlignment="Right" Click="sendButton_Click"> |
| 43 | + <Button.Content> |
| 44 | + <Path Data="M0.175518 0.119595C0.324511 -0.00749701 0.533985 -0.0359071 0.711447 0.0469087L15.7114 7.04691C15.8875 7.12906 16 7.30574 16 7.5C16 7.69426 15.8875 7.87094 15.7114 7.95309L0.711447 14.9531C0.533985 15.0359 0.324511 15.0075 0.175518 14.8804C0.0265241 14.7533 -0.0345577 14.5509 0.0192423 14.3626L1.98 7.5L0.0192423 0.637361C-0.0345577 0.449061 0.0265241 0.246686 0.175518 0.119595ZM2.87716 8L1.28191 13.5833L14.3177 7.5L1.28191 1.41666L2.87716 7H9.5C9.77615 7 10 7.22386 10 7.5C10 7.77614 9.77615 8 9.5 8H2.87716Z" |
| 45 | + Height="14" Width="16" Fill="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}"/> |
| 46 | + </Button.Content> |
| 47 | + </Button> |
| 48 | + </Grid> |
| 49 | + </StackPanel> |
| 50 | + </Grid> |
| 51 | + <Canvas x:Name="loadingCanvas" Grid.Row="1" Grid.Column="1" Background="White" Opacity="0.5" Visibility="Collapsed"/> |
| 52 | + <Notification:SfBusyIndicator x:Name="loadingIndicator" Grid.Row="1" Grid.Column="1" Visibility="Collapsed" IsBusy="True" AnimationType="DotCircle" ViewboxHeight="75" ViewboxWidth="150"/> |
| 53 | + </Grid> |
| 54 | + </Grid> |
| 55 | +</Window> |
0 commit comments