IAuthorizeReadWrite Not Implemented in Cslalight

IAuthorizeReadWrite Not Implemented in Cslalight

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


carney posted on Monday, November 03, 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?

RockfordLhotka replied on Monday, November 03, 2008

It should be there. I'll look into it, thanks!

Copyright (c) Marimer LLC