标签不会动态扩展
Label doesn't dynamically expand
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:App;assembly=App.Droid"
x:Class="App.MainPage">
<StackLayout>
<StackLayout.BindingContext>
<local:MainModel />
</StackLayout.BindingContext>
<Label Text="{Binding Uri}" />
<Button Text="Clear logs" Command="{Binding LogClear}" />
<ScrollView VerticalOptions="FillAndExpand">
<Label FormattedText="{Binding Log}" VerticalOptions="FillAndExpand" />
</ScrollView>
</StackLayout>
</ContentPage>
Log
在应用程序处于 运行 时得到更新,但标签没有按预期展开。有什么想法吗?
我不能在这里分享细节,但这是 Xamarin.Forms 的一个错误。现在在上游修复了。
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:App;assembly=App.Droid"
x:Class="App.MainPage">
<StackLayout>
<StackLayout.BindingContext>
<local:MainModel />
</StackLayout.BindingContext>
<Label Text="{Binding Uri}" />
<Button Text="Clear logs" Command="{Binding LogClear}" />
<ScrollView VerticalOptions="FillAndExpand">
<Label FormattedText="{Binding Log}" VerticalOptions="FillAndExpand" />
</ScrollView>
</StackLayout>
</ContentPage>
Log
在应用程序处于 运行 时得到更新,但标签没有按预期展开。有什么想法吗?
我不能在这里分享细节,但这是 Xamarin.Forms 的一个错误。现在在上游修复了。