WI01041726 - Legacy Control Migration: StatusBar#11
Open
WI01041726 - Legacy Control Migration: StatusBar#11
Conversation
Replaced compatibility-only stubs with working StatusBar runtime, including panel collection, layout, simple-text mode, owner-draw, tooltips, and events. Deleted old throw-only StatusBarPanelCollection and nested real collection in StatusBar.cs. Synced all related panel/event types and enums with upstream docs. Restored StatusBar-specific SRDescription metadata and resource keys; updated all 13 locale XLF files with translation entries. Added StatusBarForm demo and launcher integration for manual validation. Introduced StatusBarTests for automated coverage. Updated migration docs and improved demo descriptions. StatusBar is now fully functional and ready for validation.
…le changes, and restore metadata parity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Legacy Control Migration: StatusBar
Status
Migration complete. All nine StatusBar family files have been ported from the upstream source into
src/System.Windows.Forms/System/Windows/Forms/Controls/Unsupported/StatusBar, force-synced against upstream declarations and documentation, and verified build-clean.Files ported / changed
StatusBar.csStatusBarPanelCollection); upstream class summary and constructor doc syncedStatusBarPanel.csStatusBarDrawItemEventArgs.csPanelproperty; upstream XML docs and license header syncedStatusBarDrawItemEventHandler.csStatusBarPanelAutoSize.csSpringsummary (cross-referencingNoneandContents) syncedStatusBarPanelBorderStyle.csStatusBarPanelClickEventArgs.csStatusBarPanelproperty; upstream class and member summaries syncedStatusBarPanelClickEventHandler.csStatusBarPanelStyle.csFiles deleted
StatusBar.StatusBarPanelCollection.csStatusBarPanelCollectionimplementation now lives insideStatusBar.csResource and metadata parity
Upstream
SRDescriptionattributes restored forStatusBar.csandStatusBarPanel.cs(Panels,ShowPanels,SizingGrip,DrawItem,PanelClick, and all panel properties). Matching keys added tosrc/System.Windows.Forms/Resources/SR.resx.XLF translation parity
15 StatusBar-specific trans-unit entries added to all 13 locale XLF files under
src/System.Windows.Forms/Resources/xlf, sourced verbatim from the upstream sibling repository:StatusBarDrawItem·StatusBarOnPanelClickDescr·StatusBarPanelAlignmentDescr·StatusBarPanelAutoSizeDescr·StatusBarPanelBorderStyleDescr·StatusBarPanelIconDescr·StatusBarPanelMinWidthDescr·StatusBarPanelNameDescr·StatusBarPanelsDescr·StatusBarPanelStyleDescr·StatusBarPanelTextDescr·StatusBarPanelToolTipTextDescr·StatusBarPanelWidthDescr·StatusBarShowPanelsDescr·StatusBarSizingGripDescrLocales:
cs·de·es·fr·it·ja·ko·pl·pt-BR·ru·tr·zh-Hans·zh-HantTests (
System.Windows.Forms.Legacy.Tests)StatusBarTests.cscovers: default property values,StatusBarPanelCollectionoperations (add, insert, remove, clear, contains, key lookup), panel-mode toggle,ToString(), panel property semantics (alignment, autosize, border style, owner-draw, width, min width, tooltip text), andPanelClick/DrawItemevent dispatch.Demo (
System.Windows.Forms.Legacy.Demo)StatusBarForm.cs/StatusBarForm.Designer.csexercise panel mode vs. simple-text mode, dynamic panel insertion/removal, sizing-grip toggle, border-style cycling, owner-draw rendering, per-panel tooltips, panel-click logging, and a live clock panel. Main demo launcher updated to openStatusBardirectly.Remaining Work
StatusBarandStatusBarPanel.