Select to view content in your preferred language

dockpane error 5 creating empty pdf exports when symbol layer drawing is active

117
1
02-11-2025 08:10 AM
nadja
by
Frequent Contributor

we created a dockpane listing vector data from a postgresql database, which is working fine unless you want to use the option symbol layer drawing and then export the map. the data is correctly shown in arcgis pro, but the export is empty 

the correspoding error message: 

System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property. Boolean:'False' BindingExpression:Path=DisplayPosition; DataItem='ExportDockPaneVM' (HashCode=31098481); target element is 'TextBlock' (Name='pos'); target property is 'Visibility' (type 'Visibility')

 

my UserControl:

<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
</ResourceDictionary.MergedDictionaries>

<BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
</ResourceDictionary>
</UserControl.Resources>

I have absolutely no idea where the issue might be. chatgpt suggested somewhere in my UserControl, but I'm none the wiser. could anyone give me directions as where to look? thanks in advance!

 

Tags (1)
0 Kudos
1 Reply
CharlesMacleod
Esri Regular Contributor

Going strictly off the error message, make you are returning a valid "System.Windows.Visibility" enum value from your converter....assuming u are referring to it somewhere in one of your bindings.

Note, binding errors are also notorious for being red herrings....the issue cld simply be somewhere in your dockpane logic.

 

namespace System.Windows
{
//
// Summary:
// Specifies the display state of an element.
public enum Visibility : byte
{
//
// Summary:
// Display the element.
Visible = 0,
//
// Summary:
// Do not display the element, but reserve space for the element in layout.
Hidden = 1,
//
// Summary:
// Do not display the element, and do not reserve space for it in layout.
Collapsed = 2
}
}

0 Kudos