forum

Home / DeveloperSection / Forums / stackpanel within grid in windows phone does not work

stackpanel within grid in windows phone does not work

Anonymous User285118-May-2013
Hi Guys

I tried to do this but I got message error : "ColumnDefinition does not support direct content"

   <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="229">
                <StackPanel Margin="0,0,0,17" Grid.ColumnSpan="2">
                    <TextBlock Height="30" Name="l1" Text="first name" />
                    <TextBox InputScope="Number" Height="71" Name="firstName" Text="" Width="460" />
                </StackPanel>
            </ColumnDefinition>
            <ColumnDefinition Width="227">
                <StackPanel Margin="0,0,0,17" Grid.ColumnSpan="2">
                    <TextBlock Height="30" Name="l1" Text="first name" />
                    <TextBox InputScope="Number" Height="71" Name="firstName" Text="" Width="460" />
                </StackPanel>                        
            </ColumnDefinition>
        </Grid.ColumnDefinitions>
    </Grid>


Thanks 

Updated on 18-May-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By