Click here to Skip to main content
15,923,120 members
Home / Discussions / WPF
   

WPF

 
QuestionResource dictionary [modified] Pin
CrafterIt18-Apr-11 4:36
CrafterIt18-Apr-11 4:36 
Hello!

i have a problem with the resource dictionaries in silverlight,

control styles is using the colors in my colors resource.

but when i do this i get runtime error when i load the silverlight app in my browser:

Cannot find a Resource with the Name/Key OfficeBlue [Line: 10 Position: 44]

i have confirmed that the key name exists in colors.xaml

this is from my app.xaml

<Application.Resources>

     <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
             <ResourceDictionary Source="Colors.xaml" />
             <ResourceDictionary Source="Navigate/Control styles.xaml"/>
         </ResourceDictionary.MergedDictionaries>
     </ResourceDictionary>

 </Application.Resources>


How do i use colors.xaml resource in my control style?


Thanks!

modified on Tuesday, April 19, 2011 2:25 AM

AnswerRe: Resource dictionary Pin
Kunal Chowdhury «IN»20-Apr-11 22:37
professionalKunal Chowdhury «IN»20-Apr-11 22:37 
Questiondialogs must be user-initiated silverlight 4 Pin
NTheOne18-Apr-11 1:24
NTheOne18-Apr-11 1:24 
AnswerRe: dialogs must be user-initiated silverlight 4 Pin
Pete O'Hanlon18-Apr-11 2:00
mvePete O'Hanlon18-Apr-11 2:00 
GeneralRe: dialogs must be user-initiated silverlight 4 Pin
NTheOne18-Apr-11 18:53
NTheOne18-Apr-11 18:53 
AnswerRe: dialogs must be user-initiated silverlight 4 Pin
Abhinav S22-Apr-11 8:30
Abhinav S22-Apr-11 8:30 
QuestionImage control not getting resized while resizing window Pin
DavJes18-Apr-11 0:33
DavJes18-Apr-11 0:33 
AnswerRe: Image control not getting resized while resizing window Pin
DavJes18-Apr-11 0:34
DavJes18-Apr-11 0:34 
QuestionHow to check duplicate data in listbox.itemtemplate Pin
Rocky2317-Apr-11 23:44
Rocky2317-Apr-11 23:44 
AnswerRe: How to check duplicate data in listbox.itemtemplate Pin
Abhinav S18-Apr-11 5:03
Abhinav S18-Apr-11 5:03 
GeneralRe: How to check duplicate data in listbox.itemtemplate Pin
Rocky2318-Apr-11 23:03
Rocky2318-Apr-11 23:03 
QuestionBind a UserControl string array property to containing window Pin
Jean-Louis Leroy17-Apr-11 23:08
Jean-Louis Leroy17-Apr-11 23:08 
AnswerRe: Bind a UserControl string array property to containing window Pin
Jean-Louis Leroy17-Apr-11 23:41
Jean-Louis Leroy17-Apr-11 23:41 
QuestionReceiveAsync Issues Pin
veggieCoder15-Apr-11 8:13
veggieCoder15-Apr-11 8:13 
AnswerRe: ReceiveAsync Issues Pin
SledgeHammer0115-Apr-11 10:05
SledgeHammer0115-Apr-11 10:05 
QuestionPRISM in Silverlight Pin
NTheOne15-Apr-11 0:30
NTheOne15-Apr-11 0:30 
AnswerRe: PRISM in Silverlight Pin
Tarun.K.S15-Apr-11 0:59
Tarun.K.S15-Apr-11 0:59 
AnswerRe: PRISM in Silverlight Pin
Pete O'Hanlon15-Apr-11 1:59
mvePete O'Hanlon15-Apr-11 1:59 
AnswerRe: PRISM in Silverlight Pin
Abhinav S15-Apr-11 17:58
Abhinav S15-Apr-11 17:58 
QuestionWPF PopUp control Pin
Rahul Chitte14-Apr-11 1:59
Rahul Chitte14-Apr-11 1:59 
AnswerRe: WPF PopUp control Pin
Pete O'Hanlon14-Apr-11 2:20
mvePete O'Hanlon14-Apr-11 2:20 
AnswerRe: WPF PopUp control Pin
Ian Shlasko14-Apr-11 3:19
Ian Shlasko14-Apr-11 3:19 
AnswerRe: WPF PopUp control Pin
Abhinav S14-Apr-11 3:32
Abhinav S14-Apr-11 3:32 
GeneralRe: WPF PopUp control Pin
Tarun.K.S14-Apr-11 3:50
Tarun.K.S14-Apr-11 3:50 
GeneralRe: WPF PopUp control Pin
Abhinav S14-Apr-11 4:05
Abhinav S14-Apr-11 4:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.