Binding Multiple Values to a Margin
Posted: 18 Mar 2020, 14:09
Hello again,
I am trying to apply a margin to an element that will eventually have bindings to make certain sides of the margin change based on calculations. In WPF, this is achieved through the following link under "XAML Property Element Usage":
https://docs.microsoft.com/en-us/dotnet ... ment-usage
A quick demo app in WPF with a TextBlock confirms that this works as described:
The same code inside of Noesis doesn't produce the same results, and running it in the XAMLtoy app produces errors stating "Can't assign property to abstract class 'Thickness'." Since this is different behavior from WPF is this considered a bug? If it is not a bug, is there a different workflow that produces the same results?
Thanks.
I am trying to apply a margin to an element that will eventually have bindings to make certain sides of the margin change based on calculations. In WPF, this is achieved through the following link under "XAML Property Element Usage":
https://docs.microsoft.com/en-us/dotnet ... ment-usage
A quick demo app in WPF with a TextBlock confirms that this works as described:
Code: Select all
<TextBlock Text="Some Text">
<TextBlock.Margin>
<Thickness Left="100" Top="100" Bottom="0" Right="0"/>
</TextBlock.Margin>
</TextBlock>
Thanks.