1+ <Window x : Class =" Andreal.Window.UI.SliderSubmit"
2+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4+ Title =" LoginWindow"
5+ ResizeMode =" NoResize"
6+ WindowStyle =" None"
7+ Width =" 300" Height =" 300"
8+ WindowStartupLocation =" CenterScreen"
9+ MouseLeftButtonDown =" OnMouseLeftButtonDown" x : ClassModifier =" internal" >
10+
11+ <Window .Resources>
12+ <Style x : Key =" SystemButtonBase" TargetType =" ButtonBase" >
13+ <Setter Property =" Background" Value =" Transparent" />
14+ <Setter Property =" BorderThickness" Value =" 0" />
15+ <Setter Property =" HorizontalContentAlignment" Value =" Center" />
16+ <Setter Property =" VerticalContentAlignment" Value =" Center" />
17+ <Setter Property =" Cursor" Value =" Hand" />
18+ <Setter Property =" Padding" Value =" 1" />
19+ <Setter Property =" Template" >
20+ <Setter .Value>
21+ <ControlTemplate TargetType =" {x:Type ButtonBase}" >
22+ <Border Name =" Chrome"
23+ Background =" {TemplateBinding Background}"
24+ BorderThickness =" {TemplateBinding BorderThickness}"
25+ BorderBrush =" {TemplateBinding BorderBrush}"
26+ SnapsToDevicePixels =" true"
27+ CornerRadius =" 5" >
28+ <ContentPresenter Margin =" {TemplateBinding Padding}"
29+ VerticalAlignment =" {TemplateBinding VerticalContentAlignment}"
30+ HorizontalAlignment =" {TemplateBinding HorizontalContentAlignment}"
31+ RecognizesAccessKey =" True"
32+ SnapsToDevicePixels =" {TemplateBinding SnapsToDevicePixels}" />
33+ </Border >
34+ </ControlTemplate >
35+ </Setter .Value>
36+ </Setter >
37+ <Style .Triggers>
38+ <Trigger Property =" IsEnabled" Value =" false" >
39+ <Setter Property =" Cursor" Value =" Arrow" />
40+ </Trigger >
41+ </Style .Triggers>
42+ </Style >
43+ <Style TargetType =" Button" BasedOn =" {StaticResource SystemButtonBase}" x : Key =" BtnStyle" >
44+ <Setter Property =" Background" Value =" #09a3dc" />
45+ <Setter Property =" Foreground" Value =" #ffffff" />
46+ <Setter Property =" MinHeight" Value =" 28" />
47+ <Setter Property =" MinWidth" Value =" 70" />
48+ <Style .Triggers>
49+ <Trigger Property =" IsMouseOver" Value =" True" >
50+ <Setter Property =" Background" Value =" #3cc3f5" />
51+ </Trigger >
52+ <Trigger Property =" IsPressed" Value =" True" >
53+ <Setter Property =" Background" Value =" #098cbc" />
54+ </Trigger >
55+ <Trigger Property =" IsEnabled" Value =" false" >
56+ <Setter Property =" Background" Value =" #e1e1e1" />
57+ <Setter Property =" Foreground" Value =" #7e7e7e" />
58+ </Trigger >
59+ </Style .Triggers>
60+ </Style >
61+ </Window .Resources>
62+
63+ <Grid Background =" #23262A" Width =" {Binding Width, ElementName=w}" Height =" {Binding Height, ElementName=w}" >
64+ <Grid .RowDefinitions>
65+ <RowDefinition Height =" 100" />
66+ <RowDefinition Height =" 100" />
67+ <RowDefinition Height =" 100" />
68+ </Grid .RowDefinitions>
69+ <TextBlock Grid.Row=" 0" Foreground =" DarkGray" IsHitTestVisible =" False" HorizontalAlignment =" Left"
70+ Margin =" 52,0,0,0"
71+ Text =" 验证码链接" VerticalAlignment =" Center"
72+ FontFamily =" Microsoft YaHei" FontSize =" 16"
73+ Background =" #23262A" >
74+ </TextBlock >
75+ <Button Grid.Row=" 0" Foreground =" DarkGray" Background =" #23262A" Margin =" 152,0,0,0" Height =" 30" Width =" 85"
76+ HorizontalAlignment =" Left"
77+ Click =" OnCopyButtonClick" >
78+ <TextBlock TextWrapping =" Wrap" FontFamily =" Microsoft YaHei" Text =" 点击复制" FontSize =" 16" />
79+ </Button >
80+ <StackPanel Grid.Row=" 0" Orientation =" Vertical" Height =" 45" VerticalAlignment =" Center" Width =" 196"
81+ Margin =" 0,95,0,0" >
82+ <TextBlock x : Name =" UrlBlock" Foreground =" DarkGray" IsHitTestVisible =" False"
83+ HorizontalAlignment =" Left" TextWrapping =" Wrap" Text =" "
84+ FontFamily =" Microsoft YaHei" FontSize =" 10"
85+ Background =" #23262A" >
86+ </TextBlock >
87+ </StackPanel >
88+ <StackPanel Grid.Row=" 1" Orientation =" Vertical" Height =" 100" Width =" 196"
89+ Margin =" 0,30,0,0" >
90+ <TextBlock Foreground =" DarkGray" IsHitTestVisible =" False" HorizontalAlignment =" Left"
91+ Text =" 滑块验证助手Ticket" VerticalAlignment =" Top"
92+ FontFamily =" Microsoft YaHei" FontSize =" 16"
93+ Background =" #23262A" >
94+
95+ </TextBlock >
96+
97+ <TextBox x : Name =" CodeBox" Width =" 160" VerticalAlignment =" Bottom"
98+ Margin =" 0,10,0,0"
99+ HorizontalAlignment =" Right"
100+ BorderThickness =" 0,0,0,1" Foreground =" DarkGray"
101+ InputMethod.IsInputMethodEnabled=" False"
102+
103+ Height =" 30" FontSize =" 16" Background =" #23262A" />
104+ </StackPanel >
105+
106+ <StackPanel Grid.Row=" 2" Orientation =" Horizontal" Height =" 50" Width =" 196" >
107+ <Button x : Name =" SubmitBtn"
108+ Margin =" 0,-20,0,0"
109+ Height =" 30"
110+ Width =" 200"
111+ Style =" {StaticResource BtnStyle}" Click =" OnSubmit" >
112+ <TextBlock TextWrapping =" Wrap" Text =" 提交" FontSize =" 16" VerticalAlignment =" Center" />
113+ </Button >
114+ </StackPanel >
115+ </Grid >
116+ </Window >
0 commit comments