Skip to content

Commit

Permalink
Obsolete source props
Browse files Browse the repository at this point in the history
  • Loading branch information
NotYoojun committed Jan 22, 2025
1 parent f5f251b commit ad73e90
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,25 @@ public string Xaml
}

public static readonly DependencyProperty XamlSourceProperty = DependencyProperty.Register("XamlSource", typeof(object), typeof(ControlExample), new PropertyMetadata(null));

[Obsolete("Use Xaml instead.")]
public object XamlSource
{
get { return (object)GetValue(XamlSourceProperty); }
set { SetValue(XamlSourceProperty, value); }
}

public static readonly DependencyProperty CSharpProperty = DependencyProperty.Register("CSharp", typeof(string), typeof(ControlExample), new PropertyMetadata(null));

public string CSharp
{
get { return (string)GetValue(CSharpProperty); }
set { SetValue(CSharpProperty, value); }
}

public static readonly DependencyProperty CSharpSourceProperty = DependencyProperty.Register("CSharpSource", typeof(object), typeof(ControlExample), new PropertyMetadata(null));

[Obsolete("Use CSharp instead.")]
public string CSharpSource
{
get { return GetValue(CSharpSourceProperty) as string; }
Expand Down

0 comments on commit ad73e90

Please sign in to comment.