PropertyStatus format gui output with multiple broken rules

PropertyStatus format gui output with multiple broken rules

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


richardp posted on Thursday, February 16, 2012

Hi I am using a PropertyStatus control.

When there is a single broken rule it works well.

When there are multiple broken rules, the output of the control on the screen is not formatted properly. All of the error description strings are displayed but they are not justified properly.

Can anyone point me to an example of xaml code to format the output of the PropertyStatus control for multiple broken rules.

I tried using the ContentTemplate but couldn't get it to work.

Thanks.

                              <csla:PropertyStatus Grid.Row="0"

                                                         Grid.Column="1"

                                                         Margin="0"

                                                         Content="{Binding Path=BrokenRules}"

                                                         Property="{Binding Path=Model.StockpileTransactions}">

                                        <csla:PropertyStatus.ContentTemplate>

                                            <DataTemplate>

                                                <TextBox Text="{Binding Path=Description}" />

                                            </DataTemplate>

                                        </csla:PropertyStatus.ContentTemplate>

                                    </csla:PropertyStatus>

Copyright (c) Marimer LLC