I am new to WPF and XAML, so my question should be an easy one...
Now, i have a simple class:
public class EditionListSummary
{
public int editionCounter { get; set; }
}
I then assign value to that editionCounter property (in another class)
EditionListSummary edSummary = new EditionListSummary(); edSummary.editionCounter = ultimaPrintRow.EditionList.Count;
I get my editionCounter property populated the way i need.
Now the problem: i try to bind that class property to a TextBlock Text property, but no luck
<TextBlock Name="eCounter" Text="{Binding Path=editionCounter}" Grid.Column="0">
Internet is full of examples that somehow not working for me.
Maybe the easiest way is to populate Text property of my TextBlock from CodeBehind via TextBlock name? If so, please give me a tip, because at the moment i have no access from C# to the FixedDocument of the DocumentViewer in XALM.
Thank You in advance!

New Topic/Question
Reply




MultiQuote



|