Skip to content

Commit

Permalink
revert 66825a9
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhsontung committed Nov 18, 2024
1 parent b58c06f commit 451a164
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Screenbox.Core/ViewModels/AllVideosPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,11 @@ private void Play(MediaViewModel media)
if (Videos.Count == 0) return;
Messenger.SendQueueAndPlay(media, Videos, true);
}

[RelayCommand]
private void PlayNext(MediaViewModel media)
{
Messenger.SendPlayNext(media);
}
}
}
4 changes: 3 additions & 1 deletion Screenbox/Pages/AllVideosPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:commands="using:Screenbox.Commands"
xmlns:controls="using:Screenbox.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:interactions="using:Screenbox.Controls.Interactions"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
Expand All @@ -11,6 +12,7 @@
xmlns:strings="using:Screenbox.Strings"
xmlns:triggers="using:CommunityToolkit.WinUI"
xmlns:ui="using:CommunityToolkit.WinUI"
xmlns:viewModels="using:Screenbox.Core.ViewModels"
mc:Ignorable="d">

<Page.Resources>
Expand All @@ -26,7 +28,7 @@
Icon="{ui:SymbolIcon Symbol=Play}"
Text="{strings:Resources Key=Play}" />
<MenuFlyoutItem
Command="{x:Bind Common.PlayNextCommand}"
Command="{x:Bind ViewModel.PlayNextCommand}"
CommandParameter="{Binding}"
Icon="{ui:FontIcon FontFamily={StaticResource ScreenboxSymbolThemeFontFamily},
Glyph=&#xF5EB;}"
Expand Down

0 comments on commit 451a164

Please sign in to comment.