V
V
Victor Nasonov2017-05-30 09:06:50
WPF
Victor Nasonov, 2017-05-30 09:06:50

How to make expander button clickable?

I make a button in the expander like this:

<Expander x:Name="expander" Header="Настройки">
  <StackPanel Height="200" VerticalAlignment="Top" Background="#FFB9DEB8" >
    <Button x:Name="extended"  Click="extended_Click" Width="200" Height="30" IsHitTestVisible="True" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Top" Content="Включить расширенный режим"/>
  </StackPanel>
</Expander>

compile run - the button is not pressed!
tell me what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question