سؤال

I know that the use of regular resource is as follows:

Text="{x:Static prop:Resources.xxx}"

Is there a way to use resource with a parameter from a resource file in XAML?

هل كانت مفيدة؟

المحلول

You should use the StringFormat as:

Text="{Binding Path=YourParameter, StringFormat='{x:Static prop:Resources.xxx}'}" 
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top