Граф коммитов

1063 Коммитов

Автор SHA1 Сообщение Дата
Sevo Kukol 327e01eb0b Use JsonSerializer instead of insecure BinaryFormatter in TransferDataSource. 2023-02-16 16:47:25 +01:00
Marius Ungureanu 1e9c22c692 Bump platform implementations to net472 2020-01-31 20:34:05 +02:00
Vsevolod Kukol 7fc63d2579 [WPF] track new API 2019-12-18 06:34:56 +01:00
Sergey Shakhnazarov 3f99753179 [A11Y][WPF] Avoid false-positive SPI_GETSCREENREADER
SPI_GETSCREENREADER sometimes returns true when Narrator is Off
ListenerExists checks should be sufficient - tested on Windows 10 1903 and Windows 7 7601 SP 1 with system narrator, NVDA and JAWS (on Win 10).
Related issue: https://github.com/microsoft/vscode/issues/27893
2019-11-08 12:46:01 +03:00
Dima 3fac93df0b Remove redundant brackets 2019-10-24 11:54:45 +03:00
Sergey Shakhnazarov b360dfa448 Revert whitespace changes 2019-10-24 11:26:24 +03:00
Dmitry K bb0bf70f99 Use TextBlock's ToolTip if the Widget is WpfLabel.
Tooltip plays a role in accessibility, so we should make sure we use
the tooltip for a focusable element.
https://referencesource.microsoft.com/#PresentationFramework/src/Framework/System/windows/Automation/Peers/FrameworkElementAutomationPeer.cs,65
2019-10-24 11:15:47 +03:00
Dima bb96a8e714 [WPF] Fix Xwt.Label accessibility
Wpf's LabelBackend uses custom WpfLabel, which sets TextBlock as
a Label's Content, and also redirects the focus to that element. Hence
we should use WpfLabel.TextBlock as an a11y target in AccessibleBackend.
2019-10-24 10:33:37 +03:00
Bret Johnson 9af7bb45b4 [VS] Support a11y info for popup menus, delay set
On WPF, XWT popup menus (ContentMenu objects) are created on demand
when first displayed. So we need to delay setting the a11y properties until
the menu is created.

Popup menus are similar to Popovers in this way, as they also delay setting
the a11y info until display time.
2019-10-22 03:21:44 -04:00
Sergey Shakhnazarov 0893ad38d8 [WPF][XamMac][GtkMac] A11y helper
* Allows to check whether accessibility means are in use (Narrator/3rd party tools on Windows, VoiceOver on macOS)
* Adds Accessible.MakeAnnouncement (string message, bool polite = false) method for making a custom announcement for user per request (uses LiveRegion on Windows and NSAccessibility.PostNotification on macOS)

