visual studio - Reference C++/CLI class in xaml static resources -
I am currently developing an app for Windows 8.1, I would like to insert a stable C ++ class
Fixed Reef Class BooleanTuViewicon Conorrir Seal: IValueConverter
In the resource list located in another xaml file:
& lt; application. Resources & gt; & Lt; Local: BooleanToVisible Converter x: key = "BULLCONNV" /> & Lt; /Application.Resources>
As hard as I try, I keep getting the following error: The name "booleanTuVibleConverter" is not used in the name "app 15" namespace.
For information, "Local:" is used as "App: 15", which is the namespace of the C ++ file.
I have made every namespace possible, there is no way I can manage myself to get this job done ...
< Div class = "post-text" itemprop = "text">
There may be other problems (such as namespace announcements in your XML file), but I get two things about the definition of my class: / P>
- You need to declare your class public
public F class ...
-
High
does not do anything here.- Maybe you are getting a compiler warning about it: I got the code
C4091: 'Static': when the variable is not declared, the focus on the left of the 'BooleanToVisible Conveyor' Is not given - This is not static in the sense, where it applies only within the file where it appears.
- It is not a static class (i.e. not overdued) in C # sense:
IValueConverter
need to be made to work immediately, and C ++ / CLI Uses a different syntax for this.
- Maybe you are getting a compiler warning about it: I got the code
Switch to Public Referee Class BullionTuzweek Converter ...
, and how it goes.
Comments
Post a Comment