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
295
Using resource to style specific instance
posted

So I have an ISL file with all of the controls styled, and I have a particular form where some of the labels need to be styled differently. Ideally I'd like to also have those in the ISL file. My current approach is to define new resources in the ISL file, and then set the specific controls to point to the resource using the  StyleResourceName property. The problem is that it doesn't work. The control (UltraLabel) in this case doesn't change. I'm assuming I can just put the name of the resource as it appears in the AppStylist, and then that resource should apply to the control. Does it matter what the ResolutionOrder is set to? Would it be better to use different roles for this kind of styling?

 Thanks,

Jason

Parents
No Data
Reply
  • 469350
    Offline posted

     Hi Jason,

    beardo said:
    I'm assuming I can just put the name of the resource as it appears in the AppStylist

    Yes, that's correct. 

    beardo said:
    Does it matter what the ResolutionOrder is set to?

    Yes, it does matter. I beleive it needs to be set to ApplicationThenControl (which is the default). Have you tried other settings? Does it make any difference?

    Can you demonstrate this not working in a small sample project? If so, you should Submit an incident to Infragistics Developer Support so they can check it out. 

     

     

Children