Skip to content

Instantly share code, notes, and snippets.

@sukobuto
Created June 1, 2013 03:22
Show Gist options
  • Save sukobuto/5689181 to your computer and use it in GitHub Desktop.
Save sukobuto/5689181 to your computer and use it in GitHub Desktop.
【WPF】 .ico ファイルを Window のアイコンに設定する方法 ref: http://qiita.com/items/a672e945103d7dda284b
<Window x:Class="DiffFileSaver.Views.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
xmlns:l="http://schemas.livet-mvvm.net/2011/wpf"
xmlns:v="clr-namespace:DiffFileSaver.Views"
xmlns:vm="clr-namespace:DiffFileSaver.ViewModels"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
Title="DiffFileSaver"
Height="318.182"
Width="525"
Icon="/DiffFileSaver;component/Resources/unWatching.ico">
<!-- 省略 -->
</Window>
this.Icon = BitmapFrame.Create(new Uri("pack://application:,,,/Resources/unWatching.ico", UriKind.RelativeOrAbsolute));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment