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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:05:05+00:00 2026-05-18T07:05:05+00:00

Ideally I would like to place some properties in the App class for my

  • 0

Ideally I would like to place some properties in the App class for my WPF application to share between windows, dialogs, controls, etc. Is it trivial to reference those properties from other WPF components or should I just make them static for easier access?

  • 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-18T07:05:05+00:00Added an answer on May 18, 2026 at 7:05 am

    In my opinion, the biggest issue in placing properties at the App class is that your code will be tightly coupled. Besides, the properties may be outside the scope of the App class.

    If you don’t care about patterns, i.e., your application do not tend to grow in complexity, using properties in the App class may be a quick and easy solution. But if you do this in an already complex (or growing) code, it may lead you to a lot of headache.

    If by making the properties static you mean put them in some class and reference it in another class, you get a less tightly coupled code, but not loosely enough.

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

Sidebar

Related Questions

I would like to setup a multi-tenant ASP.NET MVC app. Ideally, this app would
I have an application that I would ideally like to run on all iOS
I have some Code that I'd like to share between an iOS and an
Ideally I would like intellij to work with this but just getting them to
I would like to animate movement on a SurfaceView . Ideally I would like
I have a route like following, ideally I would like it to match: domain.com/layout/1-slug-is-the-name-of-the-page
and it's linked to a 'confirm comment deleted page. Ideally I would like it
I am receiving this XML file which I would like to validate. Ideally I
I have an IEnumerable<KeyValuePair<string,string>> , from which I would like, ideally, an anonymous object
I'm writing a Python+Qt4 application that would ideally need to pop up a window

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.