Skip to content

Commit

Permalink
ArcGIS Pro 2.0 SDK for .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
arcgisprosdk committed Jun 26, 2017
1 parent 10f1777 commit 38b07b8
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Framework/CustomStyling/CustomStyling (C# 6.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Visual Studio: 2015, 2017
1. The style applied to the Dockpane custom UserControl should match the Light or Dark mode of Pro.
![UI](Screenshots/Screen1.png)

1. Toggle the Pro theme (via backstage->Options->Application->General settings). Restart Pro.
1. Toggle the Pro theme (via backstage->Options->Application->General settings). Restart Pro.
1. Re-start the Debugger and Re-open the Dockpane in ArcGIS Pro.
1. The custom style should have changed (Light to Dark or vice versa) to match the corresponding change made to Pro.
![UI](Screenshots/Screen2.png)
Expand Down
2 changes: 1 addition & 1 deletion Framework/CustomStyling/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Visual Studio: 2015, 2017
1. The style applied to the Dockpane custom UserControl should match the Light or Dark mode of Pro.
![UI](Screenshots/Screen1.png)

1. Toggle the Pro theme (via backstage->Options->Application->General settings). Restart Pro.
1. Toggle the Pro theme (via backstage->Options->Application->General settings). Restart Pro.
1. Re-start the Debugger and Re-open the Dockpane in ArcGIS Pro.
1. The custom style should have changed (Light to Dark or vice versa) to match the corresponding change made to Pro.
![UI](Screenshots/Screen2.png)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Visual Studio: 2015, 2017
1. Click the Start button to open ArCGIS Pro. ArcGIS Pro will open.
1. Open the project "MilitaryOverlay.aprx" in the "C:\Data\MilitaryOverlay" folder since this project some military symbolgy sample data.
1. You can also add layers using the feature classes in the <i>MilitaryOverlay.gdb</i> that is distributed with the SDK sample data.
1. Change the 'Appearance'-&gt;'Symbology' to "Dictionary" if it is not automatically set.
1. Change the 'Appearance'->'Symbology' to "Dictionary" if it is not automatically set.
1. Click on the ADD-IN tab
1. Click on the "Show Mil2525d Symbol Preview" button.
1. The Mil2525d Symbol Preview dockpane opens.
Expand Down
2 changes: 1 addition & 1 deletion Map-Authoring/DictionarySymbolPreview/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Visual Studio: 2015, 2017
1. Click the Start button to open ArCGIS Pro. ArcGIS Pro will open.
1. Open the project "MilitaryOverlay.aprx" in the "C:\Data\MilitaryOverlay" folder since this project some military symbolgy sample data.
1. You can also add layers using the feature classes in the <i>MilitaryOverlay.gdb</i> that is distributed with the SDK sample data.
1. Change the 'Appearance'-&gt;'Symbology' to "Dictionary" if it is not automatically set.
1. Change the 'Appearance'->'Symbology' to "Dictionary" if it is not automatically set.
1. Click on the ADD-IN tab
1. Click on the "Show Mil2525d Symbol Preview" button.
1. The Mil2525d Symbol Preview dockpane opens.
Expand Down
2 changes: 1 addition & 1 deletion Map-Authoring/LayersPane/LayersPane (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Visual Studio: 2015, 2017
1. Open the "C:\Data\Interacting with Maps\Interacting with Maps.aprx" project which contains the required data needed for this sample.
1. Click on the Add-in tab on the ribbon and then on the "Open LayersPane" button.
1. On the "layer pane" click the 'Search button' and the pane's grid will display the selected feature layer's columns and data.
1. Select "Crimes" on the layer dropdown and enter a valid SQL where clause like 'objectid &lt; 100' in the text box next to the search button and click Search again.
1. Select "Crimes" on the layer dropdown and enter a valid SQL where clause like 'objectid < 100' in the text box next to the search button and click Search again.
![UI](Screenshots/Screen1.png)

1. The data displayed is now restricted to records that match the given where clause.
Expand Down
2 changes: 1 addition & 1 deletion Map-Authoring/LayersPane/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Visual Studio: 2015, 2017
1. Open the "C:\Data\Interacting with Maps\Interacting with Maps.aprx" project which contains the required data needed for this sample.
1. Click on the Add-in tab on the ribbon and then on the "Open LayersPane" button.
1. On the "layer pane" click the 'Search button' and the pane's grid will display the selected feature layer's columns and data.
1. Select "Crimes" on the layer dropdown and enter a valid SQL where clause like 'objectid &lt; 100' in the text box next to the search button and click Search again.
1. Select "Crimes" on the layer dropdown and enter a valid SQL where clause like 'objectid < 100' in the text box next to the search button and click Search again.
![UI](Screenshots/Screen1.png)

1. The data displayed is now restricted to records that match the given where clause.
Expand Down
21 changes: 10 additions & 11 deletions Map-Authoring/Renderer/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,16 @@ To experiment with the various renderers available with this sample, follow the
1. In Visual Studio's solution explorer, open the ApplyRenderer.cs file. This is the class file for the Apply Renderer button.
1. The OnClick method in the ApplyRenderer.cs file gets the first point feature layer in your project and then applies the Unique Value Renderer to it.<br />
**You can modify the code in the OnClick method in this file to use one of the various renderers available in this sample and/or select any feature layer in your project.**
```c#
protected async override void OnClick()
{
//TODO: This line below gets the first point layer in the project to apply a renderer.
//You can modify it to use other layers with polygon or line geometry if needed.
var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault(s => s.ShapeType == esriGeometryType.esriGeometryPoint);
//TODO: Modify this line below to experiment with the different renderers
await UniqueValueRenderers.UniqueValueRenderer(lyr);
}
```

```c#
protected async override void OnClick()
{
//TODO: This line below gets the first point layer in the project to apply a renderer.
//You can modify it to use other layers with polygon or line geometry if needed.
var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault(s => s.ShapeType == esriGeometryType.esriGeometryPoint);
//TODO: Modify this line below to experiment with the different renderers
await UniqueValueRenderers.UniqueValueRenderer(lyr);
}
```
1. After modifying the OnClickMethod build the solution and click the start button to open Pro.
1. Open any project and test the Apply Renderer button again.
![UI](screenshots/Renderers.png)
Expand Down
18 changes: 10 additions & 8 deletions Map-Authoring/Renderer/Renderer (C# 7.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,16 @@ To experiment with the various renderers available with this sample, follow the
1. In Visual Studio's solution explorer, open the ApplyRenderer.cs file. This is the class file for the Apply Renderer button.
1. The OnClick method in the ApplyRenderer.cs file gets the first point feature layer in your project and then applies the Unique Value Renderer to it.<br />
**You can modify the code in the OnClick method in this file to use one of the various renderers available in this sample and/or select any feature layer in your project.**
```c# protected async override void OnClick()
{
//TODO: This line below gets the first point layer in the project to apply a renderer.
//You can modify it to use other layers with polygon or line geometry if needed. var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType&lt;FeatureLayer&gt;().FirstOrDefault(s =&gt; s.ShapeType == esriGeometryType.esriGeometryPoint);
//TODO: Modify this line below to experiment with the different renderers await UniqueValueRenderers.UniqueValueRenderer(lyr);
}
```

```c#
protected async override void OnClick()
{
//TODO: This line below gets the first point layer in the project to apply a renderer.
//You can modify it to use other layers with polygon or line geometry if needed.
var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault(s => s.ShapeType == esriGeometryType.esriGeometryPoint);
//TODO: Modify this line below to experiment with the different renderers
await UniqueValueRenderers.UniqueValueRenderer(lyr);
}
```
1. After modifying the OnClickMethod build the solution and click the start button to open Pro.
1. Open any project and test the Apply Renderer button again.
![UI](screenshots/Renderers.png)
Expand Down
4 changes: 2 additions & 2 deletions Sharing/UploadVtpkToAgol/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Visual Studio: 2015, 2017
1. ArcGIS Pro will open.
1. Open a new map project.
1. Click on the *Upload to ArcGIS Online* tab on the ribbon.
1. Within this tab there is a *Show &amp; Upload Vector Tile* button. Click the button to display the *Show &amp; Upload Vector Tile* dockpane.
1. On the *Show &amp; Upload Vector Tile* dockpane click the open file button and open *C:\Data\VectorTileDemos\AlaskaGeology.vtpk*.
1. Within this tab there is a *Show & Upload Vector Tile* button. Click the button to display the *Show & Upload Vector Tile* dockpane.
1. On the *Show & Upload Vector Tile* dockpane click the open file button and open *C:\Data\VectorTileDemos\AlaskaGeology.vtpk*.
1. Click the *Add To Map* button to add the vector tile package to the current map.
![UI](Screenshots/Screenshot1.png)

Expand Down
4 changes: 2 additions & 2 deletions Sharing/UploadVtpkToAgol/UploadVtpkToAgol (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Visual Studio: 2015, 2017
1. ArcGIS Pro will open.
1. Open a new map project.
1. Click on the *Upload to ArcGIS Online* tab on the ribbon.
1. Within this tab there is a *Show &amp; Upload Vector Tile* button. Click the button to display the *Show &amp; Upload Vector Tile* dockpane.
1. On the *Show &amp; Upload Vector Tile* dockpane click the open file button and open *C:\Data\VectorTileDemos\AlaskaGeology.vtpk*.
1. Within this tab there is a *Show & Upload Vector Tile* button. Click the button to display the *Show & Upload Vector Tile* dockpane.
1. On the *Show & Upload Vector Tile* dockpane click the open file button and open *C:\Data\VectorTileDemos\AlaskaGeology.vtpk*.
1. Click the *Add To Map* button to add the vector tile package to the current map.
![UI](Screenshots/Screenshot1.png)

Expand Down

0 comments on commit 38b07b8

Please sign in to comment.