Closed Smurf-IV closed 10 months ago
Does not occur Canary versions :
Note: The following have creation object problems !!
Does not seem to appear in the demo apps. Will perform a clean create (As per the OP bug raised against)
Creating the project clean with 80.23.9.268-beta - canary
allows it to work as expected !!??
Hmm..
Also works when recreating with 80.23.10.275-alpha
Will have to go back to the Dev Machine (Monday onwards) and see what is different.
t throws when "One" (Not sure which yet) settings are used in the designer:
this.kryptonNavigator1.Bar.BarMapExtraText = Krypton.Navigator.MapKryptonPageText.None;
this.kryptonNavigator1.Bar.BarMapImage = Krypton.Navigator.MapKryptonPageImage.Small;
this.kryptonNavigator1.Bar.BarMapText = Krypton.Navigator.MapKryptonPageText.TextTitle;
this.kryptonNavigator1.Bar.BarMultiline = Krypton.Navigator.BarMultiline.Singleline;
this.kryptonNavigator1.Bar.BarOrientation = Krypton.Toolkit.VisualOrientation.Top;
this.kryptonNavigator1.Bar.CheckButtonStyle = Krypton.Toolkit.ButtonStyle.Standalone;
this.kryptonNavigator1.Bar.ItemAlignment = Krypton.Toolkit.RelativePositionAlign.Near;
this.kryptonNavigator1.Bar.ItemMaximumSize = new System.Drawing.Size(200, 200);
this.kryptonNavigator1.Bar.ItemMinimumSize = new System.Drawing.Size(20, 20);
this.kryptonNavigator1.Bar.ItemOrientation = Krypton.Toolkit.ButtonOrientation.Auto;
this.kryptonNavigator1.Bar.ItemSizing = Krypton.Navigator.BarItemSizing.SameHeight;
this.kryptonNavigator1.Bar.TabBorderStyle = Krypton.Toolkit.TabBorderStyle.SlantEqualNear;
this.kryptonNavigator1.Bar.TabStyle = Krypton.Toolkit.TabStyle.HighProfile;
this.kryptonNavigator1.Button.ButtonDisplayLogic = Krypton.Navigator.ButtonDisplayLogic.None;
this.kryptonNavigator1.Button.CloseButtonAction = Krypton.Navigator.CloseButtonAction.RemovePageAndDispose;
this.kryptonNavigator1.Button.CloseButtonDisplay = Krypton.Navigator.ButtonDisplay.Hide;
this.kryptonNavigator1.Button.ContextButtonAction = Krypton.Navigator.ContextButtonAction.None;
this.kryptonNavigator1.Button.ContextButtonDisplay = Krypton.Navigator.ButtonDisplay.Hide;
this.kryptonNavigator1.Button.ContextMenuMapImage = Krypton.Navigator.MapKryptonPageImage.Small;
this.kryptonNavigator1.Button.ContextMenuMapText = Krypton.Navigator.MapKryptonPageText.TextTitle;
this.kryptonNavigator1.Button.NextButtonAction = Krypton.Navigator.DirectionButtonAction.ModeAppropriateAction;
this.kryptonNavigator1.Button.NextButtonDisplay = Krypton.Navigator.ButtonDisplay.Logic;
this.kryptonNavigator1.Button.PreviousButtonAction = Krypton.Navigator.DirectionButtonAction.ModeAppropriateAction;
this.kryptonNavigator1.Button.PreviousButtonDisplay = Krypton.Navigator.ButtonDisplay.Logic;
this.kryptonNavigator1.ControlKryptonFormFeatures = false;
this.kryptonNavigator1.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonNavigator1.Enabled = false;
this.kryptonNavigator1.Location = new System.Drawing.Point(0, 0);
this.kryptonNavigator1.Name = "kryptonNavigator1";
this.kryptonNavigator1.NavigatorMode = Krypton.Navigator.NavigatorMode.BarRibbonTabGroup;
this.kryptonNavigator1.Owner = null;
this.kryptonNavigator1.PageBackStyle = Krypton.Toolkit.PaletteBackStyle.ControlClient;
the following is the fix for this issue:
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (_mementos is not null)
{
// Dispose of all the mementos in the array
foreach (IDisposable? memento in _mementos)
{
// https://github.com/Krypton-Suite/Standard-Toolkit/issues/1146
memento?.Dispose();
}
_mementos = null!;
}
if (ButtonSpecManager is not null)
{
ButtonSpecManager.Destruct();
ButtonSpecManager = null!;
}
}
base.Dispose(disposing);
}
Using Krypton.Navigator.Nightly
Win 10 22H2 VS 17.7.5 .net 7.0.12