-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
WinUI 💠Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.XamlIslands 🏝️bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorimprovements ✨
Description
Describe the bug
There are a few instances where we're exposing XamlRoot
and UIContext
in parameters to methods which won't work on our min version of 1809 as those APIs were introduced in 1903. We need to ensure we have a way to call these on 1809 still.
For instance:
- SystemInformation.TrackAppUse:
public void TrackAppUse(IActivatedEventArgs args, XamlRoot xamlRoot = null) |
@azchohfi ideas on how we can encapsulate this better?
- StringExtensions.GetLocalized:
public static string GetViewLocalized(this string resourceKey, UIContext uiContext = null) |
public static string GetLocalized(this string resourceKey, UIContext uiContext = null) |
- ScreenUnitHelper
- Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:
Steps to Reproduce
- Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...)
Steps to reproduce the behavior:
- Given the following environment (Sample App w/ XAML, Project with Isolated setup, etc...)
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Screenshots
Environment
NuGet Package(s):
Package Version(s):
Windows 10 Build Number:
- Fall Creators Update (16299)
- April 2018 Update (17134)
- October 2018 Update (17763)
- May 2019 Update (18362)
- May 2020 Update (19041)
- Insider Build ({build_number})
App min and target version:
- Fall Creators Update (16299)
- April 2018 Update (17134)
- October 2018 Update (17763)
- May 2019 Update (18362)
- May 2020 Update (19041)
- Insider Build ({build_number})
Device form factor:
- Desktop
- Xbox
- Surface Hub
- IoT
Visual Studio version:
- 2017 (15.{minor_version})
- 2019 (16.{minor_version})
- 2022 (17.{minor_version})
Additional context
Metadata
Metadata
Assignees
Labels
WinUI 💠Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.XamlIslands 🏝️bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorimprovements ✨