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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:51:49+00:00 2026-05-21T12:51:49+00:00

A novice question about WPF. I’m just at the beginning of a draft project.

  • 0

A novice question about WPF.

I’m just at the beginning of a draft project.
I have define a really simple window testWindow1.xaml, located in the solution subfolder Tests.

In App.xaml I cannot do:

StartupUri="testWindow1.xaml"

(unless I move the testWindow1.xaml back to the root of the project)

I have also tried defining my namespace into the App.xaml tag, but without success, this wont work either.

<Application x:Class="MyProject.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:myprojectNS="clr-namespace:MyProject"
             StartupUri="myprojectNS.tests.testWindow1.xaml">

At run time, the exception message complains about not finding the ressource *testWindow1.xaml

  • 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-21T12:51:50+00:00Added an answer on May 21, 2026 at 12:51 pm

    Try this –

    <Application x:Class="MyProject.App"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:myprojectNS="clr-namespace:MyProject"
                 StartupUri="tests\testWindow1.xaml">
    

    You just need to specify the hierarchy.

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

Sidebar

Related Questions

This is likely a novice question about LINQ, but assuming I have a set
I have a quick question about the dealloc() and viewDidUnload() methods. I notice a
I have a very novice question, so apologies if the answer to this is
This is a really novice question, but I don't write C unless (err, if)
I am a novice to spring dm so pardon my simple question. I downloaded
Simple (probably stupid) question. I'm a Powershell novice and am mainly using it to
I am sorry about how simple this question might be, but I cannot find
Hello guys I have a specific question about the AND clause in SQL. The
I have a simple question. I have to create objects which extend DataObject, but
I have a strange question about Linq. I have this query: var results =

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.