public PanoramaView(PanoramaControl parent) { Parent = parent; LayoutRoot = parent.LayoutRoot; Items = Parent.Items; BackgroundHost.Transform = new TranslateTransform(); TitleHost.Transform = new TranslateTransform(); ItemsHost.Transform = new TranslateTransform(); }
protected void SetPanoramaApps(ObservableCollection <HubCrawlApp> apps) { var appGroups = apps.GroupBy(a => a.Group); ObservableCollection <PanoramaGroup> appGroupCollection = new ObservableCollection <PanoramaGroup>(); foreach (var group in appGroups) { appGroupCollection.Add(new AppPanoramaGroup(group.Key, CollectionViewSource.GetDefaultView(group))); PanoramaControl.SetBinding(HubCrawl.WPF.Controls.Panorama.ItemsSourceProperty, new Binding() { Source = appGroupCollection }); } }
public void NotifyAttach(Control control) { if (control is PanoramaControl) this.panorama = (PanoramaControl)control; }