Пример #1
0
        public void ApplyStyles()
        {
            StyleHelper.ApplyStyles(typeof(BatchLineView), ReportLines, Application.Current.Resources, Legend);
            var elements = Legend.Descendants <FrameworkElement>().Where(e => Equals(e.Tag, "generated")).ToArray();

            elements.Each(e => e.Tag = "");
            StyleHelper.ApplyStyles(typeof(Offer), Offers, Application.Current.Resources, Legend);
            elements.Each(e => e.Tag = "generated");
        }