Localised Binding of PlaceholderText Property in TextBlock RRS feed

  • Question

  • I am building a multi lingual app. I have my Resources.resw file populated with my strings. I am binding my TextBlocks like below

    <TextBox  Text="{Binding ProjectName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                 <TextBlock  x:Uid="ProjectName" Text="Project Name"  />

    I would like to set the PlaceholderText property to a string called Required. However, I would like to bind it to a string in my Resources file because it will be different in other languages.

    Monday, November 24, 2014 11:54 AM


  •  <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
            <TextBox  Height="64" x:Uid="textbox"/>

    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

    Monday, November 24, 2014 8:30 PM