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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:15:44+00:00 2026-05-20T00:15:44+00:00

In my WPF4 desktop application all windows have the same structure — header &

  • 0

In my WPF4 desktop application all windows have the same structure — header & footer with some main menu and copyright marks; left-side navigation menu and body (center of screen) where I show data, main toolbar etc. Body block is the only block that changes in all windows, e.g. in window with students I show DataGrid with students’ data, in window with new course form user can fill in form and submit it to DB. All this stuff is located in Body section of windows.

In order to improve reusability of the code, I use inheritance of C# code, where I store all basic window functions in GeneralWindow and all other windows extend this class.

My questions:

  1. Can I use the same technique in order to reduce copy of the same code-block in XAML-part of the window? For the moment, each window class has the same blocks of XAML code (e.g. left side menu, header, footer).

  2. How can I reduce code duplication and use the same technique as I used in the case of C#? Is it possible to inheritance XAML-class (.xaml) that I could define all basic stuff in one class and all other will just extend/inherit the design of this class? To increase the code reusability.

  • 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-20T00:15:45+00:00Added an answer on May 20, 2026 at 12:15 am

    You should create one window and put Frame on it. Then dynamically load Pages in Frame.

    See Navigation Overview

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

Sidebar

Related Questions

I have a WPF 4 application running on Windows XP. When I run Snoop,
I'm trying to disassemble some of the DLL of the new WPF4 Beta2 framework.
I have a WPF 4 application where I have implemented Drag and Drop using
Now that there is an official MS DatePicker in WPF4, I was wondering if
Have Microsoft Chart Controls been integrated into .NET 4 release of WPF? I've found
Hey all, I've got a scenario where I want to switch the visiblity of
I have read in many places that WPF combo does not support autocomplete but
Here's the scenario: 1: Our WPF application starts 2: The WPF application loads various
Situation I'm creating a C#/WPF 4 application using a SQL Compact Edition database as
I'm having trouble running a full trust WPF 4 XBAP (browser application), created with

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.