// // Copyright 2014 Perforce Software Inc. // using Perforce.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace Perforce.View { public class ListingDataTemplateSelector : DataTemplateSelector { public DataTemplate FileDataTemplate { get; set; } public DataTemplate FolderDataTemplate { get; set; } public override DataTemplate SelectTemplate(object item, DependencyObject container) { ListingItem li = item as ListingItem; if (li.Type.Equals(ListingItem.TYPE.FOLDER)) { return FolderDataTemplate; } else { return FileDataTemplate; } } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15071 | alan_petersen |
Populate -o //guest/perforce_software/piper/... //guest/alan_petersen/piper/.... |
||
//guest/perforce_software/piper/windows/main/Perforce/View/ListingDataTemplateSelector.cs | |||||
#1 | 11255 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/windows/Perforce/View/ListingDataTemplateSelector.cs | |||||
#1 | 10761 | alan_petersen |
initial drop of Piper for Windows.... this version still has _many_ bugs (er... i mean "unintended features") but I will be updating it over the next week as more stability is added. |