This is a migrated thread and some comments may be shown as answers.

RadExpander does not support Flow Elements as content

1 Answer 59 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 16 Apr 2009, 02:35 PM
Sorry to be so dense - but I do not understand why I am getting this message!

I have a page that works well... then I add into a RadPane.Content
<tlk:RadExpander x:Name="FlowExpander">
    <tlk:RadExpander.Header>
        <TextBlock Text="Flow Elements" />
    </tlk:RadExpander.Header>
    <tlk:RadExpander.Content>
        XXXXXXXXXX
    </tlk:RadExpander.Content>
</tlk:RadExpander>

Whatever I put in for XXXXXXXXX gives me the error 

    RadExpander does not support Flow Elements as content

I have tried a TextBlock, a Grid, a tlk:RadWrapPanel (as in the on-line example...)

I am missing something...

Also, in general, is there any documentation that completely lists the embedding of all legal XAML inside of the Telerik controls?

Thanks for your help...

Chris

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 17 Apr 2009, 03:19 PM
Hello Chris,

Indeed the problem is not in the "Flow Elements" but in the following code:

    <tlk:RadExpander.Content> 
        XXXXXXXXXX 
    </tlk:RadExpander.Content> 

If you replace it with the code below everything will be working as expected:

    <telerik:RadExpander.Content> 
        <TextBlock Text="XXXXX" /> 
    </telerik:RadExpander.Content> 

Attached, you can find an example solution where these points are implemented.

About the Docs with all the Xaml - currently there are no such an article.


Best wishes,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Expander
Asked by
Chris
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or