- Implement ThemeManager for dynamic light/dark theme switching in the application. - Create Wait class for cancellable delays without exceptions for smoother user experience. - Introduce WatchedProductsStore to manage and persist watched products in JSON format. - Add WindowsNotifier for system notifications to inform users of important events. - Develop ProductViewModel to encapsulate product data and manage UI interactions effectively.
29 lines
740 B
C#
29 lines
740 B
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
namespace AutoBidder.Controls
|
|
{
|
|
public partial class SimpleToolbar : UserControl
|
|
{
|
|
public static readonly DependencyProperty LeftContentProperty = DependencyProperty.Register("LeftContent", typeof(object), typeof(SimpleToolbar));
|
|
public static readonly DependencyProperty RightContentProperty = DependencyProperty.Register("RightContent", typeof(object), typeof(SimpleToolbar));
|
|
|
|
public object? LeftContent
|
|
{
|
|
get => GetValue(LeftContentProperty);
|
|
set => SetValue(LeftContentProperty, value);
|
|
}
|
|
|
|
public object? RightContent
|
|
{
|
|
get => GetValue(RightContentProperty);
|
|
set => SetValue(RightContentProperty, value);
|
|
}
|
|
|
|
public SimpleToolbar()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
}
|
|
}
|