문제

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