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页面的元素适用一个效果的更多相关文章

  1. WPF: 针对Windows 8优化菜单栏和工具栏

    原文 WPF: 针对Windows 8优化菜单栏和工具栏 目录 1. 关于菜单图标大小 2. 关于IsEnabled和工具栏图标 3. 针对.NET 3.x的菜单栏和工具栏外观 返回目录 1. 关于菜 ...

  2. WPF 图片显示中的保留字符问题

    在WPF中显示一张图片,本是一件再简单不过的事情.一张图片,一行XAML代码即可. 但是前段时间遇到了一件奇怪的事: 开发机上运行正常的程序,在某些客户机器上却显示不了图片,而且除了这个问题,其它运行 ...

  3. 【转帖】远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm)

    远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm) https://zhuanlan.zhihu.com/p/310 ...

  4. 远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm)

    在做 数据分析(数据挖掘 或 机器学习)的时候,我们经常需要绘制一些统计相关的图表,这些统计.绘图的程序常常是跑在服务器上的,可是服务器出于性能和效率的考虑,通常都是没有安装图形化界面的,于是这些统计 ...

  5. 在WPF中显示动态GIF

    在我们寻求帮助的时候,最不愿意听到的答复是:很抱歉,在当前版本的产品中还没有实现该功能... 在WPF中显示动态的GIF图像时便遇到了这样的问题,WPF中强大的Image控件却不支持动态的GIF(其只 ...

  6. 解决配置Ubuntu中vnc远程显示灰屏

    解决配置Ubuntu中vnc远程显示灰屏a. 缺失图形化工具b.  ~/.vnc/xstartup 权限不对1. Ubuntu 16.04 安装 VNC 及 Mate 桌面环境https://www. ...

  7. WPF 小矢量图 : 主页,返回,加,减,文字按钮,左移,右移

    原文:WPF 小矢量图 : 主页,返回,加,减,文字按钮,左移,右移 代码:: <UserControl x:Class="SQ.TestPage" xmlns=" ...

  8. WPF 循环显示列表

    原文:WPF 循环显示列表 版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/SANYUNI/article/details/79423707 项目需要 ...

  9. WPF 窗体显示最前端

    原文:WPF 窗体显示最前端 版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/jjx0224/article/details/8782845 如何做一 ...

随机推荐

  1. vue树状结构(tree)

    <!DOCTYPE html> <html> <head> <title></title> <style> body { fon ...

  2. 如何通过shell脚本或一行命令更改root密码?

    哪个能用就用哪个吧! 方法一, echo -e "newpwd\nnewpwd" | (passwd root) 方法二, echo "newpwd" | pa ...

  3. javascript 访问 webservice

    xml: <?xml version="1.0" encoding="UTF-8"?> <boolean xmlns="http:/ ...

  4. 【VS开发】使用WinPcap编程(1)——获取网络设备信息

    pcap_if_t是一个interface数据结构,表明网络接口的信息.网络接口就是interface,就是我们用来上网的设备,一般为网卡,还有一些虚拟网卡也算作这样的接口.它的结构如下: struc ...

  5. 20191128 Spring Boot官方文档学习(9.10)

    9.10.数据库初始化 可以使用不同的方式初始化SQL数据库,具体取决于堆栈是什么.当然,如果数据库是一个单独的进程,您也可以手动执行.建议使用单一机制进行模式生成. 9.10.1.使用JPA初始化数 ...

  6. Linux进程状态——top,ps中看到进程状态D,S,Z的含义

    在top和ps命令中有一列显示进程状态,分别有如下值: 值 含义 S 进程处于interruptable sleep状态 D 进程处于Uninterruptable sleep状态 R 进程处于运行状 ...

  7. 分享一个linux系统中循环遍历两个数组内容,并输出数组中的不同内容的shell脚本

    cat diffarray.sh #!/bin/bash arry_list1=(1 2 3 4 5 6 7 8 9) arry_list2=(3 5 8) declare -a diff_list ...

  8. [LeetCode] 92. 反转链表 II

    题目链接 : https://leetcode-cn.com/problems/reverse-linked-list-ii/ 题目描述: 反转从位置 m 到 n 的链表.请使用一趟扫描完成反转. 说 ...

  9. python数据结构:pandas(2)数据操作

    一.Pandas的数据操作 0.DataFrame的数据结构 1.Series索引操作 (0)Series class Series(base.IndexOpsMixin, generic.NDFra ...

  10. 关于websocket 在生产环境中遇到的问题 及 解决办法

    一  生产环境说明 1) tornado 4.2 2) Tornado-MySQL 3) supervisor 3.0b2 4) protobuf 2.6.1 5) python 2.7.6 6) n ...