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

10006 Коммитов

Автор SHA1 Сообщение Дата
Tanya Solyanik 230d349565
Removed BitmapBinder because it was made redundant by us reading/writing primitive and known types manually (#12620)
* The purpose of BitmapBinder was to restrict binary formatter deserialization for known formats that should not accept managed types other than primitives or bitmaps. All types that are allowed by the BitmapBinder are supported as "common known" types and are serialized by writing the serialization record "manually", not by calling the BinaryFormatter. We read some other types, such as collections but these have been read in NET9 as well, when we added special case for the common types. Currently this binder is used only in the failure cases to raise a special exception that indicates that we should not read  the data again.
2024-12-10 16:20:55 -08:00
Jeremy Kuhne 516ddf1f87
Move NoAssertContext to Core test utilities (#12621)
This will allow it to be used in WPF as well.
2024-12-10 23:54:16 +00:00
v-zhgl 0773d890f7
Add code coverage for DataGridViewComboBoxCell.ObjectCollection (#12580)
* Add code coverage for DataGridViewComboBoxCell.ObjectCollection

* Handle FeedBacks
2024-12-10 14:53:54 -08:00
Tanya Solyanik afc85ac108
Ensure memory is freed on a serialization failure in the clipboard (#12619)
1. Ensure that HGLOBAL is freed when a serialization exception is thrown when flushing data to the clipboard
2. Ensure that we don't attempt deserialization if we couldn't serialize data from the  inproc scenario
2024-12-10 14:46:32 -08:00
dotnet-maestro[bot] 25fc00446c
[main] Update dependencies from dotnet/runtime (#12618)
[main] Update dependencies from dotnet/runtime
2024-12-10 13:42:38 +00:00
dotnet-maestro[bot] 3d6e12c19b
[main] Update dependencies from dotnet/arcade (#12617)
[main] Update dependencies from dotnet/arcade
2024-12-10 13:42:09 +00:00
Jeremy Kuhne e50878fca2
Add additional error defines (#12614)
Add a number of additional defines that are coming up in WPF.

Also add a few more NtStatus related helpers to HRESULT.
2024-12-09 17:13:41 -08:00
Klaus Löffelmann 6cbaf63903
Bump up NuGet Packs and apply new Analyzer Rules. (#12512)
* Bump up NuGet Packs and apply new Analyzer Rules.
* Downgrade Analyzer version.
* Fix some additional analyzer issues.
* Address review feedback.
* Fix unit test.
* Fix missmatching Analyzer NuGet package version.
* Fix RTF format test in the RichTextBox.
* Correct type in ToolTip.cs.
* Address remaining feedback while keeping all tests passing.
* Correct formatting in DPI_AWARENESS_CONTEXT.
2024-12-09 14:43:19 -08:00
dotnet-maestro[bot] 41932f7d9c
[main] Update dependencies from dotnet/runtime (#12606)
[main] Update dependencies from dotnet/runtime
2024-12-09 13:36:27 +00:00
Leaf Shi 9bd76c9152
Add UIA_AutomationFocusChangedEventId to SelectInternal of the TextBoxBase.cs (#12479)
* Add UIA_AutomationFocusChangedEventId in SelectInternal function of  PropertyGridView.GridViewTextBox

* Add a check that when the selected text is (0, 0), let the AI ​​rectangle refocus the current text box

* Rename the variables of function SelectInternal
2024-12-09 17:28:29 +08:00
Leaf Shi 0ab83bffe8
Unhook the mouse down hook at the end of PropertyGridView.ProcessEnumUpAndDown (#12508)
* Unhook the mouse down hook at the end of PropertyGridView.ProcessEnumUpAndDown

* Removing ? from code line "EditTextBox?.SelectAll();"
2024-12-09 17:28:02 +08:00
dotnet-maestro[bot] 65240b1f5c
[main] Update dependencies from dotnet/runtime (#12603)
[main] Update dependencies from dotnet/runtime
2024-12-07 13:42:41 +00:00
dotnet-maestro[bot] cb1e49fa76
[main] Update dependencies from dotnet/arcade (#12602)
[main] Update dependencies from dotnet/arcade
2024-12-07 13:42:09 +00:00
dotnet-maestro[bot] 8cafe95740
[main] Update dependencies from dotnet/runtime (#12600)
[main] Update dependencies from dotnet/runtime
2024-12-06 13:37:39 +00:00
dotnet-maestro[bot] 2d7232f8f4
[main] Update dependencies from dotnet/arcade (#12599)
[main] Update dependencies from dotnet/arcade
2024-12-06 13:37:12 +00:00
Liv-Goh 6ecb29a0b3
Add unit test for MaskDesignerDialog (#12575)
* Add unit test for MaskDesignerDialog

* Update unit test

* update unit test

* update unit test
2024-12-05 09:47:26 -08:00
dotnet-maestro[bot] 67e39e3f22
[main] Update dependencies from dotnet/runtime (#12594)
[main] Update dependencies from dotnet/runtime
2024-12-05 13:42:50 +00:00
dotnet-maestro[bot] c0feda12cd
[main] Update dependencies from dotnet/arcade (#12593)
[main] Update dependencies from dotnet/arcade
2024-12-05 13:42:16 +00:00
Jeremy Kuhne f61432fec2
Add WPF test visibility to System.Private.Windows.Core (#12581)
Add an entry for every test assembly. Not all of these projects exist yet, but they will soon. I'll be forcing all of the WPF test projects to the Open key.
2024-12-04 14:33:31 -08:00
Loni Tra 8de5e39a1f
Add File Classification for runtime pack (#12578)
* Add file classification for runtime pack

* update UpdateFileClassification.ps1
2024-12-04 13:20:39 -08:00
Syareel Aiman e2ee69675b
Add unit test for MaskedTextBoxDesignerActionList (#12491)
Related #10773

Proposed changes
Add unit test MaskedTextBoxDesignerActionListTests.cs for public properties and method of the MaskedTextBoxDesignerActionList.
Enable nullability in MaskedTextBoxDesignerActionListTests.cs.
2024-12-04 11:31:03 -08:00
Tanya Solyanik 4673159e5d
removed unnecessary casts that I had missed before (#12585)
removed unnecessary casts
added a baseline test for the future changes
2024-12-04 10:53:28 -08:00
v-olzhan a1405f6bb3
Add unit tests for LinkLabel (#12572)
* Add unit tests for LinkLabel

* handle feedback

* handle feedback2
2024-12-04 09:57:54 -08:00
dotnet-maestro[bot] f5ef4b1375
[main] Update dependencies from dotnet/runtime (#12583)
[main] Update dependencies from dotnet/runtime
2024-12-04 13:41:36 +00:00
Jeremy Kuhne f432c76433
Define WIC HRESULTs (#12579)
Needed for WPF scenarios currently and likely for our own usages as well eventualy.
2024-12-03 15:06:47 -08:00
Viktor Hofer 6a90a38534
Annotate test utility projects so that they don't get built inside the VMR (#12577)
* Annotate test utility projects so that they don't get built inside the VMR product build

* another one
2024-12-03 20:23:51 +01:00
dotnet bot 00c0b46306
Localized file check-in by OneLocBuild Task: Build definition ID 164: Build ID 2594265 (#12533)
* Localized file check-in by OneLocBuild Task: Build definition ID 164: Build ID 2587332

* Localized file check-in by OneLocBuild Task: Build definition ID 164: Build ID 2587332

* Localized file check-in by OneLocBuild Task: Build definition ID 164: Build ID 2587398

* Localized file check-in by OneLocBuild Task: Build definition ID 164: Build ID 2587398

* Localized file check-in by OneLocBuild Task: Build definition ID 164: Build ID 2593375

* Localized file check-in by OneLocBuild Task: Build definition ID 164: Build ID 2593375

* Localized file check-in by OneLocBuild Task: Build definition ID 164: Build ID 2594265

* Localized file check-in by OneLocBuild Task: Build definition ID 164: Build ID 2594265
2024-12-03 19:07:39 +00:00
v-zhgl 85c1d8b082
Add code coverage for DataGridViewColumnDesignTimeVisibleAttribute (#12553)
* Add code coverage for DataGridViewColumnDesignTimeVisibleAttribute

* Handle FeedBacks

* Handle FeedBacks
2024-12-03 09:47:39 -08:00
dotnet-maestro[bot] 123c18d48e
[main] Update dependencies from dotnet/runtime (#12576)
[main] Update dependencies from dotnet/runtime
2024-12-03 13:41:14 +00:00
dotnet-maestro[bot] 4a158f6232
[main] Update dependencies from dotnet/runtime (#12562)
* Update dependencies from https://github.com/dotnet/runtime build 20241127.7

Microsoft.Internal.Runtime.WindowsDesktop.Transport , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry.AccessControl , Microsoft.Win32.SystemEvents , runtime.win-x64.Microsoft.NETCore.ILAsm , runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.ComponentModel.Composition , System.ComponentModel.Composition.Registration , System.Configuration.ConfigurationManager , System.Data.Odbc , System.Data.OleDb , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices , System.DirectoryServices.AccountManagement , System.DirectoryServices.Protocols , System.Formats.Nrbf , System.IO.Hashing , System.IO.Packaging , System.IO.Ports , System.Management , System.Reflection.Context , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Runtime.Caching , System.Runtime.Serialization.Formatters , System.Security.Cryptography.Pkcs , System.Security.Cryptography.ProtectedData , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceModel.Syndication , System.ServiceProcess.ServiceController , System.Speech , System.Text.Encoding.CodePages , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Windows.Extensions , VS.Redist.Common.NetCore.SharedFramework.x64.10.0
 From Version 10.0.0-alpha.1.24577.1 -> To Version 10.0.0-alpha.1.24577.7

* Update dependencies from https://github.com/dotnet/runtime build 20241128.5

Microsoft.Internal.Runtime.WindowsDesktop.Transport , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry.AccessControl , Microsoft.Win32.SystemEvents , runtime.win-x64.Microsoft.NETCore.ILAsm , runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.ComponentModel.Composition , System.ComponentModel.Composition.Registration , System.Configuration.ConfigurationManager , System.Data.Odbc , System.Data.OleDb , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices , System.DirectoryServices.AccountManagement , System.DirectoryServices.Protocols , System.Formats.Nrbf , System.IO.Hashing , System.IO.Packaging , System.IO.Ports , System.Management , System.Reflection.Context , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Runtime.Caching , System.Runtime.Serialization.Formatters , System.Security.Cryptography.Pkcs , System.Security.Cryptography.ProtectedData , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceModel.Syndication , System.ServiceProcess.ServiceController , System.Speech , System.Text.Encoding.CodePages , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Windows.Extensions , VS.Redist.Common.NetCore.SharedFramework.x64.10.0
 From Version 10.0.0-alpha.1.24577.1 -> To Version 10.0.0-alpha.1.24578.5

* Update dependencies from https://github.com/dotnet/runtime build 20241129.2

Microsoft.Internal.Runtime.WindowsDesktop.Transport , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry.AccessControl , Microsoft.Win32.SystemEvents , runtime.win-x64.Microsoft.NETCore.ILAsm , runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.ComponentModel.Composition , System.ComponentModel.Composition.Registration , System.Configuration.ConfigurationManager , System.Data.Odbc , System.Data.OleDb , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices , System.DirectoryServices.AccountManagement , System.DirectoryServices.Protocols , System.Formats.Nrbf , System.IO.Hashing , System.IO.Packaging , System.IO.Ports , System.Management , System.Reflection.Context , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Runtime.Caching , System.Runtime.Serialization.Formatters , System.Security.Cryptography.Pkcs , System.Security.Cryptography.ProtectedData , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceModel.Syndication , System.ServiceProcess.ServiceController , System.Speech , System.Text.Encoding.CodePages , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Windows.Extensions , VS.Redist.Common.NetCore.SharedFramework.x64.10.0
 From Version 10.0.0-alpha.1.24577.1 -> To Version 10.0.0-alpha.1.24579.2

* Update dependencies from https://github.com/dotnet/runtime build 20241130.2

Microsoft.Internal.Runtime.WindowsDesktop.Transport , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry.AccessControl , Microsoft.Win32.SystemEvents , runtime.win-x64.Microsoft.NETCore.ILAsm , runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.ComponentModel.Composition , System.ComponentModel.Composition.Registration , System.Configuration.ConfigurationManager , System.Data.Odbc , System.Data.OleDb , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices , System.DirectoryServices.AccountManagement , System.DirectoryServices.Protocols , System.Formats.Nrbf , System.IO.Hashing , System.IO.Packaging , System.IO.Ports , System.Management , System.Reflection.Context , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Runtime.Caching , System.Runtime.Serialization.Formatters , System.Security.Cryptography.Pkcs , System.Security.Cryptography.ProtectedData , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceModel.Syndication , System.ServiceProcess.ServiceController , System.Speech , System.Text.Encoding.CodePages , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Windows.Extensions , VS.Redist.Common.NetCore.SharedFramework.x64.10.0
 From Version 10.0.0-alpha.1.24577.1 -> To Version 10.0.0-alpha.1.24580.2

* Update dependencies from https://github.com/dotnet/runtime build 20241201.1

Microsoft.Internal.Runtime.WindowsDesktop.Transport , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry.AccessControl , Microsoft.Win32.SystemEvents , runtime.win-x64.Microsoft.NETCore.ILAsm , runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.ComponentModel.Composition , System.ComponentModel.Composition.Registration , System.Configuration.ConfigurationManager , System.Data.Odbc , System.Data.OleDb , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices , System.DirectoryServices.AccountManagement , System.DirectoryServices.Protocols , System.Formats.Nrbf , System.IO.Hashing , System.IO.Packaging , System.IO.Ports , System.Management , System.Reflection.Context , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Runtime.Caching , System.Runtime.Serialization.Formatters , System.Security.Cryptography.Pkcs , System.Security.Cryptography.ProtectedData , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceModel.Syndication , System.ServiceProcess.ServiceController , System.Speech , System.Text.Encoding.CodePages , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Windows.Extensions , VS.Redist.Common.NetCore.SharedFramework.x64.10.0
 From Version 10.0.0-alpha.1.24577.1 -> To Version 10.0.0-alpha.1.24601.1

* react to nrbf changes for simplified array handling

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Loni Tra <lonitra@microsoft.com>
2024-12-02 15:40:35 -08:00
Ricardo Bossan 3dfa64149c
Merge pull request #12557 from ricardobossan/Issue_12556_ToolTip_Shows_Left_Of_Screen_Bounds
ToolTip Appears Partially Off-Screen on Left Border
2024-12-02 18:42:14 -03:00
Sachin Sahara 237b298882
Resolved issue in sending WM_DESTROY msg to ActiveX controls (#12564) 2024-12-02 13:34:36 -08:00
Melon Wang1 2b17fa7941
Add unit tests for DesignerVerbToolStripMenuItem (#12566)
Related #10773

Add unit test DesignerVerbToolStripMenuItemTests.cs for public properties and method of the DesignerVerbToolStripMenuItem.
2024-12-02 13:30:57 -08:00
dotnet-maestro[bot] 01a373e2a5
[main] Update dependencies from dotnet/arcade (#12567)
Update dependencies from https://github.com/dotnet/arcade build 20241128.2

Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.CMake.Sdk , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.XUnitExtensions
 From Version 10.0.0-beta.24577.1 -> To Version 10.0.0-beta.24578.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-12-02 10:14:49 -08:00
dotnet-maestro[bot] d02c89d400
[main] Update dependencies from dotnet/arcade (#12561)
[main] Update dependencies from dotnet/arcade
2024-11-28 13:37:02 +00:00
Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) 61266db807 Handles positioning of the ToolTip when it is too close to the left border of the screen
Fixes #12556

## Proposed changes

- Updates the `Reposition()` method in the `ToolTip` class to correctly
handle cases where the tooltip extends beyond the left boundary of the
screen, ensuring it is fully visible and not truncated.

## Customer Impact

The tooltip will be fully visible regardless of how close it is to the
left border of the screen.

## Regression?

- No

## Risk

- Minimal

## Screenshots

### Before

### After

## Test methodology

- Manual

## Test environment(s)

sdk: 9.0.100
Microsoft.NET.Sdk.IL: 10.0.0-alpha.1.24577.1
2024-11-27 19:24:42 -03:00
dotnet-maestro[bot] 3c5c7fb0b0
[main] Update dependencies from dotnet/runtime (#12555)
[main] Update dependencies from dotnet/runtime
2024-11-27 13:37:26 +00:00
dotnet-maestro[bot] 11d71dfff4
[main] Update dependencies from dotnet/arcade (#12554)
[main] Update dependencies from dotnet/arcade
2024-11-27 13:36:57 +00:00
v-olzhan 15ad0c1c6c
Fix issue 12538: Infinite loop in System.Drawing.Graphics between IsVisible(Point) and IsVisible(int, int) (#12540)
Fixes #12538

Proposed changes
Remove the recursive call between IsVisible(int, int) and IsVisible(Point). Directly convert int to float in IsVisible(int x, int y) and call IsVisible(float x, float y) API.

Add unit test to verify that all overloads of the IsVisible method return the same result for both points and rectangles.
2024-11-26 16:20:25 -08:00
v-olzhan c56379f4d3
Fix issue 12495: Infinite loop in ToolStripItemCollection.AddRange (#12513)
Fixes #12495 and #4454

Proposed changes
Early return for empty collection
Converts the ToolStripItemCollection into a temporary array (using ToArray()) to avoid modifying the original collection during iteration. This ensures that items can be safely added to the new collection without causing exceptions or unintended behavior, especially when items are removed from the original collection if they have a different owner control.
Add unit test for issue Infinite loop in ToolStripItemCollection.AddRange #12495 case
Regression?
Yes
Test methodology
Test fixing for GH issues: 12495 and 4454 manually
Unit test
2024-11-26 16:14:44 -08:00
v-zhgl d629bcefc2
Add code coverage for DataGridViewLinkColumn (#12522)
* Add code coverage for DataGridViewLinkColumn

* Handle FeedBacks

* Handle FeedBacks
2024-11-26 09:21:50 -08:00
dotnet-maestro[bot] ebf4629bef
[main] Update dependencies from dotnet/runtime (#12549)
[main] Update dependencies from dotnet/runtime
2024-11-26 13:37:26 +00:00
dotnet-maestro[bot] d19001f099
[main] Update dependencies from dotnet/arcade (#12548)
[main] Update dependencies from dotnet/arcade
2024-11-26 13:36:57 +00:00
Tanya Solyanik b91747dfe9
Replaced string[] with Array as the T in TheoryData (#12544)
Declared string[] as an Array in order to avoid confusion as to what the `object` is  - a single string or an array of strings in IEnumerable<object[]>
VS tests fail intermittently with "The test method expected 1 parameter, but received 2"
2024-11-25 14:23:37 -08:00
Nora Zhou 8a962d55fd
Add unit tests for ListControlStringCollectionEditor (#12516)
* Add unit tests for ListControlStringCollectionEditor

* Update
2024-11-25 14:13:03 -08:00
Melon Wang1 ee114a5573
Add unit tests for ToolStripActionList (#12525)
* Add unit tests for ToolStripActionList

* declare variables with specific types

* simplified code
2024-11-25 14:11:34 -08:00
Tanya Solyanik 4ca48606e5
removed casts to interfaces by changing methods visibility to public (#12535) 2024-11-25 10:19:57 -08:00
Paul M Cohen 6031f36aac
Reennable test broken in Merge and fix developer usability issues (#12507)
* Rennable test broken in Merge.
Stop ProgressDialog and VBInputBox from opening in designer which will fail.
Fix missing return in Interaction.vb

* More cleanup of comments and formatting from Merge issues

* More cleanup

* Fix logic and comments around CreateTempDirectory
Update tests
2024-11-25 09:51:08 -08:00
dotnet-maestro[bot] a4893ffd1b
[main] Update dependencies from dotnet/runtime (#12541)
[main] Update dependencies from dotnet/runtime
2024-11-25 13:36:11 +00:00
dotnet-maestro[bot] e91e3bc158
[main] Update dependencies from dotnet/arcade (#12537)
[main] Update dependencies from dotnet/arcade
2024-11-24 13:36:36 +00:00