WPF 远程显示原图 当前主页面 工具栏 一个Window页面的元素适用一个效果
http://www.jb51.net/article/98384.htm
1.wpf远程显示原图:
Stretch="Fill"
- string enterImgPath = "远程地址" + @".//EnterCarPic\05-03\test.jpg" + "&w=" + + "&h=" + ;
主要是因为那个950和650,据显示位置大小给予
2.当前主页面:Application.Current.MainWindow引用程序的主窗口(几个主窗口另当别论)
http://www.cnblogs.com/tsliwei/p/6212162.html
3.工具栏
- <ToolBar Height="" Background="#343536" DockPanel.Dock="Top" >
- <Button Tag="月卡查询" Name="YKCX">
- <StackPanel >
- <Border BorderBrush="White" BorderThickness="0,0,0,1" CornerRadius="" Width="" Height="">
- <Button x:Name="btn_DisCountCardInfo" ToolTip="月卡查询" Style="{DynamicResource SystemButton}" Click="btn_DisCountCardInfo_Click" >
- <!-- Click=""-->
- <Button.Background>
- <ImageBrush ImageSource="images/fax.ico"></ImageBrush>
- </Button.Background>
- </Button>
- </Border>
- <!-- <ToolBar >
- <Menu DockPanel.Dock="Top">
- <MenuItem Header="查看信息" >
- <MenuItem Header="打开">
- <MenuItem Header="1.txt"></MenuItem>
- <MenuItem Header="2.txt"></MenuItem>
- <MenuItem Header="3.txt"></MenuItem>
- </MenuItem>
- <MenuItem Header="退出" Name="miExit2"></MenuItem>
- </MenuItem>
- </Menu>
- </ToolBar>-->
- <TextBlock FontSize="" HorizontalAlignment="Center" VerticalAlignment="Bottom" >
- <TextBlock.Text>月卡查询</TextBlock.Text>
- <TextBlock.Foreground>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="Gray" Offset="0.0" />
- <GradientStop Color="Gray" Offset="1.0" />
- </LinearGradientBrush>
- </TextBlock.Foreground>
- </TextBlock>
- </StackPanel>
- </Button>
- <Separator></Separator>
- <Button Tag="VIP卡查询" Name="VIPCQ" Visibility="Collapsed">
- <StackPanel >
- <Border BorderBrush="White" BorderThickness="0,0,0,1" CornerRadius="" Width="" Height="">
- <Button x:Name="btn_DisCountCardInfo2" ToolTip="VIP卡查询" Style="{DynamicResource SystemButton}" >
- <!-- Click=""-->
- <Button.Background>
- <ImageBrush ImageSource="images/fax.ico"></ImageBrush>
- </Button.Background>
- </Button>
- </Border>
- <TextBlock FontSize="" HorizontalAlignment="Center" VerticalAlignment="Bottom" >
- <TextBlock.Text>VIP卡查询</TextBlock.Text>
- <TextBlock.Foreground>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="Gray" Offset="0.0" />
- <GradientStop Color="Gray" Offset="1.0" />
- </LinearGradientBrush>
- </TextBlock.Foreground>
- </TextBlock>
- </StackPanel>
- </Button>
- <Separator Name="sptor_VIPCardQuery" Visibility="Collapsed"></Separator>
- <Button Tag="交接班" Name="JJB">
- <StackPanel >
- <Border BorderBrush="White" BorderThickness="0,0,0,1" CornerRadius="" Width="" Height="">
- <Button x:Name="btn_DisCountCardInfo3" ToolTip="交接班" Style="{DynamicResource SystemButton}" >
- <!-- Click=""-->
- <Button.Background>
- <ImageBrush ImageSource="images/fax.ico"></ImageBrush>
- </Button.Background>
- </Button>
- </Border>
- <TextBlock FontSize="" HorizontalAlignment="Center" VerticalAlignment="Bottom" >
- <TextBlock.Text>交接班</TextBlock.Text>
- <TextBlock.Foreground>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="Gray" Offset="0.0" />
- <GradientStop Color="Gray" Offset="1.0" />
- </LinearGradientBrush>
- </TextBlock.Foreground>
- </TextBlock>
- </StackPanel>
- </Button>
- <Separator></Separator>
- <Button Tag="收费情况" Name="收费情况">
- <StackPanel >
- <Border BorderBrush="White" BorderThickness="0,0,0,1" CornerRadius="" Width="" Height="">
- <Button x:Name="btn_DisCountCardInfo4" ToolTip="收费情况" Style="{DynamicResource SystemButton}" >
- <!-- Click=""-->
- <Button.Background>
- <ImageBrush ImageSource="images/fax.ico"></ImageBrush>
- </Button.Background>
- </Button>
- </Border>
- <TextBlock FontSize="" HorizontalAlignment="Center" VerticalAlignment="Bottom" >
- <TextBlock.Text>收费情况</TextBlock.Text>
- <TextBlock.Foreground>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="Gray" Offset="0.0" />
- <GradientStop Color="Gray" Offset="1.0" />
- </LinearGradientBrush>
- </TextBlock.Foreground>
- </TextBlock>
- </StackPanel>
- </Button>
- <Separator></Separator>
- <Button Tag="设置" Name="设置">
- <StackPanel >
- <Border BorderBrush="White" BorderThickness="0,0,0,1" CornerRadius="" Width="" Height="">
- <Button x:Name="btn_DisCountCardInfo5" ToolTip="设置" Style="{DynamicResource SystemButton}" >
- <!-- Click=""-->
- <Button.Background>
- <ImageBrush ImageSource="images/fax.ico"></ImageBrush>
- </Button.Background>
- </Button>
- </Border>
- <TextBlock FontSize="" HorizontalAlignment="Center" VerticalAlignment="Bottom" >
- <TextBlock.Text>设置</TextBlock.Text>
- <TextBlock.Foreground>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="Gray" Offset="0.0" />
- <GradientStop Color="Gray" Offset="1.0" />
- </LinearGradientBrush>
- </TextBlock.Foreground>
- </TextBlock>
- </StackPanel>
- </Button>
- <Separator></Separator>
- <Button Tag="修改密码" Name="修改密码">
- <StackPanel >
- <Border BorderBrush="White" BorderThickness="0,0,0,1" CornerRadius="" Width="" Height="">
- <Button x:Name="btn_DisCountCardInfo6" ToolTip="修改密码" Style="{DynamicResource SystemButton}" >
- <!-- Click=""-->
- <Button.Background>
- <ImageBrush ImageSource="images/fax.ico"></ImageBrush>
- </Button.Background>
- </Button>
- </Border>
- <TextBlock FontSize="" HorizontalAlignment="Center" VerticalAlignment="Bottom" >
- <TextBlock.Text>修改密码</TextBlock.Text>
- <TextBlock.Foreground>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="Gray" Offset="0.0" />
- <GradientStop Color="Gray" Offset="1.0" />
- </LinearGradientBrush>
- </TextBlock.Foreground>
- </TextBlock>
- </StackPanel>
- </Button>
- <Separator></Separator>
- <Button Tag="关于" Name="关于">
- <StackPanel >
- <Border BorderBrush="White" BorderThickness="0,0,0,1" CornerRadius="" Width="" Height="">
- <Button x:Name="btn_DisCountCardInfo7" ToolTip="关于" Style="{DynamicResource SystemButton}" >
- <!-- Click=""-->
- <Button.Background>
- <ImageBrush ImageSource="images/fax.ico"></ImageBrush>
- </Button.Background>
- </Button>
- </Border>
- <TextBlock FontSize="" HorizontalAlignment="Center" VerticalAlignment="Bottom" >
- <TextBlock.Text>关于</TextBlock.Text>
- <TextBlock.Foreground>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="Gray" Offset="0.0" />
- <GradientStop Color="Gray" Offset="1.0" />
- </LinearGradientBrush>
- </TextBlock.Foreground>
- </TextBlock>
- </StackPanel>
- </Button>
- </ToolBar>
- <!--<ToolBar DockPanel.Dock="Top" Height="" >
- <Image Source="images/fax.ico" Width=""></Image>
- <Button Tag="现金收费" >
- <Image Source="images/fax.ico" ></Image>
- </Button>
- <Border BorderBrush="SteelBlue" >
- <Button Content=" hhhhhhhhh" >
- </Button>
- </Border>
- <Menu DockPanel.Dock="Top">
- <MenuItem Header="文件">
- <MenuItem Header="打开">
- <MenuItem Header="1.txt"></MenuItem>
- <MenuItem Header="2.txt"></MenuItem>
- <MenuItem Header="3.txt"></MenuItem>
- </MenuItem>
- <MenuItem Header="退出" Name="miExit2" Click="miExit_Click"></MenuItem>
- </MenuItem>
- <MenuItem Header="编辑">
- <MenuItem Header="复制"></MenuItem>
- <MenuItem Header="粘贴"></MenuItem>
- </MenuItem>
- </Menu>
- <Button>
- <Image Source="images/fax.ico"></Image>
- </Button>
- </ToolBar>-->
4.一个Window页面的元素适用一个效果:
- <Window.Resources>
- <Style TargetType="目标标签名称">
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#000000" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </Window.Resources>
WPF 远程显示原图 当前主页面 工具栏 一个Window页面的元素适用一个效果的更多相关文章
- WPF: 针对Windows 8优化菜单栏和工具栏
原文 WPF: 针对Windows 8优化菜单栏和工具栏 目录 1. 关于菜单图标大小 2. 关于IsEnabled和工具栏图标 3. 针对.NET 3.x的菜单栏和工具栏外观 返回目录 1. 关于菜 ...
- WPF 图片显示中的保留字符问题
在WPF中显示一张图片,本是一件再简单不过的事情.一张图片,一行XAML代码即可. 但是前段时间遇到了一件奇怪的事: 开发机上运行正常的程序,在某些客户机器上却显示不了图片,而且除了这个问题,其它运行 ...
- 【转帖】远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm)
远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm) https://zhuanlan.zhihu.com/p/310 ...
- 远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm)
在做 数据分析(数据挖掘 或 机器学习)的时候,我们经常需要绘制一些统计相关的图表,这些统计.绘图的程序常常是跑在服务器上的,可是服务器出于性能和效率的考虑,通常都是没有安装图形化界面的,于是这些统计 ...
- 在WPF中显示动态GIF
在我们寻求帮助的时候,最不愿意听到的答复是:很抱歉,在当前版本的产品中还没有实现该功能... 在WPF中显示动态的GIF图像时便遇到了这样的问题,WPF中强大的Image控件却不支持动态的GIF(其只 ...
- 解决配置Ubuntu中vnc远程显示灰屏
解决配置Ubuntu中vnc远程显示灰屏a. 缺失图形化工具b. ~/.vnc/xstartup 权限不对1. Ubuntu 16.04 安装 VNC 及 Mate 桌面环境https://www. ...
- WPF 小矢量图 : 主页,返回,加,减,文字按钮,左移,右移
原文:WPF 小矢量图 : 主页,返回,加,减,文字按钮,左移,右移 代码:: <UserControl x:Class="SQ.TestPage" xmlns=" ...
- WPF 循环显示列表
原文:WPF 循环显示列表 版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/SANYUNI/article/details/79423707 项目需要 ...
- WPF 窗体显示最前端
原文:WPF 窗体显示最前端 版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/jjx0224/article/details/8782845 如何做一 ...
随机推荐
- idea 使用过程中的一些设置记录
1.XML sql底色 在mapper文件中,SQL出现黄色的底色. ** settings ** > ** inspections ** 去掉 ** SQL ** 中的 ** No data ...
- 嵌套的frame
自动化的测试中,iframe的嵌套也是很常见的,对于嵌套的iframe,我们处理的方式是先进入到iframe的父节点, 再进入到子节点,然后可以对子节点里面的对象进行处理和操作.如下的html代码效果 ...
- 【EWM系列】SAP EWM中仓库任务WT创建的函数
公众号:SAP Technical 本文作者:matinal 原文出处:http://www.cnblogs.com/SAPmatinal/ 原文链接:[EWM系列]SAP EWM中仓库任务WT创建的 ...
- 【Qt开发】解决Qt5.7.0中文显示乱码的问题
[Qt开发]解决Qt5.7.0中文显示乱码的问题 亲测可用: 乱码主要是编码格式的问题,这里可以通过Edit菜单中选择当前文档的编码方式,选择按照UTF-8格式保存,然后输入对应的中文,保存,然后运行 ...
- 一、Zabbix-学习列表
近期本人在求职,面试了几家,觉得监控是一个很重要的事情,所以决定深入学习一下监控.目前的监控系统有很多,Zabbix是目前应用最广泛的开源监控之一,功能比较完善,所以决定学习一下. 目前将学习zabb ...
- 复制/etc目录下所有以p开头,以非数字结尾的文件或目录到/tmp/mytest1目录中
cp -r /etc/p*[a-Z] /tmp/mytest1
- Nginx日志监控 使用 goaccess查看nginx日志
nginx日志监控 yum install goaccess 安装使用教程 goaccess access.log -o ../html/report.html --real-time-html ...
- mysql(5.6及以下)解析json
转自:https://blog.csdn.net/weixin_33979203/article/details/87621768 #json解析函数 DELIMITER $$ DROP FUNCTI ...
- CAS单点登录系统入门--分布式登录验证
1.开源单点登录系统CAS入门 1.1 什么是单点登录 单点登录(Single Sign On),简称为 SSO,是目前比较流行的企业业务整合的解决方案之一.SSO的定义是在多个应用系统中,用户只需要 ...
- centos7使用kubeadm搭建kubernetes集群
一.本地实验环境准备 服务器虚拟机准备 IP CPU 内存 hostname 192.168.222.129 >=2c >=2G master 192.168.222.130 >=2 ...