コード例 #1
0
 /// <summary>
 /// Raises the TagClick event
 /// </summary>
 internal void RaiseTagApplied(TokenizedTagItem tag)
 {
     /*
      * if (this.IsSelectable)
      *  this.SelectedItem = tag;
      */
     TagApplied?.Invoke(this, new TokenizedTagEventArgs(tag));
 }
コード例 #2
0
        // ReSharper disable once MethodOverloadWithOptionalParameter
        public void OnApplyTemplate(TokenizedTagItem appliedTag = null)
        {
            var createBtn = GetTemplateChild("PART_CreateTagButton") as Button;

            if (createBtn != null)
            {
                createBtn.Click -= CreateBtnClick;
                createBtn.Click += CreateBtnClick;
            }

            base.OnApplyTemplate();

            if (appliedTag != null && !ReferenceEquals(TagApplied, null))
            {
                TagApplied.Invoke(this, new TokenizedTagEventArgs(appliedTag));
            }
        }
コード例 #3
0
        public void OnApplyTemplate(TokenizedTagItem appliedTag = null)
        {
            Button createBtn = this.GetTemplateChild("PART_CreateTagButton") as Button;

            if (createBtn != null)
            {
                createBtn.Click -= createBtn_Click;
                createBtn.Click += createBtn_Click;
                //createBtn.Focus();
                // nixin - focuses
                //createBtn_Click(createBtn, null);
            }

            base.OnApplyTemplate();

            if (appliedTag != null && !object.ReferenceEquals(TagApplied, null))
            {
                TagApplied.Invoke(this, new TokenizedTagEventArgs(appliedTag));
            }
        }
コード例 #4
0
 /// <summary>
 ///     Raises the TagClick event
 /// </summary>
 internal void RaiseTagApplied(TokenizedTagItem tag)
 {
     TagApplied?.Invoke(this, new TokenizedTagEventArgs(tag));
 }