microsoft / microsoft/WPF-Samples

Changing content of Window after clicing the button

Open
#430 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
5.7k
Forks
3.3k
Avg merge
12d 8h
Merged PRs (30d)
2

Description

Hi,

I am creating GUI in PowerShell so please give me an naswer in PowerShell language or powershellis-understand language.
I have GUI like below.
image
and The content in red rectangle is not changing. I changed only content of title. So there is no problem.

Below i have Grid which in every cell of a grid i have stackPane with few buttons and label.

I want to create something like menu, where i click the button on the grid.stackpane.button then the grid is REPLACED into other content like below.
image

The main point of that is the word replace,because now i do it by changing visibility, so the element is not perfect positioned.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, sample entry point, or test is provided. Start by locating the Grid and StackPanel button handler described in the issue, then determine how the current content is attached to the window. Done means clicking a grid button replaces the displayed content in the same position instead of relying on visibility changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.