c# - Binding Run inside Textblock results in exception in WPF -
i'm trying bind 2 <run>
s inside textblock
shown in snippet below. i'm getting xamlparseexception
.
basically i'm trying achieve format:
codenum: longdescription
if below code doomed fail other alternatives have?
<textblock> <run fontweight="bold" text="{binding codenum}"/> <run fontweight="bold" text=": "/> <run text="{binding longdescription}"/> </textblock>
i'm guessing either longdescription
or codenumis
read-only property (doesn't have public setter). need change binding 1 way read-only properties use in run
<run text="{binding longdescription, mode=oneway}"/>
Comments
Post a Comment