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 如何做一 ...
随机推荐
- 移动端自动化==>Appium定位方式总结
1.ID Android Android的resource-id对应ID定位方式,可以通过index来获取需要的元素(从0开始查找dom树中的同名resource-id属性).使用appium-des ...
- linux防火墙iptables简单介绍
--append -A chain Append to chain --delete -D chain Delete matching rule from chain ...
- kubeadm初始化kubernetes集群
有两种方式安装集群: 1.手动安装各个节点的各个组件,安装极其复杂困难. 2.使用工具:kubeadm kubeadm 是官方提供的专门部署集群的管理工具. 1. 在kubeadm下每个节点都需要安装 ...
- EML文件(MIME邮件)格式分析
电子邮件普遍遵循的邮件技术规范.MIME邮件由邮件头和邮件体两部分组成.邮件头包括:标题,送信人,收信人,创建日期,邮件体内容类型和邮件体编码方式等内容.邮件体包括:正文,超文本,内嵌数据和附件等内容 ...
- [LeetCode] 108. 将有序数组转换为二叉搜索树
题目链接 : https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree/ 题目描述: 将一个按照升序排列的 ...
- Windows下spark1.6.0本地环境搭建
由于spark是用scala编写的,且需要jdk的环境支撑,所以本地spark环境的搭建需要四个步骤:JDK的安装,scala的安装,hadoop的配置,spark的配置. 一.jdk的安装与环境变量 ...
- 洛谷 - P1462 - 通往奥格瑞玛的道路 - 二分 - Dijkstra
https://www.luogu.org/problem/P1462 感觉,要二分最大收费权的城市,把小于等于它的全部插进去,Dijkstra一下求出最小的血量.这样感觉太暴力了. 考虑只有1000 ...
- Linux文档整理之【Nginx安装Docker】
这次整理的文档是Docker安装 先说明下我用的系统是Linux Centos,不同的Linux版本差别不大. 1.安装依赖包 sudo yum install -y yum-utils device ...
- Linux文档整理之【Mysql安装与配置】
最近公司让整理一个Linux安装Mysql的文档.所以就整理了一下,这里将自己整理的详细文档做个笔记. 1.下载Mysql. https://dev.mysql.com/downloads/mysql ...
- linux c 的main 函数中的return 和 查看返回参数 argv 与 argc 作用
hello.c #include <stdio.h> int main(int argv, char* argc[]) { printf("hello word!\n" ...