Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Xaml中的LocalizedString进行本地化-将值绑定到绑定字符串_Xaml_Windows Phone 8_Binding_Localization - Fatal编程技术网

使用Xaml中的LocalizedString进行本地化-将值绑定到绑定字符串

使用Xaml中的LocalizedString进行本地化-将值绑定到绑定字符串,xaml,windows-phone-8,binding,localization,Xaml,Windows Phone 8,Binding,Localization,我在发问 我想知道,在将对象绑定到ItemsControl时,如何使用de ItemsSource中的当前路径将文本框绑定到LocalizedString 我希望守则会澄清: <ItemsControl ItemsSource="{Binding Hours}" VerticalAlignment="Top"> <ItemsControl.ItemTemplate> <DataTemplate> <Grid

我在发问

我想知道,在将对象绑定到ItemsControl时,如何使用de ItemsSource中的当前路径将文本框绑定到LocalizedString

我希望守则会澄清:

<ItemsControl ItemsSource="{Binding Hours}" VerticalAlignment="Top">
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <Grid VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="125" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="{Binding Path=LocalizedResources.DayName, Source={StaticResource LocalizedStrings}}" Style="{StaticResource App_Content_Grid_Bold}" HorizontalAlignment="Left" />
                <TextBlock Grid.Column="1" Text="{Binding Description}" Style="{StaticResource App_Content_Grid_Subtle}" FontSize="20" Foreground="Black" HorizontalAlignment="Right" />
            </Grid>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>
问题是,DayName在LocalizedString中不存在,但它的值确实存在。 在应用绑定本身之前,如何将其值解析到此绑定上下文中

类似于:{Binding Path=LocalizedResources.[DayName],Source={StaticResource LocalizedStrings}}