Page 1 of 1

PopUp bound to a Toggle Button

Posted: 15 Apr 2015, 16:37
by walhore
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!
<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">

Re: PopUp bound to a Toggle Button

Posted: 17 Apr 2015, 19:39
by sfernandez
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.

Re: PopUp bound to a Toggle Button

Posted: 17 Apr 2015, 21:01
by walhore
Great thanks!

I'll just wait for 1.2.3. Have a workaround in for now. Do you have a timeline for that release?

Re: PopUp bound to a Toggle Button

Posted: 17 Apr 2015, 21:10
by sfernandez
We expect to release 1.2.3 version by the end of next week.

Re: PopUp bound to a Toggle Button

Posted: 21 Apr 2015, 23:19
by walhore
Perfect. Thanks again.