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

网站免费正能量直接进入在线响应式布局和弹性布局的区别

网站免费正能量直接进入在线,响应式布局和弹性布局的区别,网页设计培训高清图集,小程序ui设计触发器能够在改变属性值的时候#xff0c;根据值变化执行操作#xff0c;在不需要创建一个新的控件的情况下#xff0c;可以动态的改变控件的外观#xff0c;当条件满足时#xff0c;触发器可以改变任何属性的值#xff0c;触发器通常定义在Style中#xff0c;在窗体的根…触发器能够在改变属性值的时候根据值变化执行操作在不需要创建一个新的控件的情况下可以动态的改变控件的外观当条件满足时触发器可以改变任何属性的值触发器通常定义在Style中在窗体的根节点下被应用到指定的控件Property Triggers在Triggers集合中一个Trigger对象当Trigger中定义的条件满足时则会触发相应的操作下面例子当鼠标移动到按钮上时鼠标会变成手状态Window x:ClassExample_07.MainWindowxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:dhttp://schemas.microsoft.com/expression/blend/2008xmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006xmlns:localclr-namespace:Example_07 mc:Ignorabled TitleMainWindow Height450 Width800Window.ResourcesStyle TargetTypeButtonStyle.TriggersTrigger PropertyIsMouseOver ValueTrueSetter PropertyCursor ValueHand //Trigger/Style.Triggers/Style/Window.ResourcesGridButton Width200 Height100 Grid.Row0 Grid.ColumnSpan2Hello World/Button/Grid /WindowData TriggersData Triggers 表示当绑定的数据满足条件时会执行相应操作这里我们先做一个简单的DataTrigger演示当我们选中CheckBox时会改变对应TextBlock中的值Window x:ClassExample_07.DataTriggerSamplexmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:dhttp://schemas.microsoft.com/expression/blend/2008xmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006xmlns:localclr-namespace:Example_07 mc:Ignorabled TitleDataTriggerSample Height200 Width300Window.ResourcesStyle TargetTypeTextBlockStyle.TriggersDataTrigger Binding{Binding ElementNamecbIsPass,PathIsChecked} ValueTrueSetter PropertyText ValuePass/SetterSetter PropertyForeground ValueGreen/SetterSetter PropertyFontSize Value40/Setter/DataTriggerDataTrigger Binding{Binding ElementNamecbIsPass,PathIsChecked} ValueFalseSetter PropertyText ValueNO/SetterSetter PropertyForeground ValueRed/SetterSetter PropertyFontSize Value40/Setter/DataTrigger/Style.Triggers/Style/Window.ResourcesGridGrid.RowDefinitionsRowDefinition Height20/RowDefinitionRowDefinition Height100/RowDefinition/Grid.RowDefinitionsCheckBox Grid.Row0 NamecbIsPass Content是否通过 Width100 Height30/CheckBoxTextBlock Grid.Row1 TextAlignmentCenter/TextBlock/Grid /WindowEvent Triggers事件触发器表示当指定的事件触发时会执行对应的操作事件触发器一般应用在动画中下面例子演示鼠标移动到控件上时字体会变大当鼠标离开时字体会恢复原始状态Window x:ClassExample_07.EventTriggerSamplexmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:dhttp://schemas.microsoft.com/expression/blend/2008xmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006xmlns:localclr-namespace:Example_07 mc:Ignorabled TitleEventTriggerSample Height450 Width800Window.ResourcesStyle TargetTypeTextBlockStyle.TriggersEventTrigger RoutedEventMouseEnterEventTrigger.ActionsBeginStoryboardStoryboardDoubleAnimation Duration0:0:3 Storyboard.TargetPropertyFontSize To100//Storyboard/BeginStoryboard/EventTrigger.Actions/EventTriggerEventTrigger RoutedEventMouseLeaveEventTrigger.ActionsBeginStoryboardStoryboardDoubleAnimation Duration0:0:3 Storyboard.TargetPropertyFontSize To18 //Storyboard/BeginStoryboard/EventTrigger.Actions/EventTrigger/Style.Triggers/Style/Window.ResourcesStackPanel VerticalAlignmentCenterTextBlock Text事件触发器 TextAlignmentCenter/TextBlock/StackPanel /Window我们介绍了WPF常用的三种类型触发器Trigger、DataTrigger、EventTrigger另外还有两种多条件触发器MultiTrigger、MultiDataTrigger满足多个条件是触发
http://www.zqtcl.cn/news/890901/

相关文章:

  • 微博上如何做网站推广蝉知和wordpress
  • 泷澄建设集团网站北京建设执业资格注册网站
  • 门户网站建设情况报告深圳龙岗房价多少钱一平方米
  • 网站建设备案是什么ps培训班
  • 深圳网站推广优化wordpress 运行速度慢
  • 谁能给个网站谢谢发布广东建设工程信息网站
  • 网站建设用户需求分析中国加盟网
  • 建设上线网站seo关键词优化软件排名
  • 郑州手工网站建设公司企业做网站好做吗
  • 苏华建设集团网站产品营销网站
  • 郑州专业做网站的网站收录最好的方法
  • 微信小程序网站建设哪家好视频教学网站开发
  • 个人网站排行网站集约化后如何建设
  • 企业网站维护wordpress特效代码
  • 建设银行网站短信错误6次wordpress新主题去版权
  • 国外 配色网站天猫店购买交易平台
  • 网站推广广告词大全集网站和网络建设自查报告
  • 电子商务网站建设备案须知自己做的网站服务器在哪里
  • 怎样用wordpress做网站wordpress 首页判断
  • jsp做的网站效果织梦网站程序模板
  • 展示型网站设计公司网盘wordpress
  • 网站建设 保密学服装设计后悔了
  • 网站建设前端和后端网站开发所遵循的
  • 有自己域名的个人网站企业网站建设制作公司
  • 工程行业网站优化网站推广排名
  • 青岛网站建设软件下载广州app网站建设
  • 天津市建设厅官方网站qq电脑版登录
  • 贵阳手机网站建设公司辽源网站建设
  • 淄博网站设计制作wordpress 纯静态首页
  • 规划电子商务网站流程福清建设局网站简介