Unexpected false Result When Using ApiInformation
IsTypePresent with Custom Types
#10098
Labels
area-CoreFramework
Issues on fundamental components like UIElement, visibility, etc.
bug
Something isn't working
Describe the bug
When invoking
ApiInformation.IsTypePresent
on a custom type, it unexpectedly returnsfalse
, which seems like incorrect behavior. This issue occurs despite the type being defined and accessible within the application. For example, the method correctly identifies built-in types likeButton
, but it fails with custom types such asMainPage
.This suggests that
ApiInformation.IsTypePresent
may not be functioning as expected when handling custom types.Steps to reproduce the bug
Add a custom type:
MainPage
Use
ApiInformation.IsTypePresent
to check for types:MainPage
or another part of the project, callApiInformation.IsTypePresent
to check for both a built-in and a custom type.Run the project:
ApiInformation.IsTypePresent
returnstrue
for built-in types likeButton
, but returnsfalse
for the customMainPage
typeExpected behavior
Both built-in and custom types should return
true
when passed toApiInformation.IsTypePresent
.Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002
Windows version
Windows Insider Build (xxxxx)
Additional context
No response
The text was updated successfully, but these errors were encountered: