Files
SpdUp/Views/DebugLogView.xaml.cs
Phil-icyou 19ba425e79 Initial commit: SpdUp Windows Gaming Booster v1.0.0
- .NET 8 WPF app with full MVVM architecture
- One-click boost: CPU, RAM, GPU, network, services, timer resolution
- Real-time system monitor (LibreHardwareMonitor)
- Auto game detection (30+ games)
- RAM optimizer with kernel-level cleanup
- Network optimizer (TCP registry tweaks)
- Service manager, process manager, shader cache cleaner
- Desktop widget overlay
- Debug log viewer
- Custom dark gaming theme with trans pride colors
- 84 unit tests (xUnit)
- Inno Setup installer script
- Landing page website
2026-03-08 17:34:45 +01:00

39 lines
1.1 KiB
C#

using System.Collections.Specialized;
using System.Windows.Controls;
namespace SpdUp.Views;
public partial class DebugLogView : UserControl
{
public DebugLogView()
{
InitializeComponent();
// Auto-scroll to bottom when new items are added
if (LogList.ItemsSource is INotifyCollectionChanged ncc)
{
ncc.CollectionChanged += (_, _) =>
{
if (DataContext is ViewModels.DebugLogViewModel vm && vm.AutoScroll && LogList.Items.Count > 0)
{
LogList.ScrollIntoView(LogList.Items[^1]);
}
};
}
Loaded += (_, _) =>
{
if (LogList.ItemsSource is INotifyCollectionChanged ncc2)
{
ncc2.CollectionChanged += (_, _) =>
{
if (DataContext is ViewModels.DebugLogViewModel vm && vm.AutoScroll && LogList.Items.Count > 0)
{
LogList.ScrollIntoView(LogList.Items[^1]);
}
};
}
};
}
}