Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListBox ItemSource does not render correctly in XAML #16

Open
DataTraveler1 opened this issue Dec 11, 2022 · 0 comments
Open

ListBox ItemSource does not render correctly in XAML #16

DataTraveler1 opened this issue Dec 11, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@DataTraveler1
Copy link

Describe the bug

Adding a ListBox to a standard XAML project results in breakage

To Reproduce

  1. Following the documentation here, create a XAML interface with VS2022
  2. Ensure that the project works by testing it
  3. Add a ListBox control
  4. Try to launch the project again and observe the new error

Expected behavior

The Listbox should render as expected without the need of a workaround

Workaround

  1. Remove certain parts of the XAML after adding the ListBox
  2. Add the items manually immediately before the ShowWindow is invoked (see the animated gifs further below)

Screenshots

below animation shows how to recreate the problem

1805_problem

below animation shows a workaround

1805_workaround

Version

Windows 10
PowerShell Pro Tool 11.1
VS2022

@DataTraveler1 DataTraveler1 added the bug Something isn't working label Dec 11, 2022
@adamdriscoll adamdriscoll transferred this issue from ironmansoftware/powershell-universal Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant