Newer
Older
Correlator / PipeGallery / View / EditNameView.xaml
<UserControl x:Class="PipeGallery.View.EditNameView"
             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:local="clr-namespace:ONIX.Control"
             mc:Ignorable="d" 
             d:DesignHeight="768" d:DesignWidth="1366" Background="#b4000000">
    <Grid>
        <Viewbox>
            <Grid Width="1366" Height="768">
                <Border Width="650" Height="280" Background="White" CornerRadius="10" Margin="0,0,0,200">
                    <Grid Margin="10">
                        <Grid.RowDefinitions>
                            <RowDefinition  Height="*"/>
                            <RowDefinition  Height="1.2*"/>
                        </Grid.RowDefinitions>
                        <Grid>
                            <StackPanel Width="440" VerticalAlignment="Bottom">
                                <StackPanel Orientation="Horizontal" Margin="0,5,0,10">
                                    <Image Width="16" Height="14" Margin=" 5,0" Source="/PipeGallery;component/Image/edit2.png"/>
                                    <TextBlock  Text="编辑名称"  Margin=" 3,0" Foreground="#545454" FontSize="16" VerticalAlignment="Center"/>
                                </StackPanel>
                                <Border Width="430" Height="50" Background="#f7f7f7" BorderBrush="#d2d2d2" BorderThickness="1" CornerRadius="5">
                                    <Grid>
                                        <local:WatermarkTextBox x:Name="txtName" Watermark="请输入名称"  Background="#f7f7f7" BorderThickness="0"  Height="25" Margin="5,0,30,0" FontSize="18"/>
                                        <Button x:Name="btnClear" HorizontalAlignment="Right" Margin="5,0" Style="{StaticResource BtnCloseStyle}" />
                                    </Grid>
                                    
                                </Border>
                            </StackPanel>
                        </Grid>
                        <Grid Grid.Row="1">
                            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,5,0,5">
                                <Button x:Name="btnClose" Content="取消" Width="100"  Margin="15,0" Style="{StaticResource BtnCommonStyle}" >
                                    <Button.Background>
                                        <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_48.png"  />
                                    </Button.Background>
                                    <Button.Tag>
                                        <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_21.png"  />
                                    </Button.Tag>
                                </Button>
                                <Button x:Name="btnOK" Content="确定" Foreground="White" Width="100" Margin="15,0" Style="{StaticResource BtnCommonStyle}" >
                                    <Button.Background>
                                        <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_44.png"  />
                                    </Button.Background>
                                    <Button.Tag>
                                        <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_13.png"  />
                                    </Button.Tag>
                                </Button>
                            </StackPanel>
                        </Grid>
                    </Grid>
                </Border>
                
            </Grid>
        </Viewbox>
    </Grid>
</UserControl>