/// <summary> /// Occures when user change bitmap image /// </summary> protected void OnBitmapChanged() { if (BitmapChanged != null) { BitmapChangedArgs args = new BitmapChangedArgs(bitmap); BitmapChanged(this, args); BitmapSkin = args.BitmapSkin; } }
/// <summary> /// Try to return skin bitmap for specified name /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void element_BitmapChanged(object sender, BitmapChangedArgs e) { e.BitmapSkin = GetBitmap(e.Name); }