Hard to use DispatcherQueue/Timer in Labs project
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Kiểm tra common/GlobalUsings_WinUI.cs và so sánh các namespace được sử dụng trong tệp Stacked Notifications Behavior được liên kết. Xác minh rằng một thử nghiệm Labs có thể tham chiếu DispatcherQueue và Timer mà không cần các khai báo namespace bổ sung, sau đó xác nhận rằng việc sử dụng cả UWP và WinAppSDK/WinUI 3 đều build thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
These are in two different namespaces Windows.System for UWP and Microsoft.UI.Dispatching` for WinAppSDK.
We currently don't include these in our global using in https://github.com/CommunityToolkit/Labs-Windows/blob/main/common/GlobalUsings_WinUI.cs
This means it's not easy to just reference DispatcherQueue directly in a Labs experiment, which is probably going to be pretty common.
We should add these namespaces to the global usings and make sure they're easy to use.
I did the same in the Stacked Notifications Behavior here:
Which Rive needed as well.
I'm not as sure why I couldn't just include the root namespace for the DispatcherQueue or if that was just an oversight here when initially diagnosing the issue.
Steps to reproduce
Try and use a DispatcherQueue in an exeperiment
Expected behavior
Shouldn't need to include extra namespaces
Screenshots
No response
Code Platform
- UWP
- WinAppSDK / WinUI 3
- Web Assembly (WASM)
- Android
- iOS
- MacOS
- Linux / GTK
Windows Build Number
- Windows 10 1809 (Build 17763)
- Windows 10 1903 (Build 18362)
- Windows 10 1909 (Build 18363)
- Windows 10 2004 (Build 19041)
- Windows 10 20H2 (Build 19042)
- Windows 10 21H1 (Build 19043)
- Windows 11 21H2 (Build 22000)
- Other (specify)
Other Windows Build number
No response
App minimum and target SDK version
- Windows 10, version 1809 (Build 17763)
- Windows 10, version 1903 (Build 18362)
- Windows 10, version 1909 (Build 18363)
- Windows 10, version 2004 (Build 19041)
- Other (specify)
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
Yes, but only if others can assist.
- Ngôn ngữ chính
- C#
- Star
- 57
- Fork
- 20
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommunityToolkit/Tooling-Windows-Submodule
-
Running WASM on All Solution Doesn't work in VSCó thể làm lại được @Arlodotexe đã nhận 245 ngày trước và không có pull request nào đang mở. Đang mởbug :bug: build :fire: regression sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#307 · 2 bình luận · 1 người được giao ·
-
GenerateAllSolution with only wasm target won't buildCó thể làm lại được @Arlodotexe đã nhận 245 ngày trước và không có pull request nào đang mở. Đang mởbug :bug: build :fire: sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#306 · 1 bình luận · 1 người được giao ·
-
bug :bug:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
-
Add basic usage docs for Build-Toolkit-Docs.ps1 scriptCó thể làm lại được @Arlodotexe đã nhận 597 ngày trước và không có pull request nào đang mở. Đang mởdocumentation :page_with_curl: low difficulty powershell
CommunityToolkit/Tooling-Windows-Submodule#282 · 1 người được giao ·
-
bug :bug: regression testing 🏗
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của CommunityToolkit/Tooling-Windows-Submodule
Issue tương tự
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itĐang mởarea: core bug help wanted ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ZaidX88/sluice#265 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: remote bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Install a C# EnvironmentĐang mở📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
CodeYourFuture/Module-Tools#712 ·
-
A: Mapping P3: Standard T: New Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
space-wizards/space-station-14#46878 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 60/100
CommunityToolkit/Windows#896 · 2 bình luận ·