This is a migrated thread and some comments may be shown as answers.
Window's header when first open
6 Answers 32 Views
This is a migrated thread and some comments may be shown as answers.
xiaofeng
Top achievements
Rank 1
xiaofeng asked on 11 Oct 2011, 09:49 AM
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.

6 Answers, 1 is accepted

Sort by
0
xiaofeng
Top achievements
Rank 1
answered on 12 Oct 2011, 02:44 AM
help
0
Trude
Top achievements
Rank 2
answered on 12 Oct 2011, 09:16 AM
You need to post some code!
0
xiaofeng
Top achievements
Rank 1
answered on 12 Oct 2011, 11:33 AM
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();
  }
0
Ivo
Telerik team
answered on 14 Oct 2011, 08:21 AM
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 >>

0
xiaofeng
Top achievements
Rank 1
answered on 14 Oct 2011, 08:41 AM
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.
0
Ivo
Telerik team
answered on 19 Oct 2011, 10:09 AM
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 >>

Asked by
xiaofeng
Top achievements
Rank 1
Answers by
xiaofeng
Top achievements
Rank 1
Trude
Top achievements
Rank 2
Ivo
Telerik team
Share this question
or