PopUp bound to a Toggle Button
Posted: 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!
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">