8,735
社区成员
发帖
与我相关
我的任务
分享
public static readonly DependencyProperty SizeProperty =
DependencyProperty.Register("Size", typeof(object), typeof(Avatar), new PropertyMetadata(null, OnSizeChanged));
/// <summary>
/// Gets/sets the size of the avatar.
/// </summary>
[TypeConverter(typeof(Converters.SizeConverter))]
public object Size
{
get { return GetValue(SizeProperty); }
set { SetValue(SizeProperty, value); }
}
public enum Sizes : byte
{
Large, Small
}
public enum Sizes : int
{
Large = -1, Small = -2
}