Ejemplo n.º 1
0
        public TargetItem(int aId, ITabModel aModel)
        {
            this.Id    = aId;
            this.Model = aModel;

            this.Initialize();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Selects the template.
        /// </summary>
        /// <param name="tabModel">The tab model.</param>
        /// <param name="element">The element.</param>
        /// <returns></returns>
        public DataTemplate SelectTemplate(ITabModel tabModel, FrameworkElement element)
        {
            var dataTemplate = element.FindResource("DiagramsGridTemplate") as DataTemplate;

            return(dataTemplate);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Selects the template.
 /// </summary>
 /// <param name="tabModel">The tab model.</param>
 /// <param name="element">The element.</param>
 /// <returns></returns>
 public DataTemplate SelectTemplate(ITabModel tabModel, FrameworkElement element)
 {
     return(element.FindResource("DiagramsTemplate") as DataTemplate);
 }