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

            _presenter = base.GetTemplateChild("PART_ChatPresenter") as ChatPresenter;
            if (_presenter == null)
            {
                throw new Exception("Missing template part.");
            }
        }
Пример #2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _presenter = base.GetTemplateChild("PART_ChatPresenter") as ChatPresenter;
            if (_presenter == null)
            {
                throw new Exception("Missing template part.");
            }
        }