阅读背景:

你可以使用IEnumerable 绑定ListBox数据吗?

来源:互联网 

I have the following xaml:

我有以下xaml:

<phone:PhoneApplicationPage.Resources>
    <DataTemplate x:Key="OrganisationTemplate">
        <Grid Margin="40,0,0,0">
            <StackPanel>
                <TextBlock Text="{Binding name}"></TextBlock>
            </StackPanel>
        </Grid>
    </DataTemplate>
</phone:PhoneApplicationPage.Resources>

        <phone:PanoramaItem Header="Organisations">
            <ListBox Name="Organisation" ItemTemplate="{StaticResource OrganisationTemplate}" DataContext="{Binding Organisations, Mode=OneWay}" Margin="0,0,0,96"/>
        </phone:PanoramaItem>
<phone



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: