Hi Stoyan
And back to the content template....
Was it implemented in ver 1.0.2 ?
I'm trying to make the text appear under the Image.
I've done something like :
NewNode.ContentTemplate = CreateNodeDataTemplate();
And the code:
private DataTemplate CreateNodeDataTemplate()
{
/*
<StackPanel Orientation="Vertical">
<Image ></Image>
<TextBlock Margin="0,20,0,0"></TextBlock>
</StackPanel>
*/
DataTemplate dt = new DataTemplate();
StringBuilder sb = new StringBuilder();
sb.Append("<DataTemplate ");
sb.Append("xmlns='
http://schemas.microsoft.com/winfx/2006/xaml/presentation' ");
sb.Append("xmlns:x='
http://schemas.microsoft.com/winfx/2006/xaml'> ");
sb.Append("<StackPanel Orientation=\"Vertical\">");
sb.Append("<Image ></Image>");
sb.Append("<TextBlock Margin=\"0,20,0,0\"></TextBlock>");
sb.Append("</StackPanel>");
sb.Append("</DataTemplate>");
dt = (DataTemplate)XamlReader.Load(sb.ToString());
return dt;
}
But then my node dissapear.
I managed to manipulate it a bit by:
_dblControlHeight = _dblControlHeight + 20;
((System.Windows.Controls.TextBlock)((((System.Windows.Controls.Grid)(((Canvas)N
ewNode.Content).Children[1])).Children[1]))).Margin = new Thickness(0, 10, 0, 0);
But this is not the right way to do it....
Many thanks for this release, I'll proceed checking it...