CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • PropertyStatus format gui output with multiple broken rules

    rated by 0 users
    Not Answered This post has 0 verified answers | 0 Replies | 1 Follower

    Not Ranked
    14 Posts
    richardp posted on Thu, Feb 16 2012 4:56 PM

    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>

    Page 1 of 1 (1 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems