public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            S7VATRow vRow = item as S7VATRow;

            if (vRow == null || string.IsNullOrEmpty(vRow.Comment))
            {
                return(NormalRowsTemplate);
            }
            return(CommentRowsTemplate);
        }
Exemplo n.º 2
0
        protected override void PrepareContainerForItemOverride(System.Windows.DependencyObject element, object item)
        {
            S7VATRow tmp = item as S7VATRow;

            base.PrepareContainerForItemOverride(element, item);


            //base.PrepareContainerForItemOverride(element, item);
            //DataGridRow dataGridRow = (DataGridRow)element;
            //if (dataGridRow.DataGridOwner != this)
            //{
            //    dataGridRow.Tracker.StartTracking(ref this._rowTrackingRoot);
            //    this.EnsureInternalScrollControls();
            //}
            //dataGridRow.PrepareRow(item, this);
            //this.OnLoadingRow(new DataGridRowEventArgs(dataGridRow));
        }
Exemplo n.º 3
0
 public VarTabRowWithConnection(S7VATRow baseRow)
 {
     this.LibNoDaveValue = baseRow.LibNoDaveValue;
     this.Comment        = baseRow.Comment;
 }