Beispiel #1
0
 void IBindingSupport.InvokeDataNodeCreated(DataItemVisualEventArgs e)
 {
     OnDataNodeCreated(e);
 }
Beispiel #2
0
 /// <summary>
 /// Raises the DataNodeCreated event.
 /// </summary>
 /// <param name="dataNodeEventArgs">Provides event arguments.</param>
 protected virtual void OnDataNodeCreated(DataItemVisualEventArgs dataNodeEventArgs)
 {
     if (DataItemVisualCreated != null) DataItemVisualCreated(this, dataNodeEventArgs);
 }
Beispiel #3
0
        /// <summary>
        /// Creates a new item from template for the data.
        /// </summary>
        /// <param name="item">Data to create item for.</param>
        /// <returns>New instance of the BaseItem.</returns>
        private object CreateVisualItem(IList parent, object item, int itemIndex, List<BindingDef> bindings)
        {
            object visualItem = _VisualTemplate.Clone();
            parent.Add(visualItem);

            SetVisualItemData(visualItem, item, bindings, itemIndex);

            DataItemVisualEventArgs eventArgs = new DataItemVisualEventArgs(visualItem, item);
            _Parent.InvokeDataNodeCreated(eventArgs);

            return eventArgs.Visual;
        }