【发布时间】:2017-07-07 15:35:43
【问题描述】:
我的应用程序中有此代码:
<StackLayout x:Name="pfs" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<StackLayout Grid.Row="0" Grid.Column="1" Padding="0,0,20,0" Orientation="Horizontal"
HorizontalOptions="EndAndExpand" VerticalOptions="CenterAndExpand">
<Label x:Name="scoreCountLabel"
TextColor="{Binding BindingContext.TickMarkColor, Source={Reference pfs}}"/>
</StackLayout>
我想了解 TextColor 是如何设置的。有人可以向我解释为什么开发人员设置了 Source={Reference pfs}
为什么需要它,因为它已经在名为 pfs 的 StackLayout 中?
【问题讨论】:
标签: xamarin xamarin.forms