Hi,
I need to know if a tab is opened. So I tried using the following code with different variations of the binding mode.
<ribbon:Ribbon>
<ribbon:Tab Label="Home">
</ribbon:Tab>
<ribbon:Tab Label="Try selected" IsSelected="{Binding Path=IsSelectedProperty}">
</ribbon:Tab>
</ribbon:Ribbon>
private bool isSelectedProp;
public bool IsSelectedProperty
{
get { return isSelectedProp; }
set {
isSelectedProp = true;
OnPropertyChanged("IsSelectedProperty");
}
}
The problem is that when Mode is one of {Default, OneTime, OneWay, TwoWay} either the properties get function or using OneWayToSource the properties set function is called only once at the beginning. Also the tabs visual selection indication stops working.
So none of the combinations is reading and writing to the property and none is updating the status. How can I reliably determine and set the value of the tabs selection?
Kind regards
[Modified 11 years ago]