├── .gitignore
├── Beta4
├── CameraHeading
│ ├── HeadingControl.xaml
│ ├── HeadingControl.xaml.cs
│ └── HeadingViewModel.cs
├── Config.daml
├── CustomComponent
│ ├── AcmeCorpNetworkTracer.cs
│ ├── Config.daml
│ ├── Module1.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TheCustomComponent.csproj
├── CustomComponentCategory
│ ├── ComponentCategoryButton.cs
│ ├── ComponentCategoryInterface.cs
│ ├── ComponentCategoryUtils.cs
│ ├── CoreImplementationTrace.cs
│ └── CoreImplementationTraceInterface.cs
├── DockPaneDemo
│ ├── BookmarkItem.cs
│ ├── ButtonPanToButton.cs
│ ├── ButtonZoomToButton.cs
│ ├── ControlBehavior.cs
│ ├── Converters.cs
│ ├── DockPaneUtils.cs
│ ├── DockPaneView.xaml
│ ├── DockPaneView.xaml.cs
│ ├── DockpaneBurgerButton.cs
│ ├── DockpaneButton.cs
│ ├── DockpaneViewModel.cs
│ └── ExtendsBookmark.cs
├── EditingCutFeatures
│ ├── CutFeaturesTool.cs
│ └── ExtendsEditing.cs
├── FixedZoom
│ ├── FixedZoomIn.cs
│ └── FixedZoomOut.cs
├── ForTheUcModule.cs
├── FrameworkState
│ ├── RespondToStateButton.cs
│ └── ToggleStateButton.cs
├── GP
│ ├── CancelExecuteGP.cs
│ ├── ExecuteGP.cs
│ └── GPHelper.cs
├── Geocode
│ ├── CIMGraphicsHelper.cs
│ ├── Candidate.cs
│ ├── GeocodeButton.cs
│ ├── GeocodeTextWindow.xaml
│ ├── GeocodeTextWindow.xaml.cs
│ ├── GeocodeURI.cs
│ ├── GeocodeUtils.cs
│ ├── ObjectSerialization.cs
│ └── ObservableObject.cs
├── HollywoodZoom
│ ├── HollywoodZoomIn.cs
│ ├── HollywoodZoomOut.cs
│ └── HollywoodZoomUtils.cs
├── Images
│ ├── AddInDesktop16.png
│ ├── AddInDesktop32.png
│ ├── EditingSplitPolygonTool16.png
│ ├── EditingSplitPolygonTool32.png
│ ├── GenericButtonBlack16.png
│ ├── GenericButtonBlack32.png
│ ├── GenericButtonBlue16.png
│ ├── GenericButtonBlue32.png
│ ├── GenericButtonGreen16.png
│ ├── GenericButtonGreen32.png
│ ├── GenericButtonGrey16.png
│ ├── GenericButtonGrey32.png
│ ├── GenericButtonPurple16.png
│ ├── GenericButtonPurple32.png
│ ├── GenericButtonRed16.png
│ ├── GenericButtonRed32.png
│ ├── GeocodeAddresses16.png
│ ├── GeocodeAddresses32.png
│ ├── PanTool16.png
│ ├── PanTool32.png
│ ├── ZoomFixedZoomIn16.png
│ ├── ZoomFixedZoomIn32.png
│ ├── ZoomFixedZoomOut_B_16.png
│ ├── ZoomFixedZoomOut_B_32.png
│ ├── ZoomGeneric16.png
│ ├── ZoomGeneric_B_32.png
│ ├── ZoomInTool_B_16.png
│ ├── ZoomInTool_B_32.png
│ ├── ZoomOutTool_B_16.png
│ └── ZoomOutTool_B_32.png
├── InsertIntoContextMenu
│ ├── CIMViewerView.xaml
│ ├── CIMViewerView.xaml.cs
│ ├── CIMViewerViewModel.cs
│ └── LayerViewerButton.cs
├── LayersPane
│ ├── Extensions
│ │ ├── BooleanToVisibilityConverter.cs
│ │ ├── DynamicDataRow.cs
│ │ ├── ExtendListView.cs
│ │ ├── ExtendsLayer.cs
│ │ └── GDBUtils.cs
│ ├── LayersPaneView.xaml.cs
│ ├── layersPaneShowButton.cs
│ ├── layersPaneUtils.cs
│ ├── layersPaneView.xaml
│ └── layersPaneViewModel.cs
├── ProjectItemProjectContainer
│ ├── DeleteMap.cs
│ ├── OpenMap.cs
│ └── ProjectIntegration.cs
├── Properties
│ └── AssemblyInfo.cs
├── SamplesData
│ └── World.mapx
├── SubscribeEvents
│ ├── PublishEventButton.cs
│ └── TrapSelectionChangedCheckbox.cs
├── UCSamples.csproj
└── UCSamples.sln
├── Beta5
├── ArcGISProSDKSampleModule.cs
├── CameraHeading
│ ├── HeadingControl.xaml
│ ├── HeadingControl.xaml.cs
│ └── HeadingViewModel.cs
├── Config.daml
├── CustomComponent
│ ├── AcmeCorpNetworkTracer.cs
│ ├── Config.daml
│ ├── Module1.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TheCustomComponent.csproj
├── CustomComponentCategory
│ ├── ComponentCategoryButton.cs
│ ├── ComponentCategoryInterface.cs
│ ├── ComponentCategoryUtils.cs
│ ├── CoreImplementationTrace.cs
│ └── CoreImplementationTraceInterface.cs
├── DockPaneDemo
│ ├── BookmarkItem.cs
│ ├── ButtonPanToButton.cs
│ ├── ButtonZoomToButton.cs
│ ├── ControlBehavior.cs
│ ├── Converters.cs
│ ├── DockPaneUtils.cs
│ ├── DockPaneView.xaml.cs
│ ├── DockpaneBurgerButton.cs
│ ├── DockpaneButton.cs
│ ├── DockpaneView.xaml
│ ├── DockpaneViewModel.cs
│ └── ExtendsBookmark.cs
├── EditingCutFeatures
│ ├── CutFeaturesTool.cs
│ └── ExtendsEditing.cs
├── FixedZoom
│ ├── FixedZoomIn.cs
│ └── FixedZoomOut.cs
├── FrameworkState
│ ├── RespondToStateButton.cs
│ └── ToggleStateButton.cs
├── GP
│ ├── CancelExecuteGP.cs
│ ├── ExecuteGP.cs
│ └── GPHelper.cs
├── Geocode
│ ├── CIMGraphicsHelper.cs
│ ├── Candidate.cs
│ ├── GeocodeButton.cs
│ ├── GeocodeTextWindow.xaml
│ ├── GeocodeTextWindow.xaml.cs
│ ├── GeocodeURI.cs
│ ├── GeocodeUtils.cs
│ ├── ObjectSerialization.cs
│ └── ObservableObject.cs
├── HollywoodZoom
│ ├── HollywoodZoomIn.cs
│ ├── HollywoodZoomOut.cs
│ └── HollywoodZoomUtils.cs
├── Images
│ ├── AddInDesktop16.png
│ ├── AddInDesktop32.png
│ ├── EditingSplitPolygonTool16.png
│ ├── EditingSplitPolygonTool32.png
│ ├── GenericButtonBlack16.png
│ ├── GenericButtonBlack32.png
│ ├── GenericButtonBlue16.png
│ ├── GenericButtonBlue32.png
│ ├── GenericButtonGreen16.png
│ ├── GenericButtonGreen32.png
│ ├── GenericButtonGrey16.png
│ ├── GenericButtonGrey32.png
│ ├── GenericButtonPurple16.png
│ ├── GenericButtonPurple32.png
│ ├── GenericButtonRed16.png
│ ├── GenericButtonRed32.png
│ ├── GeocodeAddresses16.png
│ ├── GeocodeAddresses32.png
│ ├── PanTool16.png
│ ├── PanTool32.png
│ ├── ZoomFixedZoomIn16.png
│ ├── ZoomFixedZoomIn32.png
│ ├── ZoomFixedZoomOut_B_16.png
│ ├── ZoomFixedZoomOut_B_32.png
│ ├── ZoomGeneric16.png
│ ├── ZoomGeneric_B_32.png
│ ├── ZoomInTool_B_16.png
│ ├── ZoomInTool_B_32.png
│ ├── ZoomOutTool_B_16.png
│ └── ZoomOutTool_B_32.png
├── InsertIntoContextMenu
│ ├── CIMViewerView.xaml
│ ├── CIMViewerView.xaml.cs
│ ├── CIMViewerViewModel.cs
│ └── LayerViewerButton.cs
├── LayersPane
│ ├── Extensions
│ │ ├── BooleanToVisibilityConverter.cs
│ │ ├── DynamicDataRow.cs
│ │ ├── ExtendListView.cs
│ │ ├── ExtendsLayer.cs
│ │ └── GDBUtils.cs
│ ├── LayersPaneView.xaml.cs
│ ├── LayersPaneViewModel.cs
│ ├── layersPaneShowButton.cs
│ ├── layersPaneUtils.cs
│ └── layersPaneView.xaml
├── ProjectItemProjectContainer
│ ├── DeleteMap.cs
│ ├── OpenMap.cs
│ └── ProjectIntegration.cs
├── Properties
│ └── AssemblyInfo.cs
├── SamplesData
│ └── World.mapx
├── SubscribeEvents
│ ├── PublishEventButton.cs
│ └── TrapSelectionChangedCheckbox.cs
├── arcgis-pro-samples.csproj
└── arcgis-pro-samples.sln
├── CONTRIBUTING.md
├── Final
├── ArcGISProSDKSampleModule.cs
├── CameraHeading
│ ├── HeadingControl.xaml
│ ├── HeadingControl.xaml.cs
│ └── HeadingViewModel.cs
├── Config.daml
├── CustomComponent
│ ├── AcmeCorpNetworkTracer.cs
│ ├── Config.daml
│ ├── Module1.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TheCustomComponent.csproj
├── CustomComponentCategory
│ ├── ComponentCategoryButton.cs
│ ├── ComponentCategoryInterface.cs
│ ├── ComponentCategoryUtils.cs
│ ├── CoreImplementationTrace.cs
│ └── CoreImplementationTraceInterface.cs
├── DockPaneDemo
│ ├── BookmarkItem.cs
│ ├── ButtonPanToButton.cs
│ ├── ButtonZoomToButton.cs
│ ├── ControlBehavior.cs
│ ├── Converters.cs
│ ├── DockPaneUtils.cs
│ ├── DockPaneView.xaml.cs
│ ├── DockpaneBurgerButton.cs
│ ├── DockpaneButton.cs
│ ├── DockpaneView.xaml
│ ├── DockpaneViewModel.cs
│ └── ExtendsBookmark.cs
├── EditingCutFeatures
│ ├── CutFeaturesTool.cs
│ └── ExtendsEditing.cs
├── FixedZoom
│ ├── FixedZoomIn.cs
│ └── FixedZoomOut.cs
├── FrameworkState
│ ├── RespondToStateButton.cs
│ └── ToggleStateButton.cs
├── GP
│ ├── CancelExecuteGP.cs
│ ├── ExecuteGP.cs
│ └── GPHelper.cs
├── Geocode
│ ├── CIMGraphicsHelper.cs
│ ├── Candidate.cs
│ ├── GeocodeButton.cs
│ ├── GeocodeTextWindow.xaml
│ ├── GeocodeTextWindow.xaml.cs
│ ├── GeocodeURI.cs
│ ├── GeocodeUtils.cs
│ ├── ObjectSerialization.cs
│ └── ObservableObject.cs
├── HollywoodZoom
│ ├── HollywoodZoomIn.cs
│ ├── HollywoodZoomOut.cs
│ └── HollywoodZoomUtils.cs
├── Images
│ ├── AddInDesktop16.png
│ ├── AddInDesktop32.png
│ ├── EditingSplitPolygonTool16.png
│ ├── EditingSplitPolygonTool32.png
│ ├── GenericButtonBlack16.png
│ ├── GenericButtonBlack32.png
│ ├── GenericButtonBlue16.png
│ ├── GenericButtonBlue32.png
│ ├── GenericButtonGreen16.png
│ ├── GenericButtonGreen32.png
│ ├── GenericButtonGrey16.png
│ ├── GenericButtonGrey32.png
│ ├── GenericButtonPurple16.png
│ ├── GenericButtonPurple32.png
│ ├── GenericButtonRed16.png
│ ├── GenericButtonRed32.png
│ ├── GeocodeAddresses16.png
│ ├── GeocodeAddresses32.png
│ ├── PanTool16.png
│ ├── PanTool32.png
│ ├── ZoomFixedZoomIn16.png
│ ├── ZoomFixedZoomIn32.png
│ ├── ZoomFixedZoomOut_B_16.png
│ ├── ZoomFixedZoomOut_B_32.png
│ ├── ZoomGeneric16.png
│ ├── ZoomGeneric_B_32.png
│ ├── ZoomInTool_B_16.png
│ ├── ZoomInTool_B_32.png
│ ├── ZoomOutTool_B_16.png
│ └── ZoomOutTool_B_32.png
├── InsertIntoContextMenu
│ ├── CIMViewerView.xaml
│ ├── CIMViewerView.xaml.cs
│ ├── CIMViewerViewModel.cs
│ └── LayerViewerButton.cs
├── LayersPane
│ ├── Extensions
│ │ ├── BooleanToVisibilityConverter.cs
│ │ ├── DynamicDataRow.cs
│ │ ├── ExtendListView.cs
│ │ ├── ExtendsLayer.cs
│ │ └── GDBUtils.cs
│ ├── LayersPaneView.xaml.cs
│ ├── LayersPaneViewModel.cs
│ ├── layersPaneShowButton.cs
│ ├── layersPaneUtils.cs
│ └── layersPaneView.xaml
├── ProjectItemProjectContainer
│ ├── AddNewProjectItem.cs
│ ├── DeleteMap.cs
│ ├── OpenMap.cs
│ └── ProjectIntegration.cs
├── Properties
│ └── AssemblyInfo.cs
├── SamplesData
│ └── World.mapx
├── SubscribeEvents
│ ├── PublishEventButton.cs
│ └── TrapSelectionChangedCheckbox.cs
├── arcgis-pro-samples.csproj
└── arcgis-pro-samples.sln
├── License.txt
├── Pre-Release-Update 2
├── ArcGISProSDKSampleModule.cs
├── CameraHeading
│ ├── HeadingControl.xaml
│ ├── HeadingControl.xaml.cs
│ └── HeadingViewModel.cs
├── Config.daml
├── CustomComponent
│ ├── AcmeCorpNetworkTracer.cs
│ ├── Config.daml
│ ├── Module1.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TheCustomComponent.csproj
├── CustomComponentCategory
│ ├── ComponentCategoryButton.cs
│ ├── ComponentCategoryInterface.cs
│ ├── ComponentCategoryUtils.cs
│ ├── CoreImplementationTrace.cs
│ └── CoreImplementationTraceInterface.cs
├── DockPaneDemo
│ ├── BookmarkItem.cs
│ ├── ButtonPanToButton.cs
│ ├── ButtonZoomToButton.cs
│ ├── ControlBehavior.cs
│ ├── Converters.cs
│ ├── DockPaneUtils.cs
│ ├── DockPaneView.xaml.cs
│ ├── DockpaneBurgerButton.cs
│ ├── DockpaneButton.cs
│ ├── DockpaneView.xaml
│ ├── DockpaneViewModel.cs
│ └── ExtendsBookmark.cs
├── EditingCutFeatures
│ ├── CutFeaturesTool.cs
│ └── ExtendsEditing.cs
├── FixedZoom
│ ├── FixedZoomIn.cs
│ └── FixedZoomOut.cs
├── FrameworkState
│ ├── RespondToStateButton.cs
│ └── ToggleStateButton.cs
├── GP
│ ├── CancelExecuteGP.cs
│ ├── ExecuteGP.cs
│ └── GPHelper.cs
├── Geocode
│ ├── CIMGraphicsHelper.cs
│ ├── Candidate.cs
│ ├── GeocodeButton.cs
│ ├── GeocodeTextWindow.xaml
│ ├── GeocodeTextWindow.xaml.cs
│ ├── GeocodeURI.cs
│ ├── GeocodeUtils.cs
│ ├── ObjectSerialization.cs
│ └── ObservableObject.cs
├── HollywoodZoom
│ ├── HollywoodZoomIn.cs
│ ├── HollywoodZoomOut.cs
│ └── HollywoodZoomUtils.cs
├── Images
│ ├── AddInDesktop16.png
│ ├── AddInDesktop32.png
│ ├── EditingSplitPolygonTool16.png
│ ├── EditingSplitPolygonTool32.png
│ ├── GenericButtonBlack16.png
│ ├── GenericButtonBlack32.png
│ ├── GenericButtonBlue16.png
│ ├── GenericButtonBlue32.png
│ ├── GenericButtonGreen16.png
│ ├── GenericButtonGreen32.png
│ ├── GenericButtonGrey16.png
│ ├── GenericButtonGrey32.png
│ ├── GenericButtonPurple16.png
│ ├── GenericButtonPurple32.png
│ ├── GenericButtonRed16.png
│ ├── GenericButtonRed32.png
│ ├── GeocodeAddresses16.png
│ ├── GeocodeAddresses32.png
│ ├── PanTool16.png
│ ├── PanTool32.png
│ ├── ZoomFixedZoomIn16.png
│ ├── ZoomFixedZoomIn32.png
│ ├── ZoomFixedZoomOut_B_16.png
│ ├── ZoomFixedZoomOut_B_32.png
│ ├── ZoomGeneric16.png
│ ├── ZoomGeneric_B_32.png
│ ├── ZoomInTool_B_16.png
│ ├── ZoomInTool_B_32.png
│ ├── ZoomOutTool_B_16.png
│ └── ZoomOutTool_B_32.png
├── InsertIntoContextMenu
│ ├── CIMViewerView.xaml
│ ├── CIMViewerView.xaml.cs
│ ├── CIMViewerViewModel.cs
│ └── LayerViewerButton.cs
├── LayersPane
│ ├── Extensions
│ │ ├── BooleanToVisibilityConverter.cs
│ │ ├── DynamicDataRow.cs
│ │ ├── ExtendListView.cs
│ │ ├── ExtendsLayer.cs
│ │ └── GDBUtils.cs
│ ├── LayersPaneView.xaml.cs
│ ├── LayersPaneViewModel.cs
│ ├── layersPaneShowButton.cs
│ ├── layersPaneUtils.cs
│ └── layersPaneView.xaml
├── ProjectItemProjectContainer
│ ├── AddNewProjectItem.cs
│ ├── DeleteMap.cs
│ ├── OpenMap.cs
│ └── ProjectIntegration.cs
├── Properties
│ └── AssemblyInfo.cs
├── SamplesData
│ └── World.mapx
├── SubscribeEvents
│ ├── PublishEventButton.cs
│ └── TrapSelectionChangedCheckbox.cs
├── arcgis-pro-samples.csproj
└── arcgis-pro-samples.sln
├── Pre-Release-Update
├── ArcGISProSDKSampleModule.cs
├── CameraHeading
│ ├── HeadingControl.xaml
│ ├── HeadingControl.xaml.cs
│ └── HeadingViewModel.cs
├── Config.daml
├── CustomComponent
│ ├── AcmeCorpNetworkTracer.cs
│ ├── Config.daml
│ ├── Module1.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TheCustomComponent.csproj
├── CustomComponentCategory
│ ├── ComponentCategoryButton.cs
│ ├── ComponentCategoryInterface.cs
│ ├── ComponentCategoryUtils.cs
│ ├── CoreImplementationTrace.cs
│ └── CoreImplementationTraceInterface.cs
├── DockPaneDemo
│ ├── BookmarkItem.cs
│ ├── ButtonPanToButton.cs
│ ├── ButtonZoomToButton.cs
│ ├── ControlBehavior.cs
│ ├── Converters.cs
│ ├── DockPaneUtils.cs
│ ├── DockPaneView.xaml.cs
│ ├── DockpaneBurgerButton.cs
│ ├── DockpaneButton.cs
│ ├── DockpaneView.xaml
│ ├── DockpaneViewModel.cs
│ └── ExtendsBookmark.cs
├── EditingCutFeatures
│ ├── CutFeaturesTool.cs
│ └── ExtendsEditing.cs
├── FixedZoom
│ ├── FixedZoomIn.cs
│ └── FixedZoomOut.cs
├── FrameworkState
│ ├── RespondToStateButton.cs
│ └── ToggleStateButton.cs
├── GP
│ ├── CancelExecuteGP.cs
│ ├── ExecuteGP.cs
│ └── GPHelper.cs
├── Geocode
│ ├── CIMGraphicsHelper.cs
│ ├── Candidate.cs
│ ├── GeocodeButton.cs
│ ├── GeocodeTextWindow.xaml
│ ├── GeocodeTextWindow.xaml.cs
│ ├── GeocodeURI.cs
│ ├── GeocodeUtils.cs
│ ├── ObjectSerialization.cs
│ └── ObservableObject.cs
├── HollywoodZoom
│ ├── HollywoodZoomIn.cs
│ ├── HollywoodZoomOut.cs
│ └── HollywoodZoomUtils.cs
├── Images
│ ├── AddInDesktop16.png
│ ├── AddInDesktop32.png
│ ├── EditingSplitPolygonTool16.png
│ ├── EditingSplitPolygonTool32.png
│ ├── GenericButtonBlack16.png
│ ├── GenericButtonBlack32.png
│ ├── GenericButtonBlue16.png
│ ├── GenericButtonBlue32.png
│ ├── GenericButtonGreen16.png
│ ├── GenericButtonGreen32.png
│ ├── GenericButtonGrey16.png
│ ├── GenericButtonGrey32.png
│ ├── GenericButtonPurple16.png
│ ├── GenericButtonPurple32.png
│ ├── GenericButtonRed16.png
│ ├── GenericButtonRed32.png
│ ├── GeocodeAddresses16.png
│ ├── GeocodeAddresses32.png
│ ├── PanTool16.png
│ ├── PanTool32.png
│ ├── ZoomFixedZoomIn16.png
│ ├── ZoomFixedZoomIn32.png
│ ├── ZoomFixedZoomOut_B_16.png
│ ├── ZoomFixedZoomOut_B_32.png
│ ├── ZoomGeneric16.png
│ ├── ZoomGeneric_B_32.png
│ ├── ZoomInTool_B_16.png
│ ├── ZoomInTool_B_32.png
│ ├── ZoomOutTool_B_16.png
│ └── ZoomOutTool_B_32.png
├── InsertIntoContextMenu
│ ├── CIMViewerView.xaml
│ ├── CIMViewerView.xaml.cs
│ ├── CIMViewerViewModel.cs
│ └── LayerViewerButton.cs
├── LayersPane
│ ├── Extensions
│ │ ├── BooleanToVisibilityConverter.cs
│ │ ├── DynamicDataRow.cs
│ │ ├── ExtendListView.cs
│ │ ├── ExtendsLayer.cs
│ │ └── GDBUtils.cs
│ ├── LayersPaneView.xaml.cs
│ ├── LayersPaneViewModel.cs
│ ├── layersPaneShowButton.cs
│ ├── layersPaneUtils.cs
│ └── layersPaneView.xaml
├── ProjectItemProjectContainer
│ ├── AddNewProjectItem.cs
│ ├── DeleteMap.cs
│ ├── OpenMap.cs
│ └── ProjectIntegration.cs
├── Properties
│ └── AssemblyInfo.cs
├── SamplesData
│ └── World.mapx
├── SubscribeEvents
│ ├── PublishEventButton.cs
│ └── TrapSelectionChangedCheckbox.cs
├── arcgis-pro-samples.csproj
└── arcgis-pro-samples.sln
├── Pre-Release
├── ArcGISProSDKSampleModule.cs
├── CameraHeading
│ ├── HeadingControl.xaml
│ ├── HeadingControl.xaml.cs
│ └── HeadingViewModel.cs
├── Config.daml
├── CustomComponent
│ ├── AcmeCorpNetworkTracer.cs
│ ├── Config.daml
│ ├── Module1.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TheCustomComponent.csproj
├── CustomComponentCategory
│ ├── ComponentCategoryButton.cs
│ ├── ComponentCategoryInterface.cs
│ ├── ComponentCategoryUtils.cs
│ ├── CoreImplementationTrace.cs
│ └── CoreImplementationTraceInterface.cs
├── DockPaneDemo
│ ├── BookmarkItem.cs
│ ├── ButtonPanToButton.cs
│ ├── ButtonZoomToButton.cs
│ ├── ControlBehavior.cs
│ ├── Converters.cs
│ ├── DockPaneUtils.cs
│ ├── DockPaneView.xaml.cs
│ ├── DockpaneBurgerButton.cs
│ ├── DockpaneButton.cs
│ ├── DockpaneView.xaml
│ ├── DockpaneViewModel.cs
│ └── ExtendsBookmark.cs
├── EditingCutFeatures
│ ├── CutFeaturesTool.cs
│ └── ExtendsEditing.cs
├── FixedZoom
│ ├── FixedZoomIn.cs
│ └── FixedZoomOut.cs
├── FrameworkState
│ ├── RespondToStateButton.cs
│ └── ToggleStateButton.cs
├── GP
│ ├── CancelExecuteGP.cs
│ ├── ExecuteGP.cs
│ └── GPHelper.cs
├── Geocode
│ ├── CIMGraphicsHelper.cs
│ ├── Candidate.cs
│ ├── GeocodeButton.cs
│ ├── GeocodeTextWindow.xaml
│ ├── GeocodeTextWindow.xaml.cs
│ ├── GeocodeURI.cs
│ ├── GeocodeUtils.cs
│ ├── ObjectSerialization.cs
│ └── ObservableObject.cs
├── HollywoodZoom
│ ├── HollywoodZoomIn.cs
│ ├── HollywoodZoomOut.cs
│ └── HollywoodZoomUtils.cs
├── Images
│ ├── AddInDesktop16.png
│ ├── AddInDesktop32.png
│ ├── EditingSplitPolygonTool16.png
│ ├── EditingSplitPolygonTool32.png
│ ├── GenericButtonBlack16.png
│ ├── GenericButtonBlack32.png
│ ├── GenericButtonBlue16.png
│ ├── GenericButtonBlue32.png
│ ├── GenericButtonGreen16.png
│ ├── GenericButtonGreen32.png
│ ├── GenericButtonGrey16.png
│ ├── GenericButtonGrey32.png
│ ├── GenericButtonPurple16.png
│ ├── GenericButtonPurple32.png
│ ├── GenericButtonRed16.png
│ ├── GenericButtonRed32.png
│ ├── GeocodeAddresses16.png
│ ├── GeocodeAddresses32.png
│ ├── PanTool16.png
│ ├── PanTool32.png
│ ├── ZoomFixedZoomIn16.png
│ ├── ZoomFixedZoomIn32.png
│ ├── ZoomFixedZoomOut_B_16.png
│ ├── ZoomFixedZoomOut_B_32.png
│ ├── ZoomGeneric16.png
│ ├── ZoomGeneric_B_32.png
│ ├── ZoomInTool_B_16.png
│ ├── ZoomInTool_B_32.png
│ ├── ZoomOutTool_B_16.png
│ └── ZoomOutTool_B_32.png
├── InsertIntoContextMenu
│ ├── CIMViewerView.xaml
│ ├── CIMViewerView.xaml.cs
│ ├── CIMViewerViewModel.cs
│ └── LayerViewerButton.cs
├── LayersPane
│ ├── Extensions
│ │ ├── BooleanToVisibilityConverter.cs
│ │ ├── DynamicDataRow.cs
│ │ ├── ExtendListView.cs
│ │ ├── ExtendsLayer.cs
│ │ └── GDBUtils.cs
│ ├── LayersPaneView.xaml.cs
│ ├── LayersPaneViewModel.cs
│ ├── layersPaneShowButton.cs
│ ├── layersPaneUtils.cs
│ └── layersPaneView.xaml
├── ProjectItemProjectContainer
│ ├── AddNewProjectItem.cs
│ ├── DeleteMap.cs
│ ├── OpenMap.cs
│ └── ProjectIntegration.cs
├── Properties
│ └── AssemblyInfo.cs
├── SamplesData
│ └── World.mapx
├── SubscribeEvents
│ ├── PublishEventButton.cs
│ └── TrapSelectionChangedCheckbox.cs
├── arcgis-pro-samples.csproj
└── arcgis-pro-samples.sln
├── README.md
└── arcgis-pro-samples-beta5.png
/Beta4/CustomComponent/Module1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Framework;
7 | using ArcGIS.Desktop.Framework.Contracts;
8 |
9 | namespace TheCustomComponent {
10 | internal class Module1 : Module {
11 | private static Module1 _this = null;
12 |
13 | ///
14 | /// Retrieve the singleton instance to this module here
15 | ///
16 | public static Module1 Current {
17 | get {
18 | return _this ?? (_this = (Module1)FrameworkApplication.FindModule("TheCustomComponent_Module1_id"));
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Beta4/CustomComponent/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CustomComponent")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CustomComponent")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("43a37e26-3c7a-426a-a6f1-49c971e8c301")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Beta4/CustomComponentCategory/ComponentCategoryButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using ArcGIS.Core.CIM;
8 | using ArcGIS.Desktop.Core;
9 | using ArcGIS.Desktop.Framework;
10 | using ArcGIS.Desktop.Framework.Contracts;
11 | using ArcGIS.Desktop.Mapping;
12 | using ArcGIS.Desktop.Internal.Mapping;
13 |
14 | namespace UCSamples.CustomComponentCategory {
15 | class ComponentCategoryButton : Button {
16 | private ComponentCategoryUtils _helper = null;
17 | ///
18 | /// Load components if there are any and run the trace simulation
19 | ///
20 | protected override async void OnClick() {
21 | if (_helper == null) {
22 | _helper = new ComponentCategoryUtils();
23 | }
24 | _helper.RunTrace();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/Beta4/CustomComponentCategory/ComponentCategoryInterface.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace UCSample.CustomComponentCategory {
8 |
9 | ///
10 | /// Implement this interface to extend the core network tracing capabilities.
11 | /// The name of the interface is arbitrary. Call it what you want.
12 | ///
13 | /// Providers must register themselves in the NetworkTraceExtender component
14 | /// category
15 | public interface IComponentCategoryInterface {
16 | Task Accept(ICoreImplementationTraceInterface currentTrace);
17 | IEnumerable GetStops();
18 | IEnumerable GetBarriers();
19 | Task ModifyTrace(INetworkResult results);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Beta4/DockPaneDemo/DockPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace UCSamples.DockPaneDemo {
29 | ///
30 | /// Interaction logic for DockpaneView.xaml
31 | ///
32 | public partial class DockpaneView : UserControl {
33 | public DockpaneView() {
34 | InitializeComponent();
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Beta4/DockPaneDemo/DockpaneButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace UCSamples.DockPaneDemo
22 | {
23 | ///
24 | /// Represents the button that opens the Dockpane.
25 | ///
26 | public class DockpaneButton : Button
27 | {
28 | private bool _isBusy = false;
29 |
30 | protected override void OnClick()
31 | {
32 | if (_isBusy)
33 | return;
34 | _isBusy = true;
35 | try
36 | {
37 | DockpaneUtils.ShowDockPane();
38 | }
39 | finally
40 | {
41 | _isBusy = false;
42 | }
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Beta4/FrameworkState/RespondToStateButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 |
22 | namespace UCSamples.FrameworkState
23 | {
24 | internal class RespondToStateButton : Button
25 | {
26 | protected override void OnClick()
27 | {
28 | ArcGIS.Desktop.Internal.Framework.Metro.MessageBox.Show(string.Format("From {0} : {1}", this.GetType().ToString(), DateTime.Now.ToString("G")));
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Beta4/GP/CancelExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace UCSamples.GP
22 | {
23 | public class CancelExecuteGP : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | //This calls cancel on the cancelationTokenSource associated with the
28 | //current operation. If none is associated it is, effectively, a no-op
29 | ForTheUcModule.Current.GPHelper.CallCancel();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Beta4/GP/ExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 | using ArcGIS.Desktop.Framework.Threading.Tasks;
22 |
23 | namespace UCSamples.GP
24 | {
25 | internal class ExecuteGP : Button {
26 |
27 | private static readonly CancelationSource withCancelProgressor = CancelationSource.withCancelableProgressor;
28 | private static readonly CancelationSource withCancelToken = CancelationSource.withCancelationToken;
29 |
30 | protected override async void OnClick() {
31 |
32 | GPHelper.ExecuteBufferGP(withCancelProgressor);
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Beta4/HollywoodZoom/HollywoodZoomUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 |
19 | namespace UCSamples.HollywoodZoom {
20 | internal class HollywoodZoomUtils {
21 |
22 | public static double StepHeading(double currentHeading, double stepSize) {
23 | double heading = currentHeading + stepSize;
24 |
25 | // ensure that we are in the <360 range
26 | heading = heading > 360 ? heading % 360 : heading;
27 |
28 | // transform the 0-360 range into the heading property ranging from -180 - 180
29 | heading = heading > 180 ? heading - 360 : heading;
30 |
31 | return heading;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Beta4/Images/AddInDesktop16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/AddInDesktop16.png
--------------------------------------------------------------------------------
/Beta4/Images/AddInDesktop32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/AddInDesktop32.png
--------------------------------------------------------------------------------
/Beta4/Images/EditingSplitPolygonTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/EditingSplitPolygonTool16.png
--------------------------------------------------------------------------------
/Beta4/Images/EditingSplitPolygonTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/EditingSplitPolygonTool32.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonBlack16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonBlack16.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonBlack32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonBlack32.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonBlue16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonBlue16.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonBlue32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonBlue32.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonGreen16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonGreen16.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonGreen32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonGreen32.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonGrey16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonGrey16.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonGrey32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonGrey32.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonPurple16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonPurple16.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonPurple32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonPurple32.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonRed16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonRed16.png
--------------------------------------------------------------------------------
/Beta4/Images/GenericButtonRed32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GenericButtonRed32.png
--------------------------------------------------------------------------------
/Beta4/Images/GeocodeAddresses16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GeocodeAddresses16.png
--------------------------------------------------------------------------------
/Beta4/Images/GeocodeAddresses32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/GeocodeAddresses32.png
--------------------------------------------------------------------------------
/Beta4/Images/PanTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/PanTool16.png
--------------------------------------------------------------------------------
/Beta4/Images/PanTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/PanTool32.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomFixedZoomIn16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomFixedZoomIn16.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomFixedZoomIn32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomFixedZoomIn32.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomFixedZoomOut_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomFixedZoomOut_B_16.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomFixedZoomOut_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomFixedZoomOut_B_32.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomGeneric16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomGeneric16.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomGeneric_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomGeneric_B_32.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomInTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomInTool_B_16.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomInTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomInTool_B_32.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomOutTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomOutTool_B_16.png
--------------------------------------------------------------------------------
/Beta4/Images/ZoomOutTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta4/Images/ZoomOutTool_B_32.png
--------------------------------------------------------------------------------
/Beta4/InsertIntoContextMenu/CIMViewerView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Beta4/InsertIntoContextMenu/CIMViewerView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace UCSamples.InsertIntoContextMenu
29 | {
30 | ///
31 | /// Interaction logic for CIMViewerView.xaml
32 | ///
33 | public partial class CIMViewerView : Window
34 | {
35 | public CIMViewerView()
36 | {
37 | InitializeComponent();
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Beta4/LayersPane/Extensions/BooleanToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using System.Windows;
20 | using System.Windows.Data;
21 |
22 | namespace UCSamples.LayersPane.Extensions {
23 | public class BooleanToVisibilityConverter : IValueConverter {
24 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
25 | if (value == null)
26 | return Visibility.Hidden;
27 | return (bool)value ? Visibility.Visible : Visibility.Hidden;
28 | }
29 |
30 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
31 | throw new NotImplementedException();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Beta4/LayersPane/Extensions/ExtendsLayer.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace UCSamples.LayersPane.Extensions {
22 | static class ExtendsLayer {
23 |
24 | ///
25 | /// Returns the feature class associated with layer.
26 | ///
27 | /// The input layer.
28 | /// The table or the feature class associated with the layer.
29 | public static async Task getFeatureClass(this Layer layer) {
30 | // get the feature class associated with the layer
31 | return await ArcGIS.Desktop.Internal.Editing.EditingModuleInternal.GetTableAsync(layer);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Beta4/LayersPane/Extensions/GDBUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace UCSamples.LayersPane.Extensions {
22 | static class GDBUtils {
23 |
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Beta4/LayersPane/LayersPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 |
29 | namespace UCSamples.LayersPane
30 | {
31 | ///
32 | /// Interaction logic for layersPaneView.xaml
33 | ///
34 | public partial class LayersPaneView : UserControl
35 | {
36 | public LayersPaneView()
37 | {
38 | InitializeComponent();
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Beta4/LayersPane/layersPaneShowButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace UCSamples.LayersPane
22 | {
23 | internal class LayersPaneShowButton : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | LayersPaneUtils.OpenPaneView(LayersPaneViewModel.ViewPaneID);
28 | }
29 | }
30 | }
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Beta4/ProjectItemProjectContainer/OpenMap.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Framework;
7 | using ArcGIS.Desktop.Framework.Contracts;
8 | using ArcGIS.Desktop.Mapping;
9 | using ArcGIS.Desktop.Core;
10 | using ArcGIS.Core.CIM;
11 | using ArcGIS.Desktop.Internal.Mapping;
12 |
13 | namespace UCSamples.ProjectItemProjectContainer
14 | {
15 | internal class OpenMap : Button
16 | {
17 | protected override void OnClick()
18 | {
19 | // get the map container
20 | var container = ProjectModule.CurrentProject.GetProjectItemContainer("Map");
21 | if (container == null)
22 | return;
23 |
24 | // get the first item
25 | MapProjectItem item = container.GetProjectItems().FirstOrDefault();
26 | if (item == null)
27 | return;
28 |
29 | // fimd the map
30 | Map map = MappingModule.FindMap(item.Path);
31 | if (map == null)
32 | return;
33 |
34 | bool bAlreadyOpen = false;
35 | // see if its already open
36 | //IList mapPanes = MappingModule.GetMapPanes(map);
37 | //if ((mapPanes != null) && (mapPanes.Count > 0))
38 | // bAlreadyOpen = true;
39 |
40 | if (!bAlreadyOpen)
41 | {
42 | var mapPane = MappingModule.OpenMapView(item.Path, item.ViewingMode);
43 | }
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Beta4/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("UCSamples")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Acme")]
12 | [assembly: AssemblyProduct("UCSamples")]
13 | [assembly: AssemblyCopyright("Copyright © Acme 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f9ad6e8b-7505-4218-aabc-2389e1a9c3cd")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Beta4/UCSamples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30110.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UCSamples", "UCSamples.csproj", "{BB084CA5-C765-4F42-8639-994A02E6DE82}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Beta5/CustomComponent/Module1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Framework;
7 | using ArcGIS.Desktop.Framework.Contracts;
8 |
9 | namespace TheCustomComponent {
10 | internal class Module1 : Module {
11 | private static Module1 _this = null;
12 |
13 | ///
14 | /// Retrieve the singleton instance to this module here
15 | ///
16 | public static Module1 Current {
17 | get {
18 | return _this ?? (_this = (Module1)FrameworkApplication.FindModule("TheCustomComponent_Module1_id"));
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Beta5/CustomComponent/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CustomComponent")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CustomComponent")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("43a37e26-3c7a-426a-a6f1-49c971e8c301")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Beta5/CustomComponentCategory/ComponentCategoryButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using ArcGIS.Core.CIM;
8 | using ArcGIS.Desktop.Core;
9 | using ArcGIS.Desktop.Framework;
10 | using ArcGIS.Desktop.Framework.Contracts;
11 | using ArcGIS.Desktop.Mapping;
12 | using ArcGIS.Desktop.Internal.Mapping;
13 |
14 | namespace UCSamples.CustomComponentCategory {
15 | class ComponentCategoryButton : Button {
16 | private ComponentCategoryUtils _helper = null;
17 | ///
18 | /// Load components if there are any and run the trace simulation
19 | ///
20 | protected override async void OnClick() {
21 | if (_helper == null) {
22 | _helper = new ComponentCategoryUtils();
23 | }
24 | _helper.RunTrace();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/Beta5/CustomComponentCategory/ComponentCategoryInterface.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace UCSample.CustomComponentCategory {
8 |
9 | ///
10 | /// Implement this interface to extend the core network tracing capabilities.
11 | /// The name of the interface is arbitrary. Call it what you want.
12 | ///
13 | /// Providers must register themselves in the NetworkTraceExtender component
14 | /// category
15 | public interface IComponentCategoryInterface {
16 | Task Accept(ICoreImplementationTraceInterface currentTrace);
17 | IEnumerable GetStops();
18 | IEnumerable GetBarriers();
19 | Task ModifyTrace(INetworkResult results);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Beta5/DockPaneDemo/DockPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.DockPaneDemo {
29 | ///
30 | /// Interaction logic for DockpaneView.xaml
31 | ///
32 | public partial class DockpaneView : UserControl {
33 | public DockpaneView() {
34 | InitializeComponent();
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Beta5/DockPaneDemo/DockpaneButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Linq;
15 | using System.Text;
16 | using ArcGIS.Desktop.Framework;
17 | using ArcGIS.Desktop.Framework.Contracts;
18 |
19 | namespace ProSDKSamples.DockPaneDemo
20 | {
21 | ///
22 | /// Represents the button that opens the Dockpane.
23 | ///
24 | public class DockpaneButton : Button
25 | {
26 | private bool _isBusy = false;
27 |
28 | protected override void OnClick()
29 | {
30 | if (_isBusy)
31 | return;
32 | _isBusy = true;
33 | try
34 | {
35 | DockpaneUtils.ShowDockPane();
36 | }
37 | finally
38 | {
39 | _isBusy = false;
40 | }
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Beta5/FrameworkState/RespondToStateButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 |
22 | namespace ProSDKSamples.FrameworkState
23 | {
24 | internal class RespondToStateButton : Button
25 | {
26 | protected override void OnClick()
27 | {
28 | System.Windows.MessageBox.Show(string.Format("From {0} : {1}", this.GetType().ToString(), DateTime.Now.ToString("G")));
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Beta5/GP/CancelExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.GP
22 | {
23 | public class CancelExecuteGP : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | //This calls cancel on the cancelationTokenSource associated with the
28 | //current operation. If none is associated it is, effectively, a no-op
29 | ProSDKSampleModule.Current.GPHelper.CallCancel();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Beta5/GP/ExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 | using ArcGIS.Desktop.Framework.Threading.Tasks;
22 |
23 | namespace ProSDKSamples.GP
24 | {
25 | internal class ExecuteGP : Button {
26 |
27 | private static readonly CancelationSource withCancelProgressor = CancelationSource.withCancelableProgressor;
28 | private static readonly CancelationSource withCancelToken = CancelationSource.withCancelationToken;
29 |
30 | protected override void OnClick() {
31 |
32 | GPHelper.ExecuteBufferGP(withCancelProgressor);
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Beta5/HollywoodZoom/HollywoodZoomUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 |
19 | namespace ProSDKSamples.HollywoodZoom {
20 | internal class HollywoodZoomUtils {
21 |
22 | public static double StepHeading(double currentHeading, double stepSize) {
23 | double heading = currentHeading + stepSize;
24 |
25 | // ensure that we are in the <360 range
26 | heading = heading > 360 ? heading % 360 : heading;
27 |
28 | // transform the 0-360 range into the heading property ranging from -180 - 180
29 | heading = heading > 180 ? heading - 360 : heading;
30 |
31 | return heading;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Beta5/Images/AddInDesktop16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/AddInDesktop16.png
--------------------------------------------------------------------------------
/Beta5/Images/AddInDesktop32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/AddInDesktop32.png
--------------------------------------------------------------------------------
/Beta5/Images/EditingSplitPolygonTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/EditingSplitPolygonTool16.png
--------------------------------------------------------------------------------
/Beta5/Images/EditingSplitPolygonTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/EditingSplitPolygonTool32.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonBlack16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonBlack16.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonBlack32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonBlack32.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonBlue16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonBlue16.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonBlue32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonBlue32.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonGreen16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonGreen16.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonGreen32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonGreen32.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonGrey16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonGrey16.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonGrey32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonGrey32.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonPurple16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonPurple16.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonPurple32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonPurple32.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonRed16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonRed16.png
--------------------------------------------------------------------------------
/Beta5/Images/GenericButtonRed32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GenericButtonRed32.png
--------------------------------------------------------------------------------
/Beta5/Images/GeocodeAddresses16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GeocodeAddresses16.png
--------------------------------------------------------------------------------
/Beta5/Images/GeocodeAddresses32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/GeocodeAddresses32.png
--------------------------------------------------------------------------------
/Beta5/Images/PanTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/PanTool16.png
--------------------------------------------------------------------------------
/Beta5/Images/PanTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/PanTool32.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomFixedZoomIn16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomFixedZoomIn16.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomFixedZoomIn32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomFixedZoomIn32.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomFixedZoomOut_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomFixedZoomOut_B_16.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomFixedZoomOut_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomFixedZoomOut_B_32.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomGeneric16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomGeneric16.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomGeneric_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomGeneric_B_32.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomInTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomInTool_B_16.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomInTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomInTool_B_32.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomOutTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomOutTool_B_16.png
--------------------------------------------------------------------------------
/Beta5/Images/ZoomOutTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Beta5/Images/ZoomOutTool_B_32.png
--------------------------------------------------------------------------------
/Beta5/InsertIntoContextMenu/CIMViewerView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Beta5/InsertIntoContextMenu/CIMViewerView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.InsertIntoContextMenu
29 | {
30 | ///
31 | /// Interaction logic for CIMViewerView.xaml
32 | ///
33 | public partial class CIMViewerView : Window
34 | {
35 | public CIMViewerView()
36 | {
37 | InitializeComponent();
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Beta5/LayersPane/Extensions/BooleanToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using System.Windows;
20 | using System.Windows.Data;
21 |
22 | namespace ProSDKSamples.LayersPane.Extensions {
23 | public class BooleanToVisibilityConverter : IValueConverter {
24 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
25 | if (value == null)
26 | return Visibility.Hidden;
27 | return (bool)value ? Visibility.Visible : Visibility.Hidden;
28 | }
29 |
30 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
31 | throw new NotImplementedException();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Beta5/LayersPane/Extensions/ExtendsLayer.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class ExtendsLayer {
23 |
24 | ///
25 | /// Returns the feature class associated with layer.
26 | ///
27 | /// The input layer.
28 | /// The table or the feature class associated with the layer.
29 | public static async Task getFeatureClass(this Layer layer) {
30 | // get the feature class associated with the layer
31 | return await ArcGIS.Desktop.Internal.Editing.EditingModuleInternal.GetTableAsync(layer);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Beta5/LayersPane/Extensions/GDBUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class GDBUtils {
23 |
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Beta5/LayersPane/LayersPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 |
29 | namespace ProSDKSamples.LayersPane
30 | {
31 | ///
32 | /// Interaction logic for layersPaneView.xaml
33 | ///
34 | public partial class LayersPaneView : UserControl
35 | {
36 | public LayersPaneView()
37 | {
38 | InitializeComponent();
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Beta5/LayersPane/layersPaneShowButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.LayersPane
22 | {
23 | internal class LayersPaneShowButton : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | LayersPaneUtils.OpenPaneView(LayersPaneViewModel.ViewPaneID);
28 | }
29 | }
30 | }
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Beta5/ProjectItemProjectContainer/OpenMap.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using ArcGIS.Desktop.Framework.Contracts;
3 | using ArcGIS.Desktop.Mapping;
4 | using ArcGIS.Desktop.Core;
5 |
6 | namespace ProSDKSamples.ProjectItemProjectContainer
7 | {
8 | internal class OpenMap : Button
9 | {
10 | protected override void OnClick()
11 | {
12 | // get the map container
13 | var container = ProjectModule.CurrentProject.GetProjectItemContainer("Map");
14 | if (container == null)
15 | return;
16 |
17 | // get the first item
18 | MapProjectItem item = container.GetProjectItems().FirstOrDefault();
19 | if (item == null)
20 | return;
21 |
22 | // fimd the map
23 | Map map = MappingModule.FindMap(item.Path);
24 | if (map == null)
25 | return;
26 |
27 | bool bAlreadyOpen = false;
28 | // see if its already open
29 | //IList mapPanes = MappingModule.GetMapPanes(map);
30 | //if ((mapPanes != null) && (mapPanes.Count > 0))
31 | // bAlreadyOpen = true;
32 |
33 | if (!bAlreadyOpen)
34 | {
35 | var mapPane = MappingModule.OpenMapView(item.Path, item.ViewingMode);
36 | }
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Beta5/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ProSDKSamples")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Esri")]
12 | [assembly: AssemblyProduct("ProSDKSamples")]
13 | [assembly: AssemblyCopyright("Copyright © Esri 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f9ad6e8b-7505-4218-aabc-2389e1a9c3cd")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Beta5/arcgis-pro-samples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30110.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arcgis-pro-samples", "arcgis-pro-samples.csproj", "{BB084CA5-C765-4F42-8639-994A02E6DE82}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Esri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing).
--------------------------------------------------------------------------------
/Final/CustomComponent/Module1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Framework;
7 | using ArcGIS.Desktop.Framework.Contracts;
8 |
9 | namespace TheCustomComponent {
10 | internal class Module1 : Module {
11 | private static Module1 _this = null;
12 |
13 | ///
14 | /// Retrieve the singleton instance to this module here
15 | ///
16 | public static Module1 Current {
17 | get {
18 | return _this ?? (_this = (Module1)FrameworkApplication.FindModule("TheCustomComponent_Module1_id"));
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Final/CustomComponent/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CustomComponent")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CustomComponent")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("43a37e26-3c7a-426a-a6f1-49c971e8c301")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Final/CustomComponentCategory/ComponentCategoryButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using ArcGIS.Core.CIM;
8 | using ArcGIS.Desktop.Core;
9 | using ArcGIS.Desktop.Framework;
10 | using ArcGIS.Desktop.Framework.Contracts;
11 | using ArcGIS.Desktop.Mapping;
12 | using ArcGIS.Desktop.Internal.Mapping;
13 |
14 | namespace UCSamples.CustomComponentCategory {
15 | class ComponentCategoryButton : Button {
16 | private ComponentCategoryUtils _helper = null;
17 | ///
18 | /// Load components if there are any and run the trace simulation
19 | ///
20 | protected override async void OnClick() {
21 | if (_helper == null) {
22 | _helper = new ComponentCategoryUtils();
23 | }
24 | _helper.RunTrace();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/Final/CustomComponentCategory/ComponentCategoryInterface.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace UCSample.CustomComponentCategory {
8 |
9 | ///
10 | /// Implement this interface to extend the core network tracing capabilities.
11 | /// The name of the interface is arbitrary. Call it what you want.
12 | ///
13 | /// Providers must register themselves in the NetworkTraceExtender component
14 | /// category
15 | public interface IComponentCategoryInterface {
16 | Task Accept(ICoreImplementationTraceInterface currentTrace);
17 | IEnumerable GetStops();
18 | IEnumerable GetBarriers();
19 | Task ModifyTrace(INetworkResult results);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Final/DockPaneDemo/DockPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.DockPaneDemo {
29 | ///
30 | /// Interaction logic for DockpaneView.xaml
31 | ///
32 | public partial class DockpaneView : UserControl {
33 | public DockpaneView() {
34 | InitializeComponent();
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Final/DockPaneDemo/DockpaneButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Linq;
15 | using System.Text;
16 | using ArcGIS.Desktop.Framework;
17 | using ArcGIS.Desktop.Framework.Contracts;
18 |
19 | namespace ProSDKSamples.DockPaneDemo
20 | {
21 | ///
22 | /// Represents the button that opens the Dockpane.
23 | ///
24 | public class DockpaneButton : Button
25 | {
26 | private bool _isBusy = false;
27 |
28 | protected override void OnClick()
29 | {
30 | if (_isBusy)
31 | return;
32 | _isBusy = true;
33 | try
34 | {
35 | DockpaneUtils.ShowDockPane();
36 | }
37 | finally
38 | {
39 | _isBusy = false;
40 | }
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Final/FrameworkState/RespondToStateButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 |
22 | namespace ProSDKSamples.FrameworkState
23 | {
24 | internal class RespondToStateButton : Button
25 | {
26 | protected override void OnClick()
27 | {
28 | System.Windows.MessageBox.Show(string.Format("From {0} : {1}", this.GetType().ToString(), DateTime.Now.ToString("G")));
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Final/GP/CancelExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.GP
22 | {
23 | public class CancelExecuteGP : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | //This calls cancel on the cancelationTokenSource associated with the
28 | //current operation. If none is associated it is, effectively, a no-op
29 | ProSDKSampleModule.Current.GPHelper.CallCancel();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Final/GP/ExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 | using ArcGIS.Desktop.Framework.Threading.Tasks;
22 |
23 | namespace ProSDKSamples.GP
24 | {
25 | internal class ExecuteGP : Button {
26 |
27 | private static readonly CancelationSource withCancelProgressor = CancelationSource.withCancelableProgressor;
28 | private static readonly CancelationSource withCancelToken = CancelationSource.withCancelationToken;
29 |
30 | protected override void OnClick() {
31 |
32 | GPHelper.ExecuteBufferGP(withCancelProgressor);
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Final/HollywoodZoom/HollywoodZoomUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 |
19 | namespace ProSDKSamples.HollywoodZoom {
20 | internal class HollywoodZoomUtils {
21 |
22 | public static double StepHeading(double currentHeading, double stepSize) {
23 | double heading = currentHeading + stepSize;
24 |
25 | // ensure that we are in the <360 range
26 | heading = heading > 360 ? heading % 360 : heading;
27 |
28 | // transform the 0-360 range into the heading property ranging from -180 - 180
29 | heading = heading > 180 ? heading - 360 : heading;
30 |
31 | return heading;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Final/Images/AddInDesktop16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/AddInDesktop16.png
--------------------------------------------------------------------------------
/Final/Images/AddInDesktop32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/AddInDesktop32.png
--------------------------------------------------------------------------------
/Final/Images/EditingSplitPolygonTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/EditingSplitPolygonTool16.png
--------------------------------------------------------------------------------
/Final/Images/EditingSplitPolygonTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/EditingSplitPolygonTool32.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonBlack16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonBlack16.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonBlack32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonBlack32.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonBlue16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonBlue16.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonBlue32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonBlue32.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonGreen16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonGreen16.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonGreen32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonGreen32.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonGrey16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonGrey16.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonGrey32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonGrey32.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonPurple16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonPurple16.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonPurple32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonPurple32.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonRed16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonRed16.png
--------------------------------------------------------------------------------
/Final/Images/GenericButtonRed32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GenericButtonRed32.png
--------------------------------------------------------------------------------
/Final/Images/GeocodeAddresses16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GeocodeAddresses16.png
--------------------------------------------------------------------------------
/Final/Images/GeocodeAddresses32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/GeocodeAddresses32.png
--------------------------------------------------------------------------------
/Final/Images/PanTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/PanTool16.png
--------------------------------------------------------------------------------
/Final/Images/PanTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/PanTool32.png
--------------------------------------------------------------------------------
/Final/Images/ZoomFixedZoomIn16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomFixedZoomIn16.png
--------------------------------------------------------------------------------
/Final/Images/ZoomFixedZoomIn32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomFixedZoomIn32.png
--------------------------------------------------------------------------------
/Final/Images/ZoomFixedZoomOut_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomFixedZoomOut_B_16.png
--------------------------------------------------------------------------------
/Final/Images/ZoomFixedZoomOut_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomFixedZoomOut_B_32.png
--------------------------------------------------------------------------------
/Final/Images/ZoomGeneric16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomGeneric16.png
--------------------------------------------------------------------------------
/Final/Images/ZoomGeneric_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomGeneric_B_32.png
--------------------------------------------------------------------------------
/Final/Images/ZoomInTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomInTool_B_16.png
--------------------------------------------------------------------------------
/Final/Images/ZoomInTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomInTool_B_32.png
--------------------------------------------------------------------------------
/Final/Images/ZoomOutTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomOutTool_B_16.png
--------------------------------------------------------------------------------
/Final/Images/ZoomOutTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Final/Images/ZoomOutTool_B_32.png
--------------------------------------------------------------------------------
/Final/InsertIntoContextMenu/CIMViewerView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Final/InsertIntoContextMenu/CIMViewerView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.InsertIntoContextMenu
29 | {
30 | ///
31 | /// Interaction logic for CIMViewerView.xaml
32 | ///
33 | public partial class CIMViewerView : Window
34 | {
35 | public CIMViewerView()
36 | {
37 | InitializeComponent();
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Final/LayersPane/Extensions/BooleanToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using System.Windows;
20 | using System.Windows.Data;
21 |
22 | namespace ProSDKSamples.LayersPane.Extensions {
23 | public class BooleanToVisibilityConverter : IValueConverter {
24 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
25 | if (value == null)
26 | return Visibility.Hidden;
27 | return (bool)value ? Visibility.Visible : Visibility.Hidden;
28 | }
29 |
30 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
31 | throw new NotImplementedException();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Final/LayersPane/Extensions/ExtendsLayer.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class ExtendsLayer {
23 |
24 | ///
25 | /// Returns the feature class associated with layer.
26 | ///
27 | /// The input layer.
28 | /// The table or the feature class associated with the layer.
29 | public static async Task getFeatureClass(this Layer layer) {
30 | // get the feature class associated with the layer
31 | return await ArcGIS.Desktop.Internal.Editing.EditingModuleInternal.GetTableAsync(layer);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Final/LayersPane/Extensions/GDBUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class GDBUtils {
23 |
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Final/LayersPane/LayersPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 |
29 | namespace ProSDKSamples.LayersPane
30 | {
31 | ///
32 | /// Interaction logic for layersPaneView.xaml
33 | ///
34 | public partial class LayersPaneView : UserControl
35 | {
36 | public LayersPaneView()
37 | {
38 | InitializeComponent();
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Final/LayersPane/layersPaneShowButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.LayersPane
22 | {
23 | internal class LayersPaneShowButton : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | LayersPaneUtils.OpenPaneView(LayersPaneViewModel.ViewPaneID);
28 | }
29 | }
30 | }
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Final/ProjectItemProjectContainer/AddNewProjectItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Core;
7 | using ArcGIS.Desktop.Framework;
8 | using ArcGIS.Desktop.Framework.Contracts;
9 | using ArcGIS.Desktop.Internal.Core;
10 |
11 | namespace ProSDKSamples.ProjectItemProjectContainer
12 | {
13 | ///
14 | /// Button for adding a new project item to the project pane.
15 | ///
16 | class AddNewProjectItem : Button
17 | {
18 | protected override async void OnClick()
19 | {
20 | int idx = 1;
21 |
22 | // use idx to ensure that the projectItems path is unique
23 | IEnumerable items = ProjectModule.CurrentProject.GetSampleItems();
24 | if (items != null)
25 | {
26 | foreach (SampleProjectItem item in items)
27 | idx++;
28 | }
29 |
30 | // add it to the project
31 | await (ProjectModule.CurrentProject as IInternalGISProjectItem).AddProjectItemAsync("SampleProjectItems", "projectItem" + idx.ToString(), "ProjectItem " + idx.ToString(), "");
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Final/ProjectItemProjectContainer/OpenMap.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Core;
7 | using ArcGIS.Desktop.Framework;
8 | using ArcGIS.Desktop.Framework.Contracts;
9 | using ArcGIS.Desktop.Mapping;
10 |
11 | namespace ProSDKSamples.ProjectItemProjectContainer
12 | {
13 | ///
14 | /// Sample button illustrating how to access the map project items. In this scenario we attempt to open the first map from the project.
15 | ///
16 | internal class OpenMap : Button
17 | {
18 | protected override void OnClick()
19 | {
20 | // get the first map item
21 | MapProjectItem item = ProjectModule.CurrentProject.GetMaps().FirstOrDefault();
22 | if (item == null)
23 | return;
24 |
25 | // fimd the map
26 | Map map = MappingModule.FindMap(item.Path);
27 | if (map == null)
28 | return;
29 |
30 | bool bAlreadyOpen = false;
31 |
32 | // see if its already open
33 | //IList mapPanes = MappingModule.GetMapPanes(map);
34 | //if ((mapPanes != null) && (mapPanes.Count > 0))
35 | // bAlreadyOpen = true;
36 |
37 | if (!bAlreadyOpen)
38 | {
39 | var mapPane = MappingModule.OpenMapView(item.Path, item.ViewingMode);
40 | }
41 | }
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Final/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ProSDKSamples")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Esri")]
12 | [assembly: AssemblyProduct("ProSDKSamples")]
13 | [assembly: AssemblyCopyright("Copyright © Esri 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f9ad6e8b-7505-4218-aabc-2389e1a9c3cd")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Final/arcgis-pro-samples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30110.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arcgis-pro-samples", "arcgis-pro-samples.csproj", "{BB084CA5-C765-4F42-8639-994A02E6DE82}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/CustomComponent/Module1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Framework;
7 | using ArcGIS.Desktop.Framework.Contracts;
8 |
9 | namespace TheCustomComponent {
10 | internal class Module1 : Module {
11 | private static Module1 _this = null;
12 |
13 | ///
14 | /// Retrieve the singleton instance to this module here
15 | ///
16 | public static Module1 Current {
17 | get {
18 | return _this ?? (_this = (Module1)FrameworkApplication.FindModule("TheCustomComponent_Module1_id"));
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/CustomComponent/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CustomComponent")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CustomComponent")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("43a37e26-3c7a-426a-a6f1-49c971e8c301")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/CustomComponentCategory/ComponentCategoryButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using ArcGIS.Core.CIM;
8 | using ArcGIS.Desktop.Core;
9 | using ArcGIS.Desktop.Framework;
10 | using ArcGIS.Desktop.Framework.Contracts;
11 | using ArcGIS.Desktop.Mapping;
12 | using ArcGIS.Desktop.Internal.Mapping;
13 |
14 | namespace UCSamples.CustomComponentCategory {
15 | class ComponentCategoryButton : Button {
16 | private ComponentCategoryUtils _helper = null;
17 | ///
18 | /// Load components if there are any and run the trace simulation
19 | ///
20 | protected override async void OnClick() {
21 | if (_helper == null) {
22 | _helper = new ComponentCategoryUtils();
23 | }
24 | _helper.RunTrace();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/Pre-Release-Update 2/CustomComponentCategory/ComponentCategoryInterface.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace UCSample.CustomComponentCategory {
8 |
9 | ///
10 | /// Implement this interface to extend the core network tracing capabilities.
11 | /// The name of the interface is arbitrary. Call it what you want.
12 | ///
13 | /// Providers must register themselves in the NetworkTraceExtender component
14 | /// category
15 | public interface IComponentCategoryInterface {
16 | Task Accept(ICoreImplementationTraceInterface currentTrace);
17 | IEnumerable GetStops();
18 | IEnumerable GetBarriers();
19 | Task ModifyTrace(INetworkResult results);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/DockPaneDemo/DockPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.DockPaneDemo {
29 | ///
30 | /// Interaction logic for DockpaneView.xaml
31 | ///
32 | public partial class DockpaneView : UserControl {
33 | public DockpaneView() {
34 | InitializeComponent();
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/DockPaneDemo/DockpaneButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Linq;
15 | using System.Text;
16 | using ArcGIS.Desktop.Framework;
17 | using ArcGIS.Desktop.Framework.Contracts;
18 |
19 | namespace ProSDKSamples.DockPaneDemo
20 | {
21 | ///
22 | /// Represents the button that opens the Dockpane.
23 | ///
24 | public class DockpaneButton : Button
25 | {
26 | private bool _isBusy = false;
27 |
28 | protected override void OnClick()
29 | {
30 | if (_isBusy)
31 | return;
32 | _isBusy = true;
33 | try
34 | {
35 | DockpaneUtils.ShowDockPane();
36 | }
37 | finally
38 | {
39 | _isBusy = false;
40 | }
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/FrameworkState/RespondToStateButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 |
22 | namespace ProSDKSamples.FrameworkState
23 | {
24 | internal class RespondToStateButton : Button
25 | {
26 | protected override void OnClick()
27 | {
28 | System.Windows.MessageBox.Show(string.Format("From {0} : {1}", this.GetType().ToString(), DateTime.Now.ToString("G")));
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/GP/CancelExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.GP
22 | {
23 | public class CancelExecuteGP : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | //This calls cancel on the cancelationTokenSource associated with the
28 | //current operation. If none is associated it is, effectively, a no-op
29 | ProSDKSampleModule.Current.GPHelper.CallCancel();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/GP/ExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 | using ArcGIS.Desktop.Framework.Threading.Tasks;
22 |
23 | namespace ProSDKSamples.GP
24 | {
25 | internal class ExecuteGP : Button {
26 |
27 | private static readonly CancelationSource withCancelProgressor = CancelationSource.withCancelableProgressor;
28 | private static readonly CancelationSource withCancelToken = CancelationSource.withCancelationToken;
29 |
30 | protected override void OnClick() {
31 |
32 | GPHelper.ExecuteBufferGP(withCancelProgressor);
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/HollywoodZoom/HollywoodZoomUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 |
19 | namespace ProSDKSamples.HollywoodZoom {
20 | internal class HollywoodZoomUtils {
21 |
22 | public static double StepHeading(double currentHeading, double stepSize) {
23 | double heading = currentHeading + stepSize;
24 |
25 | // ensure that we are in the <360 range
26 | heading = heading > 360 ? heading % 360 : heading;
27 |
28 | // transform the 0-360 range into the heading property ranging from -180 - 180
29 | heading = heading > 180 ? heading - 360 : heading;
30 |
31 | return heading;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/AddInDesktop16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/AddInDesktop16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/AddInDesktop32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/AddInDesktop32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/EditingSplitPolygonTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/EditingSplitPolygonTool16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/EditingSplitPolygonTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/EditingSplitPolygonTool32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonBlack16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonBlack16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonBlack32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonBlack32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonBlue16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonBlue16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonBlue32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonBlue32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonGreen16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonGreen16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonGreen32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonGreen32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonGrey16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonGrey16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonGrey32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonGrey32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonPurple16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonPurple16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonPurple32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonPurple32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonRed16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonRed16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GenericButtonRed32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GenericButtonRed32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GeocodeAddresses16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GeocodeAddresses16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/GeocodeAddresses32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/GeocodeAddresses32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/PanTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/PanTool16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/PanTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/PanTool32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomFixedZoomIn16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomFixedZoomIn16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomFixedZoomIn32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomFixedZoomIn32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomFixedZoomOut_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomFixedZoomOut_B_16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomFixedZoomOut_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomFixedZoomOut_B_32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomGeneric16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomGeneric16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomGeneric_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomGeneric_B_32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomInTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomInTool_B_16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomInTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomInTool_B_32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomOutTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomOutTool_B_16.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Images/ZoomOutTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update 2/Images/ZoomOutTool_B_32.png
--------------------------------------------------------------------------------
/Pre-Release-Update 2/InsertIntoContextMenu/CIMViewerView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/InsertIntoContextMenu/CIMViewerView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.InsertIntoContextMenu
29 | {
30 | ///
31 | /// Interaction logic for CIMViewerView.xaml
32 | ///
33 | public partial class CIMViewerView : Window
34 | {
35 | public CIMViewerView()
36 | {
37 | InitializeComponent();
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/LayersPane/Extensions/BooleanToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using System.Windows;
20 | using System.Windows.Data;
21 |
22 | namespace ProSDKSamples.LayersPane.Extensions {
23 | public class BooleanToVisibilityConverter : IValueConverter {
24 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
25 | if (value == null)
26 | return Visibility.Hidden;
27 | return (bool)value ? Visibility.Visible : Visibility.Hidden;
28 | }
29 |
30 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
31 | throw new NotImplementedException();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/LayersPane/Extensions/ExtendsLayer.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class ExtendsLayer {
23 |
24 | ///
25 | /// Returns the feature class associated with layer.
26 | ///
27 | /// The input layer.
28 | /// The table or the feature class associated with the layer.
29 | public static async Task getFeatureClass(this Layer layer) {
30 | // get the feature class associated with the layer
31 | return await ArcGIS.Desktop.Internal.Editing.EditingModuleInternal.GetTableAsync(layer);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/LayersPane/Extensions/GDBUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class GDBUtils {
23 |
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/LayersPane/LayersPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 |
29 | namespace ProSDKSamples.LayersPane
30 | {
31 | ///
32 | /// Interaction logic for layersPaneView.xaml
33 | ///
34 | public partial class LayersPaneView : UserControl
35 | {
36 | public LayersPaneView()
37 | {
38 | InitializeComponent();
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/LayersPane/layersPaneShowButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.LayersPane
22 | {
23 | internal class LayersPaneShowButton : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | LayersPaneUtils.OpenPaneView(LayersPaneViewModel.ViewPaneID);
28 | }
29 | }
30 | }
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/ProjectItemProjectContainer/AddNewProjectItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Core;
7 | using ArcGIS.Desktop.Framework;
8 | using ArcGIS.Desktop.Framework.Contracts;
9 | using ArcGIS.Desktop.Internal.Core;
10 |
11 | namespace ProSDKSamples.ProjectItemProjectContainer
12 | {
13 | ///
14 | /// Button for adding a new project item to the project pane.
15 | ///
16 | class AddNewProjectItem : Button
17 | {
18 | protected override async void OnClick()
19 | {
20 | int idx = 1;
21 |
22 | // use idx to ensure that the projectItems path is unique
23 | IEnumerable items = ProjectModule.CurrentProject.GetSampleItems();
24 | if (items != null)
25 | {
26 | foreach (SampleProjectItem item in items)
27 | idx++;
28 | }
29 |
30 | // add it to the project
31 | await (ProjectModule.CurrentProject as IInternalGISProjectItem).AddProjectItemAsync("SampleProjectItems", "projectItem" + idx.ToString(), "ProjectItem " + idx.ToString(), "");
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/ProjectItemProjectContainer/OpenMap.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Core;
7 | using ArcGIS.Desktop.Framework;
8 | using ArcGIS.Desktop.Framework.Contracts;
9 | using ArcGIS.Desktop.Mapping;
10 |
11 | namespace ProSDKSamples.ProjectItemProjectContainer
12 | {
13 | ///
14 | /// Sample button illustrating how to access the map project items. In this scenario we attempt to open the first map from the project.
15 | ///
16 | internal class OpenMap : Button
17 | {
18 | protected override void OnClick()
19 | {
20 | // get the first map item
21 | MapProjectItem item = ProjectModule.CurrentProject.GetMaps().FirstOrDefault();
22 | if (item == null)
23 | return;
24 |
25 | // fimd the map
26 | Map map = MappingModule.FindMap(item.Path);
27 | if (map == null)
28 | return;
29 |
30 | bool bAlreadyOpen = false;
31 |
32 | // see if its already open
33 | //IList mapPanes = MappingModule.GetMapPanes(map);
34 | //if ((mapPanes != null) && (mapPanes.Count > 0))
35 | // bAlreadyOpen = true;
36 |
37 | if (!bAlreadyOpen)
38 | {
39 | var mapPane = MappingModule.OpenMapView(item.Path, item.ViewingMode);
40 | }
41 | }
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ProSDKSamples")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Esri")]
12 | [assembly: AssemblyProduct("ProSDKSamples")]
13 | [assembly: AssemblyCopyright("Copyright © Esri 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f9ad6e8b-7505-4218-aabc-2389e1a9c3cd")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Pre-Release-Update 2/arcgis-pro-samples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30110.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arcgis-pro-samples", "arcgis-pro-samples.csproj", "{BB084CA5-C765-4F42-8639-994A02E6DE82}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Pre-Release-Update/CustomComponent/Module1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Framework;
7 | using ArcGIS.Desktop.Framework.Contracts;
8 |
9 | namespace TheCustomComponent {
10 | internal class Module1 : Module {
11 | private static Module1 _this = null;
12 |
13 | ///
14 | /// Retrieve the singleton instance to this module here
15 | ///
16 | public static Module1 Current {
17 | get {
18 | return _this ?? (_this = (Module1)FrameworkApplication.FindModule("TheCustomComponent_Module1_id"));
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Pre-Release-Update/CustomComponent/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CustomComponent")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CustomComponent")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("43a37e26-3c7a-426a-a6f1-49c971e8c301")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Pre-Release-Update/CustomComponentCategory/ComponentCategoryButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using ArcGIS.Core.CIM;
8 | using ArcGIS.Desktop.Core;
9 | using ArcGIS.Desktop.Framework;
10 | using ArcGIS.Desktop.Framework.Contracts;
11 | using ArcGIS.Desktop.Mapping;
12 | using ArcGIS.Desktop.Internal.Mapping;
13 |
14 | namespace UCSamples.CustomComponentCategory {
15 | class ComponentCategoryButton : Button {
16 | private ComponentCategoryUtils _helper = null;
17 | ///
18 | /// Load components if there are any and run the trace simulation
19 | ///
20 | protected override async void OnClick() {
21 | if (_helper == null) {
22 | _helper = new ComponentCategoryUtils();
23 | }
24 | _helper.RunTrace();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/Pre-Release-Update/CustomComponentCategory/ComponentCategoryInterface.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace UCSample.CustomComponentCategory {
8 |
9 | ///
10 | /// Implement this interface to extend the core network tracing capabilities.
11 | /// The name of the interface is arbitrary. Call it what you want.
12 | ///
13 | /// Providers must register themselves in the NetworkTraceExtender component
14 | /// category
15 | public interface IComponentCategoryInterface {
16 | Task Accept(ICoreImplementationTraceInterface currentTrace);
17 | IEnumerable GetStops();
18 | IEnumerable GetBarriers();
19 | Task ModifyTrace(INetworkResult results);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Pre-Release-Update/DockPaneDemo/DockPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.DockPaneDemo {
29 | ///
30 | /// Interaction logic for DockpaneView.xaml
31 | ///
32 | public partial class DockpaneView : UserControl {
33 | public DockpaneView() {
34 | InitializeComponent();
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Pre-Release-Update/DockPaneDemo/DockpaneButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Linq;
15 | using System.Text;
16 | using ArcGIS.Desktop.Framework;
17 | using ArcGIS.Desktop.Framework.Contracts;
18 |
19 | namespace ProSDKSamples.DockPaneDemo
20 | {
21 | ///
22 | /// Represents the button that opens the Dockpane.
23 | ///
24 | public class DockpaneButton : Button
25 | {
26 | private bool _isBusy = false;
27 |
28 | protected override void OnClick()
29 | {
30 | if (_isBusy)
31 | return;
32 | _isBusy = true;
33 | try
34 | {
35 | DockpaneUtils.ShowDockPane();
36 | }
37 | finally
38 | {
39 | _isBusy = false;
40 | }
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Pre-Release-Update/FrameworkState/RespondToStateButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 |
22 | namespace ProSDKSamples.FrameworkState
23 | {
24 | internal class RespondToStateButton : Button
25 | {
26 | protected override void OnClick()
27 | {
28 | System.Windows.MessageBox.Show(string.Format("From {0} : {1}", this.GetType().ToString(), DateTime.Now.ToString("G")));
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Pre-Release-Update/GP/CancelExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.GP
22 | {
23 | public class CancelExecuteGP : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | //This calls cancel on the cancelationTokenSource associated with the
28 | //current operation. If none is associated it is, effectively, a no-op
29 | ProSDKSampleModule.Current.GPHelper.CallCancel();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Pre-Release-Update/GP/ExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 | using ArcGIS.Desktop.Framework.Threading.Tasks;
22 |
23 | namespace ProSDKSamples.GP
24 | {
25 | internal class ExecuteGP : Button {
26 |
27 | private static readonly CancelationSource withCancelProgressor = CancelationSource.withCancelableProgressor;
28 | private static readonly CancelationSource withCancelToken = CancelationSource.withCancelationToken;
29 |
30 | protected override void OnClick() {
31 |
32 | GPHelper.ExecuteBufferGP(withCancelProgressor);
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Pre-Release-Update/HollywoodZoom/HollywoodZoomUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 |
19 | namespace ProSDKSamples.HollywoodZoom {
20 | internal class HollywoodZoomUtils {
21 |
22 | public static double StepHeading(double currentHeading, double stepSize) {
23 | double heading = currentHeading + stepSize;
24 |
25 | // ensure that we are in the <360 range
26 | heading = heading > 360 ? heading % 360 : heading;
27 |
28 | // transform the 0-360 range into the heading property ranging from -180 - 180
29 | heading = heading > 180 ? heading - 360 : heading;
30 |
31 | return heading;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/AddInDesktop16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/AddInDesktop16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/AddInDesktop32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/AddInDesktop32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/EditingSplitPolygonTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/EditingSplitPolygonTool16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/EditingSplitPolygonTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/EditingSplitPolygonTool32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonBlack16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonBlack16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonBlack32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonBlack32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonBlue16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonBlue16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonBlue32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonBlue32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonGreen16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonGreen16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonGreen32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonGreen32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonGrey16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonGrey16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonGrey32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonGrey32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonPurple16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonPurple16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonPurple32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonPurple32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonRed16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonRed16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GenericButtonRed32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GenericButtonRed32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GeocodeAddresses16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GeocodeAddresses16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/GeocodeAddresses32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/GeocodeAddresses32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/PanTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/PanTool16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/PanTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/PanTool32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomFixedZoomIn16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomFixedZoomIn16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomFixedZoomIn32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomFixedZoomIn32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomFixedZoomOut_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomFixedZoomOut_B_16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomFixedZoomOut_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomFixedZoomOut_B_32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomGeneric16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomGeneric16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomGeneric_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomGeneric_B_32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomInTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomInTool_B_16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomInTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomInTool_B_32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomOutTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomOutTool_B_16.png
--------------------------------------------------------------------------------
/Pre-Release-Update/Images/ZoomOutTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release-Update/Images/ZoomOutTool_B_32.png
--------------------------------------------------------------------------------
/Pre-Release-Update/InsertIntoContextMenu/CIMViewerView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Pre-Release-Update/InsertIntoContextMenu/CIMViewerView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.InsertIntoContextMenu
29 | {
30 | ///
31 | /// Interaction logic for CIMViewerView.xaml
32 | ///
33 | public partial class CIMViewerView : Window
34 | {
35 | public CIMViewerView()
36 | {
37 | InitializeComponent();
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Pre-Release-Update/LayersPane/Extensions/BooleanToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using System.Windows;
20 | using System.Windows.Data;
21 |
22 | namespace ProSDKSamples.LayersPane.Extensions {
23 | public class BooleanToVisibilityConverter : IValueConverter {
24 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
25 | if (value == null)
26 | return Visibility.Hidden;
27 | return (bool)value ? Visibility.Visible : Visibility.Hidden;
28 | }
29 |
30 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
31 | throw new NotImplementedException();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release-Update/LayersPane/Extensions/ExtendsLayer.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class ExtendsLayer {
23 |
24 | ///
25 | /// Returns the feature class associated with layer.
26 | ///
27 | /// The input layer.
28 | /// The table or the feature class associated with the layer.
29 | public static async Task getFeatureClass(this Layer layer) {
30 | // get the feature class associated with the layer
31 | return await ArcGIS.Desktop.Internal.Editing.EditingModuleInternal.GetTableAsync(layer);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release-Update/LayersPane/Extensions/GDBUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class GDBUtils {
23 |
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Pre-Release-Update/LayersPane/LayersPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 |
29 | namespace ProSDKSamples.LayersPane
30 | {
31 | ///
32 | /// Interaction logic for layersPaneView.xaml
33 | ///
34 | public partial class LayersPaneView : UserControl
35 | {
36 | public LayersPaneView()
37 | {
38 | InitializeComponent();
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Pre-Release-Update/LayersPane/layersPaneShowButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.LayersPane
22 | {
23 | internal class LayersPaneShowButton : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | LayersPaneUtils.OpenPaneView(LayersPaneViewModel.ViewPaneID);
28 | }
29 | }
30 | }
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Pre-Release-Update/ProjectItemProjectContainer/AddNewProjectItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Core;
7 | using ArcGIS.Desktop.Framework;
8 | using ArcGIS.Desktop.Framework.Contracts;
9 | using ArcGIS.Desktop.Internal.Core;
10 |
11 | namespace ProSDKSamples.ProjectItemProjectContainer
12 | {
13 | ///
14 | /// Button for adding a new project item to the project pane.
15 | ///
16 | class AddNewProjectItem : Button
17 | {
18 | protected override async void OnClick()
19 | {
20 | int idx = 1;
21 |
22 | // use idx to ensure that the projectItems path is unique
23 | IEnumerable items = ProjectModule.CurrentProject.GetSampleItems();
24 | if (items != null)
25 | {
26 | foreach (SampleProjectItem item in items)
27 | idx++;
28 | }
29 |
30 | // add it to the project
31 | await (ProjectModule.CurrentProject as IInternalGISProjectItem).AddProjectItemAsync("SampleProjectItems", "projectItem" + idx.ToString(), "ProjectItem " + idx.ToString(), "");
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release-Update/ProjectItemProjectContainer/OpenMap.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Core;
7 | using ArcGIS.Desktop.Framework;
8 | using ArcGIS.Desktop.Framework.Contracts;
9 | using ArcGIS.Desktop.Mapping;
10 |
11 | namespace ProSDKSamples.ProjectItemProjectContainer
12 | {
13 | ///
14 | /// Sample button illustrating how to access the map project items. In this scenario we attempt to open the first map from the project.
15 | ///
16 | internal class OpenMap : Button
17 | {
18 | protected override void OnClick()
19 | {
20 | // get the first map item
21 | MapProjectItem item = ProjectModule.CurrentProject.GetMaps().FirstOrDefault();
22 | if (item == null)
23 | return;
24 |
25 | // fimd the map
26 | Map map = MappingModule.FindMap(item.Path);
27 | if (map == null)
28 | return;
29 |
30 | bool bAlreadyOpen = false;
31 |
32 | // see if its already open
33 | //IList mapPanes = MappingModule.GetMapPanes(map);
34 | //if ((mapPanes != null) && (mapPanes.Count > 0))
35 | // bAlreadyOpen = true;
36 |
37 | if (!bAlreadyOpen)
38 | {
39 | var mapPane = MappingModule.OpenMapView(item.Path, item.ViewingMode);
40 | }
41 | }
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Pre-Release-Update/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ProSDKSamples")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Esri")]
12 | [assembly: AssemblyProduct("ProSDKSamples")]
13 | [assembly: AssemblyCopyright("Copyright © Esri 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f9ad6e8b-7505-4218-aabc-2389e1a9c3cd")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Pre-Release-Update/arcgis-pro-samples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30110.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arcgis-pro-samples", "arcgis-pro-samples.csproj", "{BB084CA5-C765-4F42-8639-994A02E6DE82}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Pre-Release/CustomComponent/Module1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Framework;
7 | using ArcGIS.Desktop.Framework.Contracts;
8 |
9 | namespace TheCustomComponent {
10 | internal class Module1 : Module {
11 | private static Module1 _this = null;
12 |
13 | ///
14 | /// Retrieve the singleton instance to this module here
15 | ///
16 | public static Module1 Current {
17 | get {
18 | return _this ?? (_this = (Module1)FrameworkApplication.FindModule("TheCustomComponent_Module1_id"));
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Pre-Release/CustomComponent/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CustomComponent")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CustomComponent")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("43a37e26-3c7a-426a-a6f1-49c971e8c301")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Pre-Release/CustomComponentCategory/ComponentCategoryButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using ArcGIS.Core.CIM;
8 | using ArcGIS.Desktop.Core;
9 | using ArcGIS.Desktop.Framework;
10 | using ArcGIS.Desktop.Framework.Contracts;
11 | using ArcGIS.Desktop.Mapping;
12 | using ArcGIS.Desktop.Internal.Mapping;
13 |
14 | namespace UCSamples.CustomComponentCategory {
15 | class ComponentCategoryButton : Button {
16 | private ComponentCategoryUtils _helper = null;
17 | ///
18 | /// Load components if there are any and run the trace simulation
19 | ///
20 | protected override async void OnClick() {
21 | if (_helper == null) {
22 | _helper = new ComponentCategoryUtils();
23 | }
24 | _helper.RunTrace();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/Pre-Release/CustomComponentCategory/ComponentCategoryInterface.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace UCSample.CustomComponentCategory {
8 |
9 | ///
10 | /// Implement this interface to extend the core network tracing capabilities.
11 | /// The name of the interface is arbitrary. Call it what you want.
12 | ///
13 | /// Providers must register themselves in the NetworkTraceExtender component
14 | /// category
15 | public interface IComponentCategoryInterface {
16 | Task Accept(ICoreImplementationTraceInterface currentTrace);
17 | IEnumerable GetStops();
18 | IEnumerable GetBarriers();
19 | Task ModifyTrace(INetworkResult results);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Pre-Release/DockPaneDemo/DockPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.DockPaneDemo {
29 | ///
30 | /// Interaction logic for DockpaneView.xaml
31 | ///
32 | public partial class DockpaneView : UserControl {
33 | public DockpaneView() {
34 | InitializeComponent();
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Pre-Release/DockPaneDemo/DockpaneButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Linq;
15 | using System.Text;
16 | using ArcGIS.Desktop.Framework;
17 | using ArcGIS.Desktop.Framework.Contracts;
18 |
19 | namespace ProSDKSamples.DockPaneDemo
20 | {
21 | ///
22 | /// Represents the button that opens the Dockpane.
23 | ///
24 | public class DockpaneButton : Button
25 | {
26 | private bool _isBusy = false;
27 |
28 | protected override void OnClick()
29 | {
30 | if (_isBusy)
31 | return;
32 | _isBusy = true;
33 | try
34 | {
35 | DockpaneUtils.ShowDockPane();
36 | }
37 | finally
38 | {
39 | _isBusy = false;
40 | }
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Pre-Release/FrameworkState/RespondToStateButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 |
22 | namespace ProSDKSamples.FrameworkState
23 | {
24 | internal class RespondToStateButton : Button
25 | {
26 | protected override void OnClick()
27 | {
28 | System.Windows.MessageBox.Show(string.Format("From {0} : {1}", this.GetType().ToString(), DateTime.Now.ToString("G")));
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Pre-Release/GP/CancelExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.GP
22 | {
23 | public class CancelExecuteGP : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | //This calls cancel on the cancelationTokenSource associated with the
28 | //current operation. If none is associated it is, effectively, a no-op
29 | ProSDKSampleModule.Current.GPHelper.CallCancel();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Pre-Release/GP/ExecuteGP.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using ArcGIS.Desktop.Framework;
20 | using ArcGIS.Desktop.Framework.Contracts;
21 | using ArcGIS.Desktop.Framework.Threading.Tasks;
22 |
23 | namespace ProSDKSamples.GP
24 | {
25 | internal class ExecuteGP : Button {
26 |
27 | private static readonly CancelationSource withCancelProgressor = CancelationSource.withCancelableProgressor;
28 | private static readonly CancelationSource withCancelToken = CancelationSource.withCancelationToken;
29 |
30 | protected override void OnClick() {
31 |
32 | GPHelper.ExecuteBufferGP(withCancelProgressor);
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Pre-Release/HollywoodZoom/HollywoodZoomUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 |
19 | namespace ProSDKSamples.HollywoodZoom {
20 | internal class HollywoodZoomUtils {
21 |
22 | public static double StepHeading(double currentHeading, double stepSize) {
23 | double heading = currentHeading + stepSize;
24 |
25 | // ensure that we are in the <360 range
26 | heading = heading > 360 ? heading % 360 : heading;
27 |
28 | // transform the 0-360 range into the heading property ranging from -180 - 180
29 | heading = heading > 180 ? heading - 360 : heading;
30 |
31 | return heading;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release/Images/AddInDesktop16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/AddInDesktop16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/AddInDesktop32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/AddInDesktop32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/EditingSplitPolygonTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/EditingSplitPolygonTool16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/EditingSplitPolygonTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/EditingSplitPolygonTool32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonBlack16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonBlack16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonBlack32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonBlack32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonBlue16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonBlue16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonBlue32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonBlue32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonGreen16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonGreen16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonGreen32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonGreen32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonGrey16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonGrey16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonGrey32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonGrey32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonPurple16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonPurple16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonPurple32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonPurple32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonRed16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonRed16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GenericButtonRed32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GenericButtonRed32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GeocodeAddresses16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GeocodeAddresses16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/GeocodeAddresses32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/GeocodeAddresses32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/PanTool16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/PanTool16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/PanTool32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/PanTool32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomFixedZoomIn16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomFixedZoomIn16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomFixedZoomIn32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomFixedZoomIn32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomFixedZoomOut_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomFixedZoomOut_B_16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomFixedZoomOut_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomFixedZoomOut_B_32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomGeneric16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomGeneric16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomGeneric_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomGeneric_B_32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomInTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomInTool_B_16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomInTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomInTool_B_32.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomOutTool_B_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomOutTool_B_16.png
--------------------------------------------------------------------------------
/Pre-Release/Images/ZoomOutTool_B_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/Pre-Release/Images/ZoomOutTool_B_32.png
--------------------------------------------------------------------------------
/Pre-Release/InsertIntoContextMenu/CIMViewerView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Pre-Release/InsertIntoContextMenu/CIMViewerView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 | namespace ProSDKSamples.InsertIntoContextMenu
29 | {
30 | ///
31 | /// Interaction logic for CIMViewerView.xaml
32 | ///
33 | public partial class CIMViewerView : Window
34 | {
35 | public CIMViewerView()
36 | {
37 | InitializeComponent();
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Pre-Release/LayersPane/Extensions/BooleanToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 | using System.Windows;
20 | using System.Windows.Data;
21 |
22 | namespace ProSDKSamples.LayersPane.Extensions {
23 | public class BooleanToVisibilityConverter : IValueConverter {
24 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
25 | if (value == null)
26 | return Visibility.Hidden;
27 | return (bool)value ? Visibility.Visible : Visibility.Hidden;
28 | }
29 |
30 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
31 | throw new NotImplementedException();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release/LayersPane/Extensions/ExtendsLayer.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class ExtendsLayer {
23 |
24 | ///
25 | /// Returns the feature class associated with layer.
26 | ///
27 | /// The input layer.
28 | /// The table or the feature class associated with the layer.
29 | public static async Task getFeatureClass(this Layer layer) {
30 | // get the feature class associated with the layer
31 | return await ArcGIS.Desktop.Internal.Editing.EditingModuleInternal.GetTableAsync(layer);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release/LayersPane/Extensions/GDBUtils.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Core.Data;
19 | using ArcGIS.Desktop.Mapping;
20 |
21 | namespace ProSDKSamples.LayersPane.Extensions {
22 | static class GDBUtils {
23 |
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Pre-Release/LayersPane/LayersPaneView.xaml.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using System.Windows;
19 | using System.Windows.Controls;
20 | using System.Windows.Data;
21 | using System.Windows.Documents;
22 | using System.Windows.Input;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Imaging;
25 | using System.Windows.Navigation;
26 | using System.Windows.Shapes;
27 |
28 |
29 | namespace ProSDKSamples.LayersPane
30 | {
31 | ///
32 | /// Interaction logic for layersPaneView.xaml
33 | ///
34 | public partial class LayersPaneView : UserControl
35 | {
36 | public LayersPaneView()
37 | {
38 | InitializeComponent();
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Pre-Release/LayersPane/layersPaneShowButton.cs:
--------------------------------------------------------------------------------
1 | //Copyright 2014 Esri
2 |
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 |
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.using System;
14 | using System.Collections.Generic;
15 | using System.Linq;
16 | using System.Text;
17 | using System.Threading.Tasks;
18 | using ArcGIS.Desktop.Framework;
19 | using ArcGIS.Desktop.Framework.Contracts;
20 |
21 | namespace ProSDKSamples.LayersPane
22 | {
23 | internal class LayersPaneShowButton : Button
24 | {
25 | protected override void OnClick()
26 | {
27 | LayersPaneUtils.OpenPaneView(LayersPaneViewModel.ViewPaneID);
28 | }
29 | }
30 | }
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Pre-Release/ProjectItemProjectContainer/AddNewProjectItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Core;
7 | using ArcGIS.Desktop.Framework;
8 | using ArcGIS.Desktop.Framework.Contracts;
9 | using ArcGIS.Desktop.Internal.Core;
10 |
11 | namespace ProSDKSamples.ProjectItemProjectContainer
12 | {
13 | ///
14 | /// Button for adding a new project item to the project pane.
15 | ///
16 | class AddNewProjectItem : Button
17 | {
18 | protected override async void OnClick()
19 | {
20 | int idx = 1;
21 |
22 | // use idx to ensure that the projectItems path is unique
23 | IEnumerable items = ProjectModule.CurrentProject.GetSampleItems();
24 | if (items != null)
25 | {
26 | foreach (SampleProjectItem item in items)
27 | idx++;
28 | }
29 |
30 | // add it to the project
31 | await (ProjectModule.CurrentProject as IInternalGISProjectItem).AddProjectItemAsync("SampleProjectItems", "projectItem" + idx.ToString(), "ProjectItem " + idx.ToString(), "");
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Pre-Release/ProjectItemProjectContainer/OpenMap.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using ArcGIS.Desktop.Core;
7 | using ArcGIS.Desktop.Framework;
8 | using ArcGIS.Desktop.Framework.Contracts;
9 | using ArcGIS.Desktop.Mapping;
10 |
11 | namespace ProSDKSamples.ProjectItemProjectContainer
12 | {
13 | ///
14 | /// Sample button illustrating how to access the map project items. In this scenario we attempt to open the first map from the project.
15 | ///
16 | internal class OpenMap : Button
17 | {
18 | protected override void OnClick()
19 | {
20 | // get the first map item
21 | MapProjectItem item = ProjectModule.CurrentProject.GetMaps().FirstOrDefault();
22 | if (item == null)
23 | return;
24 |
25 | // fimd the map
26 | Map map = MappingModule.FindMap(item.Path);
27 | if (map == null)
28 | return;
29 |
30 | bool bAlreadyOpen = false;
31 |
32 | // see if its already open
33 | //IList mapPanes = MappingModule.GetMapPanes(map);
34 | //if ((mapPanes != null) && (mapPanes.Count > 0))
35 | // bAlreadyOpen = true;
36 |
37 | if (!bAlreadyOpen)
38 | {
39 | var mapPane = MappingModule.OpenMapView(item.Path, item.ViewingMode);
40 | }
41 | }
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Pre-Release/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ProSDKSamples")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Esri")]
12 | [assembly: AssemblyProduct("ProSDKSamples")]
13 | [assembly: AssemblyCopyright("Copyright © Esri 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f9ad6e8b-7505-4218-aabc-2389e1a9c3cd")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Pre-Release/arcgis-pro-samples.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30110.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arcgis-pro-samples", "arcgis-pro-samples.csproj", "{BB084CA5-C765-4F42-8639-994A02E6DE82}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {BB084CA5-C765-4F42-8639-994A02E6DE82}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/arcgis-pro-samples-beta5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Esri/arcgis-pro-samples-beta/cdb645b048a89b4b669743ab849437d20e7131b5/arcgis-pro-samples-beta5.png
--------------------------------------------------------------------------------