Expander to *not* be Expanded by default

2 posts, 0 answers
  1. Michael
    Michael avatar
    12 posts
    Member since:
    May 2008

    Posted 26 Aug 2010 Link to this post

    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>


  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 31 Aug 2010 Link to this post

    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
  3. DevCraft banner
Back to Top