Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to correctly set TableNode cell templates using Diagramming for WPF v4? (Read 843 times)
Kostya
Junior Member
**
Offline


I Love MindFusion!

Posts: 59
Joined: Aug 5th, 2014
How to correctly set TableNode cell templates using Diagramming for WPF v4?
Feb 26th, 2024 at 12:40pm
Print Post  
Hi,

After updating from v3.9 to v4, TableNode cells stopped displaying. In particular, I asked before about the ability to insert a checkbox into a cell here.
This feature was implemented then and this example was provided of how to use it.

Code
Select All
<Style x:Key="boolCell" TargetType="{x:Type diag:TableNode+Cell}">
	<Setter Property="Template">
		<Setter.Value>
			<DataTemplate DataType="{x:Type diag:TableNode+Cell}">
				<CheckBox IsChecked="{Binding Tag}" Content="{Binding Text}" />
			</DataTemplate>
		</Setter.Value>
	</Setter>
</Style>

table[0, 0].Text = "check me";
table[0, 0].SetValue(TagProperty, true);
table[0, 0].Style = (System.Windows.Style)FindResource("boolCell");
 



Now it doesn't work, just empty node. Is it possible to fix this or is it necessary to set the cell template somehow differently now?

Thanks,
Kostya
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3303
Joined: Oct 19th, 2005
Re: How to correctly set TableNode cell templates using Diagramming for WPF v4?
Reply #1 - Feb 27th, 2024 at 7:01am
Print Post  
Hi,

Sorry, it seems we've omitted moving that to v4 presenter system. Our developer will check it in next few days.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Kostya
Junior Member
**
Offline


I Love MindFusion!

Posts: 59
Joined: Aug 5th, 2014
Re: How to correctly set TableNode cell templates using Diagramming for WPF v4?
Reply #2 - Feb 27th, 2024 at 8:17am
Print Post  
Hi Slavcho,

Got it and thanks! 👌

Kostya
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3303
Joined: Oct 19th, 2005
Re: How to correctly set TableNode cell templates using Diagramming for WPF v4?
Reply #3 - Mar 1st, 2024 at 8:34am
Print Post  
Hi Kostya,

This build should show cell templates -
https://mindfusion.eu/_beta/wpfdiag407.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Kostya
Junior Member
**
Offline


I Love MindFusion!

Posts: 59
Joined: Aug 5th, 2014
Re: How to correctly set TableNode cell templates using Diagramming for WPF v4?
Reply #4 - Mar 25th, 2024 at 7:33am
Print Post  
Hi Slavcho,

Sorry for the long delay in responding. It works now, thanks a lot!

Kostya
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint