WIn_RustTools/RustTools/Styles/TitleSubtitleControl.cs

34 lines
989 B
C#
Raw Permalink Normal View History

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);
}
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(""));
}