在listbox的选项中有个鼠标弹起命令,这个命令会弹起一个popup,结果在切换listbox后,popup弹起后一直不消失
前端代码如下:
<!-- 流程弹框 -->
<Popup x:Name="flowPopup" Style="{StaticResource flowPopup}"
IsOpen="{Binding Path=IsShowDetail,Mode=TwoWay}"
PlacementTarget="{Binding ElementName=blockList}"
HorizontalOffset="0" VerticalOffset="0">
<Grid Margin="20">
<Border Style="{StaticResource ShadowSmallOuterGlow}" Background="White" CornerRadius="8"/>
<Viewbox Width="300">
<ScrollViewer Style="{StaticResource ScrollViewerThin}">
<Frame x:Name="mainFrame"
NavigationUIVisibility="Hidden"
HorizontalAlignment="Left"
Source="{Binding DetailPath}"/>
</ScrollViewer>
</Viewbox>
</Grid>
</Popup>
<!-- 选项列表 -->
<ListBox x:Name="blockList"
Grid.Column="0"
SelectedIndex="{Binding DetailInde