Note that there are some explanatory texts on larger screens.

plurals
  1. POWPF binding textblock to column in parent table, in addition parse childtable and set appropriate values to the textblock
    primarykey
    data
    text
    <p>This is my simplified XAML:</p> <pre><code>&lt;Window x:Class="MyForm.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MyForm" Title="MyForm" Closing="Window_Closing" Icon="Images\main.ico" Height="633" Width="1602" Loaded="Window_Loaded" xmlns:my="clr-namespace:MyForm"&gt; &lt;Window.Resources&gt; &lt;ObjectDataProvider x:Key="dataSetProvider" MethodName="CreateDataSet" ObjectType="{x:Type local:DataSetCreator}" /&gt; &lt;DataTemplate x:Key="ItemTemplate"&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;TextBlock Text="{Binding item_title}"&gt; &lt;/TextBlock&gt; &lt;/StackPanel&gt; &lt;/DataTemplate&gt; &lt;HierarchicalDataTemplate x:Key="FeedTemplate" ItemsSource="{Binding FK_FM_FEEDS_FEED_0_0}" ItemTemplate="{StaticResource ItemTemplate}"&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;TextBlock Text="{Binding feed_title}"&gt; &lt;/TextBlock&gt; &lt;/StackPanel&gt; &lt;/HierarchicalDataTemplate&gt; &lt;/Window.Resources&gt; &lt;Grid&gt; &lt;TreeView LayoutUpdated="treeViewMain_LayoutUpdated" TreeViewItem.Expanded="TextBlock_Expanded" Name="treeViewMain" DataContext="{StaticResource dataSetProvider}" ItemsSource="{Binding FM_FEEDS_FEEDS}" ItemTemplate="{StaticResource FeedTemplate}"&gt; &lt;/TreeView&gt; &lt;/Grid&gt; &lt;/Window&gt; </code></pre> <p>The binding works as expected, the feed_title from the parent table in the dataset is bound to the top node in the treeview. Then all the items in that specific feed (childtable of dataset) is bound as child-nodes to that top node in the treeview. </p> <p>What I'm trying to achieve: I would like to add some more information to the top node than just the feed_title. I would like to read from the child table which items are synchronized or not, and update the top node to contain text like: "(4/10) Title". So that it informs user about that only 4 out of the 10 items are synchronized. I do not need the solution, but would like to know how to go about this...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload