Exemplo n.º 1
0
        /// <summary>
        /// Gets the current axis category Y template.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        private DataTemplate GetCurentAxisCategoryYTemplate(object item)
        {
            DataTemplate dataTemplate = null;

            if (AxisCategoryYTemplateSelector != null)
            {
                dataTemplate = AxisCategoryYTemplateSelector.SelectTemplate(item, this);
            }
            if (dataTemplate == null && AxisCategoryYTemplate != null)
            {
                dataTemplate = AxisCategoryYTemplate;
            }

            return(dataTemplate);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the curent axis category Y template.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        private DataTemplate GetCurentAxisCategoryYTemplate(DependencyObject item)
        {
            DataTemplate dataTemplate = null;

            if (AxisCategoryYTemplateSelector != null)
            {
                dataTemplate = AxisCategoryYTemplateSelector.SelectTemplate(DataContext, this);
            }
            if (dataTemplate == null && AxisCategoryYTemplate != null)
            {
                dataTemplate = AxisCategoryYTemplate;
            }

            return(dataTemplate);
        }