【发布时间】:2019-06-01 12:41:40
【问题描述】:
我的 C# 代码现在是这样的:
stack.Children.Add(new FooterTemplate() { Text = Japanese.Helpers.Deck.SetIntro() });
但我想从我的 viewModel 中获取 Text 的值:
vm.IntroFooter = Japanese.Helpers.Deck.SetIntro();
如何在 C# 中将文本绑定到 vm.IntroFooter
【问题讨论】:
-
您是否将 FooterTemplate 添加到 StackLayout?
标签: xamarin xamarin.forms