Search Results

Search found 1 results on 1 pages for 'toaster24'.

Page 1/1 | 1 

  • In WPF XAML how can I concatenate 2 constants so I can use pre-define paths?

    - by toaster24
    I'm new to XAML, so presume I'm missing something simple. I want to replace the path part of the source path with a c# constant for easier path management, for example I have: <Image Source="/Images/Themes/Buttons/MyPicture.png" /> and in another class I have my constant defined: public static readonly string UriImagesButtons = "/Images/Big/PNG/"; I want to have something along the lines of: <Image Source="{static:UriImagesButtons + MyPicture.png}" /> This means that I can change the path globally at a stroke if the need arises. What's the syntax to do this?

    Read the article

1