首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xamarin窗体卡用户界面设计

Xamarin窗体卡用户界面设计
EN

Stack Overflow用户
提问于 2022-08-08 10:59:47
回答 2查看 44关注 0票数 0

我刚开始使用xamarin,有一次被困住了。我想做一个像照片里那样的设计,我应该使用什么,我应该怎么做?

EN

回答 2

Stack Overflow用户

发布于 2022-08-08 11:20:26

代码语言:javascript
复制
<Switch x:Name="styleSwitch" />
<Label Text="Lorem ipsum dolor sit amet, elit rutrum, enim hendrerit augue vitae praesent sed non, lorem aenean quis praesent pede.">
    <Label.Triggers>
        <DataTrigger TargetType="Label"
                     Binding="{Binding Source={x:Reference styleSwitch}, Path=IsToggled}"
                     Value="true">
            <Setter Property="FontAttributes"
                    Value="Italic, Bold" />
            <Setter Property="FontSize"
                    Value="Large" />
        </DataTrigger>
    </Label.Triggers>
</Label>

来自链接的参考。PLease看看这个。

票数 0
EN

Stack Overflow用户

发布于 2022-08-08 19:11:48

关于Jason的评论,请扩展如下:

代码语言:javascript
复制
<Grid RowDefinitions="50,50" ColumnDefinitions="200,200">

  <Label Grid.Row="0" Grid.ColumnSpan="2" Text="Bildirimier" HorizontalTextAlignment="Center" />

  <StackLayout Grid.Row="1" Grid.Column="0" Orientation="Horizontal">
    <Label Text="Uygulama Bildirimiera" MaxLines="2" />
    <Switch />
  </StackLayout>

  <StackLayout Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
    <Label Text="Mesajilara Izin Ver" MaxLines="2" />
    <Switch />
  </StackLayout>

</Grid>

根据需要调整。查询"Grid“、"Label”、"StackLayout“、"Switch”以获取更多详细信息。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73276815

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档