I have the following button defined in a ribbon view:
<bfgs:bDataPage.Resources>
<telerik:BooleanToVisibilityConverter x:Key="BtvConverter" />
</bfgs:bDataPage.Resources>
<
trb:RadRibbonButton
x:Name="TableButton"
LargeImage="/Bowne.Framework.GUI.Silverlight;component/Media/Table32x32.png"
Click="TableButtonClick"
Visibility="{Binding IsTableButtonVisible, Converter={StaticResource BtvConverter}, Mode=TwoWay}"
Size="Large"
Text="Table" />
In the ViewModel:
private
const string IsTableButtonVisiblePropertyName = "IsTableButtonVisible";
private bool _isTableButtonVisible;
public bool IsTableButtonVisible
{
get
{
return _isTableButtonVisible;
}
set
{
_isTableButtonVisible =
value;
this.OnPropertyChanged(IsTableButtonVisiblePropertyName);
}
}
The button still shows regardless of the setting of this property. Can you tell me what I'm doing wrong?
Thanks...