Develop and Download Open Source Software

Browse Subversion Repository

Contents of /branches/ProcessWatchImpl/Scone/MainWindow.xaml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 44 - (show annotations) (download)
Tue Dec 15 16:20:54 2009 UTC (14 years, 3 months ago) by netseed
File size: 14711 byte(s)


1 <Window
2 x:Class="Toast.Scone.MainWindow"
3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5 xmlns:local="clr-namespace:Toast.Scone"
6 xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
7 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
8 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9 Title="Toaster"
10 Height="360"
11 Width="320"
12 x:Name="Main"
13 Icon="toast.ico"
14 ResizeMode="CanMinimize"
15 mc:Ignorable="d" Background="#FF3A3A3A">
16
17 <Window.Resources>
18
19 <!--この辺全てBlend任せにした方がたぶん幸せ-->
20 <Storyboard x:Key="AppStart">
21 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="label" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
22 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
23 <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
24 <SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="1"/>
25 </DoubleAnimationUsingKeyFrames>
26 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="format">
27 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
28 <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
29 <SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="1"/>
30 </DoubleAnimationUsingKeyFrames>
31 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="label1">
32 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
33 <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
34 <SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="1"/>
35 </DoubleAnimationUsingKeyFrames>
36 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="smileId">
37 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
38 <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
39 <SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="1"/>
40 </DoubleAnimationUsingKeyFrames>
41 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="checkBox">
42 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
43 <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
44 <SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="1"/>
45 </DoubleAnimationUsingKeyFrames>
46 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="button">
47 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
48 <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
49 <SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="1"/>
50 </DoubleAnimationUsingKeyFrames>
51 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="watchProcess">
52 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
53 <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
54 <SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="1"/>
55 </DoubleAnimationUsingKeyFrames>
56 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="groupBox">
57 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
58 <SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
59 <SplineDoubleKeyFrame KeyTime="00:00:01.8000000" Value="1"/>
60 </DoubleAnimationUsingKeyFrames>
61 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="start" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
62 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
63 <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
64 <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
65 </DoubleAnimationUsingKeyFrames>
66 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stop" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
67 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
68 <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
69 <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
70 </DoubleAnimationUsingKeyFrames>
71 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="mainStatus" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
72 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
73 <SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
74 </DoubleAnimationUsingKeyFrames>
75 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="subStatus" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
76 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
77 <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
78 <SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="1"/>
79 </DoubleAnimationUsingKeyFrames>
80 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="notificator" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
81 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
82 <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
83 <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
84 </DoubleAnimationUsingKeyFrames>
85
86 </Storyboard>
87
88
89 </Window.Resources>
90
91
92 <Window.Triggers>
93 <EventTrigger RoutedEvent="FrameworkElement.Loaded">
94 <BeginStoryboard Storyboard="{StaticResource AppStart}"/>
95 </EventTrigger>
96 </Window.Triggers>
97
98 <i:Interaction.Triggers>
99 <i:EventTrigger EventName="StartCommandCanExecuteStateChanging" i:SourceName="Main">
100 <local:ControlEnable TargetName="format"/>
101 <local:ControlEnable TargetName="smileId"/>
102 <local:ControlEnable TargetName="watchProcess"/>
103 <local:ControlEnable TargetName="checkBox"/>
104 <local:ControlEnable TargetName="userId"/>
105 <local:ControlEnable TargetName="password"/>
106 </i:EventTrigger>
107 </i:Interaction.Triggers>
108 <Grid x:Name="grid" RenderTransformOrigin="0.5,0.5">
109 <Grid.RenderTransform>
110 <TransformGroup>
111 <ScaleTransform/>
112 <SkewTransform/>
113 <RotateTransform/>
114 <TranslateTransform/>
115 </TransformGroup>
116 </Grid.RenderTransform>
117 <Label x:Name="label" Margin="8.5,8,0,0" VerticalAlignment="Top" Height="25" Content="フォーマット" Width="130" HorizontalAlignment="Left" d:LayoutOverrides="Width" RenderTransformOrigin="0,0.5" Foreground="White">
118 <Label.RenderTransform>
119 <TransformGroup>
120 <ScaleTransform>
121 </ScaleTransform>
122 <SkewTransform/>
123 <RotateTransform/>
124 <TranslateTransform/>
125 </TransformGroup>
126 </Label.RenderTransform>
127 </Label>
128
129 <local:FormatBox
130 Margin="8,33,8,0"
131 VerticalAlignment="Top"
132 Height="25"
133 TextWrapping="Wrap"
134 x:Name="format"
135 TabIndex="1"
136 IsTabStop="True"
137 EmbodimentTextChanged="Format_EmbodimentTextChanged"
138 Grid.ColumnSpan="2" RenderTransformOrigin="0,0.5">
139 <local:FormatBox.RenderTransform>
140 <TransformGroup>
141 <ScaleTransform/>
142 <SkewTransform/>
143 <RotateTransform/>
144 <TranslateTransform/>
145 </TransformGroup>
146 </local:FormatBox.RenderTransform>
147 </local:FormatBox>
148
149 <Label x:Name="label1" Margin="8.5,62,0,0" VerticalAlignment="Top" Height="25" Content="対象ユーザID" Width="130" HorizontalAlignment="Left" d:LayoutOverrides="Width" RenderTransformOrigin="0,0.5" Foreground="White">
150 <Label.RenderTransform>
151 <TransformGroup>
152 <ScaleTransform/>
153 <SkewTransform/>
154 <RotateTransform/>
155 <TranslateTransform/>
156 </TransformGroup>
157 </Label.RenderTransform>
158 </Label>
159
160 <local:SmileUserIdBox
161 x:Name="smileId"
162 Margin="8,87,8,0"
163 VerticalAlignment="Top"
164 Height="25"
165 EmbodimentText=""
166 InvalidStateBackground="Pink"
167 EmptyExpression="対象のユーザーID"
168 IsTabStop="True"
169 TabIndex="2"
170 EmbodimentTextChanged="SmileId_EmbodimentTextChanged"
171 Grid.ColumnSpan="2" RenderTransformOrigin="0,0.5">
172 <local:SmileUserIdBox.RenderTransform>
173 <TransformGroup>
174 <ScaleTransform/>
175 <SkewTransform/>
176 <RotateTransform/>
177 <TranslateTransform/>
178 </TransformGroup>
179 </local:SmileUserIdBox.RenderTransform>
180 </local:SmileUserIdBox>
181 <CheckBox x:Name="checkBox" Margin="8.5,123,141.5,0" VerticalAlignment="Top" Content="プロセスを監視する" RenderTransformOrigin="0,0.5" Foreground="White">
182 <CheckBox.RenderTransform>
183 <TransformGroup>
184 <ScaleTransform/>
185 <SkewTransform/>
186 <RotateTransform/>
187 <TranslateTransform/>
188 </TransformGroup>
189 </CheckBox.RenderTransform>
190 </CheckBox>
191 <Button x:Name="button" HorizontalAlignment="Right" Margin="0,140.5,8,0" VerticalAlignment="Top" Width="25" Height="25" Content="..." RenderTransformOrigin="0,0.5">
192 <Button.RenderTransform>
193 <TransformGroup>
194 <ScaleTransform/>
195 <SkewTransform/>
196 <RotateTransform/>
197 <TranslateTransform/>
198 </TransformGroup>
199 </Button.RenderTransform>
200 </Button>
201 <local:FormatBox
202 x:Name="watchProcess"
203 Margin="8,141,37,0"
204 EmbodimentText=""
205 InvalidStateBackground="Pink"
206 EmptyExpression="監視対象は未指定です"
207 IsTabStop="True"
208 TabIndex="2"
209 VerticalAlignment="Top"
210 Height="25"
211 d:LayoutOverrides="GridBox"
212 RenderTransformOrigin="0,0.5" >
213 <local:FormatBox.RenderTransform>
214 <TransformGroup>
215 <ScaleTransform/>
216 <SkewTransform/>
217 <RotateTransform/>
218 <TranslateTransform/>
219 </TransformGroup>
220 </local:FormatBox.RenderTransform>
221 </local:FormatBox>
222
223 <GroupBox x:Name="groupBox" Margin="8,170,8,59"
224 Header="Twitterアカウント"
225 Background="{x:Null}"
226 IsHitTestVisible="True" Grid.ColumnSpan="2" RenderTransformOrigin="0,0.5" Foreground="White">
227 <GroupBox.RenderTransform>
228 <TransformGroup>
229 <ScaleTransform/>
230 <SkewTransform/>
231 <RotateTransform/>
232 <TranslateTransform/>
233 </TransformGroup>
234 </GroupBox.RenderTransform>
235
236 <Grid x:Name="groupGrid" IsHitTestVisible="True" Focusable="False">
237 <Grid.ColumnDefinitions>
238 <ColumnDefinition Width="0.241*"/>
239 <ColumnDefinition Width="0.759*"/>
240 </Grid.ColumnDefinitions>
241
242 <Label
243 HorizontalAlignment="Left"
244 VerticalAlignment="Top"
245 Width="Auto"
246 Height="25"
247 Content="UserID"
248 Margin="8,8,0,0"
249 IsHitTestVisible="False" />
250
251 <local:TwitterUserIdBox
252 x:Name="userId"
253 Margin="8,8,8,0"
254 VerticalAlignment="Top"
255 Height="25"
256 Grid.Column="1"
257 EmbodimentText=""
258 EmptyExpression="TwitterのID"
259 InvalidStateBackground="Pink"
260 IsTabStop="True"
261 TabIndex="3" EmbodimentTextChanged="UserId_EmbodimentTextChanged"/>
262
263 <Label
264 HorizontalAlignment="Left"
265 VerticalAlignment="Bottom"
266 Width="Auto"
267 Height="25"
268 Content="Pass"
269 Margin="8,0,0,8"
270 IsHitTestVisible="False" />
271
272 <PasswordBox
273 Margin="8,0,8,8"
274 VerticalAlignment="Bottom"
275 Height="25"
276 Grid.Column="1"
277 x:Name="password"
278 PasswordChar="●" TabIndex="4" LostFocus="PassWord_LostFocus" />
279
280 </Grid>
281 </GroupBox>
282
283 <Button
284 HorizontalAlignment="Right"
285 Margin="0,0,8,8"
286 VerticalAlignment="Bottom"
287 Width="47"
288 Height="47"
289 Content="Start!"
290 x:Name="start"
291 Command="local:MainWindow.StartCommand" TabIndex="5" d:LayoutOverrides="GridBox" RenderTransformOrigin="0,0.5" >
292 <Button.RenderTransform>
293 <TransformGroup>
294 <ScaleTransform/>
295 <SkewTransform/>
296 <RotateTransform/>
297 <TranslateTransform/>
298 </TransformGroup>
299 </Button.RenderTransform>
300 </Button>
301
302 <Button
303 Margin="0,0,59,8"
304 VerticalAlignment="Bottom"
305 Height="47"
306 Content="Stop!"
307 Width="47"
308 HorizontalAlignment="Right"
309 x:Name="stop"
310 Command="local:MainWindow.StopCommand"
311 RenderTransformOrigin="0,0.5"
312 TabIndex="6" d:LayoutOverrides="GridBox">
313 <Button.RenderTransform>
314 <TransformGroup>
315 <ScaleTransform/>
316 <SkewTransform/>
317 <RotateTransform/>
318 <TranslateTransform/>
319 </TransformGroup>
320 </Button.RenderTransform>
321 </Button>
322 <TextBlock
323 Margin="8.5,0,110,39.667"
324 VerticalAlignment="Bottom"
325 Height="16"
326 Text="TextBlock"
327 TextWrapping="Wrap"
328 x:Name="mainStatus"
329 FontSize="10" RenderTransformOrigin="0,0.5">
330 <TextBlock.RenderTransform>
331 <TransformGroup>
332 <ScaleTransform/>
333 <SkewTransform/>
334 <RotateTransform/>
335 <TranslateTransform/>
336 </TransformGroup>
337 </TextBlock.RenderTransform>
338 </TextBlock>
339 <TextBlock
340 Margin="8,0,110.5,22.38"
341 VerticalAlignment="Bottom"
342 Height="16"
343 Text="TextBlock"
344 TextWrapping="Wrap"
345 x:Name="subStatus"
346 FontSize="10" RenderTransformOrigin="0,0.5">
347 <TextBlock.RenderTransform>
348 <TransformGroup>
349 <ScaleTransform/>
350 <SkewTransform/>
351 <RotateTransform/>
352 <TranslateTransform/>
353 </TransformGroup>
354 </TextBlock.RenderTransform>
355 </TextBlock>
356 <TextBlock
357 Margin="8,0,110.5,6.38"
358 VerticalAlignment="Bottom"
359 Height="16"
360 Text="TextBlock"
361 TextWrapping="Wrap"
362 x:Name="notificator"
363 FontSize="10" RenderTransformOrigin="0,0.5">
364 <TextBlock.RenderTransform>
365 <TransformGroup>
366 <ScaleTransform/>
367 <SkewTransform/>
368 <RotateTransform/>
369 <TranslateTransform/>
370 </TransformGroup>
371 </TextBlock.RenderTransform>
372 </TextBlock>
373 <local:EventSurrogater HorizontalAlignment="Right" Margin="0,8,59,0" VerticalAlignment="Top" Width="60" Height="10" d:IsHidden="True" Foreground="{x:Null}"/>
374
375 </Grid>
376 </Window>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26