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

982 Коммитов

Автор 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 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
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
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
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
Sergey Shakhnazarov b90ce0bd61 [WPF] Fixed WpfLabel custom peer structure which caused narrator not to announce label value previously
This is needed because Xwt.Label on Windows is a nested element (Label = WpfLabel->Content->TextBlock)
2018-10-24 15:00:35 +03:00
Dmitriy K a93c680c60 Revert "[a11y][WPF] Add accessible name to TreeView row"
This reverts commit 5bb63a4ad3.
2018-10-24 10:44:04 +03:00
Sergey Shakhnazarov 03db46bd92 [WPF] Sync LabelBackend internal label.Focusable with parent native Widget.Focusable property value
So that setting CanGetFocus leads to visible KeyboardFocused state as it should
2018-10-24 10:32:21 +03:00
Sergey Shakhnazarov c5364cb760 [WPF] Set focus to element via UI thread because sometimes the element would not be ready (even though IsLoaded) 2018-10-18 16:47:56 +03:00
Dmitry K 5bb63a4ad3 [a11y][WPF] Add accessible name to TreeView row 2018-10-18 14:17:30 +03:00
Dmitry K 2364dd8903 [a11y] Add accessible API for Menu component 2018-10-18 14:15:20 +03:00
Sergey Shakhnazarov b1f37d184f [WPF] Indicate ScrollView keyboard focus 2018-10-16 13:00:51 +03:00
Sergey Shakhnazarov 51ef1d155d Don't subscribe components other than marked with ForwardsKeyPressesToParent 2018-10-15 14:48:03 +03:00