大话C#之WPF业务场景入门和进阶,深入浅出解析章节教程 13 前端跳转图片功能 超链接
1 界面;
后台默认;
<Page x:Class="Template.Wpf.OneTongYong1132022._1ViewsUI.TiaoZhuan_Page"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Template.Wpf.OneTongYong1132022._1ViewsUI"mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800"Title="TiaoZhuan_Page"><!--Page页面跳转,前台跳转和后台跳转都可以实现1)前台跳转实现: 成功! 超链接方式,实现图片的跳转实现方式; --><Grid><TextBlock><!--<TextBlockFontSize="24" TextWrapping="Wrap" Margin="0,0,0,0">--><Hyperlink x:Name="LnkPre" NavigateUri="TiaoZhuan2_Page.xaml" Foreground="Black">Enter Page1 查看图片</Hyperlink></TextBlock><!--<TextBlock Margin="0,110,0,0">--><!--<TextBlockFontSize="24" TextWrapping="Wrap" Margin="0,0,0,0">--><!--<Hyperlink x:Name="LnkPre2" NavigateUri="TuPianChaKan_Window.xaml" Foreground="Black">Enter Page1 查看图片2</Hyperlink></TextBlock>--></Grid>
</Page>
2 界面2;
<Page x:Class="Template.Wpf.OneTongYong1132022._1ViewsUI.TiaoZhuan2_Page"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Template.Wpf.OneTongYong1132022._1ViewsUI"mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800"Title="TiaoZhuan2_Page"><Page.Resources><ResourceDictionary><ResourceDictionary.MergedDictionaries><!--<ResourceDictionary Source="/00.Style/IsShiJianDictionary1.xaml"/>--><!--<ResourceDictionary Source="/01.StyleQLTemplate/01.Icon.xaml"/>--><ResourceDictionary Source="/01.StyleQLTemplate/AddTongYongDictionary10201.xaml"/><ResourceDictionary Source="/01.StyleQLTemplate/ListBoxDictionary.xaml"/><ResourceDictionary Source="/01.StyleQLTemplate/TextBlockDictionary.xaml"/></ResourceDictionary.MergedDictionaries></ResourceDictionary></Page.Resources><Grid><Button Width="100" Height="50" Content="跳转" Click="DL" Grid.Row="1"></Button><!--本地图片的测试,上传效果;1--><Button Name="btn_xindian" Click="Button_Click" Grid.Row="3" Grid.Column="3" Content="心电图"><Button.Template><ControlTemplate TargetType="Button"><Border><Border.Background><!--<ImageBrush ImageSource="../00.Image/NeiQianChengXu_Img/09.ZiLiNengLi.png" x:Name="img_Zili"/>--><ImageBrush ImageSource="../0Image/NeiQianChengXu_Imgs/xindiantu.webp.jpg" x:Name="img_ZhongYi"/></Border.Background><ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0,0,0,35"/><!--<TextBlock Text="自理能力" FontWeight="Bold" FontSize="24" FontFamily="微软雅黑" HorizontalAlignment="Center" VerticalAlignment="Bottom" Foreground="White" Margin="0,0,0,60"></TextBlock>--></Border></ControlTemplate></Button.Template></Button></Grid>
</Page>
后台代码同样不用动;
效果
1 点击超链接,跳转到第二个界面效果
2
大话C#之WPF业务场景入门和进阶,深入浅出解析章节教程 13 前端跳转图片功能 超链接相关推荐
- 大话C#之WPF业务场景入门和进阶,深入浅出解析章节教程 14 项目准备上线的测试工作
当您还不是角的时候,测试工作就是一个必然经历的过程所在! 这是培训学校所没有告诉过您的吧! 只是教给您简单开发工作了,还是远远不够的: 测试需要测试什么呢? 第一方面是您开发过的功能,前端UI层面: ...
- 最专业 大话C#之WPF业务场景入门和进阶,深入浅出解析章节教程 18 类赋值入门
1 UI层XAML <Window x:Class="你好_绑定世界.ViewsUI.Add2_Window"xmlns="http://schemas.micro ...
- 大话C#之WPF实践场景入门进阶,深入浅出解析教程 20 谷歌浏览器历史版本
被困半天多时间的技术点,今天用半小时可以解决就是最大的进步了! 谷歌浏览器地址 Google Chrome 64bit Windows版 / chrome64win稳定版_chrome浏览器,chro ...
- 大话C#之WPF实践场景入门进阶,深入浅出解析教程 28 代码框架封装-不断更新版
12.13 1 添加事件功能: TongYongWebService.Template.One129 11.28更新; 解决方案名称: 本地名字对应 Upload2022123MoreItems ...
- 大话C#之WPF实践场景入门进阶,深入浅出解析教程 25 逻辑判断必知必会入门解析
创建控制台项目,然后依次去写代码: 该有创造小说的激情才是!只有那样子,您才有可能把这个代码开发的事情去做好啊: 一 创建项目: using System; using System.Collecti ...
- 大话C# WPF基础入门进阶,深入浅出解析章节教程 9 循环入门2初级点
铁打的营盘,流水的兵: 努力把您个人变成营盘!而不是一直身处极其被动境地中!:才是本事能力的具体体现啊 主函数定义: #region 循环+2:1931: Console.Wr ...
- 大话C# WPF基础入门进阶,深入浅出解析章节教程 8 循环入门初级点 亲测可用!
主函数循环: 完全凭借记忆去手写循环代码,不能说最初级的也差不多了: 男人也只能靠明象做事才是唯一的出路,尤其像您某些人,完全没有家底,没有背景,而且中途还选择了错误方向的时候更加该明确出路的做事方向 ...
- Unity新手入门与进阶学习书籍与教程推荐
读研的时候喜欢做游戏,最开始在诺基亚N9手机上开发过几款产品,有APP也有游戏.用的是Qt Quick,最先在N9上发布,之后又了解到黑莓的BB10系统,也可以用Qt Quick开发,所以就把几个产品 ...
- 史上最复杂业务场景,逼出阿里高可用三大法宝
SREcon 是由计算机科学领域知名机构USENIX主办,聚焦网站可靠性.系统工程.以及复杂分布式系统相关的运维行业技术盛会,今年SREcon17大会 Asia/Australia站于当地时间5月22 ...
最新文章
- java emptylist_Java中Collections的emptyList、EMPTY_LIST详解
- 【翻译】24款界面精美的免费UI工具包
- 函数 —— strchr() 例如:字符串中的 192.168.1.2|00:11:22:33:44:55 取出字符串中的ip与mac值
- 推荐10个很棒的 CSS3 开发工具
- Quick Dicom batch editor(DICOM标签浏览编辑器)
- 大数据面试-02-大数据工程师面试题
- python数据结构5 - 排序与搜索
- Linux安装cURL
- 豆丁网word文档下载方法集锦
- 未来自动阅读是什么?
- 2021-2022 ACM-ICPC Brazil Subregional Programming Contest C Creating Multiples
- The inferior stopped because it received a signal from the Operating system signal name: SIGSEGV
- 《Windows 8 权威指南》——2.4 Aero与Metro的触摸对比
- Linux7.5 安装mysql8.0.13教程
- 人机交互技术课程实验报告《社交点评APP》系统移动界面分析报告
- python爬取淘宝商品做数据挖掘
- 【虚拟化qemu】(二)--- qemu 虚拟化软件使用
- Dashboard安装配置
- 想知道什么换发型软件好吗
- 【系统分析师之路】第十七章 多媒体基础章节习题集