ProSnippets DAML - EsriJapan/arcgis-pro-sdk GitHub Wiki

ここにリストされているすべての ProSnippets は、次のサンプルコードでも使用されています。:DAML sample code

Language:              C#  
Subject:               Framework  
Contributor:           ArcGIS Pro SDK Team <[email protected]>  
Organization:          esri, http://www.esri.com  
Date:                  10/22/2024  
ArcGIS Pro:            3.4  
Visual Studio:         2022  
.NET Target Framework: .Net 8  

DAML

ウィンドウ: ウィンドウのリセット

<DockPaneSets>
  <insertDockPaneSet id="esri_DockPaneReset_bookmarks" caption="Reset pane for Bookmarks">
    <DockPaneID refID="esri_mapping_showBookmarksWindow" />
    <DockPaneID refID="esri_core_contentsDockPane" />
  </insertDockPaneSet>
</DockPaneSets>

ボタン: リボンからコアボタンを削除

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
  <groups>
    <updateGroup refID="esri_mapping_navigateGroup">
      <deleteButton refID="esri_mapping_bookmarksNavigateGallery"></deleteButton>
    </updateGroup>
  </groups>
</updateModule>

ボタン: リボン上の既存のグループに新しいボタンを挿入

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
  <groups>
    <updateGroup refID="esri_mapping_navigateGroup">
      <insertButton refID="New_Menu_Item_Button" />
    </updateGroup>
  </groups>
</updateModule>

メニュー: レイヤーのコンテキスト メニューに新しいボタンを挿入

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
  <menus>
    <updateMenu refID="esri_mapping_layerContextMenu">
      <!--Note: New_Menu_Item_Button is a button control that must exist within the controls tag-->
      <insertButton refID="New_Menu_Item_Button" placeWith="esri_mapping_selectedLayerSymbologyButton" />
    </updateMenu>
  </menus>
</updateModule>

メニュー:マップ コンテナのコンテキスト メニューに新しいメニューを挿入

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
  <menus>
    <updateMenu refID="esri_mapping_mapContainerContextMenu">
      <!--Note: New_Menu_Item_Button is a button control that must exist within the controls tag-->
      <insertMenu refID="DAML_Menu_New_Menu" placeWith="esri_core_editPasteButton" />
    </updateMenu>
  </menus>
</updateModule>

メニュー: 2D マップのコンテキスト メニューに新しいボタンを挿入

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
  <menus>
    <updateMenu refID="esri_mapping_mapContextMenu">
      <!--Note: New_Menu_Item_Button is a button control that must exist within the controls tag-->
      <insertButton refID="New_Menu_Item_Button" placeWith="esri_mapping_addDataButton" />
    </updateMenu>
  </menus>
</updateModule>

メニュー: シーンのコンテキスト メニューに新しいボタンを挿入

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
  <menus>
    <updateMenu refID="esri_mapping_3d_mapContextMenu">
      <!--Note: New_Menu_Item_Button is a button control that must exist within the controls tag-->
      <insertButton refID="New_Menu_Item_Button" placeWith="esri_mapping_addDataButton" separator="true" />
    </updateMenu>
  </menus>
</updateModule>

メニュー: マップ コンテンツのコンテキスト メニューに新しいボタンを挿入

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
  <menus>
    <updateMenu refID="esri_mapping_map2DContextMenu">
      <!--Note: New_Menu_Item_Button is a button control that must exist within the controls tag-->
      <insertButton refID="New_Menu_Item_Button" placeWith="esri_core_rename" />
    </updateMenu>
  </menus>
</updateModule>

メニュー: シーン コンテンツのコンテキストメニューに新しいボタンを挿入

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
  <menus>
    <updateMenu refID="esri_mapping_map3DContextMenu">
      <!--Note: New_Menu_Item_Button is a button control that must exist within the controls tag-->
      <insertButton refID="New_Menu_Item_Button" placeWith="esri_core_rename" separator="true" />
    </updateMenu>
  </menus>
</updateModule>

