You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing the toolkit in Visual Studio, I create a new toolkit project.
Compiling is fine and running it starts ArcGIS Pro and I can select the custom style as my style.
for a layer I open the editor and see the custom page loaded with the single field.
Entering data and clicking save results the value not being saved in the metadata. In VS the following error is displayed when selecting the page 'Custom Page':
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'ListBoxItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
The text was updated successfully, but these errors were encountered:
I had trouble with that control also. I thought a colleague was able to get it to work, but I didn't have a chance to figure out what they did differently to allow that. In the meantime, check out the instructions here in the wiki: https://github.com/Esri/arcgis-pro-metadata-toolkit/wiki/Create-a-custom-page, which direct you to remove the default control and add one that actually works.
Is there a completed sample of this example code (custom page)? We have a use case for it but seem unable to get it to work locally; have tried on two machines so far.
After installing the toolkit in Visual Studio, I create a new toolkit project.
Compiling is fine and running it starts ArcGIS Pro and I can select the custom style as my style.
for a layer I open the editor and see the custom page loaded with the single field.
Entering data and clicking save results the value not being saved in the metadata. In VS the following error is displayed when selecting the page 'Custom Page':
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'ListBoxItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')
The text was updated successfully, but these errors were encountered: