I just started using WPF. Since then I get a head from the styling system. I come from CSS background and I would like to set margin as a percentage.
<Style TargetType="TextBlock" x:Key="workflowNameTextBlock">
<Setter Property="Margin" Value="50"/>
</Style>
The current value is set in pixels, but I would like to set it to%, i.e. 50%.
How can I achieve this?
thank
user338195
source
share