Repository navigation
More API alignments and do symbol matching in UWPSyncGenerator - #7249
Youssef1313 wants to merge 1 commit into
Conversation
dfb5a5c to
9e921a3
Compare
431ebc9 to
acd614b
Compare
5d8bb39 to
d4b653a
Compare
e51be4d to
8fa01b6
Compare
173adbb to
d8fdda6
Compare
|
@ebariche Would you be able to get to this one soon? |
|
@ebariche @jeromelaban I see api-alignments was recently merged into master (#7390). Do we want to get this PR in too? |
|
Let's see how to merge this in master. |
d8fdda6 to
2964efc
Compare
|
I resolved the conflicts. Let's see if this will pass CI. Please ping me if CI failed and I forgot to check. |
|
I'll investigate. |
|
@jeromelaban I think I found the root cause: Here, in a non-generated file, uno/src/Uno.UI/UI/Xaml/UIElement.cs Lines 946 to 950 in e38b597 However, after I run convert to WinUI tree script, I got: public global::Windows.UI.Core.CoreCursor ProtectedCursor
{
get
{
throw new global::System.NotImplementedException("The member CoreCursor UIElement.ProtectedCursor is not implemented in Uno.");
}
set
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Microsoft.UI.Xaml.UIElement", "CoreCursor UIElement.ProtectedCursor");
}
}So basically code generation is seeing a different return type than what's already exists in source. The weird thing is that Microsoft API reference is saying it's However, there is a document in WinUI repo that mentions I'll skip this property for now.
|
|
Nice work! It's likely that it's a difference between the uap and the net5 targets for some reason. We need to upgrade to a later version of the API set, likely when 1.1 will be released. |
| /// Disables scrolling. | ||
| /// </summary> | ||
| Auto, | ||
| Disabled, |
There was a problem hiding this comment.
Given the order is set to intentionally give the same values as the UWP/WinUI enum with the same name, I'd suggest actually assigning the values to make it explicit. Also might be worth referencing the docs, so that someone doesn't change order - https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.scrollbarvisibility?view=winrt-22621
There was a problem hiding this comment.
@nickrandolph The generator is now supposed to ensure correct values.
All enums should have the same values as Windows, and there are a lot. I think it's not worth adding a comment to every enum if we have an automated solution.
| NoWrap, | ||
| Wrap, | ||
| WrapWholeWords, | ||
| NoWrap = 1, |
There was a problem hiding this comment.
| /// Updates the target property when the binding is created. Changes to the source object can also propagate to the target. | ||
| /// </summary> | ||
| OneWay, | ||
| OneWay = 1, |
There was a problem hiding this comment.
| public TimeSpan Duration; | ||
|
|
||
| public RepeatBehaviorType Type { get; set; } | ||
| public RepeatBehaviorType Type; |
| OpenIfExists, | ||
| ReplaceExisting, | ||
| GenerateUniqueName, | ||
| ReplaceExisting, |
There was a problem hiding this comment.
Should these have specified values and link to docs (https://docs.microsoft.com/en-us/uwp/api/windows.storage.creationcollisionoption?view=winrt-22621)
|
This PR will create breaking changes, let's add it to the rollup issue. |
bcbd368 to
e237787
Compare
7603eb4 to
f799504
Compare
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
fbe92e0 to
c4968a5
Compare
d5fe12a to
d5f223d
Compare
3ff58a5 to
7db3d11
Compare
7db3d11 to
def04e5
Compare
|
superseded by #12261 |


GitHub Issue (If applicable): Part of #2240
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Internal Issue (If applicable):