This commit is contained in:
parent
7f43c906e7
commit
a87b931e55
@ -398,6 +398,8 @@ namespace Volian.Controls.Library
|
|||||||
/// <param name="args"></param>
|
/// <param name="args"></param>
|
||||||
private void vlnExp_AttachmentClick(object sender, vlnExpanderEventArgs args)
|
private void vlnExp_AttachmentClick(object sender, vlnExpanderEventArgs args)
|
||||||
{
|
{
|
||||||
|
if (_MyvlnExpander.AutoTOC) return;
|
||||||
|
|
||||||
MyStepPanel.OnAttachmentClicked(sender, new StepPanelAttachmentEventArgs(this));
|
MyStepPanel.OnAttachmentClicked(sender, new StepPanelAttachmentEventArgs(this));
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -822,6 +824,7 @@ namespace Volian.Controls.Library
|
|||||||
CanExpand = true;
|
CanExpand = true;
|
||||||
// If a word document set the expander to attachment
|
// If a word document set the expander to attachment
|
||||||
_MyvlnExpander.Attachment = !(itemInfo.IsStepSection);
|
_MyvlnExpander.Attachment = !(itemInfo.IsStepSection);
|
||||||
|
_MyvlnExpander.AutoTOC = itemInfo.IsAutoTOCSection;
|
||||||
//OLD: _MyvlnExpander.Attachment = (itemInfo.MyContent.ContentPartCount == 0);
|
//OLD: _MyvlnExpander.Attachment = (itemInfo.MyContent.ContentPartCount == 0);
|
||||||
break;
|
break;
|
||||||
case 2: // High level steps with children can expand
|
case 2: // High level steps with children can expand
|
||||||
|
Loading…
x
Reference in New Issue
Block a user