none
Using of two grid's in a user control

    Question

  • Hi,

    Can't i use two grid's in a usercontrol?

    When i try to add a second grid in a usercontrol, its showing the following error:

    "The Property content is set more than once"

     

    Thanks.

    Thursday, April 26, 2012 1:06 AM

Answers

  • Hi Krishna,

      try this.  You just need to nest them inseide another grid

      <Grid >

        <Grid  x:Name="grid1" />

        <Grid  x:Name="grid2" />

      </Grid>

    Hope it Helps Laughing

    Thursday, April 26, 2012 1:15 AM

All replies

  • Hi Krishna,

      try this.  You just need to nest them inseide another grid

      <Grid >

        <Grid  x:Name="grid1" />

        <Grid  x:Name="grid2" />

      </Grid>

    Hope it Helps Laughing

    Thursday, April 26, 2012 1:15 AM
  • Can't i use two grid's in a usercontrol?

    Yes you can add any number of grid insidea grid, Which third party control are you using, i know silverlight grid does not have content property.

    let me know the details.

    Thursday, April 26, 2012 1:51 AM
  • Thank you guys for the reply.

    I just created a silverlight application and tried to create two grid's in a usercontrol and it showed the error.

     

    Thanks.

     

    Friday, April 27, 2012 5:44 AM
  • I just created a silverlight application and tried to create two grid's in a usercontrol and it showed the error.

    how is your issue going on and if possible post the code here.

    Friday, April 27, 2012 11:46 AM