Beispiel #1
0
        /// <summary>
        /// Gets the current axis category X template.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        private DataTemplate GetCurentAxisCategoryXTemplate(object item)
        {
            DataTemplate dataTemplate = null;

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

            return(dataTemplate);
        }
Beispiel #2
0
        /// <summary>
        /// Gets the curent axis category X template.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        private DataTemplate GetCurentAxisCategoryXTemplate(StockInfoViewModel item)
        {
            DataTemplate dataTemplate = null;

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

            return(dataTemplate);
        }