New to Telerik UI for WPF? Download free 30-day trial

Telerik WPF GitHub Copilot Extension

The Telerik WPF GitHub Copilot extension is an AI-powered coding assistant that provides specialized knowledge about Telerik UI for WPF components.

This extension enhances GitHub Copilot with proprietary context about Telerik WPF controls, helping you:

  • Generate code snippets using Telerik WPF components.
  • Get contextual suggestions for component properties and methods.
  • Access best practices and implementation patterns.
  • Speed up development with AI-powered code completion.

Prerequisites

Before using the Telerik WPF GitHub Copilot extension, ensure you have:

Installation

Follow these steps to install and configure the Telerik WPF Copilot extension:

  1. Go to the Telerik WPF GitHub App page and click the Install button.
  2. You will see a list that includes your GitHub account and all GitHub organizations that you are part of. Select your GitHub account.
  3. Click the Install & Allow button. This will allow the GitHub Copilot extension to integrate with your GitHub account.
  4. Enter your GitHub password when prompted.
  5. You will be redirected to telerik.com. Enter your Telerik account credentials if prompted. This step links the GitHub Copilot extension with your Telerik account.
  6. Upon successful Telerik authentication, you will be redirected to a confirmation page that indicates successful Copilot extension installation.
  7. Restart Visual Studio.
  8. Start a new chat session in Copilot.

Usage

To use the Telerik WPF Copilot extension:

  1. Open the GitHub Copilot chat window in Visual Studio.
  2. Ensure you are in Ask mode and not in Edit or Agent mode. The Edit and Agent modes do not use the Telerik Copilot extension. However, the Agent mode can use the Telerik WPF MCP server.
  3. Start your prompt with @TelerikWPF and type your request. Verify that @TelerikWPF is recognized and highlighted; otherwise, the extension may not be properly installed.
  4. Look for a status label such as Telerik WPF working... or Telerik WPF generating response... in the output to confirm the extension is active.
  5. Grant permission to the Telerik WPF extension to read your workspace files when prompted. This is required only the first time to send a prompt. Also, it might be required to restart Visual Studio again.
  6. For unrelated queries, start a new chat session in a new window to avoid context pollution from previous conversations.

Sample Prompts

The following examples demonstrate useful prompts for the Telerik WPF extension:

  • "@TelerikWPF Give me an example of binding an ObservableCollection to a RadGridView, including sorting and grouping."
  • "@TelerikWPF Create a RadComboBox bound to a list of countries in MVVM, displaying country names but binding the SelectedValue to a CountryCode property."
  • "@TelerikWPF Show XAML and ViewModel code for a RadTreeView bound to a hierarchical ObservableCollection where each category contains products. Expand all categories by default."

Image showing the TelerikWPF trigger word

Number of Requests

A Telerik Subscription license is recommended in order to use the Telerik WPF AI Coding Assistant without restrictions. Perpetual license holders and trial users can make a limited number of requests per year.

Troubleshooting

If you encounter issues:

  • Ensure the @TelerikWPF mention is properly highlighted in your prompt.
  • Verify that you have an active GitHub Copilot subscription.
  • Restart your IDE after installation.
  • Check that you're in Ask mode, not Edit or Agent mode.

See Also

In this article