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

Expander to *not* be Expanded by default

1 Answer 112 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 26 Aug 2010, 06:20 PM
Every time I run my SL app the expander is OPENED!  Can someone tell me how to make it load CLOSED?

Here is my XAML -- Frustrating!!  I've tried to do this through both code and the IsExpanded property but no luck

     
<telerik:RadExpander x:Name="radExpander" Background="Transparent"  ExpandDirection="Right"
                HorizontalAlignment="Left" Margin="-11,0,0,8" IsExpanded="False" Foreground="{x:Null}" Height="568" VerticalAlignment="Bottom">
                <telerik:RadExpander.Header>
                    <TextBlock x:Name="expanderCaption" Foreground="#FFFFFFFF" Text=""
                        Visibility="Collapsed" />
                </telerik:RadExpander.Header>
                <telerik:RadTabControl FontSize="15" x:Name="tabSettings" Margin="10">
    <telerik:RadTabItem>
        <telerik:RadTabItem.Header>
            <StackPanel Orientation="Horizontal" IsHitTestVisible="False">
                                <Image Source="/BioDMap;component/Resources/toolset/toolset_07.png" Height="41" Width="41" />
                <TextBlock Text="Map Options" Foreground="Black" Margin="3,0,0,0" />
            </StackPanel>
        </telerik:RadTabItem.Header>
                        <Border CornerRadius="5" BorderBrush="#995C90B2" BorderThickness="0" Margin="5" >
                            <StackPanel Margin="5">
                                <CheckBox x:Name="chSettingsLegend" Content="Always show legend" />
                                <CheckBox x:Name="chSettingsOverviewMap" Content="Overview Map" />
                                <CheckBox x:Name="chSettingsScalebar" Content="Scalebar" />
                                <CheckBox x:Name="chSettingsNavigator" Content="Navigation" />
                                <!--<TextBlock  Foreground="White" FontWeight="Bold" Height="455" Margin="-242,0,-285,0" d:LayoutOverrides="HorizontalAlignment" />-->
                                <!--<TextBlock Margin="10 12 10 0" Text="3. Ready" FontWeight="Bold" Foreground="White"></TextBlock>-->
                            </StackPanel>
                        </Border>
                    </telerik:RadTabItem>
    <telerik:RadTabItem>
        <telerik:RadTabItem.Header>
            <StackPanel Orientation="Horizontal" IsHitTestVisible="False">
                <Image Source="/BioDMap;component/Resources/toolset/toolset_07.png" Height="41" Width="41" />
                <TextBlock Text="User Preferences" Foreground="Black" Margin="3,0,0,0" />
            </StackPanel>
        </telerik:RadTabItem.Header>
    </telerik:RadTabItem>
    <telerik:RadTabItem>
        <telerik:RadTabItem.Header>
            <StackPanel Orientation="Horizontal" IsHitTestVisible="False">
                                <Image Source="/BioDMap;component/Resources/toolset/toolset_07.png" Height="41" Width="41" />
                                <TextBlock Text="Printing Preferences" Foreground="Black" Margin="3,0,0,0" />
            </StackPanel>
        </telerik:RadTabItem.Header>
    </telerik:RadTabItem>
</telerik:RadTabControl>


1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 31 Aug 2010, 03:27 PM
Hello Michael,

I couldn't reproduce the issue. Can you please take a look at the project I attached to the answer of the support ticket you sent?

Thank you in advance.

Best wishes,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Expander
Asked by
Michael
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or