Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 972839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:11:11+00:00 2026-05-16T03:11:11+00:00

I have defined a menu template which, in theory, should use the backgroundcolor of

  • 0

I have defined a menu template which, in theory, should use the backgroundcolor of the “AppBackground” SoliColorBrush, defined in a separate file.

When in “debug mode”, I use the following code to change that variable:
this.Resources[“AppBackground”] = new SolidColorBrush(Colors.DarkGreen);

This has the intended effect on the application background, however, it doesn’t seem to have an effect on the custom menu design I have. I have tried to use both StaticResource and DynamicResource, without any luck. Is this a known issue, and is there a trick here?

Defined in ResourceDirectory:

<SolidColorBrush x:Key="AppBackground" Color="#003466"/>

Defined in a file:

 <Style x:Key="{x:Type MenuItem}" TargetType="{x:Type MenuItem}">
   <Setter Property="Template">
       <Setter.Value>
          <ControlTemplate TargetType="{x:Type MenuItem}">
              <Border x:Name="Border" BorderThickness="1">
                 <Grid Background="{Binding Source={StaticResource AppBackground}}">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:11:12+00:00Added an answer on May 16, 2026 at 3:11 am

    Havent seen that you marked that it works also not with DynamicBinding. I only looked at the code. Thats why I wrote my first answer:

    Use DynamicBinding, that should work.

    The real problem you wrapp the resource through a Binding. Remove this, as I wrote in my other post. Sorry the chaos with the multiple answers.

    <Grid Background="{DynamicResource AppBackground}">

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have defined a for loop as follows which scans through a file made
I have a menu which has sub-menus and I have defined it as such:
I have a drop down navigation menu in which some of the title should
I've defined a custom content type - news. I also have a menu item
I have defined a custom list template type for SharePoint . I install it
I have defined a local mirror for all repositories in the settings.xml file: <mirror>
I have a navigation menu defined in visual web developer 2010 express using a
I have a defined asp:Menu in design time in the master page. I want
I have defined some menus in sitemap: ... Menu(index,S ? home) / index ...
I have a model object which subclasses ActiveRecord. Additionally, using STI, I have defined

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.