当前位置: 首页 > news >正文

这么注册免费网站手机网站 数据库

这么注册免费网站,手机网站 数据库,有没有免费看的视频,网站建设与管理考试题实现步骤 实现左右布局 使用了Grid两列的网格布局&#xff0c;第一列宽度占35%&#xff0c;第二列宽度占65%。使用容器布局Border包裹左右布局内容&#xff0c;设置背景色、设置圆角 <!-- 定义两列--> <Grid.ColumnDefinitions><ColumnDefinition Width &quo…

 

实现步骤

实现左右布局

  • 使用了Grid两列的网格布局,第一列宽度占35%,第二列宽度占65%。
  • 使用容器布局Border包裹左右布局内容,设置背景色、设置圆角
<!-- 定义两列-->
<Grid.ColumnDefinitions><ColumnDefinition Width ="0.35*"></ColumnDefinition><ColumnDefinition Width ="0.65*"></ColumnDefinition></Grid.ColumnDefinitions><!-- 左侧布局具体实现-->
<Border Grid.Column="0" CornerRadius="10,0,0,10"><Border.Background><LinearGradientBrush StartPoint="0,0" EndPoint="1,1"><GradientStop Color="#00999A" Offset="0"/><GradientStop Color="#0072c0" Offset="1"/></LinearGradientBrush></Border.Background>
</Border>
<!-- 右侧布局具体实现--><Border Grid.Column="1" CornerRadius="0,10,10,0" Background="WhiteSmoke"></Border>

编写左侧布局

Grid.Column="1" 这一行代码的作用是将一个 Border 控件放置在 Grid 的第一列

Border中的CornerRadius圆角元素和Margin外边距元素的值的顺序,左,上,右,下

 <StackPanel Grid.Column="0"><TextBlock Margin="0,100,0,0" Text="bilibili" Foreground="White"FontSize="40" HorizontalAlignment="Center" FontWeight="Bold"/><TextBlock Margin="20,5,20,0"Text="Welcome to the bilibili. You can register by clicking the  button below"TextWrapping="WrapWithOverflow" Foreground="White" LineHeight="25"/><Button Margin="0,80,0,0" Content="Sign Up" Foreground ="White"Background="Transparent" BorderBrush="White" Width="200"/></StackPanel>

编写右侧布局

<!-- 右侧布局 --><Border Grid.Column="1" CornerRadius="0,10,10,0" Background="WhiteSmoke"> <!-- 圆角边框,浅灰色背景 --><StackPanel Margin="20"> <!-- 内容面板,包含登录表单和其他UI元素 --><!-- 登录提示 --><TextBlock Text="Sign in to bilibili" Foreground="#0072c0" FontSize="30" HorizontalAlignment="Center" Margin="0,0,0,25" FontWeight="bold"/> <!-- 社交媒体登录按钮 --><StackPanel Orientation="Horizontal" HorizontalAlignment="Center"><Button Background="Transparent" BorderBrush="Transparent"><Image Source="Images\wechat.png" Width="40" Height="40"/></Button><Button Background="Transparent" BorderBrush="Transparent"><Image Source="Images\weibo.png" Width="40" Height="40" Margin="5,0,5,0"/></Button><Button Background="Transparent" BorderBrush="Transparent"><Image Source="Images\qq.png" Width="40" Height="40"/></Button></StackPanel><!-- 提示使用账户信息登录 --><TextBlock Margin="0,15,0,0" Text="or use your account info" TextAlignment="Center" FontFamily="Arial" FontSize="14" Foreground="#878787"/><!-- 用户名输入框 --><Border Margin="0,30,0,0" Height="35" Width="340" BorderBrush="#878787" BorderThickness="1" CornerRadius="20"><StackPanel Orientation="Horizontal"><!-- 绘制原型图像 --><Ellipse Width="25" Height="25" Margin="5,0,0,0"><Ellipse.Fill><ImageBrush ImageSource="Images\user.png"/></Ellipse.Fill></Ellipse><TextBlock Margin="5,0,0,0" Text="username" FontSize="20" FontFamily="Arial" VerticalAlignment="Center"/></StackPanel></Border><!-- 密码输入框 --><Border Margin="0,10,0,0" Height="35" Width="340" BorderBrush="#878787" BorderThickness="1" CornerRadius="20"><StackPanel Orientation="Horizontal"><Ellipse Width="25" Height="25" Margin="5,0,0,0"><Ellipse.Fill><ImageBrush ImageSource="Images\password.png"/></Ellipse.Fill></Ellipse><TextBlock Margin="5,0,0,0" Text="password" FontSize="20" FontFamily="Arial" VerticalAlignment="Center"/></StackPanel></Border><!-- 登录按钮 --><Button Margin="0,25,0,0" Content="Sign In" Width="200" Background="#0072c0" Foreground="Wheat" FontSize="16"/></StackPanel></Border>

<Ellipse> 元素在WPF中用于绘制一个椭圆形或圆形(当宽度和高度相等时)。

代码片段创建了一个宽高均为25像素的圆形,并使用 <ImageBrush> 来填充这个圆形,使得圆形内部显示为图片

使用Canves进行图片布局

Canvas 是一种布局面板,它允许你通过显式设置元素的 Canvas.LeftCanvas.TopCanvas.RightCanvas.Bottom 属性来精确地定位子元素。Canvas 适用于需要绝对定位的场景

  <!-- bilibili图标 -->
<Canvas Grid.Column="0"><Image Source="Images\bilibili_word.png/" Width="40" Height="40"Canvas.Left="30" Canvas.Top="400"></Image></Canvas>
<!-- 退出按钮 --><Canvas Grid.Column="1"><Button Background="Transparent" Canvas.Left="485" Canvas.Top="5"BorderBrush="Transparent"><Image Source="Images\close.png" Width="25" Height="25"/></Button></Canvas>
http://www.yayakq.cn/news/662292/

相关文章:

  • 网站开发用什么wordpress怎么进入编辑模式
  • 百度收录网站排名宁波seo排名如何优化
  • 购买虚拟机建网站广东网站建设工作
  • app网站建设 - 百度wordpress文章显示作者信息
  • 物流信息网站建设微信小程序网站开发
  • 注销网站备案申请表佛山市禅城网站建设公司
  • 淘宝客为什么做网站wordpress模板8
  • 那个网站做宝贝主图好长沙市seo百度关键词
  • 天津优化网站郑州软件开发公司
  • 静态网站怎么做百度推广全国企业网查询信息官网
  • 网站建设框架模板下载青海建设兵团青岛战友网站
  • 做盗版网站违法吗wordpress多余页面怎样删除
  • 自己做链接网站企业网站建设有没有模板
  • 2014年百度seo网站排名的详细优化因素统计wordpress调用文章调节每页数量
  • 建设明星网站的目的工作 网站建设内容
  • 华为网站开发流程服装设计在哪里可以学
  • 企业网站部署计划计算机毕设网站开发中期报告
  • 合肥哪里有做网站的.la域名做的网站
  • c 网站开发环境wordpress 爬虫 视频
  • 佛山网站建设与设计西安seo顾问
  • 遵义网站开发公司微网站如何做微信支付宝
  • 网站pv多少可以上海做产地证在哪个网站录入
  • 网站qq代码如何用网页制作网站
  • 用flash做的经典网站广州seo网站策划
  • 东莞市建设安监局网站免费推广广告链接
  • 哪个网站使用vue 做的如何查看网站页面大小
  • 网站建设的卷子搜索关键词查询工具
  • 高端网站制造wordpress面向对象
  • 全民建站中国商标交易官网
  • 手机网站模板 商城哈尔滨市建设工程交易