You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
4.5 KiB

<Window
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:cc="clr-namespace:CowOutputClient"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="CowOutputClient.MainWindow"
Title="MainWindow" Height="500" Width="705" Loaded="Window_Loaded" WindowStyle="None" AllowsTransparency="True" Background="#0fff" WindowStartupLocation="CenterScreen" >
<Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown">
<Border CornerRadius="20" Background="#ccc">
<Border Margin="20" Background="White">
</Border>
</Border>
<Button x:Name="btnLogin" Content="登录" HorizontalAlignment="Center" Margin="15,300,0,0" VerticalAlignment="Center" Width="130" Height="40" RenderTransformOrigin="0.493,5.079" Click="btnLogin_Click">
<Button.Template>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Border Name="border">
<Border.Background>
<ImageBrush Opacity="0.5" ImageSource="/CowOutputClient;component/Images/u15.png"/>
</Border.Background>
</Border>
<TextBlock Text="登 录" Foreground="White" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background">
<Setter.Value>
<ImageBrush ImageSource="/CowOutputClient;component/Images/u15.png"/>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Property="Background">
<Setter.Value>
<ImageBrush ImageSource="/CowOutputClient;component/Images/u15.png"/>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
<Button.Background>
<ImageBrush ImageSource="/CowOutputClient;component/Images/u15.png" Stretch="Fill"/>
</Button.Background>
</Button>
<!--<Label Content="地址" Foreground="#666" FontSize="20px" HorizontalAlignment="Center" Margin="-240,-100,0,0" VerticalAlignment="Center"/>
<TextBox x:Name="txtUrlPath" VerticalContentAlignment="Center" Background="#f0f0f0" IsReadOnly="True" BorderBrush="#9a9a9a" HorizontalAlignment="Center" Height="26" Margin="40,-100,0,0" VerticalAlignment="Center" Width="220"/>-->
<Label Content="用户名" Foreground="#666" FontSize="20px" HorizontalAlignment="Center" Margin="-260,90,0,0" VerticalAlignment="Center"/>
<TextBox x:Name="txtUserName" PreviewMouseDown="txtUserName_PreviewMouseDown" VerticalContentAlignment="Center" BorderBrush="#9a9a9a" HorizontalAlignment="Center" Height="26" Margin="40,90,0,0" VerticalAlignment="Center" Width="220" />
<Label Content="密码" Foreground="#666" BorderBrush="#9a9a9a" FontSize="20px" HorizontalAlignment="Center" Margin="-240,170,0,0" VerticalAlignment="Center"/>
<PasswordBox x:Name="txtPassWord" PreviewMouseDown="txtPassWord_PreviewMouseDown" VerticalContentAlignment="Center" BorderBrush="#9a9a9a" HorizontalAlignment="Center" Height="26" Margin="40,170,0,0" VerticalAlignment="Center" Width="220"/>
<Image Source="/CowOutputClient;component/Images/u17.png" HorizontalAlignment="Center" Height="100" Margin="0,-224,0,0" VerticalAlignment="Center" Width="100"/>
<cc:CaptionBarButton Margin="0,20,20,0" HorizontalAlignment="Right" VerticalAlignment="Top" Width="200" Height="50"/>
<!--<Image Source="/CutupClient;component/Images/u19.png" HorizontalAlignment="Center" Height="25" Margin="300,-100,0,0" VerticalAlignment="Center" Width="25" MouseDown="Image_MouseDown"/>-->
<!--<Button Content="Button" Click="Button_Click_1" HorizontalAlignment="Left" Margin="81,395,0,0" VerticalAlignment="Top" Width="75"/>-->
</Grid>
</Window>