I have replaced several of my dialog forms with RadWindow form in my WPF application and the Application Icon that used to show on the dialogs don't seem to show on the RadWindow. I have tried a lot of different ways of getting the Icon to show including the following:
if (((System.Windows.Controls.Canvas)this.Parent).Parent is Window)
Window thisWindow = ((System.Windows.Controls.Canvas)this.Parent).Parent as Window;
thisWindow.ShowInTaskbar = true;
thisWindow.Title = this.Header.ToString();
this.Icon = thisWindow.Icon;
The Icon shows in the taskbar correctly, but nothing is shown on the RadWindow itself. Is there something I am doing wrong? Some setting someplace that I am missing that will make it magically show it?
this.Icon = BitmapFrame.Create(iconUri);
and I get the text "pack://application:,,,/WPFIcon2.ico" where the Icon should be.
I even tried creating a System.Drawing.Icon object and setting it to that and it just puts "(Icon)" in the corner of the form.
I have nothing in the XAML that refers to the Icon property for the window. I assumed that the RadWindow type would automatically get the icon from the application, but I have not found any setting on the control that turns on or off the displaying of the icon.