Repository navigation
Releases
1.0.32 - orb delete no longer crashes the designer
Fixed: deleting an orb entry took the Windows Forms designer down.
The delete ran through the designer host with transaction.Commit() on whatever the host returned, and read
Ribbon.OrbDropDown without a check. A host that hands back no transaction - which the out-of-process
designer can do - made that a null reference thrown from the design surface's mouse handling, so the
design-tools server reported DesignToolsServerException: Object reference not set to an instance of an object and the click died.
- The transaction is optional (
transaction?.Commit()in afinally). - The ribbon and drop-down are captured once and null-checked; the entry is removed from its collection even
when the host path fails, so the row always disappears. - A failure is written to
RibbonLibDesign.log(next to the repo, or%TEMP%elsewhere) with the real
stack, instead of escaping into the designer's message loop. - The design surface's click guard (
RibbonAddPillGlyphBehavior.OnMouseUp) keeps any residual exception from
killing the designer server.
Same code as 1.0.31 otherwise: two-pane orb menu, runtime drop-down layout fix, tab icons.
dotnet add package Dwain.RibbonLib --version 1.0.32
1.0.31 - README screenshot shows on NuGet
README only; code is unchanged from 1.0.30.
- The screenshot under the fork description now loads on nuget.org. The README linked
docs/ribbon.png
relatively, but onlyREADME.mdis packed into the package, so the image was broken there; it now
points at
the raw file. - The NuGet badge now tracks the newest release instead of the newest prerelease, matching the switch to
stable numbering in 1.0.30.
1.0.30 - stable release (no longer listed as prerelease)
Numbering only: this is the same code as 1.0.29-net10, published without the -net10 suffix so
nuget.org treats it as an ordinary release instead of a prerelease. The package still targets both .NET 8
and .NET 10 (net8.0-windows7.0, net10.0-windows7.0).
dotnet add package Dwain.RibbonLib
Contents, unchanged from 1.0.29:
- Two-pane orb menu on the design surface and at runtime: menu items on the left, the recent-items
caption and list plus the option buttons on the right, both sized to their content. - The runtime drop-down lays itself out again - it used to skip layout when it had no window handle
yet (the call that sizes it runs before the handle exists) and opened at its default size with empty
panes. - Placeholder captions for uncaptioned entries, no duplicate rows, selectable/deletable separators, one
item menu for left and right click, and Delete that really removes the entry. - Tab icons (
RibbonTab.Image, scaled to fit) and the quick access toolbar image fix from 1.0.27/1.0.28.
1.0.29-net10 - two-pane orb menu, working runtime drop-down
Orb menu
- Two panes again, on the design surface and at runtime. Menu items in the left pane; the
recent-items caption and list, then the option buttons, in the right one. Both panes are sized to
their content and a pane with nothing in it takes no space, so the menu stays exactly as tall as its
rows plus the add-buttons footer. - The runtime drop-down sizes itself again. It laid out its panes and items only when it already had
a window handle, but the call that sizes it (OnOpening) runs before the handle exists - so it opened
at its default size with empty panes and items at no position. Layout now measures through the desktop
DC when there is no handle and runs again when the handle is created. - Entries with no caption show
(menu item)/(recent item)/(option button)instead of an
invisible row, the same item listed twice in a collection is shown once, separators are selectable and
deletable, left and right click open the same item menu, and Delete removes the entry for real.
Tab icons (RibbonTab.Image, scaled to fit the tab) and the quick access toolbar image fix are in
1.0.27 and 1.0.28.
dotnet add package Dwain.RibbonLib --version 1.0.29-net10
1.0.27-net10 - tab icons and a tidier orb menu
Tab icons
RibbonTab now has an Image property (Appearance in the Properties window). The icon is drawn to the
left of the tab text, scaled to fit the tab while keeping its aspect ratio, and the tab is measured wider
so the text is never clipped.
var files = new RibbonTab { Text = "Files", Image = Properties.Resources.Folder };Orb menu
- The design-time orb menu is one stacked column sized to its rows plus the add-buttons footer, so there
is no reserved empty pane and no divider; with no entries it is only the footer. - Entries with no caption and no icon show
(menu item),(recent item)or(option button)instead
of an invisible row, and an item that is in a collection more than once is listed once. - Left or right click opens the same item menu - Add Image..., Add from Resources...,
Clear Image, Delete - anchored to the clicked row and kept clear of the footer buttons. - Separators, recent items and option buttons are selectable like any other entry, and Delete now
really removes the entry from its collection and fromForm1.Designer.cs.
Also in this build
- The Properties grid's collection editor adds concrete items instead of failing on the abstract
RibbonItem(the 1.0.26 fix), and the README now describes that editor honestly: Visual Studio's
generic one, with no ribbon-specific behaviour. - The release workflow restores both projects before building, which the design-assembly copy target
needs; without it the publish job failed before packing.
dotnet add package Dwain.RibbonLib --version 1.0.27-net10
v1.0.20-net10
Design-time log path can be overridden with the RIBBONLIB_DESIGN_LOG environment variable.
v1.0.19-net10
Removes an incorrect Designer attribute on RibbonOrbMenuItem that pointed at a collection editor, which broke creating orb menu items in the WinForms designer. Includes design-time failure logging to %TEMP%\RibbonLibDesign.log.
v1.0.17-net10
Fixes 'cannot create an instance of abstract class RibbonItem' when adding items through the orb menu/recent/option collection editors in the Properties window.
v1.0.16-net10
Orb drop-down now autosizes to content at runtime (width fits menu/recent/option items, empty recent pane collapses) and the design-time orb menu sizes itself to its entries and button captions.
v1.0.15-net10
Widens the design-time orb menu to 300px so button captions and item text no longer truncate.