Visual Studio (Visual Basic): Two buttons and one Flyout property

  • Thread starter Thread starter Jonathan.12
  • Start date Start date
J

Jonathan.12

Guest
Hello,

I am still building my photo application in Visual Studio (XAML) and I'm struggling with the Flyout property.

I have two buttons:

- Photobutton

- Moviebutton

Every button should come with a 'warning': Do you want to go further? When you click "Yes" you see the photo or the movie. I want the use the same Flyout for the two different buttons. Photobutton is working, but the moviebutton is not working. I get the error that the Flyout property is set more than once. What do I wrong?

I just want the use my default Flyout multiple times. Is this possible?

Code:

<Button.Flyout>
<Flyout x:Name="Warning_Flyout" Placement="Right">
<StackPanel>
<TextBlock> Do you want to go further? </TextBlock>
<Button Click="Picturebutton_Click">Go further</Button>
</StackPanel>
</Flyout>
</Button.Flyout>
</Button>

Thanks in advance

Jonathan




Continue reading...
 
Back
Top