Skip to content

Commit

Permalink
[desktop] Allow resize and add scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Banyc committed Dec 6, 2020
1 parent 0ed5527 commit 739892e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/UnforgettableMemo.WinDesktop/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
xmlns:local="clr-namespace:UnforgettableMemo.WinDesktop"
mc:Ignorable="d"
WindowStyle="None"
AllowsTransparency="True"
AllowsTransparency="False"
ShowInTaskbar="False"
Loaded="Window_Loaded"
Deactivated="Window_Deactivated"
ResizeMode="CanResize"
Title="MainWindow" Height="300" Width="300">
<Grid>
<Grid.RowDefinitions>
Expand All @@ -28,7 +29,7 @@
<Button Grid.Column="2" Name="btnExit" xml:space="preserve" Click="btnExit_Click"> X </Button>
</Grid>
<Grid Grid.Row="1">
<TextBox Name="txtContent" AcceptsReturn="True" Padding="8" FontSize="16" Text="{Binding Path=DisplayingMemo.Content, Mode=TwoWay, UpdateSourceTrigger=Explicit}" TextChanged="txtContent_TextChanged">
<TextBox Name="txtContent" AcceptsReturn="True" Padding="8" FontSize="16" VerticalScrollBarVisibility="Auto" Text="{Binding Path=DisplayingMemo.Content, Mode=TwoWay, UpdateSourceTrigger=Explicit}" TextChanged="txtContent_TextChanged">

</TextBox>
</Grid>
Expand Down

0 comments on commit 739892e

Please sign in to comment.