Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Theme getting overridden by Interaction Request
posted

Hi,

I am not sure if this question reveals my lack of understanding during my still early foray into WPF, but I am puzzled by a behavior I am seeing using Implicit Themes.

I have a window with various textboxes and comboboxes. I need to have some modal dialogs, so have implemented buttons that raise a custom popup window using Prism's interaction request. When I display the popup and close it, ALL the Comboboxes, but none of the textboxes suddenly have their BorderBrush overridden with the focus color. This does not occur if I use a Dialog Service and call the Windows MessageBox. When I look at the properties in the Visual Tree Viewer, I can see that the brush has been overridden, but I cannot figure out by what or why.

There is nothing unique about the popup and it does not even have a ViewModel (yet).

I tried setting the style explictly on one ComboBox to see if that would help, but it does not. Are there any ideas out there to point me in the right direction to look??

Thanks..

Carl

Parents
  • 34810
    Offline posted

    Hello Carl,

    I have been investigating into the behavior that you are referring to, and I believe that in order to completely understand this behavior, we will need more information from your end. Please provide some information regarding the following:

    1. Are you using any Infragistics-specific themes, or do you have your own styling that you are referring to as “theming”?

    2. Are there multiple styles that are applied in your application for the same type of control? I ask this, as WPF only keeps a single local style per control and if you have conflicting style resources, I could see that this could potentially cause issues. The fact that you have tried explicitly defining a style and this issue still happens is strange, though.

    3. Do you have an isolated sample project that you could provide that reproduces this behavior? This would be the best option for me to be able to explain what is happening in this case.

    Please let me know if you have any other questions or concerns on this matter.

Reply Children