54 lines
1.4 KiB
C#
54 lines
1.4 KiB
C#
|
using Microsoft.UI.Xaml;
|
||
|
using Microsoft.UI.Xaml.Controls;
|
||
|
using Microsoft.UI.Xaml.Data;
|
||
|
using Microsoft.UI.Xaml.Documents;
|
||
|
using Microsoft.UI.Xaml.Input;
|
||
|
using Microsoft.UI.Xaml.Media;
|
||
|
using Microsoft.UI.Xaml.Navigation;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Diagnostics;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
using Windows.Foundation;
|
||
|
using Windows.Foundation.Collections;
|
||
|
|
||
|
namespace RustTools.Styles;
|
||
|
public sealed class TitleSubtitleControl : Control
|
||
|
{
|
||
|
public TitleSubtitleControl()
|
||
|
{
|
||
|
DefaultStyleKey = typeof(TitleSubtitleControl);
|
||
|
}
|
||
|
|
||
|
public string TitleText
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return (string)GetValue(TitleTextProperty);
|
||
|
}
|
||
|
set
|
||
|
{
|
||
|
SetValue(TitleTextProperty, value);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static readonly DependencyProperty TitleTextProperty =
|
||
|
DependencyProperty.Register("TitleText", typeof(string), typeof(TitleSubtitleControl), new PropertyMetadata(""));
|
||
|
|
||
|
public string SubtitleText
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return (string)GetValue(SubtitleTextProperty);
|
||
|
}
|
||
|
set
|
||
|
{
|
||
|
SetValue(SubtitleTextProperty, value);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static readonly DependencyProperty SubtitleTextProperty =
|
||
|
DependencyProperty.Register("SubtitleText", typeof(string), typeof(TitleSubtitleControl), new PropertyMetadata(""));
|
||
|
}
|