Skip to content

Commit

Permalink
Prepared load prev msg button (inside active convo view's header, nex…
Browse files Browse the repository at this point in the history
…t to the convo id).
  • Loading branch information
GlitchedPolygons committed Jul 2, 2019
1 parent fc73860 commit a1e4f27
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define PARALLEL_LOAD
// Comment out the above line to load messages synchronously when opening convos.
// Comment out the above line to load/decrypt messages synchronously.

using System;
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,37 @@
Height="15"
Margin="1,0,0,0"
Visibility="{Binding ClipboardTickVisibility}" />
</StackPanel>

<!-- Scroll-to-bottom Button -->
<Button Grid.Row="1"
Width="30"
Height="30"
FontSize="20"
Margin="0,-35.5,16,0"
Style="{DynamicResource ScrollToBottomButton}"
ToolTip="Scroll to the bottom of the chat and check out the newest messages."
VerticalAlignment="Top"
HorizontalAlignment="Right"
Name="ScrollToBottomButton"
Click="ScrollToBottomButton_OnClick"/>
<!-- Load previous messages Button -->
<Button Width="30"
Height="30"
FontSize="20"
Margin="0,0,0,0"
Style="{DynamicResource ScrollToBottomButton}"
Command="{Binding LoadPreviousMessagesCommand}"
ToolTip="Load the previous messages that were sent to this convo."
VerticalAlignment="Top"
HorizontalAlignment="Right"
RenderTransformOrigin="0.5,0.5"
Name="LoadPreviousMessagesButton">
<Button.RenderTransform>
<ScaleTransform ScaleY="-1.0" ScaleX="1.0"/>
</Button.RenderTransform>
</Button>

<!-- Scroll-to-bottom Button -->
<Button Width="30"
Height="30"
FontSize="20"
Margin="5,0,0,0"
Style="{DynamicResource ScrollToBottomButton}"
ToolTip="Scroll to the bottom of the chat and check out the newest messages."
VerticalAlignment="Top"
HorizontalAlignment="Right"
Name="ScrollToBottomButton"
Click="ScrollToBottomButton_OnClick"/>

</StackPanel>

<!-- Chatroom -->
<ListBox Grid.Row="1"
Expand Down

0 comments on commit a1e4f27

Please sign in to comment.