POST
|
Just closing this up. After some DM'ing, Charles Macleod and I determined that due to the age of this project (1.3, 2016) it would be best to recreate the project from a new project template in Visual Studio. There must be some legacy stuff preventing the theme-switching styles from working.
... View more
06-05-2018
11:23 AM
|
0
|
0
|
328
|
POST
|
Charles Macleod This is a custom properties page, not a dock pane. The ViewModel inherits from Page, not DockPane. When I put your test TextBlocks and Rectangles on a DockPane it works as expected. I followed this documentation to create the custom project settings page: ProGuide Custom settings · Esri/arcgis-pro-sdk Wiki · GitHub
... View more
05-23-2018
11:02 AM
|
0
|
1
|
1652
|
POST
|
Can you bind a control's enabled state to states you define in Config.daml? It works for ribbon buttons but say you have a control on a dockpane and you want to enable/disable it based on a state you defined in Config.daml?
... View more
05-23-2018
10:19 AM
|
0
|
0
|
199
|
POST
|
Uma Harano This is what I am seeing: with this xaml: <UserControl x:Class="ProjectSettingsView"
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:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
<ResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Style="{DynamicResource Esri_TextBlockRegular}" Text="Project Number" VerticalAlignment="Center" />
<TextBox Text="{Binding ProjectNumber, UpdateSourceTrigger=PropertyChanged}" Margin="10,2,0,2" Width="150" HorizontalAlignment="Left" />
<TextBlock Style="{DynamicResource Esri_TextBlockRegular}" Text="Elevation Delta Tolerance (ft)" VerticalAlignment="Center"/>
<TextBox Text="{Binding ElevationDeltaTolerance, UpdateSourceTrigger=PropertyChanged}" Margin="10,2,0,2" Width="150" HorizontalAlignment="Left" />
<TextBlock Style="{DynamicResource Esri_TextBlockRegular}" Text="Proximity Delta Tolerance (ft)" VerticalAlignment="Center"/>
<TextBox Text="{Binding ProximityDeltaTolerance, UpdateSourceTrigger=PropertyChanged}" Margin="10,2,0,2" Width="150" HorizontalAlignment="Left" />
<TextBlock Style="{DynamicResource Esri_TextBlockRegular}">Config file</TextBlock>
<TextBlock Text="{Binding ConfigFile}" Margin="10,2,4,2" Width="auto" HorizontalAlignment="Stretch" Style="{DynamicResource Esri_TextBlockRegular}" />
<Button Height="25" Width="Auto" Command="{Binding StatesButtonCommand}" HorizontalAlignment="Left" Margin="0, 2, 0, 2" ToolTip="Show a list of application conditions that drive ribbon enabled state">Button States</Button>
</StackPanel>
</Grid>
</UserControl>
... View more
05-23-2018
08:17 AM
|
0
|
0
|
1652
|
POST
|
Thanks Uma Harano I added the extensions you specified but the text is still gray if I add Style="{DynamicResource Esri_TextBlockRegular}" in both themes. It is black in both themes if I omit it. Looking for white in the dark theme and black in the light theme.
... View more
05-07-2018
11:56 AM
|
0
|
2
|
1652
|
POST
|
Per the style guide: ProGuide Style Guide · Esri/arcgis-pro-sdk Wiki · GitHub I am using <TextBlock Style="{DynamicResource Esri_TextBlockRegular}"> to make the text white in the dark theme and black in the light theme. But the text is dark gray in both themes. Furthermore, the doc says Certain UI elements such as TextBlocks, radio buttons, etc do not need any styling. ArcGIS Pro will automatically style them using the "Default" style. but if I leave out the style altogether the text is just black in both themes.
... View more
03-28-2018
01:45 PM
|
0
|
11
|
2791
|
IDEA
|
According to the arcpy.mapping.ExportReport docs: The ExportReport function has a dependency on the ArcMap installation. Therefore, ExportReport can only be executed on machines that have ArcMap installed. ExportReport will not run using stand-alone installations of ArcGIS Engine or ArcGIS Server. Moreover, ExportReportwill not work as a Geoprocessing Service. Please incorporate this functionality into stand-alone installations of ArcGIS Server so we don't have to install Desktop on our servers.
... View more
10-13-2017
05:26 AM
|
2
|
0
|
465
|
POST
|
User.reassign_to() fails if the user owns a feature layer view. The error message is "Unable to reassign item. This service item has a related view or ogc service item". You can use the UI to manually change the item ownership: 1) if you change ownership on the feature layer, both the feature layer AND the view get transferred. 2) if you change ownership on the view, you get an error "Some items were not reassigned because they have dependencies on other items." Neither the feature layer nor the view get transferred. 3) if you change ownership of the feature layer and view at the same time, you still get the error "Some items were not reassigned because they have dependencies on other items." But, BOTH the feature layer and the view get reassigned. Buggy.
... View more
08-03-2017
07:40 AM
|
2
|
3
|
1831
|
POST
|
I use custom settings to store project-specific user-defined configuration settings that my add-in picks up and saves using `OnReadSettingsAsync` and `OnWriteSettingsAsync`. When I open a 1.4 project in 2.0, the add-in does not read the custom settings. I can re-enter them and save them and the next time I open the project it reads them. I looked around in the 2.0 aprx zip file and found the project settings stored in a xml file in a folder called ModuleSettings. None of my 1.4 projects (that haven't yet been opened in 2.0) have this folder. I can't find where they are stored in 1.4. So I'm guessing that 2.0 has a different place to store these custom settings and they are not migrated when opening a 1.4 project in 2.0. I don't recall seeing this discussed in any of the migration documents I read.
... View more
07-20-2017
08:36 AM
|
0
|
2
|
535
|
POST
|
How do you get the basemap zoom level that is being displayed in the current MapView? I suppose I could get the MapView's Camera's Scale and use that to look up the closest basemap level, but looking for a way to get the level directly.
... View more
05-31-2017
07:50 AM
|
0
|
0
|
498
|
BLOG
|
Christopher Zent Is the 1.3 documentation available online somewhere? How about a code migration guide? I found a couple changes that broke my 1.3 add-in. For example: Dim oids As List(Of Long) = _layer.GetSelection.GetObjectIDs() used to work in 1.3 but for 1.4 I had to change it to: Dim oids As IReadOnlyList(Of Long) = _layer.GetSelection.GetObjectIDs() Not a build error - it's a runtime error. So I have some testing to do. But for people who want to keep developing in 1.3 it would be nice to go back to previous API reference.
... View more
01-18-2017
10:52 AM
|
0
|
0
|
304
|
POST
|
Try creating the index with ArcCatalog in the feature class properties Index tab. That's how I did it. Now I'm curious to look under the hood and see what kind of index that creates.
... View more
11-16-2016
12:54 PM
|
1
|
1
|
942
|
Title | Kudos | Posted |
---|---|---|
1 | 11-08-2019 01:56 PM | |
1 | 05-09-2023 05:58 AM | |
1 | 08-11-2021 05:45 AM | |
2 | 08-03-2017 07:40 AM | |
3 | 04-21-2016 06:39 AM |
Online Status |
Offline
|
Date Last Visited |
02-26-2024
06:48 PM
|