public CanvasItemData (CanvasItem item, EventHandler<SizeGripEventArgs> SizeGripMouseEntered, EventHandler<SizeGripEventArgs> SizeGripMouseLeft) { this.item = item; focusDecorator = new FocusDecorator(item); sizeGripDecorator = new SizeGripDecorator(item); sizeGripDecorator.SizeGripMouseEnter += SizeGripMouseEntered; sizeGripDecorator.SizeGripMouseLeave += SizeGripMouseLeft; item.AddDecorator(focusDecorator); item.AddDecorator(sizeGripDecorator); }
public CanvasItemData(CanvasItem item, EventHandler <SizeGripEventArgs> SizeGripMouseEntered, EventHandler <SizeGripEventArgs> SizeGripMouseLeft) { this.item = item; focusDecorator = new FocusDecorator(item); sizeGripDecorator = new SizeGripDecorator(item); sizeGripDecorator.SizeGripMouseEnter += SizeGripMouseEntered; sizeGripDecorator.SizeGripMouseLeave += SizeGripMouseLeft; item.AddDecorator(focusDecorator); item.AddDecorator(sizeGripDecorator); }