【问题标题】:Image in front off text?图片在文字前面?
【发布时间】:2017-08-21 11:19:20
【问题描述】:

因此,使用此代码,我的图像在文本上方,我如何将图像置于文本前面?

<StackLayout Orientation="Vertical" BackgroundColor="DeepSkyBlue" >
    <Image Source="{Binding Image}" />
    <Label Text="{Binding Name}" TextColor="Black" FontSize="Medium" />
    <Label Text="{Binding Tlfnr}" TextColor="Black" FontSize="Small"  />
</StackLayout>

【问题讨论】:

标签: c# image xaml listview xamarin


【解决方案1】:
<StackLayout Orientation="Horizontal" BackgroundColor="DeepSkyBlue" >
    <Image Source="{Binding Image}" />
    <StackLayout Orientation="Vertical">
        <Label Text="{Binding Name}" TextColor="Black" FontSize="Medium" />
        <Label Text="{Binding Tlfnr}" TextColor="Black" FontSize="Small"  />
    </StackLayout>
</StackLayout>

【讨论】:

    猜你喜欢
    • 2020-07-07
    • 2013-03-23
    • 2015-05-16
    • 1970-01-01
    • 2016-09-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-07
    相关资源
    最近更新 更多