Skip to content

Part 06: Using Copilot Vision

In this section, you’ll use Copilot Vision. You can share screenshots of errors and Copilot will interpret the image and resolve the issue. Or share mockups of new designs, and Vision will help you bring them to life. Let’s update our design based on a photo our designer gave us.

  1. Open a new Copilot Chat thread in Agent mode.

  2. Click the + button in the chat, select upload image, and select eshop.png from the root of your cloned TinyShop repository.

    Attach image icon

  1. Ask: Update the Products.razor to display products in a grid layout similar to this image. Add nice hover effects and make it responsive.
  2. Review the suggested code changes and implement them. It should recommend changes to both the Products.razor and a new Products.razor.css
  1. Run the application to see the updated product grid layout. You may have to clear the browser cache with CTRL+SHIFT+R if you don’t see the CSS update.

Key Takeaway: Copilot Vision can understand UI designs from images and help you implement them in your application.


Back: Part 05 - Implementing Features with Copilot Agent | Next: Part 07 - Debugging with Copilot

Reset all workshop progress?

This clears completed lessons and checked task items stored in this browser. This action cannot be undone.