mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-31 14:16:35 +08:00
feat: add CopyText;
This commit is contained in:
@@ -76,6 +76,11 @@ public partial class VariableItemViewModel : ObservableObject
|
||||
[ObservableProperty] private string? _description;
|
||||
[ObservableProperty] private string? _value;
|
||||
|
||||
public string CopyText =>
|
||||
$"""
|
||||
<StaticResource x:Key="" ResourceKey="{ResourceKey}" />
|
||||
""";
|
||||
|
||||
public VariableItemViewModel(string description, object value, string resourceKey)
|
||||
{
|
||||
ResourceKey = resourceKey;
|
||||
|
||||
Reference in New Issue
Block a user