2024-08-05 11:38:55 +00:00
|
|
|
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
|
|
|
|
{
|
2024-08-15 01:40:33 +00:00
|
|
|
get => (string)GetValue(TitleTextProperty);
|
|
|
|
set => SetValue(TitleTextProperty, value);
|
2024-08-05 11:38:55 +00:00
|
|
|
}
|
|
|
|
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(""));
|
|
|
|
}
|