Issus 4908 port save file dialog designer and folder browser dialog designer#9682
Conversation
src/System.Windows.Forms.Design/src/System/ComponentModel/Design/ComponentDesigner.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms.Design/src/System/ComponentModel/Design/ComponentDesigner.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms.Design/src/System/ComponentModel/Design/ComponentDesigner.cs
Show resolved
Hide resolved
|
|
||
| // Retrieve the path from the IDList. | ||
| PWSTR selectedPath = default; | ||
| PWSTR selectedPath = pDisplayName; |
There was a problem hiding this comment.
I don't know why the value was set to "default" before, but the default value always points to "0", and when I set the property value, such as FolderBrowerDialog's SelectedPath, an exception occurs.

Compare with the code with NexFx, the selectedPath should use pDisplayName pointer.
|
please rebase. |
…r_and_FolderBrowserDialogDesigner
|
Looks like src\System.Windows.Forms\src\System\Windows\Forms\TreeNodeCollection.cs(212,25): error RS0036: (NETCORE_ENGINEERING_TELEMETRY=Build) Symbol 'virtual System.Windows.Forms.TreeNodeCollection.AddRange(params System.Windows.Forms.TreeNode![]! nodes) -> void' is missing nullability annotations in the declared API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md) |
|
…ion.AddRange(System.Windows.Forms.TreeNode![]! nodes) -> void" Removing not public API "virtual System.Windows.Forms.TreeNodeCollection.AddRange(System.Windows.Forms.TreeNode![]! nodes) -> void" from PublicAPI.Shipped.txt
…eNodeCollection.AddRange(params System.Windows.Forms.TreeNode![]! nodes) -> void" on PublicAPI.Unshipped.txt Add nullability annotations for API "virtual System.Windows.Forms.TreeNodeCollection.AddRange(params System.Windows.Forms.TreeNode![]! nodes) -> void" on PublicAPI.Unshipped.txt
Revert changes on PublicAPI.Shipped.txt
…ws.Forms.TreeNodeCollection.AddRange"
….TreeNodeCollection.AddRange
|
Verified this PR in feature/9.0 branch, now SaveFileDialogDesigner and FolderBrowserDialogDesigner are supported in runtime, we can modify SaveFileDialog/FolderBrowserDialog in DemoConsole app by their some properties: 9682.mp4 |
Related #4908
Proposed changes
Customer Impact
Regression?
Risk
Screenshots
Before
After
Test methodology
Accessibility testing
Test environment(s)
Microsoft Reviewers: Open in CodeFlow