Select to view content in your preferred language

Create two or more identical tableFrame in size irrespective of the data, using ArcGIS Pro SDK .NET

775
5
07-04-2022 01:57 AM
by Anonymous User
Not applicable

Hi,

I'm using TableFrame to create two identical tables in size, regardless of the data in them.

Table1 contains 5 rows of data, while Table2 contains 3 rows of data. So, when viewing the final output, Table2 should also have 5 rows, with 3 rows of data and 2 rows of empty space.

We need to do that just to make it look neater.

current output:

ShabinaBano_0-1656924595792.png

expected output:

ShabinaBano_1-1656924827389.png

 

NOTE: Regardless of the data present, both tables should have the same number of rows.

Could anyone please help me with this.

Thanks in advance!

 

0 Kudos
5 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

This is a WPF question, not ArcGIS Pro SDK question.

Set name for the first frame like x:Name="frame1" and set height for second one like this:

Height="{Binding ActualHeight, ElementName=frame1}"

 

by Anonymous User
Not applicable

Hi @GKmieliauskas 

We created the TableFrames using ArcGIS Pro's built-in functionality; we did not use any WPF concepts to create this table. We only filled the data in the tableFrame.

I hope you get my point.

 

Thanks.

0 Kudos
CharlesMacleod
Esri Regular Contributor

Set the second frame dimensions to be the same as the first. So something like:

  table_frame2.SetHeight(table_frame1.GetHeight());
  table_frame2.SetWidth(table_frame1.GetWidth());
by Anonymous User
Not applicable

Hi @CharlesMacleod  I tried it, but it didn't work. Do you know if we can add empty rows from the backend to TableFrame?

0 Kudos
CharlesMacleod
Esri Regular Contributor

I dont think so, sorry.

0 Kudos