首页 > 其他分享 >WPF JumpList JumpList ApplicationPath IconResourcePath

WPF JumpList JumpList ApplicationPath IconResourcePath

时间:2024-09-16 20:02:31浏览次数:1  
标签:ApplicationPath App JumpList WPF xaml IconResourcePath

//App.xaml

<Application x:Class="WpfApp369.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:WpfApp369"
             StartupUri="MainWindow.xaml">
    <JumpList.JumpList>
        <JumpList>
            <JumpTask Title="Maginifier"
                      Description="Open the Windows Magnifer"
                      ApplicationPath="%WINDIR%\system32\magnify.exe"/>
            <JumpTask Title="Calculator"
                      Description="Open the Windows Calculator"
                      ApplicationPath="%WINDIR%\system32\calc.exe"
                      IconResourcePath="%WINDIR%\system32\calc.exe"/>
            <JumpTask Title="Notepad"
                      Description="Open Notepad"
                      ApplicationPath="%WINDIR%\system32\notepad.exe"
                      IconResourcePath="%WINDIR%\system32\notepad.exe"
                      WorkingDirectory="%HOMEDRIVE%%HOMEPATH%"/>
            <JumpTask Title="Chrome"
                      Description="Chrome browser"
                      ApplicationPath="%PROGRAMFILES%\Google\Chrome\Application\chrome.exe"
                      IconResourcePath="%PROGRAMFILES%\Google\Chrome\Application\chrome.exe"
                      WorkingDirectory="%HOMEDRIVE%%HOMEPATH%"/>
        </JumpList>
    </JumpList.JumpList>
    <Application.Resources>
         
    </Application.Resources>
</Application>

 

 

<Window x:Class="WpfApp369.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp369"
        mc:Ignorable="d"
        WindowState="Maximized"
        Title="MainWindow" Height="450" Width="800">
    <Window.Background>
        <ImageBrush ImageSource="/Images/1.jpg" Stretch="Uniform"/>
    </Window.Background>
    <Grid>
        
    </Grid>
</Window>

 

 

 

标签:ApplicationPath,App,JumpList,WPF,xaml,IconResourcePath
From: https://www.cnblogs.com/Fred1987/p/18416553

相关文章

  • WPF DataGrid ContextMenu CommandParameter Relative x:Type ContextMenu ,Path=Plac
    //xaml<DataGrid.ContextMenu><ContextMenu><MenuItemHeader="SerializeBinary"Command="{BindingBinSerializeCmd}"CommandParameter="{BindingRelativeSource={Relativ......
  • WPF this.DragMove() DropShadowEffect
    //xaml<Windowx:Class="WpfApp367.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.mi......
  • 不可不知的WPF转换(Transform)
    在WPF开发中,经常会需要用到UI控件的2D转换(如:旋转,缩放,移动,倾斜等功能),本文以一些简单的小例子,简述如何通过Transform类实现FrameworkElement对象的2D转换,仅供学习分享使用,如有不足之处,还请指正。 什么是Transform? 转换(Transform)定义如何将控件从一个坐标空间映射或转换到另一......
  • [WPF]XAML中使用IMultiValueConverter实现Command的多参数传参
    对ICommand进行多参数传参问题如何对ICommand传入多个参数?背景最近在做一个WPF的开发,有多个相近的功能写了不同的Command,因为要对应不同的对象。因为是CtrlCV,显得代码有点冗赘不够优雅,但是ICommand又只能接受一个参数。思路使用MultiBinding,对CommandParameter进行绑定,然后......
  • WPF datagrid contextmenu menuitem commandparameter CommandParameter="{Binding R
    Install-packagenewtonsoft.json  <DataGrid.ContextMenu><ContextMenu><MenuItemHeader="ExportSelected"Command="{BindingExportSelectedCmd}"CommandParameter="{BindingRelativeSource={Relat......
  • 自定义WPF滑块样式-Slider
    在Windows应用程序开发中,滑块(Slider)是一个非常常见且有用的控件。它可以让用户通过拖动滑块来选择一个范围内的值。然而,WPF或UWP应用程序中的默认滑块样式可能并不总是符合我们的设计需求。因此,我们需要自定义滑块的样式。在本文中,我将向你展示如何使用XAML(ExtensibleApplicat......
  • WPF Datagrid DataGridTemplateColumn.CellTemplate local:ImageTextblock ImgUrl="{
    DataGridTemplate.CellTemplatecontainsonedatatemplaewilldisplaythecustomoizedcontrol,thekeylocatedatthecustomcontrol'sdependencypropertybindingandrelativesourceofx:typedatagridrow<local:ImageTextblockImgUrl="{Binding......
  • wpf模拟触摸
    ///<summary>///UsethisClassesstaticmethodstoinitializeandinjecttouchinput.///</summary>publicclassNativeMethods{///<summary>///CallthisfirsttoinitializetheTouchInjection!///</summary>......
  • WPF 实现一个吃豆豆的Loading加载动画
    运行的效果如下 先引入一下我们需要的库在nuget上面搜一下"expression.Drawing",安装一下这个包 我们再创建一个Window,引入一下这个包的命名空间我们设置一下这个加载动画呈现的窗体的样式xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"......
  • WPF MVVM入门系列教程(一、MVVM模式介绍)
    为什么写这些博客?还记得早些年刚工作的那会,公司的产品从Delphi转成了WPF(再早些年是mfc)。当时大家也是处于一个对WPF探索的阶段,所以有很多概念都不是非常清楚。但是大家都想堆技术,就提出使用MVVM,我那会是第一次听到MVVM,在网上看了一些资料后,也难以理解,后面也是硬着头皮在写。有......