PopUp bound to a Toggle Button
I'm trying to use a PopUp IsOpen bound to a toggle IsChecked and vise-versa (kind of like a combobox IsDropDownOpen bound back and forth to a Toggle IsChecked). The behavior works fine in WPF but XAML player is having problems.
The popup goes away when you click outside of it, but the toggle doesn't uncheck. You have to click the toggle twice to uncheck it and recheck it.
Also note, we're using Noesis version 1.1.14.5178. Maybe this has been fixed in 1.2?
Thanks for your help!
The popup goes away when you click outside of it, but the toggle doesn't uncheck. You have to click the toggle twice to uncheck it and recheck it.
Also note, we're using Noesis version 1.1.14.5178. Maybe this has been fixed in 1.2?
Thanks for your help!
Code: Select all
<ToggleButton x:Name="ToggleTransparencyPopUp" Margin="2,0,0,0" Style="{DynamicResource ToggleButtonPopUpStyle}" IsChecked="{Binding IsOpen, ElementName=SliderTransparencyPopup, Mode=OneWay}" Width="25" Height="14"/>
<Popup x:Name="SliderTransparencyPopup" Margin="0" AllowsTransparency="True" HorizontalOffset="-69" VerticalOffset="1" IsOpen="{Binding IsChecked, ElementName=ToggleTransparencyPopUp, Mode=OneWay}" StaysOpen="False">
-
sfernandez
Site Admin
- Posts: 3184
- Joined:
Re: PopUp bound to a Toggle Button
There was a bug in Popups with StaysOpen="false" that was not updating the IsOpen property when popup was closed by clicking outside it. We just solved this issue for the upcoming 1.2.3 version.
If you create a ticket in our bugtracker I can provide you with a hotfix for 1.1.14.
If you create a ticket in our bugtracker I can provide you with a hotfix for 1.1.14.
Re: PopUp bound to a Toggle Button
Great thanks!
I'll just wait for 1.2.3. Have a workaround in for now. Do you have a timeline for that release?
I'll just wait for 1.2.3. Have a workaround in for now. Do you have a timeline for that release?
-
sfernandez
Site Admin
- Posts: 3184
- Joined:
Re: PopUp bound to a Toggle Button
We expect to release 1.2.3 version by the end of next week.
Who is online
Users browsing this forum: Ahrefs [Bot], dstewart and 3 guests