Skip to content

Commit

Permalink
⌨ Hit enter in the URL TextBox now starts the download
Browse files Browse the repository at this point in the history
- KeyBinding for linkTextBox
  • Loading branch information
database64128 committed Jul 21, 2020
1 parent 389abdb commit cf5dbce
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Home.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto">
<StackPanel>
<StackPanel Orientation="Horizontal" >
<StackPanel Orientation="Horizontal">
<TextBlock Style="{StaticResource MaterialDesignSubtitle1TextBlock}" VerticalAlignment="Center" Margin="8">Video Link</TextBlock>
<TextBox
x:Name="linkTextBox"
materialDesign:HintAssist.Hint="e.g. https://www.youtube.com/watch?v=b2390GAm4d0"
Margin="8"
Width="384"
Text="{Binding Link, UpdateSourceTrigger=PropertyChanged}"/>
Text="{Binding Link, UpdateSourceTrigger=PropertyChanged}">
<TextBox.InputBindings>
<KeyBinding Gesture="Enter"
Command="{Binding StartDownload}" />
</TextBox.InputBindings>
</TextBox>
<Button
x:Name="downloadButton"
Margin="8 0 8 0"
Expand Down

0 comments on commit cf5dbce

Please sign in to comment.