public LayerInfor() { InitializeComponent(); am = new ActionMove(this, Title); am.Enable = true; ar = new ActionResize(LayoutRoot); }
public PhotoEditCanvas() { InitializeComponent(); acm = new ActionMove(this, PhotoTitle); acs = new ActionResize(PhotoEditFramework, PhotoEditFramework, new LynxResized(_Resized)); acs.Enable = true; InitLayers();//初始化图层 }
{ //support photo load and scale/rotate/transform //support draw some geometry //mergin layer public PhotoLayer() { InitializeComponent(); li = new LayerIcon(this); acm = new ActionMove(this, this); acm.Enable = false; ar = new ActionResize(Layer, Layer, new LynxResized(_Resized)); ar.Enable = false;//默认不可缩放 }
public LynxNotepad() { InitializeComponent(); am = new ActionMove(this, Frame); ar = new ActionResize(NoteFrame, NoteFrame, Resized); }