C# WPF Prism PopupWindowAction События окна

134
16 января 2019, 02:40

Хочу сделать свою "non client area" в popup окне. Как и где мне можно работать с code-behind PopupWindowAction окна? Можно ли реагировать на события PopupWindowAction окна в ViewModel UserControl? Application.Current.Windows отдает окна но как управлять именно етим окном?

<i:Interaction.Triggers>
    <prism:InteractionRequestTrigger SourceObject="{Binding CustomPopupRequest}">
        <prism:PopupWindowAction IsModal="True" WindowStartupLocation="CenterOwner" >
            <prism:PopupWindowAction.WindowStyle>
                <Style TargetType="{x:Type Window}">
                    <Setter Property="WindowStyle" Value="None"/>
                    <Setter Property="WindowChrome.WindowChrome">
                        <Setter.Value>
                            <WindowChrome UseAeroCaptionButtons="False" CaptionHeight="0"/>
                        </Setter.Value>
                    </Setter>
                </Style>
            </prism:PopupWindowAction.WindowStyle>
            <prism:PopupWindowAction.WindowContent>
                <views:AddObjectUserControl />
            </prism:PopupWindowAction.WindowContent>
        </prism:PopupWindowAction>
    </prism:InteractionRequestTrigger>
</i:Interaction.Triggers>
READ ALSO
Объясните код c#

Объясните код c#

Вот кодЧто делает, понять не могу

180
Ошибка PHP Fatal error: require(): Failed opening required на php7.0 yii2

Ошибка PHP Fatal error: require(): Failed opening required на php7.0 yii2

На хостинге работало все нормально,как только перенес на vps ошибкалоги тут -

169
input[date] контроль

input[date] контроль

как сделать в input type=date так, что бы допустим щас 2018 год и в этом инпуте можно было выбрать дату только до 2018 года, если 2019 до 2019 , думаю смысл...

164
Вывод строк по id

Вывод строк по id

Только начал учить php(сразу на практике)Прошу вашей помощи

186