From 60d016f3316c3a79334080e611c4313d3e6308cb Mon Sep 17 00:00:00 2001 From: "manfredi.marceca" Date: Sun, 10 Nov 2024 16:10:28 +0100 Subject: [PATCH 1/2] Update comparison with WPF and UWP --- ...comparison-of-avalonia-with-wpf-and-uwp.md | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/docs/get-started/wpf/comparison-of-avalonia-with-wpf-and-uwp.md b/docs/get-started/wpf/comparison-of-avalonia-with-wpf-and-uwp.md index 949be0bbf..33d1b637a 100644 --- a/docs/get-started/wpf/comparison-of-avalonia-with-wpf-and-uwp.md +++ b/docs/get-started/wpf/comparison-of-avalonia-with-wpf-and-uwp.md @@ -87,54 +87,56 @@ This section describes the differences in controls in vanilla WPF and UWP (with | ✖ | ✖ | AppBarToggleButton | | | AutoCompleteBox | ✖ | AutoSuggestBox | AutoCompleteBox doesn't support query events | | Border | Border | Border | | -| BulletDecorator | ✖ | | | +| BulletDecorator | BulletDecorator | ✖ | | | Button | Button | Button | | | CalendarDatePicker | DatePicker | CalendarDatePicker | UWP DatePicker is different from WPF DatePicker. The WPF DatePicker is closer to the UWP CalendarDatePicker in functionality. | | Calendar | Calendar | CalendarView | | | Canvas | Canvas | Canvas | | | ✖ | ✖ | CaptureElement | | | CheckBox | CheckBox | CheckBox | | -| ✖ | ✖ | ColorPicker | | +| ColorPicker | ✖ | ColorPicker | | | ComboBox | ComboBox | ComboBox | | | ✖ | ToolBar | CommandBar | | | ✖ | ✖ | CommandBarFlyout | First introduced in the Windows UI Library | -| ContentControl | ✖ | ContentControl | | +| ContentControl | ContentControl | ContentControl | | | ContentPresenter | ✖ | ContentPresenter | | | DataGrid | DataGrid | ✖ | Available for UWP in the Windows Community Toolkit (albeit with many bugs) | | DatePicker | ✖ | DatePicker | A picker to select a date without a calendar view does not exist in WPF. | | DatePickerFlyout | ✖ | DatePickerFlyout | | | DockPanel | DockPanel | ✖ | Available for UWP in the Windows Community Toolkit | | ✖ | DocumentViewer | ✖ | | -| ✖ | ✖ | DropDownButton | First introduced in the Windows UI Library | +| DropDownButton | ✖ | DropDownButton | First introduced in the Windows UI Library | | Expander | Expander | ✖ | Available for UWP in the Windows Community Toolkit | | Carousel | ✖ | FlipView | | | ✖ | FlowDocumentPageViewer | ✖ | | | ✖ | FlowDocumentReader | ✖ | | | ✖ | FlowDocumentScrollViewer | ✖ | | -| ✖ | ✖ | Flyout | | +| Flyout | ✖ | Flyout | | | ✖ | Frame | Frame | | | Grid | Grid | Grid | | | GridSplitter | GridSplitter | ✖ | Available for UWP in the Windows Community Toolkit | -| ✖ | ✖ | GridView | | +| ✖ | GridView | GridView | | | ✖ | GroupBox | ✖ | | | ✖ | ✖ | Hub | | | ✖ | ✖ | HubSection | | -| ✖ | ✖ | HyperlinkButton | | +| HyperlinkButton | ✖ | HyperlinkButton | | | Image | Image | Image | | -| ✖ | InkCanvas | | | -| ✖ | InkToolbar | | | -| ItemsControl | ✖ | ItemsControl | | -| ItemsPresenter | ✖ | ItemsPresenter | | +| ✖ | InkCanvas | InkCanvas | | +| ✖ | ✖ | InkToolbar | | +| ItemsControl | ItemsControl | ItemsControl | | +| ItemsPresenter | ItemsPresenter | ItemsPresenter | | | ItemsRepeater | ✖ | ItemsRepeater | First introduced in the Windows UI Library | | Label | Label | ✖ | For compatiblity with Windows Forms | | ListBox | ListBox | ListBox | | | ✖ | ListView | ListView | | | ✖ | ✖ | MapControl | | +| MaskedTextBox | ✖ | ✖ | Available for UWP via TextBoxExtensions in the Windows Community Toolkit | | ✖ | ✖ | MediaElement | | | ✖ | ✖ | MediaTransportControls | | | Menu | Menu | MenuBar | First introduced in the Windows Community Toolkit then Windows UI Library | | ContextMenu | ContextMenu | MenuFlyout | | | ✖ | ✖ | NavigationView | | +| NumericUpDown | Panel | NumberBox | NumberBox is available in WinUI 2 / 3 | | Panel | Panel | ✖ | | | ✖ | ✖ | ParallaxView | | | TextBox (PasswordChar) | PasswordBox | PasswordBox | | @@ -145,7 +147,7 @@ This section describes the differences in controls in vanilla WPF and UWP (with | ✖ | PrintDialog | ✖ | | | ProgressBar | ProgressBar | ProgressBar | | | ✖ | ✖ | ProgressRing | | -| ✖ | ✖ | PullToRefresh | | +| RefreshContainer | ✖ | PullToRefresh | | | RadioButton | RadioButton | RadioButton | | | ✖ | ✖ | RatingControl | | | Rectangle | Rectangle | Rectangle | | @@ -156,13 +158,14 @@ This section describes the differences in controls in vanilla WPF and UWP (with | ✖ | ✖ | RichTextBlock | | | ✖ | ✖ | RichTextBlockOverflow | | | ScrollBar | ScrollBar | ScrollBar | | -| ScrollContentPresenter | ✖ | ScrollContentPresenter | | +| ScrollContentPresenter | ScrollContentPresenter | ScrollContentPresenter | | | ScrollViewer | ScrollViewer | ScrollViewer | | +| SelectableTextBlock | ✖ | ✖ | UWP TextBlock has a TextSelectionEnabled property | | ✖ | ✖ | SemanticZoom | | -| Separator | Separator | ✖ | | +| Separator | Separator | MenuFlyoutSeparator | | | Slider | Slider | Slider | | -| ✖ | ✖ | SplitButton | First introduced in the Windows UI Library | -| SplitView | SplitView | | | +| SplitButton | ✖ | SplitButton | First introduced in the Windows UI Library | +| SplitView | ✖ | SplitView | | | StackPanel | StackPanel | StackPanel | | | ✖ | StatusBar | ✖ | No longer a UI convention | | ✖ | ✖ | SwipeControl | First introduced in the Windows UI Library | @@ -173,12 +176,13 @@ This section describes the differences in controls in vanilla WPF and UWP (with | TimePicker | ✖ | TimePicker | | | TimePickerFlyout | ✖ | TimePickerFlyout | | | ToggleButton | ToggleButton | ToggleButton | | -| ✖ | ✖ | ToggleSplitButton | First introduced in the Windows UI Library | +| ToggleSplitButton | ✖ | ToggleSplitButton | First introduced in the Windows UI Library | | ToggleSwitch | ✖ | ToggleSwitch | | | ToolTip | ToolTip | ToolTip | | | TreeView | TreeView | TreeView | | | ✖ | ✖ | TwoPaneView | First introduced in the Windows UI Library | | ✖ | ✖ | VariableSizedWrapGrid | | +| UniformGrid | UniformGrid | ✖ | Available for UWP in the Windows Community Toolkit | | Viewbox | Viewbox | Viewbox | | | ✖ | ✖ | WebView | | | WrapPanel | WrapPanel | ✖ | Available for UWP in the Windows Community Toolkit | From 8f6b3223430fffc110537fdf3dc063baa5eb1bf2 Mon Sep 17 00:00:00 2001 From: Manfredi Marceca <45036600+manfromarce@users.noreply.github.com> Date: Sun, 10 Nov 2024 16:21:15 +0100 Subject: [PATCH 2/2] Update comparison-of-avalonia-with-wpf-and-uwp.md --- .../wpf/comparison-of-avalonia-with-wpf-and-uwp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/get-started/wpf/comparison-of-avalonia-with-wpf-and-uwp.md b/docs/get-started/wpf/comparison-of-avalonia-with-wpf-and-uwp.md index 33d1b637a..3166e5296 100644 --- a/docs/get-started/wpf/comparison-of-avalonia-with-wpf-and-uwp.md +++ b/docs/get-started/wpf/comparison-of-avalonia-with-wpf-and-uwp.md @@ -160,7 +160,7 @@ This section describes the differences in controls in vanilla WPF and UWP (with | ScrollBar | ScrollBar | ScrollBar | | | ScrollContentPresenter | ScrollContentPresenter | ScrollContentPresenter | | | ScrollViewer | ScrollViewer | ScrollViewer | | -| SelectableTextBlock | ✖ | ✖ | UWP TextBlock has a TextSelectionEnabled property | +| SelectableTextBlock | ✖ | ✖ | UWP TextBlock has a IsTextSelectionEnabled property | | ✖ | ✖ | SemanticZoom | | | Separator | Separator | MenuFlyoutSeparator | | | Slider | Slider | Slider | | @@ -200,4 +200,4 @@ This section describes the differences in controls in vanilla WPF and UWP (with * For advanced rendering, UWP has fewer features built in. This requires falling back to Win2D or composition more often. * There are several namespaces differences in UWP and WPF. For example, WPF has System.Windows.Media.Colors while UWP moves this to Windows.UI.Colors. - \ No newline at end of file +