簡體   English   中英

幾何到 JumpTask.IconResourcePath

[英]Geometry to JumpTask.IconResourcePath

我想知道,有沒有一種方法可以將 JumpTask.IconResourcePath 與 Geometry 綁定 無需創建 ico 或 dll 文件來讀取它。 謝謝你。

我的代碼:

<Application x:Class="Example.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:SecureVast"
             StartupUri="MainWindow.xaml">
 <JumpList.JumpList>
        <JumpList ShowRecentCategory="True"
                ShowFrequentCategory="True">
            <JumpTask Title="Example" Description="Open Example App." ApplicationPath="C:\Windows\notepad.exe" 
             IconResourcePath="{Binding ExampleGeometry}"/>
             <!-- Note: This is not actual working code, this is just what I want to achive -->
    </JumpList.JumpList>
</Application>

簡短回答:不, IconResourcePath是一個string屬性,應該設置為包含圖標的資源的路徑

您不能將其設置為Geometry

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM