34 lines
698 B
C#
34 lines
698 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using AutoCatCore.Model;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Markup.Xaml;
|
|
|
|
namespace AutoCat.Pages;
|
|
|
|
public partial class ReportPage : UserControl
|
|
{
|
|
#region Dependency properties
|
|
|
|
public static readonly StyledProperty<Vehicle> VehicleProperty =
|
|
AvaloniaProperty.Register<ReportPage, Vehicle>(nameof(Vehicle));
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public Vehicle Vehicle
|
|
{
|
|
get => (Vehicle)GetValue(VehicleProperty);
|
|
set => SetValue(VehicleProperty, value);
|
|
}
|
|
|
|
#endregion
|
|
|
|
public ReportPage()
|
|
{
|
|
InitializeComponent();
|
|
DataContext = this;
|
|
}
|
|
} |