Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Standardising Styles Accross Multiple Applications

Standardising Styles Accross Multiple Applications

Scheduled Pinned Locked Moved WPF
wpfcsharpquestioncareer
6 Posts 2 Posters 15 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jammer 0
    wrote on last edited by
    #1

    Hi All, Not been around here for a few weeks as I've just become a Dad!! Anyway ... I'm just looking for a few pointers and wotnot on how best to approach this task. I'm currently starting work on my second WPF application for my employer and one thing I want to do is before moving either project forward any more is to standardise the look and feel between the two (and obviously any future applications). Also this means that other developers here can just plug in a set of standard styles and get to work on the logic rather than worrying about the look and feel (my job largely!). The most obvious way would be to have a 'Styles' project in a separate Visual Source Safe project with a <controlname>.xaml file for each control (like combo.xaml, textbox.xaml etc) ... or just one large style.xaml containing all our style code (this could however become a very large single file!). What I'm wondering is before I start on this as a project in its own right is there a better way than just having xaml files? Would it make sense to build a style.dll that could be plugged into any application that would only provide styles and control templates for consumption by other developers? We are using the Infragistics controls here and they provide a similar approach whereby we could build theme.dll's for our users to then select a theme for their instance of our application. I think that from a consumption point of view that is a much neater solution. Thanks in advance for any input.

    Jammer Going where everyone here has gone before! :) My Blog

    P 1 Reply Last reply
    0
    • J Jammer 0

      Hi All, Not been around here for a few weeks as I've just become a Dad!! Anyway ... I'm just looking for a few pointers and wotnot on how best to approach this task. I'm currently starting work on my second WPF application for my employer and one thing I want to do is before moving either project forward any more is to standardise the look and feel between the two (and obviously any future applications). Also this means that other developers here can just plug in a set of standard styles and get to work on the logic rather than worrying about the look and feel (my job largely!). The most obvious way would be to have a 'Styles' project in a separate Visual Source Safe project with a <controlname>.xaml file for each control (like combo.xaml, textbox.xaml etc) ... or just one large style.xaml containing all our style code (this could however become a very large single file!). What I'm wondering is before I start on this as a project in its own right is there a better way than just having xaml files? Would it make sense to build a style.dll that could be plugged into any application that would only provide styles and control templates for consumption by other developers? We are using the Infragistics controls here and they provide a similar approach whereby we could build theme.dll's for our users to then select a theme for their instance of our application. I think that from a consumption point of view that is a much neater solution. Thanks in advance for any input.

      Jammer Going where everyone here has gone before! :) My Blog

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      First of all, congratulations. Boy or girl? Secondly, we use a set of themes and load them in dynamically. The advantage of this is that we can change/upgrade applications merely by changing the themes. It's a convenient way to "freshen" up an application without having to manage lots of different codebases.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      J 1 Reply Last reply
      0
      • P Pete OHanlon

        First of all, congratulations. Boy or girl? Secondly, we use a set of themes and load them in dynamically. The advantage of this is that we can change/upgrade applications merely by changing the themes. It's a convenient way to "freshen" up an application without having to manage lots of different codebases.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        J Offline
        J Offline
        Jammer 0
        wrote on last edited by
        #3

        Hey Pete, Its a lil girl! So cool ... How do you store all the theme code though? Are you using DLLs that are distributed with your applications? How do you manage that within a multi developer environment?

        Jammer Going where everyone here has gone before! :) My Blog

        P 1 Reply Last reply
        0
        • J Jammer 0

          Hey Pete, Its a lil girl! So cool ... How do you store all the theme code though? Are you using DLLs that are distributed with your applications? How do you manage that within a multi developer environment?

          Jammer Going where everyone here has gone before! :) My Blog

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Jammer wrote:

          Are you using DLLs that are distributed with your applications?

          Yup.

          Jammer wrote:

          How do you manage that within a multi developer environment?

          By having a designer come up with the themes.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          J 2 Replies Last reply
          0
          • P Pete OHanlon

            Jammer wrote:

            Are you using DLLs that are distributed with your applications?

            Yup.

            Jammer wrote:

            How do you manage that within a multi developer environment?

            By having a designer come up with the themes.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            J Offline
            J Offline
            Jammer 0
            wrote on last edited by
            #5

            Ahh ok ... theme DLL's it is then. I thought that would be the best solution to this particular issue. Thanks chap.

            Jammer Going where everyone here has gone before! :) My Blog

            1 Reply Last reply
            0
            • P Pete OHanlon

              Jammer wrote:

              Are you using DLLs that are distributed with your applications?

              Yup.

              Jammer wrote:

              How do you manage that within a multi developer environment?

              By having a designer come up with the themes.

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              J Offline
              J Offline
              Jammer 0
              wrote on last edited by
              #6

              Thanks for this Pete, I've pretty much got a working style.dll done now. Lots of tweaking to do and wotnot but this is indeed a seriously neat solution. Just a quick one, do you have any neat tricks that you found on your journey down this route?

              Jammer Going where everyone here has gone before! :) My Blog

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups