Skip to content

Add "SetTextualDefaultProperty = false" for MaskedTextBox#9709

Merged
LeafShi1 merged 3 commits intodotnet:mainfrom
LeafShi1:Add_Test_MaskedTextBox_DemoConsole
Aug 25, 2023
Merged

Add "SetTextualDefaultProperty = false" for MaskedTextBox#9709
LeafShi1 merged 3 commits intodotnet:mainfrom
LeafShi1:Add_Test_MaskedTextBox_DemoConsole

Conversation

@LeafShi1
Copy link
Member

@LeafShi1 LeafShi1 commented Aug 11, 2023

Related #4908

Proposed changes

  • Add "SetTextualDefaultProperty = false" for MaskedTextBoxDesigner
  • Add test for MaskedTextBoxDesigner in DemoConsole project

Customer Impact

  • The default mask value will be null

Regression?

  • No

Risk

  • Minimal

Screenshots

Before

The default Mask value of the MaskedTextBox is M_skedTextBox1
image

After

The default Mask value is null

image

Test methodology

  • Manually (added TrackBarDesigner to DemoConsole test app)

Test environment(s)

  • .net 8.0.0-rc.1.23409.17
Microsoft Reviewers: Open in CodeFlow

@LeafShi1 LeafShi1 requested a review from a team as a code owner August 11, 2023 02:39
@ghost ghost assigned LeafShi1 Aug 11, 2023
@LeafShi1 LeafShi1 changed the base branch from feature/9.0 to main August 17, 2023 06:23
Copy link
Member

@lonitra lonitra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple small comments, but otherwise LGTM!

@Tanya-Solyanik
Copy link
Contributor

What happens in this scenario in the OOP designer in the VS?

@LeafShi1
Copy link
Member Author

What happens in this scenario in the OOP designer in the VS?

I compared the OOP designer of VS, and found that the property setting SetTextualDefaultProperty was missing in the runtime repo, so I added this. After adding, the behavior of both sides will consistent.

Copy link
Member

@lonitra lonitra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lonitra lonitra added the ready-to-merge PRs that are ready to merge but worth notifying the internal team. label Aug 24, 2023
@LeafShi1 LeafShi1 merged commit 772afbc into dotnet:main Aug 25, 2023
@ghost ghost removed the ready-to-merge PRs that are ready to merge but worth notifying the internal team. label Aug 25, 2023
@LeafShi1 LeafShi1 deleted the Add_Test_MaskedTextBox_DemoConsole branch August 25, 2023 01:32
@MelonWang1
Copy link
Contributor

Verified this PR in Winforms main branch for .NET 9.0, now the MaskedTextBox is supported in runtime, and the default Mask value is null:

9709

9709-1.mp4

@ghost ghost locked as resolved and limited conversation to collaborators Oct 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants