Open MartinZikmund opened 2 years ago
Consider removing this in the next major release:
Also https://github.com/unoplatform/uno/blob/master/src/Uno.Foundation/HResult.cs
I think it should be removed. It's unused, and https://docs.microsoft.com/en-us/uwp/api/windows.foundation.hresult?view=winrt-22621 says:
When programming with .NET, this class is hidden
GitHubBuild Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported. - uno/HResult.cs at master · unoplatform/uno
Represents a Windows Runtime error. .NET When programming with .NET, this type is hidden, and exceptions appear as System.Exception or specific derived exception types. See Remarks.
It might also be a good idea to not expose HtmlImage
publicly
It should be used only by Uno, I think
We should also delete those:
They don't match UWP signature and are not implemented properly
CornerRadius
and CornerRadiusProperty
should be removed from ElevatedView
. See https://github.com/unoplatform/uno/pull/10138#discussion_r996273357
@MartinZikmund I assume these will go into Uno 5 (next major release)? If so, should we have a branch to work on these earlier?
@MartinZikmund I assume these will go into Uno 5 (next major release)? If so, should we have a branch to work on these earlier?
I think that is a good idea, let's make PRs for them targeting this branch - https://github.com/unoplatform/uno/tree/dev/5.0-breaking-changes
GitHubBuild Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported. - GitHub - unoplatform/uno at dev/5.0-breaking-changes
For breaking changes let's use a branch named feature/breaking-changes
instead, the CI is already setup properly.
Great. I renamed the branch Martin created: https://github.com/unoplatform/uno/tree/feature/breaking-changes.
I'm going to start working on some of the changes soon.
GitHubBuild Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported. - GitHub - unoplatform/uno at feature/breaking-changes
High priority vNext
Low priority
EventsBubblingInManagedCode
DPRethrowNativeExceptions
feature configurationDefaultsStartingValueFromAnimatedValue
NavigatingCancelEventArgs
ctor should not be publicComboBox.OnIsDropDownOpenChanged
should probably beprivate protected
(verify)ItemsControl.OnItemsChanged
should have aIVectorChangedEventArgs
parameter (and maybe not be protected, but rather private protected [verify this])PageStackEntry.SourcePageType
setter should not be publicFrame.BackStack
setter should not be publicWindowActivatedEventArgs.WindowActivationState
has wrong type in Uno.WinUIPropertyPath
sealed (expected by the VS designer)UseLegacyHitTest
FlyoutBase.Close()
should be removed. Users should use the publicHide()
instead.FrameworkPropertyMetadata.DefaultUpdateSourceTrigger
should be internal (or, better the whole FrameworkPropertyMetadata)IMenu
,IMenuPresenter
, andISubMenuOwner
should not be publicAdaptNative
code-path for native element hosting in Android and iOS - causing weird edge cases, and we don't support it officially AFAIK (only explicitly viaContentControl
)Border.ChildProperty
is not public in WinUIDoubleCollection
shouldn't inheritList<T>
. We should use composition instead of inheritance.CompositionSpriteShape.StrokeDashArray
shouldn't have setter (probably not even internal, and its default value should be non-null, and return type shouldn't be annotated as nullable)BypassCheckToCloseKeyboard
and its logic fromWindow.iOS.cs
(we should likely default totrue
behavior to align with other targets)ItemsControlAutomationPeer
andSelectorAutomationPeer
(keep only WinUI ones)CoreWebView2.DocumentTitle
setter should be internal or privateWindowView.ios.cs
Uno.UI.DataBinding.BinderDetails
(https://github.com/unoplatform/uno/pull/16757)Microsoft.UI.Composition.DelegatedInkTrailVisual
TextBox.OnVerticalContentAlignmentChanged
override. Maybe make the baseOnVerticalContentAlignmentChanged
private protected instead of protected.UseSystemFocusVisuals
should be on UIElement. But on UWP tree, it should be onControl
.IgnoreINPCSameReferences
clr-namespace:
can work in WinUI under any scenario. If not, we should remove support for it.Setter<T>
NSObjectExtensions.ValidateDispose
MaterializableList<T>
should be internal?ms-resource:///
conversion of XAML relative Uris parsing for non-framework types (RewriteUri in XamlFileGenerator)RadioMenuFlyoutItem
(and undo workaround in UWP SyncGenerator)Window
on Uno.WinUI (part of unoplatform/uno#5286)EnableExperimentalKeyboardFocus
flag on Android (after Android TV PR is merged)IsStatusBarTranslucent
inWindow.Android.cs
can be removedUno.Foundation
VectorExtensions.cs
TimePickerFlyoutPresenter
should derive fromControl
not fromFlyoutPresenter
Microsoft.Windows.ApplicationModel.Resources
should not be in Uno.UI - either Uno.UWP or in a separate assembly altogether (MRT Core is now a isolated component of WinAppSDK)In Progress (has open PR against the
feature/breaking-changes
branch)Merged to
feature/breaking-changes
(these are in Uno 5)ElevatedView
'sCornerRadius
property is already declared in baseControl
- it should be enough to observe its changes (#11162)CreationCollisionOptions
values are not aligned with WinRT (https://github.com/unoplatform/uno/discussions/10630) (https://github.com/unoplatform/uno/pull/11169)HResult
type should not be available in C# (https://github.com/unoplatform/uno/pull/11167)Control.GetImplementedRoutedEvents
method should be removed (https://github.com/unoplatform/uno/pull/11165)Deferral.Close
should not be available in C# (according to docs) (https://github.com/unoplatform/uno/pull/11163)IClosable
should not be available in C# (https://github.com/unoplatform/uno/pull/11163)Uno.Client.ICommandExtensions
should most likely not be public (https://github.com/unoplatform/uno/pull/11194)JavaObjectExtensions
should most likely not be public (https://github.com/unoplatform/uno/pull/11196)Uno.Extensions.UriExtensions
should most likely not be public (https://github.com/unoplatform/uno/pull/11193)FontFamilyHelper.RemoveUri
andRemoveHashFamilyName
should not be public (https://github.com/unoplatform/uno/pull/11195)PersonPicture
to MUX namespace unoplatform/uno#10701 (#11343)ICoreWindowEvents
should not bepublic
(#11339)RegisterDefaultStyleXYZ
methods inStyle
internal (#11345)args
parameter (it is ignored anyway) (https://github.com/unoplatform/uno/blob/45c85c08ca4e52dbc62fb11feb19b26996e15bbb/src/Uno.UI.Runtime.Skia.Linux.FrameBuffer/FramebufferHost.cs#L38-L41 https://github.com/unoplatform/uno/blob/45c85c08ca4e52dbc62fb11feb19b26996e15bbb/src/Uno.UI.Runtime.Skia.Gtk/GtkHost.cs#L76-L79) (#11351)OnVerticalOffsetChanged
andOnHorizontalOffsetChanged
should not be public inPopup
(https://github.com/unoplatform/uno/pull/11355)FrameworkElement
constructor should beprotected
(https://github.com/unoplatform/uno/pull/11354)GetScreenSize
method inViewHelper.iOSmacOS.cs
- rename toGetMainWindowSize
and make internal (or remove altogether, as we will have multi-window support) (#11353)Canvas.Get/Set{Direction}
methods withDependencyObject
parameters should not bepublic
(or should be removed completely) (#11340)WpfTextViewTextBox
internal and move it toWpf
instead ofWPF
namespace (was taken for 4.8 - https://github.com/unoplatform/uno/pull/10935)Uno.UI.Web.WebErrorStatus
should not exist and all references should useWindows.Web.WebErrorStatus
instead. (https://github.com/unoplatform/uno/pull/12130)WebView
Task<string> InvokeScriptAsync
method should be removed,IAsyncOperation<string>
version should be kept. unoplatform/uno#12132RadialGradientBrush
(and undo workaround in UWP SyncGenerator) (https://github.com/unoplatform/uno/pull/7170) (https://github.com/unoplatform/uno/pull/12142)SetContentOffset
andSetZoomScale
inIUIScrollView
can be removed and their implementations as well (https://github.com/unoplatform/uno/pull/12134)Uno.UI.IndexPath
should most likely not be public (https://github.com/unoplatform/uno/pull/12133)Uno.UI.IResourcesService
should most likely not be public (https://github.com/unoplatform/uno/pull/12133)Uno.UI.Common.DelegateCommand
should most likely not be public (https://github.com/unoplatform/uno/pull/12133)Windows.Foundation.SizeConverter
might not need to be public? (https://github.com/unoplatform/uno/pull/12133)ControlsResourcesVersion
enum to Uno.UI (https://github.com/unoplatform/uno/pull/12175)Timeline
should be exposeIDisposable
(https://github.com/CommunityToolkit/Labs-Windows/pull/275) (#12201)AnimatedVisualPlayer
andIAnimatedVisualSource
and related classes should live in the MUX namespaces, not WUX (see https://github.com/unoplatform/uno/pull/11746/commits/8742fb994d5ea44d7767183b0be7283b5a1e9ea6 - these had to be removed from theGenerated
sources, because otherwise they would be used instead of the actual current implementations in the WUX namespace) (https://github.com/unoplatform/uno/pull/12111)CreateTheamableFromLottieAsset
name is incorrect (https://github.com/unoplatform/uno/pull/12111)IDisposable
from MediaPlayerElement.cs (https://github.com/unoplatform/uno/pull/12274)Windows.UI.Xaml.ResourceHelper
internal (https://github.com/unoplatform/uno/pull/12197)Name
property should not be onUIElement
for Skia and WASM (move toFrameworkElement
remove duplicatedNameProperty
) (#12248)MUX
version ofPersonPicture
andAnimatedVisualPlayer
(https://github.com/unoplatform/uno/pull/12293)MenuBar
andMenuBarItem
andMenuBarFlyoutItem
implementation from WUX namespace to MUX namespace and add warning for unsupported WUX version (https://github.com/unoplatform/uno/pull/12113)SwipeControl
andSwipeItem
andSwipeItemInvokedEventArgs
andSwipeMode
andSwipeItems
andSwipeBehaviorOnInvoked
implementation from WUX namespace to MUX namespace and add warning for unsupported WUX version (#12112)For which Platform:
All