diff --git a/Controls/SceneThumbnailStrip.xaml b/Controls/SceneThumbnailStrip.xaml new file mode 100644 index 0000000..4d8228a --- /dev/null +++ b/Controls/SceneThumbnailStrip.xaml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Controls/SceneThumbnailStrip.xaml.cs b/Controls/SceneThumbnailStrip.xaml.cs new file mode 100644 index 0000000..75ce9a0 --- /dev/null +++ b/Controls/SceneThumbnailStrip.xaml.cs @@ -0,0 +1,21 @@ +using System.Windows; +using System.Windows.Controls; +using System.Windows.Input; +using ytLive.Models; +using ytLive.ViewModels; + +namespace ytLive.Controls; + +public partial class SceneThumbnailStrip : UserControl +{ + public SceneThumbnailStrip() + { + InitializeComponent(); + } + + private void Thumbnail_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + if (sender is Border { DataContext: Scene scene } && DataContext is MainViewModel vm) + vm.TransitionToScene(scene); + } +} \ No newline at end of file diff --git a/MainWindow.xaml b/MainWindow.xaml index fff5c87..905ed84 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -93,57 +93,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +