//static ClassRef @class = new ClassRef(typeof(AutoCompleteEntryEx));

        public AutoSuggestEntryEx()
        {
            //Debug.EnableTracing(@class);
            UITheme.OnCurrentThemeChanged(() => this.ApplyFlavor());

            this.TextChanged    += OnTextChanged;
            this.QuerySubmitted += (s, e) => {
                if (e.ChosenSuggestion == null)
                {
                    OnQuerySubmitted(e.QueryText);
                }
                else
                {
                    OnSuggestionChoosen(e.ChosenSuggestion);
                }
            };
        }