mirror of
https://github.com/Royce551/FRESHMusicPlayer.git
synced 2025-01-22 02:41:48 -05:00
fjdskfjdsf
This commit is contained in:
parent
932fe0b288
commit
e57677901a
3 changed files with 20 additions and 5 deletions
|
@ -35,6 +35,7 @@ namespace FRESHMusicPlayer.ViewModels
|
|||
Artists,
|
||||
Albums,
|
||||
Playlists,
|
||||
Import,
|
||||
Fullscreen
|
||||
}
|
||||
public enum Pane
|
||||
|
@ -399,6 +400,14 @@ namespace FRESHMusicPlayer.ViewModels
|
|||
Text = "Playlists Tab"
|
||||
}
|
||||
};
|
||||
case Tab.Import:
|
||||
return new UserControl
|
||||
{
|
||||
Content = new TextBlock
|
||||
{
|
||||
Text = "Import Tab"
|
||||
}
|
||||
};
|
||||
case Tab.Fullscreen:
|
||||
return new UserControl
|
||||
{
|
||||
|
|
|
@ -187,11 +187,11 @@
|
|||
</Grid>
|
||||
|
||||
<DockPanel DockPanel.Dock="Top" Height="30" LastChildFill="False">
|
||||
<TextBlock Text="Tracks" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="10,0,10,0"/>
|
||||
<TextBlock Text="Artists" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Albums" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Playlists" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Import" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Tracks" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="10,0,10,0" PointerPressed="OnTracksPressed"/>
|
||||
<TextBlock Text="Artists" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="0,0,10,0" PointerPressed="OnArtistsPressed"/>
|
||||
<TextBlock Text="Albums" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="0,0,10,0" PointerPressed="OnAlbumsPressed"/>
|
||||
<TextBlock Text="Playlists" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="0,0,10,0" PointerPressed="OnPlaylistsPressed"/>
|
||||
<TextBlock Text="Import" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="0,0,10,0" PointerPressed="OnImportPressed"/>
|
||||
|
||||
<Button Command="{Binding OpenSettingsCommand}" Margin="0,2,5,2" DockPanel.Dock="Right" ToolTip.Tip="{x:Static resx:Resources.Settings}">
|
||||
<Image Source="{DynamicResource Settings}"/>
|
||||
|
|
|
@ -90,6 +90,12 @@ namespace FRESHMusicPlayer.Views
|
|||
}
|
||||
}
|
||||
|
||||
private void OnTracksPressed(object sender, PointerPressedEventArgs e) => ViewModel.SelectedTab = Tab.Tracks;
|
||||
private void OnArtistsPressed(object sender, PointerPressedEventArgs e) => ViewModel.SelectedTab = Tab.Artists;
|
||||
private void OnAlbumssPressed(object sender, PointerPressedEventArgs e) => ViewModel.SelectedTab = Tab.Albums;
|
||||
private void OnPlaylistsPressed(object sender, PointerPressedEventArgs e) => ViewModel.SelectedTab = Tab.Playlists;
|
||||
private void OnImportPressed(object sender, PointerPressedEventArgs e) => ViewModel.SelectedTab = Tab.Import;
|
||||
|
||||
private void OnPointerWheelChanged(object sender, PointerWheelEventArgs e)
|
||||
{
|
||||
ViewModel.Volume += ((float)((e.Delta.Y) / 100) * 3);
|
||||
|
|
Loading…
Reference in a new issue