eDosStationFull/eDosStation/TimeColor.xaml.cs

45 lines
1.2 KiB
C#
Raw Permalink Normal View History

2026-08-18 12:15:26 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace eDosStation
{
/// <summary>
/// Interaction logic for TimeColor.xaml
/// </summary>
public partial class TimeColor : UserControl
{
public DateTime ExpireDate
{
get { return (DateTime)GetValue(ExpireDateProperty); }
set { SetValue(ExpireDateProperty, value); }
}
// Using a DependencyProperty as the backing store for Property1.
// This enables animation, styling, binding, etc...
public static readonly DependencyProperty ExpireDateProperty
= DependencyProperty.Register(
"ExpireDate",
typeof(DateTime),
typeof(TimeColor),
new PropertyMetadata(DateTime.Now)
);
public TimeColor()
{
InitializeComponent();
}
}
}