【发布时间】:2016-09-23 07:07:32
【问题描述】:
我在 C# 中的 OnAppearing() 方法中有一个变量 var wordsCount = App.words.Count.ToString();。如何将 wordsCount 的值传递给 XAML 端的 contentpage 的 title 属性,以便每次访问该页面时标题都会相应更新?有点像下面的代码:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Japanese.PhrasesPage"
Title="wordsCount">
</ContentPage>
【问题讨论】:
标签: c# xaml xamarin.forms