locked
GridView.ItemsSource property element syntax it is not work fine

    Question

  • I had a SemanticZoom control and Binding a CollectionViewSource. they are work fine.

    When I change GridView.ItemsSource to property element syntax it is not work fine.

    <GridView Foreground="White" Name="sg"

    ScrollViewer.IsHorizontalScrollChainingEnabled="False"

    ItemsSource="{Binding ElementName=cvs2, Path=View.CollectionGroups}">

    <SemanticZoom.ZoomedOutView>
    	<GridView Foreground="White" Name="sg" ScrollViewer.IsHorizontalScrollChainingEnabled="False" >
    		<GridView.ItemsSource>
    			<Binding Source="{Binding ElementName=cvs2, Path=View.CollectionGroups}"></Binding>
    		</GridView.ItemsSource>
    	</GridView>
    </SemanticZoom.ZoomedOutView>

    I trace code when I use property element syntax, the ItemsSource is null.

    I don't know why. 

    the complete project

    in MainPage.xaml Line : 36 - 44


    




    Thursday, April 17, 2014 10:55 AM

All replies

  • Where's the code for the cvs2?  When is it populated?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, April 17, 2014 1:49 PM
    Moderator
  • I'm so sorry. Thank your note. I put on link to download the project.

    Friday, April 18, 2014 1:54 AM