개발자/WPF(C#) UI
[WPF] 아이콘 변경
영화같이
2020. 3. 24. 23:06
반응형
1. 실행파일(.exe) 아이콘 변경
프로젝트->우클릭->속성
그림에서 보이는 항목 변경
2. 응용프로그램 창에 있는 아이콘 변경
실행 후 창에서 보이는 기본 아이콘을 변경 하는 방법
(기본아이콘)
A. References
https://stackoverflow.com/questions/5101895/how-to-change-title-bar-image-in-wpf-window
B. MainWindiw.xaml 파일을 연다.
Window 태그를 수정한다.
<Window x:Class="WindowSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF Window Sample" Height="350" Width="525"
Name="FirstWindow" Icon="Icon1.ico" >
출처: https://www.smoh.kr/158 [Simple is Beautiful.]
반응형