di Divelements - Tipo prodotto: Componente / .NET WPF
ApplicationPopup behaviour with complex XAML inside it.
Hi all (perhaps there will one day be all),
I'm seeing a strange behaviour from my ApplicationPopup, which is that when I include a complex XAML inside it any manipulation of the controls closes the popup. It retains state, but is very annoying. So this:
<StackPanel>
<TextBox x:Name="conversationName" Height="20" TextChanged="checkCanSubmit">Enter Conversation Name Here</TextBox>
<StackPanel Orientation="Horizontal">
<CheckBox x:Name="studentsCanPublish" />
<TextBlock Text="Students may write public content in this conversation" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<CheckBox x:Name="studentsCanOpenFriends" />
<TextBlock Text="Students may open their friends console to chat and to find each other" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<CheckBox x:Name="usersAreSynced" />
<TextBlock Text="Students must always follow you when you move slides" />
</StackPanel>
</StackPanel>
Which is just a basic data entry form, will close the popup whenever any of the checkboxes are selected, or when the submit button is clicked. Strangely, in another popup attached to a different menu item of the application popup, selecting an item in a listview does not close the popup.
Is this expected behaviour? Is there a more appropriate component choice for doing complex builder stuff inside a popup?
Rispondi
ComponentSource offre un servizio unico globale usato da oltre 1.000.000 di sviluppatori nel mondo.