Esempio n. 1
0
 public IntellisensePopupPresenter(IntellisensePopup view)
 {
     this.view = view;
     Items     = new ObservableCollection <string>();
     //items.Add("ToString()");
     //items.Add("Equals()");
     //items.Add("GetHasCode()");
     //Items = CollectionViewSource.GetDefaultView(items);
     //Items.MoveCurrentToPosition(-1);
     //Items.CurrentChanged += OnCurrentChanged;
 }
Esempio n. 2
0
        public static IntellisensePopupPresenter Build(UIElement parent, TextPointer positionPointer, TextPoiterChanged target)
        {
            var view = new IntellisensePopup {
                PlacementTarget    = parent,
                PlacementRectangle = positionPointer.GetCharacterRect(LogicalDirection.Forward)
            };

            view.presenter.PositionPointer = positionPointer;
            view.presenter.TargetVariable  = target;
            return(view.presenter);
        }