Example #1
0
        public override void ApplyGroupStyles(PlotGroupStyleCollection externalGroups)
        {
            using (var suspendToken = _localGroups.SuspendGetToken())
            {
                // for externalGroups, BeginApply was called already in the PlotItemCollection, for localGroups it has to be called here
                _localGroups.BeginApply();

                _plotStyles.ApplyGroupStyles(externalGroups, _localGroups);

                // for externalGroups, EndApply is called later in the PlotItemCollection, for localGroups it has to be called here
                _localGroups.EndApply();

                suspendToken.ResumeSilently(); // we are not interested in changes in the _localGroup
            }
        }