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

  • Home
  • SEARCH
  • 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 8003943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:47:11+00:00 2026-06-04T16:47:11+00:00

I have an application in which I’m using a specific ResourceDictionary for my strings

  • 0

I have an application in which I’m using a specific ResourceDictionary for my strings and I need to duplicate the keys of that ResourceDictionary in a class as string constants. While it’s easy to just copy and paste, I’m expecting around 350 resource strings, and having to manage both files having all the content isn’t an option.

I want to code an app that would have a Key/Value grid for which the user would enter the values, and that app would write in the Xaml file and in the .cs constant class. I have no problem with the .cs file, but is there a way to write to a xaml file without having to clear the file before writing the contents of the new file?

Thanks

  • 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-06-04T16:47:12+00:00Added an answer on June 4, 2026 at 4:47 pm

    You could write a T4 template that uses a simple designer (WPF usercontrol) or xml file to generate the xaml and C# files.

    Excellent T4 tutorials by Oleg Sych

    Here is how to generate multiple files with T4

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which has a similar interface to Visual Studio, in that
I have an application which i build using gcc on linux host for ARM
I have an application which resides in ROOT. This application has a java class(in
I have an application which generates PDFs. Now I'm using Apache FOP just for
I have an application which consists of two activities/screens and a java class from
I have an application which requires that a solid black outline be drawn around
I have an application which depends on PyGTK, PyGobject, and PyCairo that I built
I have an application which is based on a Postgres database and I need
I have application which can export slides to PowerPoint. I'm using Microsoft.Office.Interop.PowerPoint.dll . This
I am using tomcat as my webserver. i have application which needs a tomcat

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.