我想知道,有沒有一種方法可以將 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>
uj5u.com熱心網友回復:
簡短回答:不,IconResourcePath是一個string屬性,應該設定為包含圖示的資源的路徑。
您不能將其設定為Geometry.
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/313945.html
上一篇:如何系結到ContentControl.Content的附加屬性
下一篇:顯示為空WPF的文本框
