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

重庆网站备案查询系统小说网站排名怎么做

重庆网站备案查询系统,小说网站排名怎么做,加强学校网站建设的通知,wordpress浏览doc这种应用场景其实很多#xff0c;比如游戏中装备/魔法的选择菜单#xff0c;这里借用了深蓝色右手的一张图 再比如聊天室中的文本颜色设置 虽然sl的ToolTipService.ToolTip属性可以设置任何对象#xff0c;比如下面这样 代码 1 Rectangle FillRed比如游戏中装备/魔法的选择菜单这里借用了深蓝色右手的一张图  再比如聊天室中的文本颜色设置  虽然sl的ToolTipService.ToolTip属性可以设置任何对象比如下面这样 代码 1 Rectangle FillRed Height50 Width50 ToolTipService.PlacementTop2             ToolTipService.ToolTip3                 StackPanel OrientationHorizontal4                     Rectangle FillGreen Height50 Width50/Rectangle5                     Rectangle FillBlue Height50 Width50 Margin1,0,0,0/Rectangle6                     Rectangle FillPink Height50 Width50 Margin1,0,0,0/Rectangle7                 /StackPanel8             /ToolTipService.ToolTip           9         /Rectangle  但是有一个问题鼠标一旦离开对象tooltip就消失了没办法在tooltip工具栏上点选操作。  所以得换一种思路可以借助VSM方便的实现设置好tooltip工具条后定义二个基本的状态Enter Leave 即可Enter状态中设置tooltip对应的对象显示Leave状态中设置tooltip对象隐藏示例代码(Xaml) 代码 UserControl    xmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentation     xmlns:xhttp://schemas.microsoft.com/winfx/2006/xaml    xmlns:dhttp://schemas.microsoft.com/expression/blend/2008 xmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006     mc:Ignorabled    x:ClasstooltipTest.MainPage    d:DesignWidth640 d:DesignHeight480    Grid x:NameLayoutRoot        !--视觉状态定义区--        VisualStateManager.VisualStateGroups            VisualStateGroup x:NameCommStates                VisualState x:NameEnter                    Storyboard                        ObjectAnimationUsingKeyFrames BeginTime00:00:00 Storyboard.TargetNameitemsTip Storyboard.TargetProperty(UIElement.Visibility)                            DiscreteObjectKeyFrame KeyTime00:00:00                                DiscreteObjectKeyFrame.Value                                    VisibilityVisible/Visibility                                /DiscreteObjectKeyFrame.Value                            /DiscreteObjectKeyFrame                        /ObjectAnimationUsingKeyFrames                    /Storyboard                /VisualState                VisualState x:NameLeave                    Storyboard                        ObjectAnimationUsingKeyFrames BeginTime00:00:00 Storyboard.TargetNameitemsTip Storyboard.TargetProperty(UIElement.Visibility)                            DiscreteObjectKeyFrame KeyTime00:00:00.1                                DiscreteObjectKeyFrame.Value                                    VisibilityCollapsed/Visibility                                /DiscreteObjectKeyFrame.Value                            /DiscreteObjectKeyFrame                        /ObjectAnimationUsingKeyFrames                    /Storyboard                /VisualState            /VisualStateGroup        /VisualStateManager.VisualStateGroups        Canvas HorizontalAlignmentCenter VerticalAlignmentCenter x:NamecTip Height20 Width20 CursorHand MouseLeaveGoToLeave MouseEnterGoToEnter            Rectangle x:NamerColor FillBlack Width20 Height20 ToolTipService.ToolTip选择颜色/            !--tip显示区--            ItemsControl x:NameitemsTip Canvas.Top-21 Canvas.Left0 VisibilityCollapsed                ItemsControl.ItemsPanel                    ItemsPanelTemplate                        StackPanel OrientationHorizontal/                    /ItemsPanelTemplate                /ItemsControl.ItemsPanel                ItemsControl.ItemTemplate                    DataTemplate                        Rectangle Fill{Binding Color} ToolTipService.ToolTip{Binding Name} Width20 Height20 Margin0,0,1,0 MouseLeftButtonDownChangeColor/                    /DataTemplate                /ItemsControl.ItemTemplate            /ItemsControl        /Canvas            /Grid/UserControl 后端代码 代码 using System.Collections.Generic;using System.Windows;using System.Windows.Controls;using System.Windows.Input;using System.Windows.Media;using System.Windows.Shapes;namespace tooltipTest{    public partial class MainPage : UserControl    {        ListFillColor lstTipsData;        public MainPage()        {            InitializeComponent();            //初始化数据            lstTipsData  new ListFillColor() {                 new FillColor(){ Color  new SolidColorBrush(Colors.Red), Name红色},                new FillColor(){ Color  new SolidColorBrush(Colors.Blue), Name蓝色},                new FillColor(){ Color  new SolidColorBrush(Colors.Green),Name绿色},                new FillColor(){ Color  new SolidColorBrush(Colors.Magenta), Name洋红},                new FillColor(){ Color  new SolidColorBrush(Colors.Black), Name黑色},                new FillColor(){ Color  new SolidColorBrush(Colors.Orange), Name橙色},            };            this.Loaded  new RoutedEventHandler(MainPage_Loaded);        }        void MainPage_Loaded(object sender, RoutedEventArgs e)        {            itemsTip.ItemsSource  lstTipsData; //数据绑定                   }        private void GoToEnter(object sender, MouseEventArgs e)        {            VisualStateManager.GoToState(this, Enter, false);        }        private void GoToLeave(object sender, MouseEventArgs e)        {            VisualStateManager.GoToState(this, Leave, false);        }        /// summary        /// 点击后更换颜色        /// /summary        /// param namesender/param        /// param namee/param        private void ChangeColor(object sender, MouseButtonEventArgs e)        {            rColor.Fill  (sender as Rectangle).Fill;            VisualStateManager.GoToState(this, Leave, false);        }    }    /// summary    /// 测试实体类    /// /summary    public class FillColor    {        public SolidColorBrush Color { set; get; }        public string Name { set; get; }    }}    转载于:https://www.cnblogs.com/yjmyzz/archive/2009/12/12/1622697.html
http://www.yutouwan.com/news/459359/

相关文章:

  • 我们常见的网站有哪些方面怎么在悉尼做网站
  • wordpress网站安全西安网站开发高端网站开发
  • 郑州网站seo微网站免费模板
  • 广告公司网站源码下载上海发布官网app
  • 单本小说网站定制网站建设公司
  • 网站添加在线支付ipv6跟做网站有关吗
  • 罗湖区网站建设怎么制作自己的个人网站
  • 随州程力网站建设福建网站开发定制
  • 撰写网站建设策划书范文关键词怎么优化
  • 最好的做网站公司企业网站制作前期需要什么资料
  • 长沙网站建设及推广公司餐饮加盟网网站建设
  • 南京网络建站模板美术馆网站建设方案书
  • 企业网站怎么做html营销型网站 平台
  • 360网站提交入口地址网站倍攻击
  • 北京的网站建设公司哪家好wordpress导出文章word
  • 做网站建设公司在统计局网站上如何做图表
  • 大型网站如何优化如何建立淘宝客网站
  • 个人网站备案可以放什么内容龙陵县住房和城乡建设局网站
  • 天津网站优化公司哪家好wordpress 主题选项
  • 网站建设渠道代理任务书贵阳市有翻译资质的公司
  • wordpress的网站白云区最新新闻
  • 手机产品展示网站模板直缝钢管网站建设
  • 宁波网站建设yiso汽车之家网页版入口
  • 郑州 科技有限公司 网站建设网站生成器下载
  • 企业网站数据库有经验的坪山网站建设
  • wordpress站点进入时弹窗婚嫁网站建设计划
  • 企业网站seo分析徽文化网站建设方案书
  • 专做hip hop音乐的网站怎样辨别自己网站的好坏
  • 做网站后端建行官网个人登录
  • 阿里云服务器wordpress建站教程做淘宝券推广的网站有哪些