PropertyStatus not disabling text box in Silverlight app

PropertyStatus not disabling text box in Silverlight app

Old forum URL: forums.lhotka.net/forums/t/5698.aspx


carney posted on Wednesday, October 29, 2008

The following two lines of xaml create a text box bound to the name property of my business object:

<TextBox x:Uid="txtName" Name="txtName" Text="{Binding Path=Data.Name, Mode=TwoWay}" Grid.Row="1" Grid.Column="1" Margin="3" VerticalAlignment="Center" Height="Auto"/>
<csla_sl:PropertyStatus RelativeTargetName="txtName" Property="Name" Source="{Binding Path=Data}" Grid.Column="2" Grid.Row="0" HorizontalAlignment="Left"/>

It is my understanding that one of PropertyStatus' jobs is to disable the textbox if Write access to the bound property is denied. This isn't working. I can see that the reason it isn't working is because the cslalight version of Core.BusinessBase does not implement IAuthorizeReadWrite. Is this going to be fixed? Is there another approach that will enable/disable show/hide my controls based upon authorization rules?

Copyright (c) Marimer LLC