Igor Velikorossov
80db2ecf1e
Re-enable screenshot taking while running tests ( #3544 )
...
Relates to #3056
2020-07-08 18:10:29 +10:00
Igor Velikorossov
b29c4f58dc
Replace UTF7 with UTF8 ( #3543 )
...
Address https://github.com/dotnet/runtime/issues/32284
2020-07-08 17:34:23 +10:00
Jeremy Kuhne
632aa7e96c
Add tests for font measurement ( #3538 )
...
* Move WindowsFontQualityFromTextRenderingHint
* Add some basic tests for font measurement
* Remove WindowsFont.Size
2020-07-08 11:22:14 +10:00
Igor Velikorossov
5f4586df51
Add TaskDialog accessibility sample ( #3537 )
2020-07-08 11:03:23 +10:00
Aleksandr Beliaev
152c8e12b6
Fixing DataGridView's scrollbars shouldn't include their control type in their accessible names ( #3038 )
...
* ScrollBar accessible object class
* Accessible objects for scroll bar child classes
* Added unit tests for new accessible objects
2020-07-08 10:37:15 +10:00
Hugh Bellamy
fd49490709
Fix VARIANT implementation and align with CLR ( #3197 )
2020-07-07 16:17:42 -07:00
Matt Mitchell
6fd4ae643d
Re-categorize runtime dependencies as Product ( #3517 )
2020-07-07 14:43:01 +10:00
Tobias Käs
7f5fd6e30b
Avoid Application.Exit in unit tests ( #3097 )
2020-07-07 12:40:33 +10:00
Jeremy Kuhne
e45b38a61c
Remove most usages of WIndowsGraphicsWrapper ( #3532 )
...
- Refactor DpiHelper a bit, adding new API to avoid DC creation (using new GetDpiForSystem())
- Add PaintEvent HDC wrapper to favor getting the natvie HDC if the Graphics wrapper hasn't been created
- Extend DeviceContextHdcScope to support WindowsGraphicsWrapper migration
- Change HDC property on PaintEventArgs
- Add DrawLine to HDC extensions (from WindowsGraphics)
- Graphics.DpiX is no different than normal device DPI, removed from CheckableControlBaseAdapter.cs
- Remove Graphics from CheckBoxPopupAdapter.PaintPopupLayout
- Add SetBkMode scope
2020-07-07 12:02:56 +10:00
Mikhail Lipin
6f85a5d9c7
Fixing issue 3206: Label control accessibility reworking ( #3208 )
...
* Moving LabelAccessibleObject to a separate file. Adding unit tests.
* Ensuring Label supports UIA providers.
2020-07-06 19:28:22 +10:00
Hugh Bellamy
f1a55bb2ca
Fix ILegacyIAccessibleProvider.GetSelection return type ( #3231 )
2020-07-06 11:23:49 +10:00
vladimir-krestov
3cb43e71b5
[Accessibility] Fixing ComboBoxAccessibleObject issue when Narrator and Inspect don't respond ( #3524 )
2020-07-06 11:20:54 +10:00
Shyam Gupta
ad1cee6114
Adding Form subtype in templates ( #3527 )
2020-07-06 11:18:43 +10:00
Cristiano Suzuki
82578bf4a3
LOC CHECKIN | dotnet/winforms master | 20200702 ( #3535 )
2020-07-03 09:15:24 +10:00
dotnet-maestro[bot]
2588f06ce0
Update dependencies from https://github.com/dotnet/arcade build 20200630.3 ( #3534 )
...
Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.Arcade.Sdk
From Version 5.0.0-beta.20316.1 -> To Version 5.0.0-beta.20330.3
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2020-07-02 12:22:10 +00:00
Igor Velikorossov
e510dfb188
Merge pull request #3526 from RussKie/Solve_ImageList_woes
2020-07-02 14:06:03 +10:00
Igor Velikorossov
abe892ef56
Refactor ToolStripItem.Animate and ToolStripItem.set_Image methods to reduce nesting
2020-07-02 13:31:48 +10:00
Igor Velikorossov
eaf15b7402
Prevent ImageList allocation disposing PropertyGrid
...
Resolves #3485
2020-07-02 13:31:48 +10:00
Igor Velikorossov
ef0f6dbf38
Dispose ImageList in tests
...
Quite likely the observe AVE were a result of use reusing a shared instance
of an `ImageList` across theory runs. Quite likely xUnit would dispose the
instance while another test was run, leading to a corrupt heap.
Resolves #3358
2020-07-02 13:31:48 +10:00
Igor Velikorossov
9647c6b0b3
Centralise lifetime management of native ImageList
...
Move calls to Create, Duplicate and Destroy into NativeImageList to
reduce a chance of interleaved calls to Win32 API.
2020-07-02 11:03:11 +10:00
Igor Velikorossov
33ac99ea6f
Track disposal of NativeImageList
2020-07-02 11:02:44 +10:00
Jeremy Kuhne
dfd8105aa6
Add more HGDIOBJ handles and scopes ( #3528 )
...
This cuts a number of uneccesary allocations and sets up to remove much more. The goal is to remove WindowsGraphics and DeviceContext (and other related classes) which are extremely slow and allocate a lot. Getting rid of these classes will also improve code clarity.
- Introduce more scopes and handle extensions to move away from DeviceContext, WindowsGraphics, etc.
- Introduce HDC, HFONT, HBRUSH, HPEN and other HGDIOBJ objects
- Add IHandle to DeviceContext, WindowsGraphics for the HDC
- Add IHandle to WindowsBrush for the HBRUSH
- Add a referemce to this to the end of message processing to root Control
- Remove MarshalByRefObject from internal classes
- Improve perf of background drawing
- Move ApplyGraphicProperties to Primitives
- Cut dead code
- Note: Did not change COM interface defintions
2020-06-30 17:07:20 -07:00
Mikhail Lipin
4c1c9d66bb
Adding CheckBox control UIA accessibility ( #3228 )
2020-06-30 22:05:01 +10:00
Mikhail Lipin
eff8a5d553
Adding UIA provider support to RadioButtonAccessibleObject ( #3244 )
2020-06-30 21:39:55 +10:00
Mikhail Lipin
fdb4350682
Fixng 3214 - UIA providers support for Button control ( #3215 )
2020-06-30 20:50:42 +10:00
Jeremy Kuhne
5797d8e7b0
Fix getting existing region in RegionScope ( #3525 )
2020-06-30 10:34:00 +10:00
Hugh Bellamy
98a9e9c499
Cleanup HHctl interop ( #3173 )
2020-06-30 10:25:11 +10:00
dotnet-maestro[bot]
a94d97cc72
Update dependencies from https://github.com/dotnet/runtime build 20200628.6 ( #3522 )
...
runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.Configuration.ConfigurationManager , System.Diagnostics.EventLog , runtime.win-x64.Microsoft.NETCore.ILAsm , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App , System.DirectoryServices , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry , Microsoft.Win32.SystemEvents , Microsoft.NETCore.App.Internal , System.Drawing.Common , System.Security.Principal.Windows , System.Windows.Extensions , System.Security.Permissions , System.Security.Cryptography.Xml , System.IO.Packaging , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.AccessControl , System.Security.Cryptography.Cng
From Version 5.0.0-preview.8.20328.1 -> To Version 5.0.0-preview.8.20328.6
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2020-06-29 12:31:46 +00:00
janbaltus
eec805f48e
localization HB ( #3519 )
2020-06-29 16:27:09 +10:00
Mikhail Lipin
1678a756fb
Adding UIA accessibility support for PictureBox control ( #3233 )
2020-06-29 16:17:38 +10:00
Mikhail Lipin
cc0c82707b
Adding Splitter UIA accessibility ( #3246 )
2020-06-29 15:29:36 +10:00
dotnet-maestro[bot]
697e81d2c4
[master] Update dependencies from dotnet/runtime ( #3514 )
2020-06-29 08:10:01 +10:00
Loni Tra
d4fca96a43
Implement TitleImageIndex/Key to ListViewGroup ( #3490 )
2020-06-26 20:39:49 +10:00
dotnet-maestro[bot]
3d6c0bb497
Update dependencies from https://github.com/dotnet/runtime build 20200625.1 ( #3508 )
...
runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.Configuration.ConfigurationManager , System.Diagnostics.EventLog , System.DirectoryServices , runtime.win-x64.Microsoft.NETCore.ILAsm , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry , Microsoft.Win32.SystemEvents , Microsoft.NETCore.ILAsm , Microsoft.NETCore.App.Internal , System.Drawing.Common , System.Windows.Extensions , System.Security.Principal.Windows , System.Security.Permissions , System.Security.Cryptography.Xml , System.IO.Packaging , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.AccessControl , System.Security.Cryptography.Cng
From Version 5.0.0-preview.8.20323.9 -> To Version 5.0.0-preview.8.20325.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2020-06-25 12:48:53 +00:00
Igor Velikorossov
f9f39fecb7
Merge pull request #3502 from RussKie/fix_3494_dispose_ListView_imagelists
2020-06-25 14:39:53 +10:00
Igor Velikorossov
60b5a1ef19
chore: Reduce nesting
2020-06-25 14:16:00 +10:00
Igor Velikorossov
73c657cbc1
Fix ImageList memory leaks
...
Disposing a listview control that has shared instances of ImageList wired
to any of its properties will cause memory leaks due to incorrect unwiring
of associated ImageList events.
Rework wire/unwire routines to match TreeView implmentation.
Resolves #3494
2020-06-25 14:16:00 +10:00
Igor Velikorossov
4ec7ead92e
Add test
...
Co-authored-by: Tobias Käs <tobias.kaes@gmail.com>
2020-06-25 14:15:59 +10:00
Igor Velikorossov
c8f38b524d
Update test docs
2020-06-25 11:35:27 +10:00
gpetrou
5ce6498688
Add EM enum in Interop Richedit ( #3495 )
2020-06-25 10:01:21 +10:00
gpetrou
c7e371c86b
Add tests for TreeNodeCollection Find method ( #3497 )
2020-06-25 09:55:30 +10:00
Jeremy Kuhne
13f53be160
Fix HDC in BeginPaintScope ( #3507 )
...
Getting the DC again was a copy/paste mistake
2020-06-25 09:08:26 +10:00
dotnet-maestro[bot]
838dd6a187
Update dependencies from https://github.com/dotnet/runtime build 20200623.9 ( #3503 )
...
runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.Configuration.ConfigurationManager , System.Diagnostics.EventLog , System.DirectoryServices , runtime.win-x64.Microsoft.NETCore.ILAsm , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry , Microsoft.Win32.SystemEvents , Microsoft.NETCore.ILAsm , Microsoft.NETCore.App.Internal , System.Drawing.Common , System.Windows.Extensions , System.Security.Principal.Windows , System.Security.Permissions , System.Security.Cryptography.Xml , System.IO.Packaging , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.AccessControl , System.Security.Cryptography.Cng
From Version 5.0.0-preview.7.20322.7 -> To Version 5.0.0-preview.8.20323.9
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2020-06-24 12:32:59 +00:00
dotnet-maestro[bot]
d13733609b
Update dependencies from https://github.com/dotnet/runtime build 20200622.7 ( #3496 )
...
runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.Configuration.ConfigurationManager , System.Diagnostics.EventLog , System.DirectoryServices , runtime.win-x64.Microsoft.NETCore.ILAsm , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry , Microsoft.Win32.SystemEvents , Microsoft.NETCore.ILAsm , Microsoft.NETCore.App.Internal , System.Drawing.Common , System.Windows.Extensions , System.Security.Principal.Windows , System.Security.Permissions , System.Security.Cryptography.Xml , System.IO.Packaging , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.AccessControl , System.Security.Cryptography.Cng
From Version 5.0.0-preview.7.20320.5 -> To Version 5.0.0-preview.7.20322.7
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2020-06-24 07:55:49 +00:00
gpetrou
6e1ad8c25c
Use generic lists in MonthCalendar ( #3483 )
2020-06-24 17:45:38 +10:00
Jeremy Kuhne
ec7d566c9e
Add region scoping ( #3470 )
...
- Adds scope structs for GDI regions
- Removes WindowsRegion
- Rework WindowsGraphics and WindowsGraphicsWrapper to dispose safely/correctly
- Rework ActiveXImpl to not retain an active HRGN handle
- Fix some IntPtr != null checks
This is another step in trying to get rid of DeviceContext and WindowsGraphics and replace them with struct based contexts.
Remove WindowsGraphics finalizer in release builds
We only need the finalier for disposal tracking. DeviceContext has the actual native resource and will get finalized if we miss the disposal.
Removing these from the finalizer queue will improve performance and reduce risk.
2020-06-24 17:44:55 +10:00
Igor Velikorossov
fe51dd5bcf
fix: ContextMenuStrip leads to crash on W10 1607 ( #3279 )
2020-06-24 13:53:59 +10:00
Jeremy Kuhne
e2ccd96a21
Another incremental improvement ( #3499 )
...
Don't want to lock the current command prompt.
2020-06-23 22:10:54 +00:00
gpetrou
7f243921e8
Dispose MemoryStream in ConvertFrom method of CursorConverter ( #3476 )
2020-06-23 20:45:04 +10:00
gpetrou
c231d486a0
Dispose GetWindowsFont return value ( #3482 )
2020-06-23 18:31:52 +10:00