forked from syncfusion/wpf-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpellCheckerDemo.xaml
93 lines (93 loc) · 4.25 KB
/
SpellCheckerDemo.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<democommon:DemoControl
x:Class="syncfusion.spellcheckerdemo.wpf.SpellCheckerDemo"
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:democommon="clr-namespace:syncfusion.demoscommon.wpf;assembly=syncfusion.demoscommon.wpf"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:local="clr-namespace:syncfusion.spellcheckerdemo.wpf"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
OptionsSize="Auto"
mc:Ignorable="d">
<democommon:DemoControl.DataContext>
<local:SpellCheckerViewModel />
</democommon:DemoControl.DataContext>
<i:Interaction.Behaviors>
<local:SpellCheckerBehavior />
</i:Interaction.Behaviors>
<democommon:DemoControl.Options>
<ScrollViewer VerticalScrollBarVisibility="Auto">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<CheckBox
x:Name="ignoreWebAndFileAddressers"
Grid.Row="0"
Margin="5"
Content="Ignore Internet and file addresses"
FontWeight="Normal"
IsChecked="{Binding Path=SpellChecker.IgnoreUrl, Mode=TwoWay}"
Tag="1" />
<CheckBox
x:Name="ignoreUpperCase"
Grid.Row="1"
Margin="5"
Content="Ignore words in Uppercase"
FontWeight="Normal"
IsChecked="{Binding Path=SpellChecker.IgnoreUpperCaseWords, Mode=TwoWay}"
Tag="2" />
<CheckBox
x:Name="ignoreNumber"
Grid.Row="2"
Margin="5"
Content="Ignore words that contain numbers"
FontWeight="Normal"
IsChecked="{Binding Path=SpellChecker.IgnoreAlphaNumericWords, Mode=TwoWay}"
Tag="3" />
<CheckBox
x:Name="ignoreEmail"
Grid.Row="3"
Margin="5"
Content="Ignore email addresses"
FontWeight="Normal"
IsChecked="{Binding Path=SpellChecker.IgnoreEmailAddress, Mode=TwoWay}"
Tag="4" />
<CheckBox
x:Name="ignoreMixedCase"
Grid.Row="4"
Margin="5"
Content="Ignore words in Mixed case"
FontWeight="Normal"
IsChecked="{Binding Path=SpellChecker.IgnoreMixedCaseWords, Mode=TwoWay}"
Tag="5" />
<Button
x:Name="button"
Grid.Row="5"
Margin="5,8,5,5"
Padding="8"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Content="Spell Check"
FontWeight="Normal" />
</Grid>
</ScrollViewer>
</democommon:DemoControl.Options>
<Grid VerticalAlignment="Top">
<TextBox
x:Name="txtbx"
Margin="5"
FontSize="14"
TextWrapping="Wrap">
<TextBox.Text>
Ribbn illustrats the Microsoft illustrats Offce 2007 UI. Our prduct exposes most of the featres of the new UI and eeps intact winhth the Slverlight architecture. Configuring and designing the layout is very easy through XAML code. Ribbon tabs and Ribbon bars are the main client area in Ribbon. Ribbon tabs will allow your end users to navigate and find the appropriate tools for the task at hand. The Ribbon bars will contain the Ribbon tools.
</TextBox.Text>
</TextBox>
</Grid>
</democommon:DemoControl>