Posted 14 years ago
by JerryLia

hi,I have met another problem which the textbox cannot show its label except that is located in a stackpanel,but when I locate textbox in a stackpanel,it can not be stretched! please see the sceenshot as followed!
Click here to see the sceen shot
Click here to see the sceen shot
<ribbon:StackPanel Grid.Column="3" Grid.Row="1" Width="Auto" HorizontalAlignment="Stretch"
ItemVariantBehavior="MediumThenSmallWhenSmall">
<ribbon:TextBox Name="txYear" Label="统计年份:" MinWidth="30" VerticalAlignment="Stretch"
Height="Auto" Margin="0" HorizontalAlignment="Stretch" VariantSize="Medium"
VerticalContentAlignment="Center" HorizontalContentAlignment="Left" MinHeight="18" />
</ribbon:StackPanel>