-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathIconAndTextContent.xaml.cs
More file actions
26 lines (20 loc) · 894 Bytes
/
IconAndTextContent.xaml.cs
File metadata and controls
26 lines (20 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
namespace Simple_QR_Code_Maker.Controls;
public sealed partial class IconAndTextContent : StackPanel
{
public IconAndTextContent()
{
InitializeComponent();
}
public Symbol Icon
{ get => (Symbol)GetValue(IconProperty); set => SetValue(IconProperty, value);
}
public static readonly DependencyProperty IconProperty =
DependencyProperty.Register(nameof(Icon), typeof(Symbol), typeof(IconAndTextContent), new PropertyMetadata(Symbol.Placeholder));
public string ContentText
{ get => (string)GetValue(ContentTextProperty); set => SetValue(ContentTextProperty, value);
}
public static readonly DependencyProperty ContentTextProperty =
DependencyProperty.Register(nameof(ContentText), typeof(string), typeof(IconAndTextContent), new PropertyMetadata(string.Empty));
}