@@ -14,45 +14,45 @@ namespace Microsoft.Management.UI.Internal
14
14
/// ViewModel for the Help Dialog used to:
15
15
/// build the help document
16
16
/// search the help document
17
- /// offer text for labels
17
+ /// offer text for labels.
18
18
/// </summary>
19
19
internal class HelpViewModel : INotifyPropertyChanged
20
20
{
21
21
/// <summary>
22
- /// The builder for the help FlowDocument Paragraph used in a RichEditText control
22
+ /// The builder for the help FlowDocument Paragraph used in a RichEditText control.
23
23
/// </summary>
24
24
private readonly HelpParagraphBuilder helpBuilder ;
25
25
26
26
/// <summary>
27
- /// Searcher for selecting current matches in paragraph text
27
+ /// Searcher for selecting current matches in paragraph text.
28
28
/// </summary>
29
29
private readonly ParagraphSearcher searcher ;
30
30
31
31
/// <summary>
32
- /// Title of the help window
32
+ /// Title of the help window.
33
33
/// </summary>
34
34
private readonly string helpTitle ;
35
35
36
36
/// <summary>
37
- /// the zoom bound to the zoom slider value
37
+ /// the zoom bound to the zoom slider value.
38
38
/// </summary>
39
39
private double zoom = 100 ;
40
40
41
41
/// <summary>
42
- /// Text to be found. This is bound to the find TextBox
42
+ /// Text to be found. This is bound to the find TextBox.
43
43
/// </summary>
44
44
private string findText ;
45
45
46
46
/// <summary>
47
- /// text for the number of matches found
47
+ /// text for the number of matches found.
48
48
/// </summary>
49
49
private string matchesLabel ;
50
50
51
51
/// <summary>
52
- /// Initializes a new instance of the HelpViewModel class
52
+ /// Initializes a new instance of the HelpViewModel class.
53
53
/// </summary>
54
- /// <param name="psObj">object containing help</param>
55
- /// <param name="documentParagraph">paragraph in which help text is built/searched</param>
54
+ /// <param name="psObj">Object containing help. </param>
55
+ /// <param name="documentParagraph">Paragraph in which help text is built/searched. </param>
56
56
internal HelpViewModel ( PSObject psObj , Paragraph documentParagraph )
57
57
{
58
58
Debug . Assert ( psObj != null , "ensured by caller" ) ;
@@ -70,13 +70,13 @@ internal HelpViewModel(PSObject psObj, Paragraph documentParagraph)
70
70
71
71
#region INotifyPropertyChanged Members
72
72
/// <summary>
73
- /// Used to notify of property changes
73
+ /// Used to notify of property changes.
74
74
/// </summary>
75
75
public event PropertyChangedEventHandler PropertyChanged ;
76
76
#endregion
77
77
78
78
/// <summary>
79
- /// Gets or sets the Zoom bound to the zoom slider value
79
+ /// Gets or sets the Zoom bound to the zoom slider value.
80
80
/// </summary>
81
81
public double Zoom
82
82
{
@@ -95,7 +95,7 @@ public double Zoom
95
95
}
96
96
97
97
/// <summary>
98
- /// Gets the value bound to the RichTextEdit zoom, which is calculated based on the zoom
98
+ /// Gets the value bound to the RichTextEdit zoom, which is calculated based on the zoom.
99
99
/// </summary>
100
100
public double ZoomLevel
101
101
{
@@ -106,7 +106,7 @@ public double ZoomLevel
106
106
}
107
107
108
108
/// <summary>
109
- /// Gets the label to be displayed for the zoom
109
+ /// Gets the label to be displayed for the zoom.
110
110
/// </summary>
111
111
public string ZoomLabel
112
112
{
@@ -117,7 +117,7 @@ public string ZoomLabel
117
117
}
118
118
119
119
/// <summary>
120
- /// Gets or sets the text to be found
120
+ /// Gets or sets the text to be found.
121
121
/// </summary>
122
122
public string FindText
123
123
{
@@ -135,7 +135,7 @@ public string FindText
135
135
}
136
136
137
137
/// <summary>
138
- /// Gets the title of the window
138
+ /// Gets the title of the window.
139
139
/// </summary>
140
140
public string HelpTitle
141
141
{
@@ -146,7 +146,7 @@ public string HelpTitle
146
146
}
147
147
148
148
/// <summary>
149
- /// Gets or sets the label for current matches
149
+ /// Gets or sets the label for current matches.
150
150
/// </summary>
151
151
public string MatchesLabel
152
152
{
@@ -163,7 +163,7 @@ public string MatchesLabel
163
163
}
164
164
165
165
/// <summary>
166
- /// Gets a value indicating whether there are matches to go to
166
+ /// Gets a value indicating whether there are matches to go to.
167
167
/// </summary>
168
168
public bool CanGoToNextOrPrevious
169
169
{
@@ -174,15 +174,15 @@ public bool CanGoToNextOrPrevious
174
174
}
175
175
176
176
/// <summary>
177
- /// Gets the searcher for selecting current matches in paragraph text
177
+ /// Gets the searcher for selecting current matches in paragraph text.
178
178
/// </summary>
179
179
internal ParagraphSearcher Searcher
180
180
{
181
181
get { return this . searcher ; }
182
182
}
183
183
184
184
/// <summary>
185
- /// Gets the paragraph builder used to write help content
185
+ /// Gets the paragraph builder used to write help content.
186
186
/// </summary>
187
187
internal HelpParagraphBuilder HelpBuilder
188
188
{
@@ -200,7 +200,7 @@ internal void Search()
200
200
}
201
201
202
202
/// <summary>
203
- /// Increases Zoom if not above maximum
203
+ /// Increases Zoom if not above maximum.
204
204
/// </summary>
205
205
internal void ZoomIn ( )
206
206
{
@@ -211,7 +211,7 @@ internal void ZoomIn()
211
211
}
212
212
213
213
/// <summary>
214
- /// Decreases Zoom if not below minimum
214
+ /// Decreases Zoom if not below minimum.
215
215
/// </summary>
216
216
internal void ZoomOut ( )
217
217
{
@@ -222,10 +222,10 @@ internal void ZoomOut()
222
222
}
223
223
224
224
/// <summary>
225
- /// Called to update the matches label
225
+ /// Called to update the matches label.
226
226
/// </summary>
227
- /// <param name="sender">event sender</param>
228
- /// <param name="e">event arguments</param>
227
+ /// <param name="sender">Event sender. </param>
228
+ /// <param name="e">Event arguments. </param>
229
229
private void HelpBuilder_PropertyChanged ( object sender , PropertyChangedEventArgs e )
230
230
{
231
231
if ( e . PropertyName == "HighlightCount" )
@@ -236,7 +236,7 @@ private void HelpBuilder_PropertyChanged(object sender, PropertyChangedEventArgs
236
236
}
237
237
238
238
/// <summary>
239
- /// Sets the current matches label
239
+ /// Sets the current matches label.
240
240
/// </summary>
241
241
private void SetMatchesLabel ( )
242
242
{
@@ -268,9 +268,9 @@ private void SetMatchesLabel()
268
268
}
269
269
270
270
/// <summary>
271
- /// Called internally to notify when a proiperty changed
271
+ /// Called internally to notify when a proiperty changed.
272
272
/// </summary>
273
- /// <param name="propertyName">property name</param>
273
+ /// <param name="propertyName">Property name. </param>
274
274
private void OnNotifyPropertyChanged ( string propertyName )
275
275
{
276
276
PropertyChangedEventHandler handler = this . PropertyChanged ;
0 commit comments