Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.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
C#在绑定文本块中编辑文本_C#_Wpf_Binding_Windows Phone - Fatal编程技术网

C#在绑定文本块中编辑文本

C#在绑定文本块中编辑文本,c#,wpf,binding,windows-phone,C#,Wpf,Binding,Windows Phone,我有以下代码: <Image Grid.Row="0" Grid.Column="0" Source="/Images/check.png" Stretch="Fill" Visibility="{Binding Checked}"/> <TextBlock Grid.Row="0" Grid.Column="1" Tag="{Binding Uid}" Tap="RemindName_Tap" HorizontalAlignment="Left" Text

我有以下代码:

<Image Grid.Row="0" Grid.Column="0" Source="/Images/check.png" Stretch="Fill" 
    Visibility="{Binding Checked}"/>
<TextBlock Grid.Row="0" Grid.Column="1" Tag="{Binding Uid}" Tap="RemindName_Tap" 
    HorizontalAlignment="Left" Text="{Binding Title}" TextWrapping="Wrap" 
    Padding="10,2,0,0" Foreground="White" Height="40"  Margin="2,0,0,0" FontSize="24" 
    Width="365"/>
<TextBlock Grid.Row="1" Grid.Column="1" Text="Something here" Tag="{Binding Uid}"/>

如何编辑第二个文本块中的文本


必须有适当格式的“时间”。我有一个独立的存储,但我必须正确格式化。

你的问题对我来说没有什么意义。。。如何将字符串属性绑定到
TextBlock.Text
属性??真正地问题出在哪里?使用c#我想更改第二个文本块的值。我不知道怎么做。@GoOx您需要一个双向绑定:{binding Title,Mode=twoway}为什么不能使用更改第一个
TextBlock.Text
属性的相同方法?现在我在xml文件中有一个完整的列表,并立即将其添加到列表框中。我有这样的想法:foreach(列表中的类项){code}和下一个我需要的更改,我将添加到列表框中。这是一个好的解决方案?