Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8162565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:45:32+00:00 2026-06-06T18:45:32+00:00

I would like to extend the team explorer work item editor with a custom

  • 0

I would like to extend the team explorer work item editor with a custom functional button along side export to excel, outlook etc, taking information from the current work item.

I know there is a way to modify the items themselves, as described at witcustomcontrols.codeplex.com, but I’d rather not modify them.

Is the editor extensible in this way, or are there better ways to do this?

Best Regards,
Tommy

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:45:34+00:00Added an answer on June 6, 2026 at 6:45 pm

    Creating a Work Item Custom Control is the way to accomplish what you’re trying to do.

    The project you already found (witcustomcontrols.codeplex.com) is a good starting point to understand the mechanics of creating work item custom controls, so I’ll limit myself to describing the specifics of implementing the basics of a Custom Button.

    Create a control that derives from System.Windows.Button and access the WorkItemDatasource property from the OnClick method.

    This should get you started:

    using System;
    using System.Collections.Specialized;
    using System.Windows.Forms;
    using Microsoft.TeamFoundation.WorkItemTracking.Client;
    using Microsoft.TeamFoundation.WorkItemTracking.Controls;
    
    namespace Wicc {
        public class ButtonControl: Button, IWorkItemControl {
            public ButtonControl() {
    
            }
            protected override void OnClick(EventArgs e) {
                WorkItem workItem = this.WorkItemDatasource as WorkItem;
    
                // the rest of your code
            }
    
            #region IWorkItemControl Members
    
            public event EventHandler AfterUpdateDatasource;
    
            public event EventHandler BeforeUpdateDatasource;
    
            public void Clear() {
            }
    
            public void FlushToDatasource() {
            }
    
            public void InvalidateDatasource() {
            }
    
            public StringDictionary Properties {get; set;}
    
            public bool ReadOnly {get; set;}
    
            public void SetSite(IServiceProvider serviceProvider) {
            }
    
            public object WorkItemDatasource { get; set; }
    
            public string WorkItemFieldName { get; set; }
    
            #endregion
        }
    }
    

    In case you have further questions, let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to extend a liferay core jsp by custom-jsp hook. In this
I don't want to create my own editor but I would like to extend
I would like to extend the existing XMLHttpRequest object so that it should work
I would like to extend a kd-tree (2D) class to be able to remove
I would like to create extend a Java Swing application to have a look
I'm trying to extend my ActiveRecord class with some dynamic methods. I would like
If I extend a component like Form in Vaadin, would be any difference between
I have a custom-made view that extends the View class. I would like 2
I would like to extend the cakephp logging facility. Using $this->log($msg, $level) you can
I would like to extend Entity\Base classes, how to do this in Doctrine 2.1?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.