Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AutoCompletionBehavior"/> class.
        /// </summary>
        public AutoCompletionBehavior()
        {
            var dependencyResolver = this.GetDependencyResolver();

            _autoCompletionService = dependencyResolver.Resolve <IAutoCompletionService>();

            _suggestionListBox = new ListBox();

#if NETFX_CORE
            _suggestionListBox.Background = new SolidColorBrush(Colors.Gainsboro);
#endif

            _popup       = new Popup();
            _popup.Child = _suggestionListBox;

#if NET
            _popup.StaysOpen = false;
#elif NETFX_CORE
            _popup.IsLightDismissEnabled = true;
#else
            // To determine
#endif
        }
Esempio n. 2
0
 public AutoCompletionController(IAutoCompletionService autoCompletionService)
 {
     _autoCompletionService = autoCompletionService;
 }