Posted on Nov 20, 2011 (permalink)
Hi,i want to change Decorator to imgae ,i code:
<
UserControl
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x
"http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
"ExpanderStyle.MainPage"
Width
"640"
Height
"480"
>
UserControl.Resources
ControlTemplate
x:Key
"RadExpanderDecoratorControlTemplate"
TargetType
"telerik:RadExpanderDecorator"
Grid
Rectangle
Fill
"#FFCCCCCC"
HorizontalAlignment
"Center"
VerticalAlignment
"8"
"2"
/>
</
x:Name
"LayoutRoot"
Background
"White"
telerik:RadExpander
Content
"Content of MyExpander"
"Left"
"Top"
DecoratorTemplate
"{StaticResource RadExpanderDecoratorControlTemplate}"
Header
"MyExpander"
but this code don't work in 2011 Q2 i try to work in 2010 Q2 ,it is OK....
Reply
Posted on Nov 23, 2011 (permalink)
Since Q1 2011, the RadExpander's Template was re-factored and its size was significantly simplified. Actually, there is no DecoratorTemplate anymore although the DecoratorTemplate property still exists. I created a sample project where I edited the default template of the RadExpander from Q2 2011, commented the parts that define and control the Expander Button and used your XAML that creates the "+" -button ( the two crossed Rectangles. Hope you will find it useful.
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top
[ Silverlight Expander Features | Documentation | Demos | Telerik TV | Self-Paced Trainer ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below