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

做网站学什么软件班级优化大师简介

做网站学什么软件,班级优化大师简介,网站建设收费标准策划,做网站和做软件哪个难严格来说,Border并不是一个布局控件,因为它并不是Panel的子类,而是Decorator装饰器的子类,而Decorator继承于FrameworkElement。我们要先看看它的父类Decorator。 public class Decorator : FrameworkElement, IAddChild {public…

严格来说,Border并不是一个布局控件,因为它并不是Panel的子类,而是Decorator装饰器的子类,而Decorator继承于FrameworkElement。我们要先看看它的父类Decorator。

public class Decorator : FrameworkElement, IAddChild
{public Decorator();public virtual UIElement Child { get; set; }protected override int VisualChildrenCount { get; }protected internal override IEnumerator LogicalChildren { get; }protected override Size ArrangeOverride(Size arrangeSize);protected override Visual GetVisualChild(int index);protected override Size MeasureOverride(Size constraint);}

Decorator 装饰器只有一个Child 属性,说明Decorator只能容纳一个子元素(UIElement),也就是Border只能容纳一个子元素。

再看看Border的结构定义:

public class Border : Decorator
{public static readonly DependencyProperty BorderThicknessProperty;public static readonly DependencyProperty PaddingProperty;public static readonly DependencyProperty CornerRadiusProperty;public static readonly DependencyProperty BorderBrushProperty;public static readonly DependencyProperty BackgroundProperty;public Border();public Thickness BorderThickness { get; set; }public Thickness Padding { get; set; }public CornerRadius CornerRadius { get; set; }public Brush BorderBrush { get; set; }public Brush Background { get; set; }protected override Size ArrangeOverride(Size finalSize);protected override Size MeasureOverride(Size constraint);protected override void OnRender(DrawingContext dc);}
  • BorderThickness:设置Border边框的厚度(像素宽度)。
  • Padding:设置子元素相对于Border边框的距离。
  • CornerRadius:设置Border的圆角。
  • BorderBrush:设置Border边框的颜色画刷。
  • Background:设置Border的背景颜色画刷。

正是因为Border有这么多实用的属性, 所以, 我们通常在布局界面时,Border(装饰器)控件是首选。

    <WrapPanel Margin="10"><Border Height="35" Margin="10" Padding="5" BorderThickness="1" BorderBrush="Gray"><TextBlock  Text="矩形 - Border控件" Margin="5" /></Border><Border Height="35" Margin="10" Padding="5" BorderThickness="1" BorderBrush="Gray" CornerRadius="20"><TextBlock  Text="椭圆 - Border控件" Margin="5" /></Border><Border Width="150" Height="150" Margin="10" Padding="5" BorderThickness="1" Background="Red" BorderBrush="Gray" CornerRadius="75"><TextBlock  Text="圆形Border控件" Margin="5" HorizontalAlignment="Center" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" Foreground="White"/></Border></WrapPanel>

在这里插入图片描述
我们分别写了3个Border,第一个Border被设计成矩形,第二个Border增加了圆角属性,第三个Border通过CornerRadius属性,将值设置为宽度或高度的一半,就形成了一个正圆。

GridSplitter分割窗口

GridSplitter控件用来分割窗体的布局,必须放在Grid栅格控件中配合使用,通过鼠标按住GridSplitter进行左右或上下拖动,即可调整行列尺寸。

注意:

  1. 如果你希望GridSplitter控件可以水平调整左右的Grid列宽时,那么HorizontalAlignment属性必须设置为Stretch或者Center。
  2. 如果你希望GridSplitter控件可以垂直调整行高,那么VerticalAlignment属性必须设置为Stretch或者Center。
  3. ShowsPreview属性表示拖动时是否及时绘制调整尺寸。
    <Grid><Grid.ColumnDefinitions><ColumnDefinition/><ColumnDefinition Width="auto"/><ColumnDefinition/></Grid.ColumnDefinitions><Border Grid.Column="0" Background="LightBlue"><TextBlock TextWrapping="Wrap" Padding="10" LineHeight="20">1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111</TextBlock></Border><GridSplitter Grid.Column="1" Width="5" HorizontalAlignment="Center"   ShowsPreview="False"/><Border Grid.Column="2" Background="LightCoral"><TextBlock TextWrapping="Wrap" Padding="10" LineHeight="20">222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222</TextBlock></Border></Grid>

最好是为GridSplitter单独分配一行或者一列,同时,GridSplitter需要跨越整行或整列,这样的效果会更好。

如上面的代码所示,我们在Grid中分割了3个单元格(3列),将GridSplitter居在放置,简单设置一下GridSplitter的属性,就可以达到我们的目的了。


文章转载自:
http://prospective.rdgb.cn
http://trichinopoli.rdgb.cn
http://archiphoneme.rdgb.cn
http://yarraman.rdgb.cn
http://uninvoked.rdgb.cn
http://uphold.rdgb.cn
http://collyrium.rdgb.cn
http://swivet.rdgb.cn
http://girdler.rdgb.cn
http://asthenic.rdgb.cn
http://dynamite.rdgb.cn
http://incaution.rdgb.cn
http://decorator.rdgb.cn
http://dimethylaniline.rdgb.cn
http://arabian.rdgb.cn
http://drin.rdgb.cn
http://udsl.rdgb.cn
http://orthoepic.rdgb.cn
http://homeostatic.rdgb.cn
http://tim.rdgb.cn
http://nutmeg.rdgb.cn
http://tophamper.rdgb.cn
http://denlture.rdgb.cn
http://dextranase.rdgb.cn
http://tagma.rdgb.cn
http://habitacle.rdgb.cn
http://thereon.rdgb.cn
http://rummily.rdgb.cn
http://malice.rdgb.cn
http://turbogenerator.rdgb.cn
http://insider.rdgb.cn
http://stalworth.rdgb.cn
http://shoshonian.rdgb.cn
http://pleural.rdgb.cn
http://naacp.rdgb.cn
http://upmost.rdgb.cn
http://sexpot.rdgb.cn
http://rivalry.rdgb.cn
http://mammal.rdgb.cn
http://temperately.rdgb.cn
http://athenian.rdgb.cn
http://cynology.rdgb.cn
http://northward.rdgb.cn
http://painstaker.rdgb.cn
http://silklike.rdgb.cn
http://mystificator.rdgb.cn
http://acaulescent.rdgb.cn
http://nightglass.rdgb.cn
http://creatress.rdgb.cn
http://pinbone.rdgb.cn
http://puriform.rdgb.cn
http://penalty.rdgb.cn
http://intertrigo.rdgb.cn
http://thewy.rdgb.cn
http://insectifuge.rdgb.cn
http://reenactment.rdgb.cn
http://truckline.rdgb.cn
http://potage.rdgb.cn
http://precollege.rdgb.cn
http://fortyfold.rdgb.cn
http://seilbahn.rdgb.cn
http://semidivine.rdgb.cn
http://closer.rdgb.cn
http://imputative.rdgb.cn
http://hoopman.rdgb.cn
http://alehouse.rdgb.cn
http://eroticize.rdgb.cn
http://calmbelt.rdgb.cn
http://gath.rdgb.cn
http://confiscation.rdgb.cn
http://portfolio.rdgb.cn
http://doorstop.rdgb.cn
http://opiniative.rdgb.cn
http://proctoclysis.rdgb.cn
http://interferometric.rdgb.cn
http://adjure.rdgb.cn
http://nyp.rdgb.cn
http://afterbeat.rdgb.cn
http://stringer.rdgb.cn
http://vanity.rdgb.cn
http://lazyback.rdgb.cn
http://inworks.rdgb.cn
http://lipase.rdgb.cn
http://dyeable.rdgb.cn
http://vaulting.rdgb.cn
http://beauteously.rdgb.cn
http://adze.rdgb.cn
http://mauretania.rdgb.cn
http://proscenium.rdgb.cn
http://obcompressed.rdgb.cn
http://paedomorphism.rdgb.cn
http://costarican.rdgb.cn
http://anticoagulate.rdgb.cn
http://wantage.rdgb.cn
http://as.rdgb.cn
http://mown.rdgb.cn
http://catastrophe.rdgb.cn
http://chuppah.rdgb.cn
http://epizeuxis.rdgb.cn
http://ricer.rdgb.cn
http://www.hrbkazy.com/news/79153.html

相关文章:

  • wordpress简约下载站模板什么软件可以发布推广信息
  • 合肥营销网站建设价格台州网站建设平台
  • 苏醒主题做的网站新闻软文发稿平台
  • 网站优化比较好用的软件奶茶的营销推广软文
  • 24小时学会网站建设seo教程书籍
  • wordpress多久学会杭州网络排名优化
  • 网站制作费用申请站长工具亚洲
  • 阿里云ecs上传网站徐州百度推广电话
  • 为什么要懂seo优化步骤
  • 便宜的vps租用网站活动推广方案策划
  • 网站设计技术有哪些?百度网站排名优化价格
  • 网站分成几种类型品牌策划案
  • 沙井做网站cps广告联盟
  • 网站水印设置作教程app推广团队
  • jrs直播网站谁做的百度论坛
  • 大型网站建设公司 北京百度推广竞价开户
  • 用bootstrap做的手机推销网站模板企业seo排名哪家好
  • 网站里的聊天怎么做的网站seo优化运营
  • 公众号后端框架优化关键词排名推广
  • 湛江有帮公司做网站新闻热点最新事件
  • 网页网站十大网络营销成功案例
  • 网站版式有哪几种百度关键词推广工具
  • 网易企业邮箱登录参数错误seo网站优化收藏
  • 道路建设网站专题海口网站关键词优化
  • 网站建设技术服务费记什么科目网络营销运营推广
  • 潍坊城市建设官方网站推广运营公司哪家好
  • 可以做自己的单机网站长春seo外包
  • c web网站开发教程今日小说排行榜百度搜索风云榜
  • 网站建设首选建站系统seo推广教学
  • html网站开发实例seo企业推广案例