<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS Pro Add-In XAML: Image not displaying in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-xaml-image-not-displaying/m-p/1134180#M7618</link>
    <description>&lt;P&gt;I added a ProWindow in my Add-In.&amp;nbsp; Then I added 2 rows.&amp;nbsp; On the Grid.Row="0", I added an image tag:&lt;/P&gt;&lt;P&gt;&amp;lt;Image Margin="197,21,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="60" Width="60" Source="swat256.png" Visibility="Visible" Grid.Row="0"/&amp;gt;&lt;/P&gt;&lt;P&gt;But when I ran my add-in the ProWindow displays WITHOUT showing the image.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&amp;nbsp; XAML code:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;&amp;lt;controls:ProWindow x:Class="SWAT_.SwatWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
        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:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
        mc:Ignorable="d"
        Title="SWAT+ SQL Server Tools  v.1.0.0" Height="400" Width="500"
        WindowStartupLocation="CenterOwner" FontFamily="Segoe UI" 
    &amp;gt;
    &amp;lt;controls:ProWindow.Resources&amp;gt;
        &amp;lt;ResourceDictionary&amp;gt;
            &amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;
                &amp;lt;!--&amp;lt;extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/&amp;gt;--&amp;gt;
            &amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;
        &amp;lt;/ResourceDictionary&amp;gt;
    &amp;lt;/controls:ProWindow.Resources&amp;gt;
    &amp;lt;Grid&amp;gt;
        &amp;lt;Grid.RowDefinitions&amp;gt;
            &amp;lt;RowDefinition Height="96*"/&amp;gt;
            &amp;lt;RowDefinition Height="275*"/&amp;gt;
        &amp;lt;/Grid.RowDefinitions&amp;gt;

        &amp;lt;Image Margin="197,21,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="60"  Width="60" Source="swat256.png" Visibility="Visible" Grid.Row="0"/&amp;gt;
        &amp;lt;Button x:Name="BtnSqlConnect" Content="Create SQL Server Database Connection" HorizontalAlignment="Center" Margin="130,51,134.333,0" VerticalAlignment="Top" Height="21" Width="229" Click="BtnSqlConnect_Click" Grid.Row="1"/&amp;gt;
        &amp;lt;Button x:Name="BtnReset" Content="Initialize Tables" HorizontalAlignment="Center" Margin="128,96,134.333,0" VerticalAlignment="Top" Height="21" Width="231" Click="BtnDropTables_Click" Grid.Row="1"/&amp;gt;
        &amp;lt;Button x:Name="BtnClose" Content="Close" HorizontalAlignment="Left" Margin="206,223,0,0" VerticalAlignment="Top" Height="23" Width="75" Click="BtnClose_Click" Grid.Row="1"/&amp;gt;
        
    &amp;lt;/Grid&amp;gt;
&amp;lt;/controls:ProWindow&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jan 2022 11:50:31 GMT</pubDate>
    <dc:creator>JadedEarth</dc:creator>
    <dc:date>2022-01-15T11:50:31Z</dc:date>
    <item>
      <title>ArcGIS Pro Add-In XAML: Image not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-xaml-image-not-displaying/m-p/1134180#M7618</link>
      <description>&lt;P&gt;I added a ProWindow in my Add-In.&amp;nbsp; Then I added 2 rows.&amp;nbsp; On the Grid.Row="0", I added an image tag:&lt;/P&gt;&lt;P&gt;&amp;lt;Image Margin="197,21,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="60" Width="60" Source="swat256.png" Visibility="Visible" Grid.Row="0"/&amp;gt;&lt;/P&gt;&lt;P&gt;But when I ran my add-in the ProWindow displays WITHOUT showing the image.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&amp;nbsp; XAML code:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;&amp;lt;controls:ProWindow x:Class="SWAT_.SwatWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
        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:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
        mc:Ignorable="d"
        Title="SWAT+ SQL Server Tools  v.1.0.0" Height="400" Width="500"
        WindowStartupLocation="CenterOwner" FontFamily="Segoe UI" 
    &amp;gt;
    &amp;lt;controls:ProWindow.Resources&amp;gt;
        &amp;lt;ResourceDictionary&amp;gt;
            &amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;
                &amp;lt;!--&amp;lt;extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/&amp;gt;--&amp;gt;
            &amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;
        &amp;lt;/ResourceDictionary&amp;gt;
    &amp;lt;/controls:ProWindow.Resources&amp;gt;
    &amp;lt;Grid&amp;gt;
        &amp;lt;Grid.RowDefinitions&amp;gt;
            &amp;lt;RowDefinition Height="96*"/&amp;gt;
            &amp;lt;RowDefinition Height="275*"/&amp;gt;
        &amp;lt;/Grid.RowDefinitions&amp;gt;

        &amp;lt;Image Margin="197,21,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="60"  Width="60" Source="swat256.png" Visibility="Visible" Grid.Row="0"/&amp;gt;
        &amp;lt;Button x:Name="BtnSqlConnect" Content="Create SQL Server Database Connection" HorizontalAlignment="Center" Margin="130,51,134.333,0" VerticalAlignment="Top" Height="21" Width="229" Click="BtnSqlConnect_Click" Grid.Row="1"/&amp;gt;
        &amp;lt;Button x:Name="BtnReset" Content="Initialize Tables" HorizontalAlignment="Center" Margin="128,96,134.333,0" VerticalAlignment="Top" Height="21" Width="231" Click="BtnDropTables_Click" Grid.Row="1"/&amp;gt;
        &amp;lt;Button x:Name="BtnClose" Content="Close" HorizontalAlignment="Left" Margin="206,223,0,0" VerticalAlignment="Top" Height="23" Width="75" Click="BtnClose_Click" Grid.Row="1"/&amp;gt;
        
    &amp;lt;/Grid&amp;gt;
&amp;lt;/controls:ProWindow&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jan 2022 11:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-xaml-image-not-displaying/m-p/1134180#M7618</guid>
      <dc:creator>JadedEarth</dc:creator>
      <dc:date>2022-01-15T11:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Add-In XAML: Image not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-xaml-image-not-displaying/m-p/1134286#M7620</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. Check image properties in Visual Studio. "Build Action" must be set to "Resource".&lt;/P&gt;&lt;P&gt;2. Check image location in project. From your code it must be in the root of project. Maybe it in the "Images" folder.&lt;/P&gt;&lt;P&gt;3. Sometimes helps another way of image location defining:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Image Source="/your_addin_name;component/your_image_relative_path" /&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Jan 2022 06:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-xaml-image-not-displaying/m-p/1134286#M7620</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-01-17T06:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Add-In XAML: Image not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-xaml-image-not-displaying/m-p/1135428#M7640</link>
      <description>&lt;P&gt;AWESOME!!! Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 14:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-xaml-image-not-displaying/m-p/1135428#M7640</guid>
      <dc:creator>JadedEarth</dc:creator>
      <dc:date>2022-01-20T14:45:47Z</dc:date>
    </item>
  </channel>
</rss>

