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:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:ONIX.Control"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    d:DesignHeight="768"
    d:DesignWidth="1366"
    Background="#b4000000"
    mc:Ignorable="d">
    <Grid>
        <Viewbox>
            <Grid Width="1366" Height="768">
                <Border
                    Width="650"
                    Height="280"
                    Margin="0,0,0,200"
                    Background="White"
                    CornerRadius="10">
                    <Grid Margin="10">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="1.2*" />
                        </Grid.RowDefinitions>
                        <Grid>
                            <StackPanel Width="440" VerticalAlignment="Bottom">
                                <StackPanel Margin="0,5,0,10" Orientation="Horizontal">
                                    <Image
                                        Width="16"
                                        Height="14"
                                        Margin="5,0"
                                        Source="/PipeGallery;component/Image/edit2.png" />
                                    <TextBlock
                                        Margin="3,0"
                                        VerticalAlignment="Center"
                                        FontSize="16"
                                        Foreground="#545454"
                                        Text="编辑名称" />
                                </StackPanel>
                                <Border
                                    Width="430"
                                    Height="50"
                                    Background="#f7f7f7"
                                    BorderBrush="#d2d2d2"
                                    BorderThickness="1"
                                    CornerRadius="5">
                                    <Grid>
                                        <local:WatermarkTextBox
                                            x:Name="txtName"
                                            Height="25"
                                            Margin="5,0,30,0"
                                            Background="#f7f7f7"
                                            BorderThickness="0"
                                            FontSize="18"
                                            Watermark="请输入名称" />
                                        <Button
                                            x:Name="btnClear"
                                            Margin="5,0"
                                            HorizontalAlignment="Right"
                                            Style="{StaticResource BtnCloseStyle}" />
                                    </Grid>

                                </Border>
                            </StackPanel>
                        </Grid>
                        <Grid Grid.Row="1">
                            <StackPanel
                                Margin="0,5,0,5"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Orientation="Horizontal">
                                <Button
                                    x:Name="btnClose"
                                    Width="100"
                                    Margin="15,0"
                                    Content="取消"
                                    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"
                                    Width="100"
                                    Margin="15,0"
                                    Content="确定"
                                    Foreground="White"
                                    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>