I am using DynamicResource in my WPF project but I would like to know how to get it in C# as well, this is how you use it in
XAML:
<Label x:Name="MsgBox_InvoiceCounter" Content="{DynamicResource InvoiceCounterText}" FontSize="15" Margin="10,2,2,0"/>
and as an example I would like to save this now also in the string, how do I do that?:
C#:
string invoiceCounterText = (how do I get this from the DynamicResource??)