You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
654 B
C#

using System.Windows;
using System.Windows.Media;
namespace Txgy.EWS.Client.Common.Helpers
{
public class TaggedVisual : DrawingVisual
{
public static readonly DependencyProperty TagProperty = DependencyProperty.RegisterAttached(
"Tag",
typeof(object),
typeof(TaggedVisual),
new PropertyMetadata(null));
public static void SetTag(DependencyObject target, object value)
{
target.SetValue(TagProperty, value);
}
public static object GetTag(DependencyObject target)
{
return target.GetValue(TagProperty);
}
}
}