Thursday, 5 September 2013

Can't find the static membe in XXXX.resx. WPF

Can't find the static membe in XXXX.resx. WPF

WPF
There have a static member "KeyData" in XXX.resx Then in another file
Main.xaml use the static member
<Button Name="btnSaveSecond" Content="{x:Static r:CustomsReprot.KeyData}"
Width="70" Height="26" ></Button>
the error is
"ÀàÐÍ¡°r:CustomsReprot¡±²»°üº¬ÃûΪ¡°KeyData¡±µÄ¾²Ì¬³ÉÔ±¡£"
Type"r:CustomsReprot" don't include the static member name is "KeyData"
Help!!! @_@
×ÊÔ´ÎļþÀïÓÐ
¾²Ì¬³ÉÔ±£¬µ«ÊÇÒ³ÃæÀï¾ÍÊÇÕÒ²»µ½¡£ËùÓеľ²Ì¬³ÉÔ±¶¼ÕÒ²»µ½¡£Ð½¨×ÊÔ´ÎļþÔÙн¨¾²Ì¬³ÉÔ±
ʹÓÃÒ²²»ÐС£

No comments:

Post a Comment