public TargetItem(int aId, ITabModel aModel) { this.Id = aId; this.Model = aModel; this.Initialize(); }
/// <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); }
/// <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); }