Skip to content

How to hide the popup after clicking it? #1113

@younibugudano

Description

@younibugudano
            <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>

image

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionOld items with this tag will be automatically closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions