I have created a popup and from within the popup I have created a telerik docking window. This works fine. But the problem is if the user closes the telerik window by clicking on the "X" then the popup never comes back again. This is because the popup's dependency property IsOpen is left set to true. I want to set up a trigger event so I can hijack the telerik close event so I can first set this property IsOpen to false and then let Telerik to continue the close. Can you please let me know how I can do this? If possible I want to do this from within the XAML file. I figured we can use an event trigger for PreviewClose event and when this event fires then I can set the popup.IsOpen to false. Any help is greatly appreciated.
Thanks,
Sonia
Code for Popup:
<
Popup x:Name="FiberPopUp" Placement="Mouse" IsEnabled="True" IsOpen="False" Focusable="True">
<Popup.RenderTransform>
<ScaleTransform>
<ScaleTransform.ScaleX>
<MultiBinding Converter="{x:Static coreconverters:ArithmeticConverter.Default}" ConverterParameter="/">
<Binding Source="1.0" Mode="OneWay" />
<Binding Path="ContentScale" Source="{x:Static local:ViewModel.Instance}" Mode="OneWay"/>
</MultiBinding>
</ScaleTransform.ScaleX>
<ScaleTransform.ScaleY>
<MultiBinding Converter="{x:Static coreconverters:ArithmeticConverter.Default}" ConverterParameter="/">
<Binding Source="1.0" Mode="OneWay" />
<Binding Path="ContentScale" Source="{x:Static local:ViewModel.Instance}" Mode="OneWay"/>
</MultiBinding>
</ScaleTransform.ScaleY>
</ScaleTransform>
</Popup.RenderTransform>
<StackPanel Width="auto" Height="auto" >
<telerikDocking:RadPaneGroup>
<telerikDocking:RadPane Header="Fiber PopUp." ContextMenuTemplate="{x:Null}">
<TextBlock Text="This is a test " />
</telerikDocking:RadPane>
</telerikDocking:RadPaneGroup>
</StackPanel>
</Popup>