Skip to content

PI use Application.Current.GetService<Window>().DispatcherQueue #3120

Not planned
@zadesai

Description

@zadesai

Dev Home version

No response

Windows build number

No response

Other software

No response

Steps to reproduce the bug

krschau yesterday
This is going to be null when not running on the UI thread (which this isn't guaranteed to be doing). Use
var dispatcherQueue = Application.Current.GetService();
or
var dispatcherQueue = Application.Current.GetService().DispatcherQueue;
like here #2934
(I'm not actually sure if one is preferred... @nieubank?)

Expected result

No response

Actual result

Included System Information

No response

Included Extensions Information

No response

Activity

added
Issue-BugSomething isn't working or needs investigation
Area-DDRelated to Dev Diagnostics🔍
on Jun 4, 2024
added this to the Dev Home 0.15 milestone on Jun 4, 2024
self-assigned this
on Jun 4, 2024
github-actions

github-actions commented on Jun 4, 2024

@github-actions

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

removed
Needs-TriageNew issue that the core contributors need to triage
on Jun 5, 2024
removed this from the Dev Home 0.16 milestone on Jun 24, 2024

3 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area-DDRelated to Dev Diagnostics🔍Issue-BugSomething isn't working or needs investigationPriority-2Resolution-By-DesignThis is intended to be implemented this way

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

    Participants

    @krschau@timkur@zadesai

    Issue actions

      PI use Application.Current.GetService<Window>().DispatcherQueue · Issue #3120 · microsoft/devhome