34 lines
989 B
C#
34 lines
989 B
C#
using Microsoft.UI.Xaml;
|
|
using Microsoft.UI.Xaml.Controls;
|
|
|
|
namespace RustTools.Styles;
|
|
public sealed class TitleSubtitleControl : Control
|
|
{
|
|
public TitleSubtitleControl()
|
|
{
|
|
DefaultStyleKey = typeof(TitleSubtitleControl);
|
|
}
|
|
|
|
public string TitleText
|
|
{
|
|
get => (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(""));
|
|
} |