This question is locked. New answers and comments are not allowed.
Hi
I am using RadProgressBar control inside a silverlight child window for a DB search operation,
My requirement is to close the child window once the search is completed i.e when the progress becomes 100.
i am setting the dialog result value using event trigger
<i:Interaction.Triggers>
<ei:PropertyChangedTrigger Binding="{Binding CancelResult}">
<ei:ChangePropertyAction TargetObject="{Binding ElementName=ProgressBarWindow}" PropertyName="DialogResult" Value="{Binding CancelResult}"/>
</ei:PropertyChangedTrigger>
</i:Interaction.Triggers>
I am able to close the child window using a button
<Button x:Name="CancelButton" Command="{Binding CancelSearchCommand}" Content="Cancel" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<ei:ChangePropertyAction TargetObject="{Binding}" PropertyName="CancelResult" Value="False"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
But i want to close the window once the progress completed. so i am setting the CancelResult property to false once
the progress becomes 100 from the ViewModel, but the window is not getting closed.
I am using RadProgressBar control inside a silverlight child window for a DB search operation,
My requirement is to close the child window once the search is completed i.e when the progress becomes 100.
i am setting the dialog result value using event trigger
<i:Interaction.Triggers>
<ei:PropertyChangedTrigger Binding="{Binding CancelResult}">
<ei:ChangePropertyAction TargetObject="{Binding ElementName=ProgressBarWindow}" PropertyName="DialogResult" Value="{Binding CancelResult}"/>
</ei:PropertyChangedTrigger>
</i:Interaction.Triggers>
I am able to close the child window using a button
<Button x:Name="CancelButton" Command="{Binding CancelSearchCommand}" Content="Cancel" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<ei:ChangePropertyAction TargetObject="{Binding}" PropertyName="CancelResult" Value="False"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
But i want to close the window once the progress completed. so i am setting the CancelResult property to false once
the progress becomes 100 from the ViewModel, but the window is not getting closed.