Red Gate forums :: View topic - {x:Static ... StaticExtension Erro
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

{x:Static ... StaticExtension Erro

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
Adauto



Joined: 27 Jan 2011
Posts: 1

PostPosted: Thu Jan 27, 2011 5:46 pm    Post subject: {x:Static ... StaticExtension Erro Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6678

PostPosted: Fri Jan 28, 2011 6:54 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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