Window's header when first open

7 posts, 0 answers
  1. xiaofeng
    xiaofeng avatar
    60 posts
    Member since:
    Jun 2008

    Posted 11 Oct 2011 Link to this post

    Look my picture.When first open the window,the header is lower,like 1.png.But after the control are all loaded in the window,the head is normal,like 2.png.It is very strange.
  2. xiaofeng
    xiaofeng avatar
    60 posts
    Member since:
    Jun 2008

    Posted 11 Oct 2011 Link to this post

    help
  3. DevCraft banner
  4. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 12 Oct 2011 Link to this post

    You need to post some code!
  5. xiaofeng
    xiaofeng avatar
    60 posts
    Member since:
    Jun 2008

    Posted 12 Oct 2011 Link to this post

    I do nothing.I just put some controls on the usercontrol,and show it in the window.
    <UserControl x:Class="ISIS.Silverlight.Office.Attendance2"
        mc:Ignorable="d"
        d:DesignHeight="490" d:DesignWidth="700">
     
        <Grid x:Name="LayoutRoot" Background="White">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid  HorizontalAlignment="Stretch" Margin="0,2,2,0" Name="grid2" VerticalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Height="18" Width="74" HorizontalAlignment="Stretch"  Name="lblSchoolYear" Text="School Year" VerticalAlignment="Center" Margin="6,2,0,2" />
                <telerik:RadComboBox Width="204" Height="22" Grid.Column="1" HorizontalAlignment="Left"  Name="radComboBox1" VerticalAlignment="Top" >
                </telerik:RadComboBox>
            </Grid>
            <telerik:RadTabControl Name="tabAttendance" Margin="0,2,0,2" Grid.Row="1" Width="670" Height="400" HorizontalAlignment="Stretch" VerticalAlignment="Top" >
                <telerik:RadTabItem Header="Homeroom/Class"  HorizontalAlignment="Stretch" Name="tabItemHomeroom" IsSelected="True" VerticalAlignment="Stretch" >
                    <Grid HorizontalAlignment="Stretch" Name="grid1" VerticalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <TextBlock Width="56" Height="23" HorizontalAlignment="Right" Name="lblTeacher" Text="Tearcher" VerticalAlignment="Center" Margin="4,0,0,0" />
                        <telerik:RadComboBox Width="200" Grid.Column="1" HorizontalAlignment="Left" Name="cboTeacher" VerticalAlignment="Center">
                        </telerik:RadComboBox>
                        <TextBlock Width="56" Height="23" HorizontalAlignment="Right" Name="lblCourse" Text="Course" VerticalAlignment="Center" Grid.Row="1" Margin="4,0,0,0" />
                        <telerik:RadComboBox Width="200" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" Name="cboCourse" VerticalAlignment="Center">
                        </telerik:RadComboBox>
                        <TextBlock Width="70" Height="18" TextAlignment="Center" HorizontalAlignment="Right" Name="Date" Text="Date" VerticalAlignment="Center" Grid.Column="2" />
                        <telerik:RadDatePicker Grid.Column="3" HorizontalAlignment="Left" Name="dtpDate" VerticalAlignment="Top" Width="98" />
                        <RadioButton Width="46" Content="AM" GroupName="time" Grid.Column="2" Grid.Row="1" Height="20" HorizontalAlignment="Left" IsChecked="False" Name="optAm" VerticalAlignment="Center" Margin="20,0,4,0" />
                        <RadioButton Width="44" Content="PM" GroupName="time" Grid.Column="3" Grid.Row="1" Height="20" HorizontalAlignment="Left" IsChecked="False"  Name="optPM" VerticalAlignment="Center"/>
                        <telerik:RadGridView  Grid.ColumnSpan="5" Grid.Row="2" HorizontalAlignment="Stretch"  Name="gridHomeroom" VerticalAlignment="Stretch" 
                          Margin="3,3,3,3"  ShowGroupPanel="False" />
                        <TextBlock Height="36" HorizontalAlignment="Left"  Name="lblComment" Text="Comments" VerticalAlignment="Center" Width="74" Grid.Row="3" Grid.ColumnSpan="2" Margin="3,2,0,6" />
                        <telerik:RadRichTextBox Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" Name="txtComments" VerticalAlignment="Center" Width="585" Grid.ColumnSpan="4" Height="40" Margin="20,0,0,3" />
                    </Grid>
                </telerik:RadTabItem>
                <telerik:RadTabItem Header="Mass" HorizontalAlignment="Stretch" Name="tabItemMass" VerticalAlignment="Stretch" >
                </telerik:RadTabItem>
            </telerik:RadTabControl>
            <StackPanel Grid.Row="2" HorizontalAlignment="Right" Name="stackPanel1" Margin="0,0,3,0"  Height="24" Orientation="Horizontal" Width="Auto" >
                <telerik:RadButton Content="Close" Height="22"   Name="btnClose"  Width="50" />
                <telerik:RadButton Content="New" Height="22"   Name="btnNew" Width="50" />
            </StackPanel>
        </Grid>
    </UserControl>
    This is the code behind that show this window
    public void Show()
      {
         RadWindow _oWin = new RadWindow();
         _oWin.Header = "Attendance";
         _oWin.Content = this;
         _oWin.Show();
      }
  6. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 14 Oct 2011 Link to this post

    Hi Xiaofeng,

    This issue is known. You can track it's status here. We will try to provide a fix for it for one of the upcoming builds.

    Best wishes,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  7. xiaofeng
    xiaofeng avatar
    60 posts
    Member since:
    Jun 2008

    Posted 14 Oct 2011 Link to this post

    OK.Then I have another problem.When the browser is maximize,the window is normal.But when I minimize the browser and open the window again,the control can not be display completeness in the window.
    Thanks.
  8. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 19 Oct 2011 Link to this post

    Hi Xiaofeng,

    We tried to reproduce this without any success. It would be great if you send us sample video or example demonstrating the issue?

    Best wishes,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner