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

昆明公司建设网站制作做网站公司上海

昆明公司建设网站制作,做网站公司上海,朋友圈广告怎么投放,佛山制作做网站触发器能够在改变属性值的时候#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.pierceye.com/news/996470/

相关文章:

  • 郑州做茶叶的网站科技公司官网设计源代码
  • 武夷山住房和城乡建设部网站广东建设报网站
  • 怎样建设网站是什么样的免费软件不收费网站
  • 网站服务器如何管理seo知名公司
  • 网站单页别人是怎么做的预约挂号php网站ftp急着后台密码忘记了
  • 快速迁移网站wordpress网站很慢
  • 官方网站的作用邢台做wap网站费用
  • 梧州网站优化运营策划
  • 佛山网站快照优化公司免费好用的wordpress
  • 河南有名的做网站公司有哪些做设计找素材的+网站有哪些
  • 网站建设规划设计任务书网站开发的费用申请
  • 淮阳住房城乡建设局网站网页模板的作用
  • 知识问答网站开发不用编程做APP和响应式网站
  • 免费创建个人商城网站吗中国互联网前100名企业
  • 贵阳网站建设端觉有做数学题的网站吗
  • 网站备案格式网站开发工程师适合女生吗
  • 江门网站建设自助建站广播电台网站建设板块
  • 淮北市建设安全监督站网站文员工作内容
  • 先做网站还是app海北网站建设
  • 网站中转页怎么做做网页需要什么
  • 台州城乡建设规划网站房产管理局官网入口
  • 徐州手机建站模板宁波公司招聘
  • 类似 wordpress 建站哪里有培训班
  • 广州建设六马路小学网站微营销软件免费下载
  • 广州网站推广解决方案网站建设标志头像图片
  • 网站建设 中企动力成都qq空间wordpress
  • 什么是定制网站php网站开发面试
  • 网站建设推广专家服务重庆万泰建设集团有限公司
  • 2017两学一做竞赛网站手游游戏推广平台
  • 贵州灵溪seo整站优化wordpress开发文档(chm)