public ControlPresenter(IEventBus eventBus, IParameter parameter) : base(eventBus, parameter) { _parameter = (ControlParameter)parameter; this.InitializeView(); this.AttachEvents(); }
private void OnControlDropped(object sender, DragEventArgs e) { //Logic here for pulling information from //UI so that we can build the control/component //the following is only temporary if (string.IsNullOrEmpty(e.Data.GetData(DataFormats.Text).ToString())) { return; } //Notify subscribers of ControlDropped event EventBus.PostEvent(new ControlDroppedEvent(e)); IParameter parameter = new ControlParameter() { Canvas = _parameter.Canvas, Position = e.GetPosition(_parameter.Canvas) }; this.AddChild <ControlPresenter>(EventBus, parameter); }