walhore
Topic Author
Posts: 19
Joined: 25 Feb 2013, 17:24

PopUp bound to a Toggle Button

15 Apr 2015, 16:37

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">
 
User avatar
sfernandez
Site Admin
Posts: 1911
Joined: 22 Dec 2011, 19:20

Re: PopUp bound to a Toggle Button

17 Apr 2015, 19:39

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.
 
walhore
Topic Author
Posts: 19
Joined: 25 Feb 2013, 17:24

Re: PopUp bound to a Toggle Button

17 Apr 2015, 21:01

Great thanks!

I'll just wait for 1.2.3. Have a workaround in for now. Do you have a timeline for that release?
 
User avatar
sfernandez
Site Admin
Posts: 1911
Joined: 22 Dec 2011, 19:20

Re: PopUp bound to a Toggle Button

17 Apr 2015, 21:10

We expect to release 1.2.3 version by the end of next week.
 
walhore
Topic Author
Posts: 19
Joined: 25 Feb 2013, 17:24

Re: PopUp bound to a Toggle Button

21 Apr 2015, 23:19

Perfect. Thanks again.

Who is online

Users browsing this forum: No registered users and 0 guests