예제 #1
0
 protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
 {
     base.OnItemsSourceChanged(oldValue, newValue);
     if (this.Items != null && this.Items.Count > 0)
     {
         YAxisTitleControl yaxis = this.ItemContainerGenerator.ContainerFromItem(this.Items[Items.Count - 1]) as YAxisTitleControl;
         yaxis.FirstMargin = new Thickness(0, -7, 0, 0);
     }
 }
        protected override DependencyObject GetContainerForItemOverride()
        {
            YAxisTitleControl gridCell = new YAxisTitleControl();

            return(gridCell);
        }