- TopBar: EDIT ToggleButton, spaced from the REC/ON-AIR segments - MainViewModel: explicit EditingActive drives IsEditMode; YouTube go-live turns edit off, stop turns it on - SceneThumbnailStrip: tiles fixed 196x130 and centered; dark background fills the column so its edge does not move on resize; strip row fixed 154px - MainWindow: left column fixed at 360px; WIDTHS diagnostic log on resize Not pushed.
31 lines
847 B
C#
31 lines
847 B
C#
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();
|
|
Loaded += (_, _) =>
|
|
{
|
|
if (DataContext is MainViewModel vm)
|
|
foreach (var scene in vm.Scenes)
|
|
{
|
|
var staged = scene.IsStaged;
|
|
scene.IsStaged = !staged;
|
|
scene.IsStaged = staged;
|
|
}
|
|
};
|
|
}
|
|
|
|
private void Thumbnail_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
|
{
|
|
if (sender is Border { DataContext: Scene scene } && DataContext is MainViewModel vm)
|
|
vm.TransitionToScene(scene);
|
|
}
|
|
} |