If I write
test = Application.Current.FindResource(SystemColors.ActiveBorderBrushKey);
test will have a value even though Application.Current.Resources is empty.
How does it work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
FindResourcewill first look in application-scope resources for the specified resource. Application-scope resources are managed byApplication, and are exposed from theResourcesproperty.If the specified resource is not found in the set of application-scope resources, FindResource then next searches the system resources. System resources are shell resources defined by the user, and include colors, fonts, and shell configurations. These are exposed from the
SystemColors,SystemFonts, andSystemParameterstypes, respectively, as static properties.http://msdn.microsoft.com/en-us/library/system.windows.application.findresource.aspx