public override DataTemplate SelectTemplate(object item, DependencyObject container) { S7VATRow vRow = item as S7VATRow; if (vRow == null || string.IsNullOrEmpty(vRow.Comment)) { return(NormalRowsTemplate); } return(CommentRowsTemplate); }
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)); }
public VarTabRowWithConnection(S7VATRow baseRow) { this.LibNoDaveValue = baseRow.LibNoDaveValue; this.Comment = baseRow.Comment; }