I would like to know if the following code should work with RadUpload? meaning should i be able to trap the FileUploaded event with an EventTrigger? if not, is this by design or a bug?
basically i want to bind the FileUploaded event to a viewmodel.
<telerik:RadUpload Grid.Row="0" x:Name="ImagesRadUpload"
OverwriteExistingFiles="True"
IsMultiselect="False"
IsAutomaticUpload="False"
IsAppendFilesEnabled="False"
MaxFileCount="1"
UploadServiceUrl="{Binding UploadHandlerUrl}"
Filter="Image Files (*.jpg;*.png)|*.jpg;*.png"
Style="{StaticResource RadSimpleUploadStyle}"
ItemContainerStyle="{StaticResource RadSimpleUploadItemStyle}"
Width="Auto"
VerticalAlignment="Top"
Height="30"
Margin="0,4,0,0"
MaxHeight="30"
MinHeight="30" >
basically i want to bind the FileUploaded event to a viewmodel.
<telerik:RadUpload Grid.Row="0" x:Name="ImagesRadUpload"
OverwriteExistingFiles="True"
IsMultiselect="False"
IsAutomaticUpload="False"
IsAppendFilesEnabled="False"
MaxFileCount="1"
UploadServiceUrl="{Binding UploadHandlerUrl}"
Filter="Image Files (*.jpg;*.png)|*.jpg;*.png"
Style="{StaticResource RadSimpleUploadStyle}"
ItemContainerStyle="{StaticResource RadSimpleUploadItemStyle}"
Width="Auto"
VerticalAlignment="Top"
Height="30"
Margin="0,4,0,0"
MaxHeight="30"
MinHeight="30" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="FileUploaded">
<Mvvm:EventToCommand Command="{Binding Path=DataContext.ImageGalleryFileUploadedCommand, ElementName=ImageGalleryControl}" PassEventArgsToCommand="True"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</telerik:RadUpload>