Beispiel #1
0
        /// <summary>
        /// Update view.
        /// </summary>
        /// <param name="sender">Sender</param>
        /// <param name="ev">Event.</param>
        protected override void UpdateView(object sender = null, PropertyChangedEventArgs ev = null)
        {
            MovedToCache();

            CurrentComponent = GetTemplate(Item.GetType()).IInstance(ComponentParent);
            CurrentComponent.SetData(Item);
        }
Beispiel #2
0
        /// <summary>
        /// Update view.
        /// </summary>
        protected override void UpdateView()
        {
            MovedToCache();

            CurrentComponent = Templates[Item.GetType()].IInstance(ComponentParent);
            CurrentComponent.SetData(Item);
        }