wpf - How can i make a prefix so i can address a folder in xaml -


i have problems making new prefixes in xaml. of time, message uri cannot found in assembly. setup:

i have wpf project (in solution class libs , asp.net projects) mainwindow.xaml file. xaml starts : window x:class="mainwindow" ... . default, there's no namespace given it. in same project made folder "folder". in folder, have resx-files. need make prefix in xaml can address files. thinking of :

xmlns:p="clr-namespace:wpfapplication.folder" 

and controls

<label content="{x:static p:nameresxfile.keyname></label> 

however, prefix generates "uri cannot found in assembly" error. i'm failing @ making prefixes?

thanks in advance.

edit

if cannot make namespace ref folder, happening here?

xmlns specifies namespaces, not bother folders or files, if need access external resource can load control's resources via resourcedictionary.

there think:

<window.resources>     <resourcedictionary x:key="externalres" source="folder/file.xaml"/>     .... </window.resources> 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -