Ejemplo n.º 1
0
        /// <summary>
        /// プロパティペインに表示している、画像詳細情報を更新します。
        /// </summary>
        public void UpdatePropertyPane(bool isClear = false)
        {
            if (!isClear)
            {
                // PropertyPaneに表示しているViewModelを取得します。
                var message = new ShowPropertyPaneMessage()
                {
                    ShowPropertyPaneItemType = ShowPropertyPaneItemType.ImageDetailProperty
                };
                Messenger.Raise(message);

                var vm = message.Response as ImagePreviewPropertyViewModel;
                if (vm != null)
                {
                    // TODO: プロパティ用のViewModelに画像詳細情報を書き込む
                    // 表示するデータは未決定。
                    vm.SampleText = "山田哲人";
                }
            }
            else
            {
                var message = new ShowPropertyPaneMessage()
                {
                    ShowPropertyPaneItemType = ShowPropertyPaneItemType.Clear
                };
                Messenger.Raise(message);
            }
        }
Ejemplo n.º 2
0
        public void Handle(ShowPropertyPaneMessage message)
        {
            var paneKey = string.Format("{0}_{1}_{2}", message.Sender.GetType().AssemblyQualifiedName, message.Sender.GetType().FullName, message.Title);

            if (_customPropertyPanes.ContainsKey(paneKey) == false || _customPropertyPanes[paneKey] == null)
            {
                var newPane = new RadPane();
                newPane.CanDockInDocumentHost = false;
                newPane.CanUserClose          = message.IsUserCloseable;

                _customPropertyPanes[paneKey] = newPane;
            }

            var pane = _customPropertyPanes[paneKey];

            pane.Content = message.PaneContent;
            pane.Header  = message.Title;

            if (PropertyPanes.Contains(pane) == false)
            {
                PropertyPanes.Add(pane);
            }

            FocusPropertyPane(pane);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// プロパティペインに表示している、画像詳細情報を更新します。
        /// </summary>
        public void UpdatePropertyPane(bool isClear = false)
        {
            if (!isClear)
            {
                // PropertyPaneに表示しているViewModelを取得します。
                var message = new ShowPropertyPaneMessage()
                {
                    ShowPropertyPaneItemType = ShowPropertyPaneItemType.ImageListProperty
                };
                Messenger.Raise(message);

                var vm = message.Response as ArtifactNavigationListPropertyViewModel;
                if (vm != null)
                {
                    // TODO: プロパティ用のViewModelに画像リストの情報を書き込む
                }
            }
            else
            {
                var message = new ShowPropertyPaneMessage()
                {
                    ShowPropertyPaneItemType = ShowPropertyPaneItemType.Clear
                };
                Messenger.Raise(message);
            }
        }