示例#1
0
        public PanoramaView(PanoramaControl parent)
        {
            Parent = parent;
            LayoutRoot = parent.LayoutRoot;
            Items = Parent.Items;

            BackgroundHost.Transform = new TranslateTransform();
            TitleHost.Transform = new TranslateTransform();
            ItemsHost.Transform = new TranslateTransform();
        }
示例#2
0
        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
                });
            }
        }
示例#3
0
 public void NotifyAttach(Control control)
 {
     if (control is PanoramaControl)
     this.panorama = (PanoramaControl)control;
 }