<?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 Re: Reference external UserControl library in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-external-usercontrol-library/m-p/1612601#M12890</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you want to use your custom control in ribbon or ProWindow/ Dockpanel?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use it in ribbon, then create new ArcGIS Pro Custom Control and place your control inside.&lt;/P&gt;&lt;P&gt;For both cases you need to add reference to your library at the start of your xaml:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;UserControl x:Class="ProAppModule4.CustomControl1View"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"   
             xmlns:ui="clr-namespace:ProAppModule4"
             xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
             xmlns:myuc="clr-namespace:ControlLibrary.XColorPicker;assembly=ControlLibrary"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             d:DataContext="{Binding Path=ui.CustomControl1ViewModel}"&amp;gt;
            &amp;lt;UserControl.Resources&amp;gt;
        &amp;lt;ResourceDictionary&amp;gt;
            &amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;
                &amp;lt;extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/&amp;gt;
            &amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;
        &amp;lt;/ResourceDictionary&amp;gt;
    &amp;lt;/UserControl.Resources&amp;gt;
    &amp;lt;Grid &amp;gt;
        &amp;lt;myuc:XColorPicker /&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/UserControl&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;And add your library reference to project.&lt;/P&gt;</description>
    <pubDate>Wed, 07 May 2025 20:20:32 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2025-05-07T20:20:32Z</dc:date>
    <item>
      <title>Reference external UserControl library</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-external-usercontrol-library/m-p/1612365#M12888</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I have a WPF non-addin UserControl library. Now i want to use controls in this library in my AddIn Project.&lt;/P&gt;&lt;P&gt;I tried the following code&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;customControl id="ucs_lib" caption="Text Color" className="ControlLibrary.XColorPickerViewModel" assembly="ControlLibrary.dll" loadOnClick="true" smallImage="GenericButtonPurple16" largeImage="GenericButtonPurple32"&amp;gt;
	&amp;lt;content className="ControlLibrary.XColorPicker" assembly="ControlLibrary.dll" /&amp;gt;
	&amp;lt;tooltip heading="Text color"&amp;gt;
		&amp;lt;disabledText /&amp;gt;
	&amp;lt;/tooltip&amp;gt;
&amp;lt;/customControl&amp;gt;

...

&amp;lt;group id="text_group"&amp;gt;
    &amp;lt;customControl refID="ucs_lib" size="large" /&amp;gt;
&amp;lt;/group&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;But this control not shown. What's wrong here?&lt;/P&gt;&lt;P&gt;What proper way to reference user control from non-addin library?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 10:32:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-external-usercontrol-library/m-p/1612365#M12888</guid>
      <dc:creator>MinhHoangf</dc:creator>
      <dc:date>2025-05-07T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reference external UserControl library</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-external-usercontrol-library/m-p/1612601#M12890</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you want to use your custom control in ribbon or ProWindow/ Dockpanel?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use it in ribbon, then create new ArcGIS Pro Custom Control and place your control inside.&lt;/P&gt;&lt;P&gt;For both cases you need to add reference to your library at the start of your xaml:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;UserControl x:Class="ProAppModule4.CustomControl1View"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"   
             xmlns:ui="clr-namespace:ProAppModule4"
             xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
             xmlns:myuc="clr-namespace:ControlLibrary.XColorPicker;assembly=ControlLibrary"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             d:DataContext="{Binding Path=ui.CustomControl1ViewModel}"&amp;gt;
            &amp;lt;UserControl.Resources&amp;gt;
        &amp;lt;ResourceDictionary&amp;gt;
            &amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;
                &amp;lt;extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/&amp;gt;
            &amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;
        &amp;lt;/ResourceDictionary&amp;gt;
    &amp;lt;/UserControl.Resources&amp;gt;
    &amp;lt;Grid &amp;gt;
        &amp;lt;myuc:XColorPicker /&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/UserControl&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;And add your library reference to project.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 20:20:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-external-usercontrol-library/m-p/1612601#M12890</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-05-07T20:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reference external UserControl library</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-external-usercontrol-library/m-p/1612662#M12891</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I know i can use a UserControl as container for external UserControl. So no way to directly put external UserControl to Config.daml, right?&lt;/P&gt;&lt;P&gt;Is your solution the proper way to put external non-addin UserControl to add-in project?&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 01:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-external-usercontrol-library/m-p/1612662#M12891</guid>
      <dc:creator>MinhHoangf</dc:creator>
      <dc:date>2025-05-08T01:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reference external UserControl library</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-external-usercontrol-library/m-p/1612683#M12892</link>
      <description>&lt;P&gt;&lt;SPAN&gt;There would be no need to have such Custom Control if it could be done without it. Another one thing that all controls defined in DAML must implement&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic10062.html" target="_self"&gt;IPlugInWrapper&lt;/A&gt; interface. I am not sure that your custom control implements IPlugInWrapper&amp;nbsp; interface.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 05:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-external-usercontrol-library/m-p/1612683#M12892</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-05-08T05:21:41Z</dc:date>
    </item>
  </channel>
</rss>