メニュー: グループ レイヤーのコンテキスト メニューに新しいボタンを挿入

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
  <menus>
    <updateMenu refID="esri_mapping_groupLayerContextMenu">
      <insertButton refID="DAML_Menu_Custom_menus_ContextButton" placeWith="esri_mapping_selectedLayerPropertiesButton" insert="after" />
    </updateMenu>
  </menus>
</updateModule>

スプリット ボタン:データの追加メニューのスプリット ボタンとして新しいボタンを挿入

注:「updateModule」タグは「modules」タグ内にある必要があります。

<updateModule refID="esri_mapping">
    <splitButtons>
        <updateSplitButton refID="esri_mapping_addDataSplitButton">
            <insertButton refID="EsriCommunity_MyAddData" />
        </updateSplitButton>
    </splitButtons>
</updateModule>

サブグループ: グループ内のサブグループを挿入、削除

注:"updateModule" タグは "modules" タグ内に記述してください。

<updateModule refID="esri_mapping">
  <groups>
    <updateGroup refID="esri_mapping_layerGroup">
      <insertSubgroup refID="esri_mapping_enableAnimation_subGroup" />
      <deleteSubgroup refID="esri_mapping_firstLayerSubGroup" />
    </updateGroup>
  </groups>
</updateModule>

サブグループ: サブグループ内での挿入・削除

注:"updateModule" タグは "modules" タグ内に記述してください。

<updateModule refID="esri_mapping">
  <subgroups>
    <updateSubgroup refID="esri_mapping_firstLayerSubGroup">
      <deleteGallery refID="esri_mapping_basemapGallery" />
      <insertButtonPalette refID="esri_mapping_firstLayerSubGroup" />
    </updateSubgroup>
  </subgroups>
</updateModule>

バックステージタブ: Pro のタブを削除し、独自のタブを挿入

注:"modules" タグの後に "backstage" タグを記述してください。

<backstage>
  <!--Deletes the New Project tab in Pro's backstage-->
  <deleteTab refID="esri_core_newProjectBackStageTab" />
  <!--Deletes the Open Project tab in Pro's backstage-->
  <deleteTab refID="esri_core_openProjectBackStageTab" />
  <!--Inserts a new tab into Pro's backstage, placed before the Save Project tab-->
  <insertTab id="GeocodeBackstageTab" caption="Geocode" className="DAML.Backstage.GeocodeBackstageTabViewModel" insert="before" placeWith="esri_core_saveProjectButton" keytip="Z7">
    <content className="DAML.Backstage.GeocodeBackstageTabView" />
  </insertTab>
</backstage>

プロパティシート: オプションダイアログのプロパティシートにプロパティページを挿入

注:"propertySheets" タグは、"modules" タグの後に記述してください。

<propertySheets>
  <!--refID is set to the DAML Id of Pro's Options property sheet-->
  <updateSheet refID="esri_core_optionsPropertySheet">
    <insertPage id="ModifyProUIWithDAML_OptionsPropertySheet_OptionsDialogPropertyPage" caption="Sample Project Settings" className="DAML.OptionsPropertySheet.OptionsDialogPropertyPageViewModel" group="Project">
      <!--Setting "groups" attribute to "Project" will add 
                page to the Project group on the Pro options dialog.-->
      <content className="DAML.OptionsPropertySheet.OptionsDialogPropertyPageView" />
    </insertPage>
  </updateSheet>
</propertySheets>

PropertySheet: Insert Property Page into the Layer Properties Property sheet

<updateSheet refID="esri_mapping_featureLayerPropertySheet">
    <insertPage id="DAML_LayersPropertySheet_LayersPropertySheet" caption="My custom layer properties" className="DAML.LayersPropertySheet.LayersPropertySheetViewModel" placeWith="esri_mapping_layerSourcePropertyPage" insert="after" >
        <content className="DAML.LayersPropertySheet.LayersPropertySheetView" />
    </insertPage>
</updateSheet>
⚠️ **GitHub.com Fallback** ⚠️