Last active
December 17, 2015 14:28
-
-
Save rtanote/5624231 to your computer and use it in GitHub Desktop.
Livetを使ったダイアログ表示とVM連携
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" | |
xmlns:l="http://schemas.livet-mvvm.net/2011/wpf" | |
--> | |
<Button Content="開く" IsEnabled="{Binding OpenCommand.CanExecute}> | |
<i:Interaction.Triggers> | |
<i:EventTrigger EventName="Click"> | |
<l:OpenFileDialogInteractionMessageAction> | |
<l:DirectInteractionMessage CallbackCommand="{Binding OpenCommand, Mode=OneWay}"> | |
<l:OpeningFileSelectionMessage Filter="すべてのファイル(*.*)|*.*" Title="ファイルを開く" MultiSelect="True"/> | |
</l:DirectInteractionMessage> | |
</l:OpenFileDialogInteractionMessageAction> | |
</i:EventTrigger> | |
</i:Interaction.Triggers> | |
</Button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment