Home > Articles > Programming > Visual Basic

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

3 Set the Window Property

A If necessary, double-click MainWindow.xaml in the Solution Explorer to open the WPF Designer. In the Properties window, find the Icon property, select it, and then click the ellipsis button.

B After you click the ellipsis in the Properties window, Visual Studio will display the Choose Image dialog. Your new icon will be displayed, but there might not be a thumbnail. It’s okay; Visual Studio just hasn’t caught up with us.

Click on your icon, and then click OK to set the property.

After you click the OK button, Visual Studio will set the property to a long value that begins with pack//application.../. That’s just WPF-Speak for “look in the application file”, and we’ll figure out how it all works later when we examine WPF Resources.

  • + Share This
  • 🔖 Save To Your Account