| Author |
Message |
Adauto
Joined: 27 Jan 2011 Posts: 1
|
Posted: Thu Jan 27, 2011 5:46 pm Post subject: {x:Static ... StaticExtension Erro |
|
|
Hi,
Our compoany works with WPF and VB.Net, and we're having a error with an x:static resource after obfuscation.
We're using a shared/static property of a class to define a Text of a TextBlock.
The XAML code where the error is (we got that its this line cause if we remove it the error goes away):
| Code: |
<TextBlock Name="Pesquisa_1" >
<TextBlock.Text>
<x:Static Member="S9_ProdServ:Classe_ProdServ_Configuracoes.PESQUISA_1_Compartilhada" />
</TextBlock.Text>
</TextBlock>
|
And the class that has the property is:
| Code: |
Public Shared ReadOnly Property PESQUISA_1_Compartilhada As String
Get
Return "Ps1"
End Get
End Property
|
Error: Provide value on 'MS.Internal.Markup.StaticExtension'threw an expcetion.
I already tried to change the way it access the static property, put it on a resource, but it into a binding... But with no sucess.
How can i solve this problem?
Thank you in advance. [/code] |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Fri Jan 28, 2011 6:54 pm Post subject: |
|
|
The Red Gate knowledge base gives you the gist of how to troubleshoot WPF obfuscation failures. More often than not, SA does not work out of the box with WPF. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group