-
Notifications
You must be signed in to change notification settings - Fork 2
/
TweetWindow.xaml
57 lines (54 loc) · 3.2 KB
/
TweetWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<Window x:Class="Screenshotter.TweetWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" Topmost="True" WindowStartupLocation="CenterScreen"
BorderBrush="#39F" BorderThickness="1" FontFamily="Meiryo UI" ShowInTaskbar="False"
Title="スクリーンショットのツイート" Height="210" Width="498" Icon="Resources/icon.ico"
SizeToContent="Height" SnapsToDevicePixels="True" UseLayoutRounding="True"
Closing="OnClosing">
<WindowChrome.WindowChrome>
<WindowChrome CornerRadius="3" GlassFrameThickness="1" ResizeBorderThickness="8"
UseAeroCaptionButtons="False" CaptionHeight="43" />
</WindowChrome.WindowChrome>
<Window.Resources>
<Storyboard x:Key="DialogShowAnimation" Storyboard.TargetProperty="(Grid.Opacity)">
<DoubleAnimation From="0" To="1" Duration="0:0:0.3"/>
</Storyboard>
<Storyboard x:Key="DialogCloseAnimation" Storyboard.TargetProperty="(Grid.Opacity)">
<DoubleAnimation From="1" To="0" Duration="0:0:0.3"/>
</Storyboard>
</Window.Resources>
<Grid>
<StackPanel Margin="15,10">
<Label FontSize="18">スクリーンショットのツイート</Label>
<TextBox x:Name="Message" Height="100" Margin="0,5,0,10"
BorderBrush="#BBB" SelectionBrush="#39F" FontSize="13"
TextChanged="CountText" KeyDown="ParseKeyboardShortcut"
AcceptsReturn="True" TextWrapping="Wrap" />
<DockPanel LastChildFill="False">
<Button x:Name="TweetButton" DockPanel.Dock="Right"
Width="80" Height="26" Background="Transparent"
BorderBrush="#BBB" FontSize="13" Click="TweetAsync">ツイート</Button>
<Label x:Name="Count" DockPanel.Dock="Right">116</Label>
<Label>Ctrl+Enterでツイートできます</Label>
</DockPanel>
</StackPanel>
<Grid x:Name="StatusGrid" Background="#BB000000" Opacity="0" IsHitTestVisible="False">
<Border Background="#FFF" Width="256" Height="72"
Padding="20,0" CornerRadius="3">
<StackPanel Orientation="Horizontal">
<Label x:Name="Loader" VerticalContentAlignment="Center"
FontFamily="Resources/#Material Icons"
FontSize="36" Foreground="#555" Visibility="Visible"></Label>
<Label x:Name="Success" VerticalContentAlignment="Center"
FontFamily="Resources/#Material Icons"
FontSize="40" Foreground="#009688" Visibility="Collapsed"></Label>
<Label x:Name="Status" VerticalContentAlignment="Center"
FontSize="14" Foreground="#333" Margin="0,-2,0,0">ツイートしています..</Label>
</StackPanel>
</Border>
</Grid>
</Grid>
</Window>