<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Open a new panel view within a dockpane when dockpane button is clicked in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-a-new-panel-view-within-a-dockpane-when/m-p/1131598#M7576</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have attached one of your mentioned CustomCatalog project files. You can put it on top of existing file and check it is what you want.&lt;/P&gt;&lt;P&gt;To create new panel use dockpane burger button menu item.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GintautasKmieliauskas_0-1641567174275.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30998i0EAD1667DD2C6741/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GintautasKmieliauskas_0-1641567174275.png" alt="GintautasKmieliauskas_0-1641567174275.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fell free to ask if something is unclear.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 14:53:19 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2022-01-07T14:53:19Z</dc:date>
    <item>
      <title>Open a new panel view within a dockpane when dockpane button is clicked</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-a-new-panel-view-within-a-dockpane-when/m-p/1131452#M7573</link>
      <description>&lt;P&gt;I am creating a Pro SDK 2.9 add-in that utilizes a dockpane. I have my dockpane set up with tabs similar to the Esri Custom Catalog sample (&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/CustomCatalog" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/CustomCatalog&lt;/A&gt;) and each tab displays a custom control, similar to how each tab in the sample displays a string. One custom control contains a button that when clicked should replace the current custom control with a new one.&lt;/P&gt;&lt;P&gt;For example, the original custom control lists all current projects and also has a button that says "Create New Project". When that button is clicked, I want a new custom control that contains all the project options to appear and for the list of projects to no longer be visible. I have created the xaml for this replacement custom control and call it via the button ICommand, but nothing ever displays.&lt;/P&gt;&lt;P&gt;Below is the code from the MyProjectViewModel which is a PanelViewModelBase class (see sample).&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;private CreateProjectViewModel _createProjectPanel;&lt;BR /&gt;public MyProjectsViewModel()&lt;BR /&gt;{&lt;BR /&gt;_createProjectPanel = new CreateProjectViewModel();&lt;BR /&gt;_createProjectCommand = new RelayCommand(() =&amp;gt; CreateProject(), () =&amp;gt; true);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;private readonly ICommand _createProjectCommand;&lt;BR /&gt;public ICommand CreateProjectCommand =&amp;gt; _createProjectCommand;&lt;/P&gt;&lt;P&gt;private void CreateProject()&lt;BR /&gt;{&lt;BR /&gt;// this doesn't work&lt;BR /&gt;ProjectsViewModel pvm = new ProjectsViewModel();&lt;BR /&gt;pvm.SelectedProjectsPanelHeaderIndex = 0;&lt;BR /&gt;pvm.CurrentSubPanelPage = _createProjectPanel;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here is the xaml code where I have the CreateProjectCommand and DataTemplate for the CreateProjectViewModel:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;lt;UserControl.Resources&amp;gt;&lt;BR /&gt;&amp;lt;ResourceDictionary&amp;gt;&lt;BR /&gt;&amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;&lt;BR /&gt;&amp;lt;extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/&amp;gt;&lt;BR /&gt;&amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;&lt;BR /&gt;&amp;lt;DataTemplate DataType="{x:Type viewModel:CreateProjectViewModel}"&amp;gt;&lt;BR /&gt;&amp;lt;view:CreateProjectView/&amp;gt;&lt;BR /&gt;&amp;lt;/DataTemplate&amp;gt;&lt;BR /&gt;&amp;lt;/ResourceDictionary&amp;gt;&lt;BR /&gt;&amp;lt;/UserControl.Resources&amp;gt;&lt;BR /&gt;&amp;lt;Grid&amp;gt;&lt;BR /&gt;&amp;lt;Grid.RowDefinitions&amp;gt;&lt;BR /&gt;&amp;lt;RowDefinition Height="Auto"/&amp;gt;&lt;BR /&gt;&amp;lt;RowDefinition Height="*"/&amp;gt;&lt;BR /&gt;&amp;lt;RowDefinition Height="Auto"/&amp;gt;&lt;BR /&gt;&amp;lt;/Grid.RowDefinitions&amp;gt;&lt;BR /&gt;&amp;lt;StackPanel Grid.Row="0" Background="Transparent"&amp;gt;&lt;BR /&gt;&amp;lt;DockPanel Margin="6,6" LastChildFill="True"&amp;gt;&lt;BR /&gt;&amp;lt;TextBlock Style="{DynamicResource Esri_TextBlockRegular}" Margin="6,0,0,0"&amp;gt;Sort By:&amp;lt;/TextBlock&amp;gt;&lt;BR /&gt;&amp;lt;ComboBox ItemsSource="{Binding ProjectSortCriteria}" SelectedItem="{Binding SelectedSortCriteria, Mode=TwoWay}" SelectedIndex="0" Margin="6,0,0,0"&amp;gt;&amp;lt;/ComboBox&amp;gt;&lt;BR /&gt;&amp;lt;/DockPanel&amp;gt;&lt;BR /&gt;&amp;lt;/StackPanel&amp;gt;&lt;BR /&gt;&amp;lt;Grid Grid.Row="1" Background="Transparent"&amp;gt;&lt;BR /&gt;&amp;lt;ListBox Name="MyProjectsListBox" Margin="6,0" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled"&lt;BR /&gt;ItemContainerStyle="{DynamicResource Esri_ListBoxItemHighlightBrush}"&lt;BR /&gt;SelectedItem="{Binding Path=SelectedProjectName}" ItemsSource="{Binding Path=ProjectNames}" Grid.ColumnSpan="2"&amp;gt;&lt;BR /&gt;&amp;lt;ListBox.Style&amp;gt;&lt;BR /&gt;&amp;lt;Style TargetType="{x:Type ListBox}"&amp;gt;&lt;BR /&gt;&amp;lt;/Style&amp;gt;&lt;BR /&gt;&amp;lt;/ListBox.Style&amp;gt;&lt;BR /&gt;&amp;lt;ListBox.ItemsPanel&amp;gt;&lt;BR /&gt;&amp;lt;ItemsPanelTemplate&amp;gt;&lt;BR /&gt;&amp;lt;WrapPanel Orientation="Vertical"/&amp;gt;&lt;BR /&gt;&amp;lt;/ItemsPanelTemplate&amp;gt;&lt;BR /&gt;&amp;lt;/ListBox.ItemsPanel&amp;gt;&lt;BR /&gt;&amp;lt;/ListBox&amp;gt;&lt;BR /&gt;&amp;lt;/Grid&amp;gt;&lt;BR /&gt;&amp;lt;StackPanel Grid.Row="2" Background="Transparent"&amp;gt;&lt;BR /&gt;&amp;lt;Button Command="{Binding CreateProjectCommand}" Content="Create Project" Style="{DynamicResource Esri_Button}" Margin="10" HorizontalAlignment="Left"/&amp;gt;&lt;BR /&gt;&amp;lt;/StackPanel&amp;gt;&lt;BR /&gt;&amp;lt;/Grid&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 06 Jan 2022 23:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-a-new-panel-view-within-a-dockpane-when/m-p/1131452#M7573</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-06T23:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open a new panel view within a dockpane when dockpane button is clicked</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-a-new-panel-view-within-a-dockpane-when/m-p/1131598#M7576</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have attached one of your mentioned CustomCatalog project files. You can put it on top of existing file and check it is what you want.&lt;/P&gt;&lt;P&gt;To create new panel use dockpane burger button menu item.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GintautasKmieliauskas_0-1641567174275.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30998i0EAD1667DD2C6741/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GintautasKmieliauskas_0-1641567174275.png" alt="GintautasKmieliauskas_0-1641567174275.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fell free to ask if something is unclear.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 14:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-a-new-panel-view-within-a-dockpane-when/m-p/1131598#M7576</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-01-07T14:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Open a new panel view within a dockpane when dockpane button is clicked</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-a-new-panel-view-within-a-dockpane-when/m-p/1131655#M7577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It looks like your solution adds a new tab, but I would like to replace or cover the content of an existing tab. For example, in the Custom Catalog sample, I would like to click the dockpane burger button menu item and that would replace the content of the current tab with new content. I hope that explains my issue better.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 17:33:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-a-new-panel-view-within-a-dockpane-when/m-p/1131655#M7577</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-07T17:33:11Z</dc:date>
    </item>
  </channel>
</rss>

