DAML: overlayLargeImage property for button not working for XAML

137
1
2 weeks ago
AnkushMadankar
New Contributor

Hello,

overlayLargeImage property for DAML Button is not working for xaml source. I want to show text or number on ribbon button may be using xaml, but not able to do it. Sample daml:

 

 

<button id="MyId"
keytip="IM"
caption="My Caption"
className="Foo"
loadOnClick="true"
largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue32.png"
overlayLargeImage="pack://application:,,,/Acme;component/Images/OverlaySmall.xaml">
<tooltip>
Button with notification number
</tooltip>
</button>

OverlaySmall.xaml

 

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
    <Ellipse Width="10" Height="10" Fill="Red" Canvas.Left="5" Canvas.Top="5"/>
</Canvas>

Reference link: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic10318.html

 

 

 

0 Kudos
1 Reply
UmaHarano
Esri Regular Contributor

Hi,

In order to use your own xaml for the button icon on the ribbon, please try the following:

Right click the XAML in the solution explorer in Visual Studio and set the Build Action to "Content".  Then in DAML, reference the xaml using relative paths, like this:

 

overlayLargeImage="Images/OverlaySmall.xaml"

 

0 Kudos