2 x:Class="SDKSample.Window1"
3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5 Title="EditingCommands_Sample"
6 Width="1024" Height="800"
10 <RowDefinition Height="40"/>
13 <RowDefinition Height="80"/>
14 </Grid.RowDefinitions>
15 <Grid.ColumnDefinitions>
16 <ColumnDefinition Width="200"/>
17 <ColumnDefinition Width="200"/>
19 </Grid.ColumnDefinitions>
22 Grid.Row="0" Grid.Column="2"
23 BorderBrush="Black" BorderThickness="1"
27 Orientation="Horizontal"
28 VerticalAlignment="Center" HorizontalAlignment="Center"
31 Margin="5" Foreground="DarkGreen"
33 <Bold>Route editing commands to:</Bold>
39 Content=" RichTextBox"
49 Content=" PasswordBox"
55 Grid.Column="0" Grid.RowSpan="4"
56 BorderBrush="Black" BorderThickness="1"
59 VerticalAlignment="Center"
63 Foreground="DarkGreen"
65 <Bold>Paragraph Alignment</Bold>
68 <Button Name="AlignCenter" Click="ExecuteCommand">
71 <Button Name="AlignRight" Click="ExecuteCommand">
74 <Button Name="AlignLeft" Click="ExecuteCommand">
77 <Button Name="AlignJustify" Click="ExecuteCommand">
82 Foreground="DarkGreen"
84 <Bold>Paragraph Formatting</Bold>
86 <Button Name="IncreaseIndentation" Click="ExecuteCommand">
87 IncreaseIndentation (Ctrl+T)
89 <Button Name="DecreaseIndentation" Click="ExecuteCommand">
90 DecreaseIndentation (Ctrl+Shift+T)
92 <Button Name="ToggleBullets" Click="ExecuteCommand">
93 ToggleBullets (Ctrl+Shift+L)
95 <Button Name="ToggleNumbering" Click="ExecuteCommand">
96 ToggleNumbering (Ctrl+Shift+N)
100 Foreground="DarkGreen"
102 <Bold>Caret Movement By Line</Bold>
104 <Button Name="MoveUpByLine" Click="ExecuteCommand">
107 <Button Name="MoveDownByLine" Click="ExecuteCommand">
108 MoveDownByLine (Down)
110 <Button Name="MoveToLineStart" Click="ExecuteCommand">
111 MoveToLineStart (Home)
113 <Button Name="MoveToLineEnd" Click="ExecuteCommand">
118 Foreground="DarkGreen"
120 <Bold>Caret Movement By Character</Bold>
122 <Button Name="MoveLeftByCharacter" Click="ExecuteCommand">
123 MoveLeftByCharacter (Left)
125 <Button Name="MoveRightByCharacter" Click="ExecuteCommand">
126 MoveRightByCharacter (Right)
130 Foreground="DarkGreen"
132 <Bold>Caret Movement By Word</Bold>
134 <Button Name="MoveLeftByWord" Click="ExecuteCommand">
135 MoveLeftByWord (Ctrl+Left)
137 <Button Name="MoveRightByWord" Click="ExecuteCommand">
138 MoveRightByWord (Ctrl+Right)
142 Foreground="DarkGreen"
144 <Bold>Caret Movement By Paragraph</Bold>
146 <Button Name="MoveUpByParagraph" Click="ExecuteCommand">
147 MoveUpByParagraph (Ctrl+Up)
149 <Button Name="MoveDownByParagraph" Click="ExecuteCommand">
150 MoveDownByParagraph (Ctrl+Down)
154 Foreground="DarkGreen"
156 <Bold>Caret Movement By Page</Bold>
158 <Button Name="MoveUpByPage" Click="ExecuteCommand">
159 MoveUpByPage (PageUp)
161 <Button Name="MoveDownByPage" Click="ExecuteCommand">
162 MoveDownByPage (PageDown)
166 Foreground="DarkGreen"
168 <Bold>Caret Movement By Document</Bold>
170 <Button Name="MoveToDocumentStart" Click="ExecuteCommand">
171 MoveToDocumentStart (Ctrl+Home)
173 <Button Name="MoveToDocumentEnd" Click="ExecuteCommand">
174 MoveToDocumentEnd (Ctrl+End)
178 Foreground="DarkGreen"
180 <Bold>Deletion</Bold>
182 <Button Name="Delete" Click="ExecuteCommand">
185 <Button Name="DeleteNextWord" Click="ExecuteCommand">
186 DeleteNextWord (Ctrl+Delete)
188 <Button Name="DeletePreviousWord" Click="ExecuteCommand">
189 DeletePreviousWord (Ctrl+Backspace)
193 Foreground="DarkGreen"
195 <Bold>Toggle Insert</Bold>
197 <Button Name="ToggleInsert" Click="ExecuteCommand">
198 ToggleInsert (Insert)
205 Grid.Column="1" Grid.RowSpan="4"
206 BorderBrush="Black" BorderThickness="1"
209 VerticalAlignment="Center"
213 Foreground="DarkGreen"
215 <Bold>Symbol Entry</Bold>
217 <Button Name="Backspace" Click="ExecuteCommand">
218 Backspace (Backspace)
220 <Button Name="EnterLineBreak" Click="ExecuteCommand">
221 EnterLineBreak (Shift+Enter)
223 <Button Name="EnterParagraphBreak" Click="ExecuteCommand">
224 EnterParagraphBreak (Enter)
226 <Button Name="TabBackward" Click="ExecuteCommand">
227 TabBackward (Shift+Tab)
229 <Button Name="TabForward" Click="ExecuteCommand">
234 Foreground="DarkGreen"
236 <Bold>Formatting</Bold>
238 <Button Name="IncreaseFontSize" Click="ExecuteCommand">
239 IncreaseFontSize (Ctrl+])
241 <Button Name="DecreaseFontSize" Click="ExecuteCommand">
242 DecreaseFontSize (Ctrl+[)
244 <Button Name="ToggleBold" Click="ExecuteCommand">
247 <Button Name="ToggleItalic" Click="ExecuteCommand">
248 ToggleItalic (Ctrl+I)
250 <Button Name="ToggleSubscript" Click="ExecuteCommand">
251 ToggleSubscript (Ctrl+Shift+Plus)
253 <Button Name="ToggleSuperscript" Click="ExecuteCommand">
254 ToggleSuperscript (Ctrl+Plus)
256 <Button Name="ToggleUnderline" Click="ExecuteCommand">
257 ToggleUnderline (Ctrl+U)
261 Foreground="DarkGreen"
263 <Bold>Caret Selection By Line</Bold>
265 <Button Name="SelectUpByLine" Click="ExecuteCommand">
268 <Button Name="SelectDownByLine" Click="ExecuteCommand">
269 SelectDownByLine (Down)
271 <Button Name="SelectToLineStart" Click="ExecuteCommand">
272 SelectToLineStart (Home)
274 <Button Name="SelectToLineEnd" Click="ExecuteCommand">
275 SelectToLineEnd (End)
279 Foreground="DarkGreen"
281 <Bold>Caret Selection By Character</Bold>
283 <Button Name="SelectLeftByCharacter" Click="ExecuteCommand">
284 SelectLeftByCharacter (Left)
286 <Button Name="SelectRightByCharacter" Click="ExecuteCommand">
287 SelectRightByCharacter (Right)
291 Foreground="DarkGreen"
293 <Bold>Caret Selection By Word</Bold>
295 <Button Name="SelectLeftByWord" Click="ExecuteCommand">
296 SelectLeftByWord (Ctrl+Left)
298 <Button Name="SelectRightByWord" Click="ExecuteCommand">
299 SelectRightByWord (Ctrl+Right)
303 Foreground="DarkGreen"
305 <Bold>Caret Selection By Paragraph</Bold>
307 <Button Name="SelectUpByParagraph" Click="ExecuteCommand">
308 SelectUpByParagraph (Ctrl+Up)
310 <Button Name="SelectDownByParagraph" Click="ExecuteCommand">
311 SelectDownByParagraph (Ctrl+Down)
315 Foreground="DarkGreen"
317 <Bold>Caret Selection By Page</Bold>
319 <Button Name="SelectUpByPage" Click="ExecuteCommand">
320 SelectUpByPage (PageUp)
322 <Button Name="SelectDownByPage" Click="ExecuteCommand">
323 SelectDownByPage (PageDown)
327 Foreground="DarkGreen"
329 <Bold>Caret Selection By Document</Bold>
331 <Button Name="SelectToDocumentStart" Click="ExecuteCommand">
332 SelectToDocumentStart (Ctrl+Home)
334 <Button Name="SelectToDocumentEnd" Click="ExecuteCommand">
335 SelectToDocumentEnd (Ctrl+End)
341 <Border Grid.Row="1" Grid.Column="2">
345 Foreground="DarkGreen"
347 <Bold>RichTextBox with sample content.</Bold>
351 Margin="5" Background="Ivory"
356 <Bold>Xbox 360: Feel the Power</Bold>
359 We all know that Xbox 360™ blows the doors off today's consoles in the power department. But just how much power
360 does Xbox 360 have, and why do developers and gamers agree that it's the system to beat? Glad you asked!
363 By now you've already heard how Xbox 360 puts you at the center of the most powerful games on the planet—hence
364 the "360," as in 360 degrees (geometry students will recognize that as the number of degrees in a circle).
365 To accomplish this feat, Microsoft® has brought together a full circle of powerful factors.
368 <Bold>Processing Powerhouse</Bold>
371 The custom-designed Xbox 360 central processing unit (CPU) runs at a breakneck speed, thanks to its three
372 separate core processors that clock in at 3.2 GHz each.
375 Xbox 360 boasts a custom ATI graphics processor that clocks in at a blistering 500 MHz. If you want to get
376 even more technical (and who doesn't?) Xbox 360 can take advantage of more than four times as many polygons
377 as the original Xbox® console, and more than four times (seeing a pattern here?) the number of pixels per second.
380 The 512 MB of RAM in Xbox 360 is eight times more powerful than the original Xbox, in terms of simple arithmetic.
381 The system RAM gives developers a unified memory architecture. Game creators decide how to partition it, and all
382 of the hardware components (like the CPU and GPU) can access the memory...
389 <Border Grid.Row="2" Grid.Column="2">
393 Foreground="DarkGreen"
395 <Bold>TextBox with sample content.</Bold>
402 Margin="5" Background="Ivory"
403 >Xbox 360: Feel the Power
405 We all know that Xbox 360™ blows the doors off today's consoles in the power department. But just how much
406 power does Xbox 360 have, and why do developers and gamers agree that it's the system to beat? Glad you asked!
408 By now you've already heard how Xbox 360 puts you at the center of the most powerful games on the planet—hence
409 the "360," as in 360 degrees (geometry students will recognize that as the number of degrees in a circle). To
410 accomplish this feat, Microsoft® has brought together a full circle of powerful factors.
412 Processing Powerhouse
414 The custom-designed Xbox 360 central processing unit (CPU) runs at a breakneck speed, thanks to its three separate
415 core processors that clock in at 3.2 GHz each.
417 Xbox 360 boasts a custom ATI graphics processor that clocks in at a blistering 500 MHz. If you want to get even
418 more technical (and who doesn't?) Xbox 360 can take advantage of more than four times as many polygons as the
419 original Xbox® console, and more than four times (seeing a pattern here?) the number of pixels per second.
421 The 512 MB of RAM in Xbox 360 is eight times more powerful than the original Xbox, in terms of simple arithmetic.
422 The system RAM gives developers a unified memory architecture. Game creators decide how to partition it, and all of
423 the hardware components (like the CPU and GPU) can access the memory...</TextBox>
427 <Border Grid.Row="3" Grid.Column="2">
431 Foreground="DarkGreen"
433 <Bold>PasswordBox with sample content.</Bold>
437 Margin="5" Background="Ivory"