Expander control is not expanding correctly

2 posts, 0 answers
  1. michael evans
    michael evans avatar
    6 posts
    Member since:
    Apr 2006

    Posted 23 Feb 2010 Link to this post

    i tried placing the expander control into a Stackplanel with no results. When i click the expander button it moves the Radmenu.

    <UserControl
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
      xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
      xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
      x:Class="SalonConnect.MainPage"
      d:DesignWidth="640" d:DesignHeight="480">

      <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">

        <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}">
                <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}"
                                  Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
                    <navigation:Frame.UriMapper>
                      <uriMapper:UriMapper>
                        <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
                        <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
                      </uriMapper:UriMapper>
                    </navigation:Frame.UriMapper>
                </navigation:Frame>
        </Border>

        <Grid Style="{StaticResource NavigationOuterGridStyle}">
          <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}">

            <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
             <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">

              <ContentControl Style="{StaticResource LogoIcon}"/>
              <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}"
                                   Text="Salon Connect"/>
             </StackPanel>
            </Border>

            <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}">
      
         <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">
          <telerik:RadExpander ExpandDirection="Down" Header="Add New Customer" Width="300" telerik:StyleManager.Theme="Vista">
                <telerik:RadExpander.Content>
                    <StackPanel>
                        <TextBlock Text="First"  />
                        <TextBox></TextBox>
                        <TextBlock Text="Last" />
                        <TextBox></TextBox>
                        <TextBlock Text="Address"  />
                        <TextBox></TextBox>
                        <TextBlock Text="City"  />
                        <TextBox></TextBox>
                        <TextBlock Text="State"  />
                        <TextBox></TextBox>
                     </StackPanel>
                </telerik:RadExpander.Content>
            </telerik:RadExpander>
               <telerikNavigation:RadMenu x:Name="Mainmenu" ClickToOpen="True">
               <telerikNavigation:RadMenuItem Header="Home" Click="RadMenuItem_Home_Click"/>
               <telerikNavigation:RadMenuItem Header="Profile" Click="RadMenuItem_Profile_Click"/>
               <telerikNavigation:RadMenuItem Header="Calendar" Click="RadMenuItem_Calendar_Click" />
               <telerikNavigation:RadMenuItem Header="Customers" Click="RadMenuItem_Customer_Click"/>
               <telerikNavigation:RadMenuItem Header="Twitter" Click="RadMenuItem_Twitter_Click"/>
               <telerikNavigation:RadMenuItem Header="Marketing" Click="RadMenuItem_Marketing_Click"/>
               <telerikNavigation:RadMenuItem Header="Reports" Click="RadMenuItem_Reports_Click"/>
               <telerikNavigation:RadMenuItem Header="Settings" Click="RadMenuItem_Settings_Click"/>
               <telerikNavigation:RadMenuItem Header="Help" Click="RadMenuItem_Help_Click"/>
              </telerikNavigation:RadMenu>
             </StackPanel>
      
            </Border>

          </Grid>

          <Border x:Name="loginContainer" Style="{StaticResource LoginContainerStyle}">
              <!-- LoginStatus will be added here in code behind. This is required for the designer view to work -->          
          </Border>
        </Grid>

      </Grid>

    </UserControl>


    Edit your post Reply

  2. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 24 Feb 2010 Link to this post

    Hi Michael,

    Please preview your previous (mirror) thread where the answer was posted.

    All the best,
    Ivan
    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