// // Copyright 2014 Perforce Software Inc. // using Perforce.Helper; using Perforce.ViewModel; using System; using System.Windows; using System.Windows.Controls; namespace Perforce.View { /// <summary> /// Interaction logic for BreadcrumbBar.xaml /// </summary> public partial class BreadcrumbBar : UserControl { private BreadcrumbBarViewModel _model; public BreadcrumbBar() { InitializeComponent(); _model = new BreadcrumbBarViewModel(); MainWindow main = App.Current.MainWindow as MainWindow; if (main != null) { _model.UpdatePath(main.CurrentSelection); } this.DataContext = _model; } public BreadcrumbBarViewModel Model { get { return _model; } } private void Breadcrumb_MouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { Log.TraceFunction(); FrameworkElement element = (FrameworkElement)sender; BreadCrumbItem item = element.DataContext as BreadCrumbItem; if (item != null) { UIHelper.GoToPath(item.Path, SELECTOR_TYPE.SERVER); } } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16507 | perforce_software | Move to main branch. | ||
//guest/perforce_software/piper/windows/R1.1/Perforce/View/BreadcrumbBar.xaml.cs | |||||
#3 | 16474 | Robert Cowham | Bring up-to-date with //guest/perforce_software/piper/windows/main/...@16473 | ||
#2 | 13572 | alan_petersen | updating R1.1 | ||
#1 | 11256 | alan_petersen |
Populate //guest/perforce_software/piper/windows/R1.1/... from //guest/perforce_software/piper/windows/main/.... |
||
//guest/perforce_software/piper/windows/main/Perforce/View/BreadcrumbBar.xaml.cs | |||||
#1 | 11255 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/windows/Perforce/View/BreadcrumbBar.xaml.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. |