public UserView() { Orientation = Orientation.Vertical; _botScreen=new SentenceAreaView(); _topScreen=new IndiagramBrowserView(); Children.Add(_topScreen); Children.Add(_botScreen); SizeChanged += UserView_SizeChanged; _topScreen.CountChanged += _topScreen_CountChanged; _botScreen.CanAddIndiagramsChanged += _botScreen_CanAddIndiagramsChanged; }
private void Initialize() { _topView = new IndiagramBrowserView(Context) { IndiagramSelected = new DelegateCommand<Indiagram>(OnTopIndiagramSelected), IndiagramViewSelectedCommand = new DelegateCommand<IndiagramView>(OnTopIndiagramViewTouched), }; _botView = new SentenceAreaView(Context); _topView.CountChanged += (sender, args) => this.RaiseEvent(TopCountChanged); _botView.CanAddIndiagramsChanged += (s, e) => this.RaiseEvent(BotCanAddIndiagramsChanged); }