WPF version requires target framework version .NET 4.7.2
2019-10-11 15:40:08 +03:00
Vsevolod Kukol 974f6bd564
Merge pull request #960 from mono/master-vsts937839
Added support for mac font weights that range from 0-15.
2019-10-01 09:45:04 +02:00
Vsevolod Kukol fd52801dd4 Fix build with .NET Core 3.0
Remove the NoBuild as proposed in https://github.com/dotnet/sdk/issues/3001
2019-09-30 08:22:44 +02:00
Vsevolod Kukol 184d7b7ac5
Merge pull request #954 from mono/wpf-sdk-project
Change Xwt and Xwt.WPF project types to multi-targeted SDK
2019-09-26 10:22:38 +02:00
Vsevolod Kukol 44369a21f3
Merge pull request #959 from mcumming/dev/mcumming/960388_EnableFormattedTextInButtonMenus
[WPF][XamMac][GtkMac] Enable formatted text in Buttons
2019-08-27 13:25:30 +02:00
Marius Ungureanu 476740c22e Fix formatting 2019-08-20 23:53:22 +03:00
Michael Cummings 1add697852 Added formatting samples
Fixed formatting in menu drop down
Added proper dispose handling for menu and button when formatted text
2019-08-20 09:46:00 -04:00
Michael Cummings bf391688df Update WPFBackend for changes 2019-08-12 09:38:21 -04:00
Michael Cummings a3a298263a Leverage SetContent from SetFormattedText before setting formatted text. 2019-08-09 11:28:28 -04:00
Michael Cummings 2102683398 Add XamMac and Gtk backends 2019-08-09 11:28:28 -04:00
Michael Cummings 6db4035791 Change Label property to handle formatting in backend controls. 2019-08-09 11:28:28 -04:00
dkandrov 7de3660cf4 [Windows] Add support of Title for AlertDialogBackend on Windows
The result of working WPF backend was wrong and looked bad. I added more
methods with parameter Title for MessageDialog and implemented using of
it for WPF backend.
Also, I added the setting Title by using parent window info for WPF
backend.
2019-08-06 22:40:17 +07:00
Mike Krüger 25e59ed2e9 Added support for mac font weights that range from 0-15. 2019-08-06 14:16:26 +02:00
Vsevolod Kukol fb26abea84 Fix build with MonoDevelop 2019-07-29 09:10:24 +02:00
Vsevolod Kukol 518e023226 [Wpf] Move package metadata to project file 2019-07-26 17:01:01 +02:00
Vsevolod Kukol cb772929fd Change Xwt.WPF project type to multi-targeted SDK
This will allow us to conditionally add .NET 4.7 features
without breaking old clients.
2019-07-26 17:00:42 +02:00
Vinicius Jarina 1576f3328a [WPF] Removed Margin, Borderds if the Popover.Padding == 0. 2019-05-14 16:19:29 -07:00
Vsevolod Kukol fc5d6435f9
Merge pull request #917 from DmitriyKirakosyan/rt-textcolor
Add TextColor support to RichTextView component.
2019-02-11 15:00:45 +01:00
Vsevolod Kukol 9338fb5cf0
Merge pull request #901 from DmitriyKirakosyan/treeview-automationpeer
[a11y][WPF] AutomationPeer customization support for TreeView and ListView
2019-02-11 15:00:14 +01:00
Dmitry K ef669554af [a11y][WPF] Add AutomationPeer customization support for TreeView and ListView 2019-02-05 03:14:28 +03:00
Dmitry K 96a6fda107 [WPF] Add TextColor property to RichTextView 2019-01-29 16:10:16 -08:00
Dmitriy Kirakosyan 62ee83e6f3 [Mac][Gtk] Add TextColor property to RichTextView 2019-01-30 02:18:07 +03:00
Vsevolod Kukol bc0596f97b [Gtk][Wpf] Add target widget backend check to menu backends 2019-01-24 18:43:52 +01:00
Vsevolod Kukol 1cacb5ddf0
Merge pull request #897 from DmitriyKirakosyan/cellview-a11y
[a11y][WPF][Mac] Add Accessibility API to CellView
2019-01-17 09:25:17 +01:00
Vinicius Jarina e2e3ee1832 [WPF] Added penel to button chrome factory.
* This will fix an issue using Buttons and menuButtons with WPF backend were being layout incorrectly.
2019-01-11 12:04:50 -05:00
Vsevolod Kukol cafb671196
Merge pull request #840 from imerr/master
[WPF] Only take border size into account when decorated
2018-12-12 16:55:58 +01:00
Dmitriy Kirakosyan 169799cbb6 Revert ExTreeViewItem 2018-12-06 17:03:00 +03:00
Dmitriy K 3ce21aed33 [a11y] Add Accessibility API to CellView 2018-12-02 19:03:48 +03:00
Jérémie Laval 4e88083ff3
Merge pull request #864 from DmitriyKirakosyan/a11y/menu_cell_name
[a11y] Add accessible API for Menu and MenuItem
2018-11-13 10:54:12 -05:00
Jérémie Laval 8edd1a58e4
Merge pull request #872 from daserge/wpf-treeview-shift-tab-crash
[WPF] Fixes a crash for ArrowUp into treeview without selected row
2018-11-13 08:08:28 -05:00
Jérémie Laval 2a8c964241
Merge pull request #874 from daserge/wpf-treeview-range-selection
[WPF] Fixed the crash for TreeView range selection when no items were…
2018-11-13 08:07:03 -05:00
Sergey Shakhnazarov 51abe73670 [WPF] Proxy Label SetFocus call to the underlying TextBlock so that i… (#868)
* [WPF] Proxy Label SetFocus call to the underlying TextBlock so that it works
2018-11-09 13:30:56 -05:00
Vsevolod Kukol da9578b8a7
Merge pull request #863 from daserge/scrollview-keyb-focus-style-a11y
[WPF] Indicate ScrollView keyboard focus
2018-11-09 13:29:24 -05:00
Sergey Shakhnazarov c3c79bb36e Code style 2018-11-09 11:42:24 +03:00
Sergey Shakhnazarov 2f37e2ecfd [WPF] Fixed the crash for TreeView range selection when no items were selected initially 2018-11-09 11:18:42 +03:00
Sergey Shakhnazarov e656bc1358 Addressed CR notes 2018-11-08 11:45:54 +03:00
Sergey Shakhnazarov eaa7cd7bbc [WPF] Fixes a crash for Shift-Tab into treeview without selected row
Added fixes for empty tree case & keyboard navigation
2018-11-07 17:42:23 +03:00
Dmitry K 59c3c0be25 [a11y] Add menu item Accessible API. Fix samples. 2018-11-07 16:39:50 +03:00
Vsevolod Kukol 2577979561
Merge pull request #865 from daserge/wpf-widget-focus
[WPF] Set focus to element on UI thread because sometimes the elemen…
2018-10-30 11:16:49 +01:00
Vsevolod Kukol 5a24409f8d
Merge pull request #866 from daserge/wpf-label-keyboard-focus
[WPF] Label keyboard focus fixes
2018-10-30 11:15:12 +01:00
Sergey Shakhnazarov 9baa9fb283 Used proxy-ing instead of binding 2018-10-24 20:38:16 +03:00