This project has moved and is read-only. For the latest updates, please go here.

HeaderImage in Wizard

Oct 7, 2014 at 4:06 PM
Hi all,
I have an C# assembly in which i have written a wizard.
Everything's working fine in the final project, except that I can't figure out, how to convert a System.Drawing.Bitmap into ImageSource, which can be bound to the HeaderImage property of WizardPage.
The bitmap is embedded as a recource of the .dll.
I have something like this at the moment:
         public Bitmap HeaderBitmap
         {
             get { return Resources.my_banner; }
         }
And in the .xaml file describing the GUI i have:
<xctk:WizardPage x:Name="StartPage" Height="500" Width="700"
                         HeaderImage="{Binding HeaderBitmap}" Enter="StartPage_OnEnter"
I have tried out some solutions for converting Bitmap to BitmapSource etc., but none of them seems to work.
Thanks in advance for any answers.
Mateusz
Developer
Oct 8, 2014 at 1:29 PM