<materialDesign:PopupBox x:Name="BtnSpeed" Margin="0" DockPanel.Dock="Right" PlacementMode="TopAndAlignCentres" StaysOpen="True" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="0.8" >
<Grid Height="25" Width="220" Margin="0">
<Slider x:Name="SpeedSlider" Orientation="Horizontal" Width="180" Height="25" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" OverridesDefaultStyle="True" Style="{StaticResource Slider_CustomStyle}" ValueChanged="SpeedSlider_ValueChanged">
</Slider>
</Grid>
</materialDesign:PopupBox>
How to hide the popup after clicking it?
I tried trigger of MouseDown event and set ”StayOpen = true“.It didn't work.please help me!