This commit is contained in:
Kathy Ruffing 2012-01-27 12:43:21 +00:00
parent 7f43c906e7
commit a87b931e55

View File

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