C# Class Telegram.Utils.ImageByteArrayAttachedProperty

Mostra file Open project: naphaso/kilogram

Public Properties

Property Type Description
ByteArraySourceProperty System.Windows.DependencyProperty

Public Methods

Method Description
ByteArraytoBitmap ( Byte byteArray ) : BitmapImage
GetByteArraySource ( UIElement element ) : Byte[]
SetByteArraySource ( UIElement element, Byte value ) : void

Private Methods

Method Description
byteArraySource ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

ByteArraytoBitmap() public static method

public static ByteArraytoBitmap ( Byte byteArray ) : BitmapImage
byteArray Byte
return System.Windows.Media.Imaging.BitmapImage

GetByteArraySource() public static method

public static GetByteArraySource ( UIElement element ) : Byte[]
element UIElement
return Byte[]

SetByteArraySource() public static method

public static SetByteArraySource ( UIElement element, Byte value ) : void
element UIElement
value Byte
return void

Property Details

ByteArraySourceProperty public_oe static_oe property

public static DependencyProperty,System.Windows ByteArraySourceProperty
return System.Windows.DependencyProperty