Пример #1
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _filterBox = GetTemplateChild(PART_FilterBox) as FilterBox;
            SetFilter(_allowFilter);
        }
Пример #2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            if (_popup != null)
            {
                _popup.Opened -= Popup_Opened;
            }

            _popup = GetTemplateChild(PART_Popup) as Popup;

            if (_popup != null)
            {
                _popup.Opened += Popup_Opened;
            }

            _filterBox = GetTemplateChild(PART_FilterBox) as FilterBox;
            SetFilter(_allowFilter);
        }