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 380967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:02:24+00:00 2026-05-12T15:02:24+00:00

Im building a small digital signage system to run on internal machines. I would

  • 0

Im building a small digital signage system to run on internal machines. I would like to provide the editors (non tech people) with some template to choose the layout from. Something in the line of:

Conceptual drawing of template http://www.vikingworks.dk/template.png

It should be easy for me to maintain the templates and to create a new template i.e. just create the XAMl markup.

Any ideas on how to make this work? what do i do runtime? how do i create the templates?

Any pointers that would lead me in the right direction is appreciated

  • 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-12T15:02:24+00:00Added an answer on May 12, 2026 at 3:02 pm

    Not sure I follow entirely, but presumably there are a fixed number of fields that can be displayed. Thus, you could expose these fields via your view model:

    public class YourViewModel : ViewModel
    {
        public string Text
        {
            //get and set omitted
        }
    
        public ImageSource Image1
        {
            //get and set omitted
        }
    
        public ImageSource Image2
        {
            //get and set omitted
        }
    }
    

    Each template you have could be stored under a different key:

    <DataTemplate x:Key="FirstTemplate" DataType="{x:Type local:YourViewModel}">
        ...
    </DataTemplate>
    
    <DataTemplate x:Key="SecondTemplate" DataType="{x:Type local:YourViewModel}">
        ...
    </DataTemplate>
    

    Then within each template can just bind to the fields in your view model:

    <TextBlock Content="{Binding Text}"/>
    <Image Grid.Row="1" Source="{Binding Image1}"/>
    <Image Grid.Row="1" Grid.Column="1" Source="{Binding Image2}"/>
    

    To switch between templates, you can just substitute the resource at the appropriate level of your resource hierarchy:

    this.Resources.Clear();
    this.Resources.Add(FindResource(templateKey));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im building a small local digital signage solution. My client need to show content
I'm building small blog-like system for school. I need to store some data in
Background: I'm building a small application that will be run daily, pulling data from
Im building a small MVC system and i want my controllers to be Singletons.
I'm building a small system, which has nice htaccess rewritten urls. Now I'm wondering
I'm building a small web based media player that has a basic structure like
I am building a small application in Flash CS5, and I have run into
i'm building small sms-like application. I made conversation list view, but there is a
Im building a small webshop and have run into a problem. The company which
I am building a small internal tool for use with the developers in my

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.