protected override void OnParametersSet() { if (Images == null || Images.Length == 0) { throw new IndexOutOfRangeException("Image count must be greater than zero"); } Value = Math.Clamp(Value, 0, Images.Length - 1); DisplayCount = Math.Clamp(DisplayCount, 1, Images.Length); if (DisplayCount > Images.Length) { DisplayCount = Images.Length; } if (RibbonImages == null || RibbonImages.Length != Images.Length) { RibbonImages = new RibbonImage[Images.Length]; } for (int i = 0; i < Images.Length; i++) { RibbonImages[i] = new RibbonImage(i, Images[i]); } }
public BulImageRibbonItemClickEventArgs(MouseEventArgs mouseArgs, RibbonImage image) { MouseEventArgs = mouseArgs; Image = image; }