Permalink
Browse files

Don't use the 256x256 icon on Windows XP. Closes #36.

  • Loading branch information...
1 parent db0c6a7 commit 04cca17e3b06f4cf312e0ff61f6ca9b6bc7fdc7a @dgrunwald dgrunwald committed Feb 22, 2011
Showing with 6 additions and 2 deletions.
  1. +0 −1 ILSpy/MainWindow.xaml
  2. +6 −1 ILSpy/MainWindow.xaml.cs
View
@@ -10,7 +10,6 @@
MinHeight="200"
UseLayoutRounding="True"
TextOptions.TextFormattingMode="Display"
- Icon="pack://application:,,,/ILSpy;component/images/ILSpy.ico"
FocusManager.FocusedElement="{Binding ElementName=treeView}"
>
<Window.Resources>
View
@@ -26,7 +26,7 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
-
+using System.Windows.Media.Imaging;
using ICSharpCode.ILSpy.TreeNodes;
using ICSharpCode.TreeView;
using Microsoft.Win32;
@@ -51,6 +51,11 @@ public MainWindow()
this.sessionSettings = new SessionSettings(spySettings);
this.assemblyListManager = new AssemblyListManager(spySettings);
+ if (Environment.OSVersion.Version.Major >= 6)
+ this.Icon = new BitmapImage(new Uri("pack://application:,,,/ILSpy;component/images/ILSpy.ico"));
+ else
+ this.Icon = Images.AssemblyLoading;
+
this.DataContext = sessionSettings;
this.Left = sessionSettings.WindowBounds.Left;
this.Top = sessionSettings.WindowBounds.Top;

0 comments on commit 04cca17

Please sign in to comment.