private void InternalInitialize() { _context = _doc.GetPropertyContext(); AxisStyleController = new AxisStyleController() { UseDocumentCopy = UseDocument.Directly }; AxisStyleController.MadeDirty += EhAxisStyleControllerDirty; MajorLabelCondController = new ConditionalDocumentController <AxisLabelStyle>(CreateMajorLabel, RemoveMajorLabel) { UseDocumentCopy = UseDocument.Directly }; MinorLabelCondController = new ConditionalDocumentController <AxisLabelStyle>(CreateMinorLabel, RemoveMinorLabel) { UseDocumentCopy = UseDocument.Directly }; AxisStyleController.InitializeDocument(_doc); if (_doc.AreMajorLabelsEnabled) { MajorLabelCondController.InitializeDocument(_doc.MajorLabelStyle); } if (_doc.AreMinorLabelsEnabled) { MinorLabelCondController.InitializeDocument(_doc.MinorLabelStyle); } }
private void RemoveMinorLabel() { _doc.HideMinorLabels(); AxisStyleController.AnnounceExternalChangeOfMajorOrMinorLabelState(); }
private AxisLabelStyle CreateMinorLabel() { _doc.ShowMinorLabels(_context); AxisStyleController.AnnounceExternalChangeOfMajorOrMinorLabelState(); return(_doc.MinorLabelStyle); }