<UserControl x:Class="Com.FirmLib.UI.ContactInformationInput"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:uc="clr-namespace:Com.FirmLib.UI.Common"
             xmlns:fw="http://schemas.FWind/xaml"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Name="this" Height="{Binding Height,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UIElement}}"
             Width="{Binding Width,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UIElement}}" >
    <Grid>
        <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
            <Label  Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.StarLableKey}}" Content="联系人:"></Label>
            <!--Text="{Binding People,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"-->
            <TextBox  Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.TextBoxKey}}" Margin="5">
                <Binding Path="People" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" >
                    <Binding.ValidationRules>
                        <fw:RequireValidationRule ></fw:RequireValidationRule>
                    </Binding.ValidationRules>
                </Binding>
            </TextBox>
            <Label  Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.StarLableKey}}" Content="联系电话:"></Label>
            <!--Text="{Binding Telephone,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"-->
            <TextBox Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.TextBoxKey}}" Margin="5">
                <Binding Path="Telephone" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" >
                    <Binding.ValidationRules>
                        <fw:RequireValidationRule ></fw:RequireValidationRule>
                        <fw:PhoneValidationRule ErrorMessage="电话手机号码不正确"></fw:PhoneValidationRule>
                    </Binding.ValidationRules>
                </Binding>
            </TextBox>
           
            <Label  Content="传真:"></Label>

            <TextBox Text="{Binding Fax,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.TextBoxKey}}" Margin="5">
            </TextBox>
            <Label   Content="电子邮件:"></Label>

            <TextBox Text="{Binding Email,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.TextBoxKey}}" Margin="5">
            </TextBox>
        </StackPanel>
    </Grid>
</UserControl>
