Beispiel #1
0
        protected override void Initialize()
        {
            base.Initialize();

            MediaViewer = new MediaViewer
            {
                Pane = this
            };

            Content = MediaViewer;
            MediaViewer.GotFocus += delegate { SitecorePackage.Instance.GotFocus(this); };
        }
        void ISiteContext.SetSite(Site site)
        {
            Debug.ArgumentNotNull(site, nameof(site));

            MediaViewer.SetSite(site);
        }
        public MediaContext([NotNull] MediaViewer mediaViewer)
        {
            Assert.ArgumentNotNull(mediaViewer, nameof(mediaViewer));

            MediaViewer = mediaViewer;
        }