Beispiel #1
0
			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);
			}
Beispiel #2
0
            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);
            }