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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:28:03+00:00 2026-06-08T18:28:03+00:00

I am newbie in WPF and C#, but I started to develope a WPF

  • 0

I am newbie in WPF and C#, but I started to develope a WPF NavigationWindow application. I want it to be chromeless window with custom maximize/minimize controls. But when I set events for my buttons, they don’t affect the window.

Here’s my XAML:

<NavigationWindow x:Class="app.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="app title" Height="600" Width="800" MinHeight="600" MinWidth="800" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Icon="appIcon.ico" Source="starting.xaml">
</NavigationWindow>

here is my click event for the button:

private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            MainWindow window = new MainWindow();
            window.WindowState = WindowState.Minimized;
        }

Forgive me, if I am duplicating question, and also keep in mind, that I am new in this kind of programming 🙂 so help, please

  • 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-08T18:28:04+00:00Added an answer on June 8, 2026 at 6:28 pm

    Don’t make a new window, try using the one you are using.

    Try this:

    // MainWindow window = new MainWindow();
    this.WindowState = WindowState.Minimized;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a newbie in WPF applications. I want to create a application that displays
When adding new controls to a WPF Window (or other custom control), such as
I'm a newbie to WPF and I'm developing a brand new windows desktop application
i'm using sharpdevelop to program WPF application(I'm newbie to WPF i've knowledge of VB
I'm a XAML/WPF newbie, and I thought I'd write an alarm clock application to
I'm an experienced C# developer but a WPF newbie. Basic question (I think) that
I am building a WPF application and while im not a newbie, I am
I have a newbie WPF question. Imagine my user control has a namespace declaration
I'm a newbie in WPF and I would like to ask if it's possible
I am a complete newbie to WPF and MVVM so I apologise in advance

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.