Welcome to David Sandor Sign in | Join | Help
in Search

Professional Software Architecture

How do I add an image to a Telerik R.A.D. Expander control in WPF.

It turns out to be quite simple.

Add the expander to your WPF control surface:

<telerik:RadExpander Height="24" Name="radExpander2" Width="170" />

 

Specifically set the Header property in the XAML like so:

            <telerik:RadExpander Height="24" Name="radExpander1" Width="170">
                <telerik:RadExpander.Header>
                    <Image Height="20" Source="Gfx/Alerts.ico"/>
                </telerik:RadExpander.Header>
            </telerik:RadExpander>
 

This code assumes that you have a graphics file in a folder named ‘Gfx’ in your solution.

Published Friday, June 26, 2009 9:24 PM by david
Filed under: , ,

Comments

No Comments
Anonymous comments are disabled

This Blog

Syndication

Powered by Community Server (Personal Edition), by Telligent Systems