Call user control in my page.xaml?


  • Hi all,

    Am developing Windows 8 apps

    I have a user control which has grid.

    In this grid i am binding controls dynamically(i.e., am creating textbox dropdown controls and placing inside the grid)

    But when i call my user control controls are not showing only my empty grid is showing.

    <local:MyUC Grid.Row="1" x:Name="OutputSectionSurvey"  Width="1000" Height="1000" HorizontalAlignment="Left" VerticalAlignment="Top"></local:MyUC>

    any suggestion would be of great help.




    Monday, February 17, 2014 4:07 PM


  • Hi,

    There is not enough information to detect why the problem occured in your app. You should post your code in the forum so that we can test it.

    About how to create a usercontrol, how to use a usercontrol in your app you can refer to the link below:


    And you can see the XAML user and custom controls sample to get more information.

    Best Wishes!

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, February 18, 2014 2:24 AM