-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathScrollBar.xml
More file actions
1520 lines (1343 loc) · 101 KB
/
Copy pathScrollBar.xml
File metadata and controls
1520 lines (1343 loc) · 101 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="ScrollBar" FullName="System.Windows.Controls.Primitives.ScrollBar">
<TypeSignature Language="C#" Value="public class ScrollBar : System.Windows.Controls.Primitives.RangeBase" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi ScrollBar extends System.Windows.Controls.Primitives.RangeBase" FrameworkAlternate="netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<TypeSignature Language="DocId" Value="T:System.Windows.Controls.Primitives.ScrollBar" />
<TypeSignature Language="VB.NET" Value="Public Class ScrollBar
Inherits RangeBase" />
<TypeSignature Language="F#" Value="type ScrollBar = class
 inherit RangeBase" />
<TypeSignature Language="C++ CLI" Value="public ref class ScrollBar : System::Windows::Controls::Primitives::RangeBase" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ScrollBar extends System.Windows.Controls.Primitives.RangeBase" FrameworkAlternate="windowsdesktop-10.0;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0;windowsdesktop-8.0;windowsdesktop-9.0" />
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Windows.Controls.Primitives.RangeBase</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)]</AttributeName>
<AttributeName Language="F#">[<System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Windows.TemplatePart(Name="PART_Track", Type=typeof(System.Windows.Controls.Primitives.Track))]</AttributeName>
<AttributeName Language="F#">[<System.Windows.TemplatePart(Name="PART_Track", Type=typeof(System.Windows.Controls.Primitives.Track))>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Represents a control that provides a scroll bar that has a sliding <see cref="T:System.Windows.Controls.Primitives.Thumb" /> whose position corresponds to a value.</summary>
<remarks>
<format type="text/markdown"><
The <xref:System.Windows.Controls.Primitives.ScrollBar> control contains a <xref:System.Windows.Controls.Primitives.Track> control. The <xref:System.Windows.Controls.Primitives.Track> control consists of a <xref:System.Windows.Controls.Primitives.Thumb> control and two <xref:System.Windows.Controls.Primitives.RepeatButton> controls. You can increase and decrease the <xref:System.Windows.Controls.Primitives.RangeBase.Value%2A> property of the <xref:System.Windows.Controls.Primitives.ScrollBar> control by pressing the <xref:System.Windows.Controls.Primitives.RepeatButton> controls or by moving the <xref:System.Windows.Controls.Primitives.Thumb>. The default range of values for the <xref:System.Windows.Controls.Primitives.RangeBase.Value%2A> property is from 0 to 1. The <xref:System.Windows.Controls.Primitives.RangeBase.Value%2A> represents the linear distance of the <xref:System.Windows.Controls.Primitives.Thumb> between the endpoints of the <xref:System.Windows.Controls.Primitives.ScrollBar>. You can change the default range of values by setting the <xref:System.Windows.Controls.Primitives.RangeBase.Minimum%2A> and <xref:System.Windows.Controls.Primitives.RangeBase.Maximum%2A> properties. The <xref:System.Windows.Controls.Primitives.ScrollBar.Orientation%2A> property determines whether the <xref:System.Windows.Controls.Primitives.ScrollBar> is displayed horizontally or vertically, and you must define this property for the <xref:System.Windows.Controls.Primitives.ScrollBar> control to appear.
The <xref:System.Windows.Controls.Primitives.Track> in a <xref:System.Windows.Controls.Primitives.ScrollBar> is oriented so that values increase from top to bottom for a vertical <xref:System.Windows.Controls.Primitives.ScrollBar> or from left to right for a horizontal <xref:System.Windows.Controls.Primitives.ScrollBar>.
The <xref:System.Windows.Controls.Primitives.Track> properties in the following table are the binding targets for the corresponding <xref:System.Windows.Controls.Primitives.ScrollBar> properties when the <xref:System.Windows.Controls.Primitives.ScrollBar.Track%2A> property is not explicitly defined. If you explicitly define the <xref:System.Windows.Controls.Primitives.ScrollBar.Track%2A> property, the binding does not occur.
|<xref:System.Windows.Controls.Primitives.Track> property|<xref:System.Windows.Controls.Primitives.ScrollBar> property|
|----------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|<xref:System.Windows.Controls.Primitives.Track.Maximum%2A?displayProperty=nameWithType>|<xref:System.Windows.Controls.Primitives.RangeBase.Maximum%2A?displayProperty=nameWithType>|
|<xref:System.Windows.Controls.Primitives.Track.Minimum%2A?displayProperty=nameWithType>|<xref:System.Windows.Controls.Primitives.RangeBase.Minimum%2A?displayProperty=nameWithType>|
|<xref:System.Windows.Controls.Primitives.Track.Value%2A?displayProperty=nameWithType>|<xref:System.Windows.Controls.Primitives.RangeBase.Value%2A?displayProperty=nameWithType>|
You can access the <xref:System.Windows.Controls.Primitives.Track> control of a <xref:System.Windows.Controls.Primitives.ScrollBar> control by using the <xref:System.Windows.Controls.Primitives.ScrollBar.Track%2A> property.
To display <xref:System.Windows.UIElement> content inside a box that has scroll bars, use the <xref:System.Windows.Controls.ScrollViewer> control.
## Customizing the ScrollBar Control
To apply the same property settings to multiple <xref:System.Windows.Controls.Primitives.ScrollBar> controls, use the <xref:System.Windows.FrameworkElement.Style%2A> property. You can modify the default <xref:System.Windows.Controls.ControlTemplate> to give the control a unique appearance. For more information about creating a <xref:System.Windows.Controls.ControlTemplate>, see [How to create a template for a control](/dotnet/desktop/wpf/controls/how-to-create-apply-template). To see the parts and states that are specific to the <xref:System.Windows.Controls.Primitives.ScrollBar>, see [ScrollBar Styles and Templates](/dotnet/framework/wpf/controls/scrollbar-styles-and-templates).
Dependency properties for this control might be set by the control's default style. If a property is set by a default style, the property might change from its default value when the control appears in the application. The default style is determined by which desktop theme is used when the application is running.
[!INCLUDE[setting-a-visual-property](~/includes/visual-property-note.md)]
## Examples
The following example shows how to create a horizontal <xref:System.Windows.Controls.Primitives.ScrollBar> that has a range of values between 0 and 100.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/Orientation/Overview/Window1.xaml" id="Snippetscrollbar":::
]]></format>
</remarks>
<altmember cref="T:System.Windows.Controls.Primitives.RangeBase" />
<altmember cref="T:System.Windows.Controls.Primitives.Track" />
<altmember cref="T:System.Windows.Controls.Primitives.Thumb" />
<altmember cref="T:System.Windows.Controls.ScrollViewer" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ScrollBar ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Primitives.ScrollBar.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 ScrollBar();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DeferScrollToHorizontalOffsetCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand DeferScrollToHorizontalOffsetCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand DeferScrollToHorizontalOffsetCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.DeferScrollToHorizontalOffsetCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly DeferScrollToHorizontalOffsetCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable DeferScrollToHorizontalOffsetCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.DeferScrollToHorizontalOffsetCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ DeferScrollToHorizontalOffsetCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that notifies the <see cref="T:System.Windows.Controls.ScrollViewer" /> that the user is dragging the <see cref="T:System.Windows.Controls.Primitives.Thumb" /> of the horizontal <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> to the value that is provided in <see cref="P:System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When the user drags the thumb of a <xref:System.Windows.Controls.Primitives.ScrollBar>, the <xref:System.Windows.Controls.Primitives.ScrollBar> calls <xref:System.Windows.Input.RoutedCommand.CanExecute%2A> for the <xref:System.Windows.Controls.Primitives.ScrollBar.DeferScrollToHorizontalOffsetCommand>. If <xref:System.Windows.Input.RoutedCommand.CanExecute%2A> returns `true`, the <xref:System.Windows.Controls.Primitives.ScrollBar> executes that command. If <xref:System.Windows.Input.RoutedCommand.CanExecute%2A> returns `false`, the <xref:System.Windows.Controls.Primitives.ScrollBar> executes the <xref:System.Windows.Controls.Primitives.ScrollBar.ScrollToHorizontalOffsetCommand>.
The <xref:System.Windows.Controls.ScrollViewer> uses this command to enable deferred scrolling. When <xref:System.Windows.Controls.ScrollViewer.IsDeferredScrollingEnabled%2A?displayProperty=nameWithType> is `true` and a user drags the <xref:System.Windows.Controls.Primitives.Thumb> of the <xref:System.Windows.Controls.Primitives.ScrollBar>, the content of the <xref:System.Windows.Controls.ScrollViewer> does not change until the user releases the <xref:System.Windows.Controls.Primitives.Thumb>. If deferred scrolling is enabled, the <xref:System.Windows.Controls.Primitives.ScrollBar> executes the <xref:System.Windows.Controls.Primitives.ScrollBar.DeferScrollToHorizontalOffsetCommand> for a horizontal <xref:System.Windows.Controls.Primitives.ScrollBar> when the user drags the <xref:System.Windows.Controls.Primitives.Thumb>.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DeferScrollToVerticalOffsetCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand DeferScrollToVerticalOffsetCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand DeferScrollToVerticalOffsetCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.DeferScrollToVerticalOffsetCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly DeferScrollToVerticalOffsetCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable DeferScrollToVerticalOffsetCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.DeferScrollToVerticalOffsetCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ DeferScrollToVerticalOffsetCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that notifies the <see cref="T:System.Windows.Controls.ScrollViewer" /> that the user is dragging the <see cref="T:System.Windows.Controls.Primitives.Thumb" /> of the vertical <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> to the value that is provided in <see cref="P:System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When the user drags the thumb of a <xref:System.Windows.Controls.Primitives.ScrollBar>, the <xref:System.Windows.Controls.Primitives.ScrollBar> calls <xref:System.Windows.Input.RoutedCommand.CanExecute%2A> for the <xref:System.Windows.Controls.Primitives.ScrollBar.DeferScrollToVerticalOffsetCommand>. If <xref:System.Windows.Input.RoutedCommand.CanExecute%2A> returns `true`, the <xref:System.Windows.Controls.Primitives.ScrollBar> executes that command. If <xref:System.Windows.Input.RoutedCommand.CanExecute%2A> returns `false`, the <xref:System.Windows.Controls.Primitives.ScrollBar> executes the <xref:System.Windows.Controls.Primitives.ScrollBar.ScrollToVerticalOffsetCommand>.
The <xref:System.Windows.Controls.ScrollViewer> uses this command to enable deferred scrolling. When <xref:System.Windows.Controls.ScrollViewer.IsDeferredScrollingEnabled%2A?displayProperty=nameWithType> is `true` and a user drags the <xref:System.Windows.Controls.Primitives.Thumb> of the <xref:System.Windows.Controls.Primitives.ScrollBar>, the content of the <xref:System.Windows.Controls.ScrollViewer> does not change until the user releases the <xref:System.Windows.Controls.Primitives.Thumb>. If deferred scrolling is enabled, the <xref:System.Windows.Controls.Primitives.ScrollBar> executes the <xref:System.Windows.Controls.Primitives.ScrollBar.DeferScrollToVerticalOffsetCommand> for a vertical <xref:System.Windows.Controls.Primitives.ScrollBar> when the user drags the <xref:System.Windows.Controls.Primitives.Thumb>.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="IsEnabledCore">
<MemberSignature Language="C#" Value="protected override bool IsEnabledCore { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsEnabledCore" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Primitives.ScrollBar.IsEnabledCore" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property IsEnabledCore As Boolean" />
<MemberSignature Language="F#" Value="member this.IsEnabledCore : bool" Usage="System.Windows.Controls.Primitives.ScrollBar.IsEnabledCore" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual property bool IsEnabledCore { bool get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that indicates whether the <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> is enabled.</summary>
<value>
<see langword="true" /> if the <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> is enabled in a <see cref="T:System.Windows.Controls.ScrollViewer" /> and the size of the content is larger than the display area; otherwise, <see langword="false" />. The default is <see langword="true" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This implementation sets <xref:System.Windows.Controls.Primitives.ScrollBar.IsEnabledCore%2A> to `true` only if the <xref:System.Windows.Controls.Primitives.RangeBase.Maximum%2A> value of the <xref:System.Windows.Controls.Primitives.ScrollBar> is greater than the <xref:System.Windows.Controls.Primitives.RangeBase.Minimum%2A> value and the <xref:System.Windows.Controls.Primitives.ScrollBar> is enabled.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="LineDownCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand LineDownCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand LineDownCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.LineDownCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly LineDownCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable LineDownCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.LineDownCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ LineDownCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that scrolls a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> by a small amount in the vertical direction of increasing value of its <see cref="T:System.Windows.Controls.Primitives.Track" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This command increases the <xref:System.Windows.Controls.Primitives.Track.Value%2A> of the <xref:System.Windows.Controls.Primitives.Track> in the <xref:System.Windows.Controls.Primitives.ScrollBar> by the value of the <xref:System.Windows.Controls.Primitives.RangeBase.SmallChange%2A> property.
This command occurs when the user presses the DOWN ARROW key.
When you implement a <xref:System.Windows.Controls.Primitives.ScrollBar> as part of a <xref:System.Windows.Controls.ScrollViewer> control, the <xref:System.Windows.Controls.ScrollViewer> executes this command.
<a name="xamlTextUsage_LineDownCommand"></a>
## XAML Text Usage
`<` *object* *property*`="`**ScrollBar.LineDownCommand**`"/>`
## Examples
The following example shows how to specify the <xref:System.Windows.Controls.Primitives.ScrollBar.LineDownCommand> in a custom <xref:System.Windows.Controls.Primitives.ScrollBar> style template.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls.Primitives/ScrollBar/LineDownCommand/Window1.xaml" id="Snippetlinedowncommand":::
]]></format>
</remarks>
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineLeftCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineRightCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineUpCommand" />
</Docs>
</Member>
<Member MemberName="LineLeftCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand LineLeftCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand LineLeftCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.LineLeftCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly LineLeftCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable LineLeftCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.LineLeftCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ LineLeftCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that scrolls a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> by a small amount in the horizontal direction of decreasing value of its <see cref="T:System.Windows.Controls.Primitives.Track" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This command decreases the <xref:System.Windows.Controls.Primitives.Track.Value%2A> of the <xref:System.Windows.Controls.Primitives.Track> in the <xref:System.Windows.Controls.Primitives.ScrollBar> by the value of the <xref:System.Windows.Controls.Primitives.RangeBase.SmallChange%2A> property.
This command occurs when the user presses the left <xref:System.Windows.Controls.Primitives.RepeatButton>.
When you implement a <xref:System.Windows.Controls.Primitives.ScrollBar> as part of a <xref:System.Windows.Controls.ScrollViewer> control, the <xref:System.Windows.Controls.ScrollViewer> executes this command.
<a name="xamlTextUsage_LineLeftCommand"></a>
## XAML Text Usage
`<` *object* *property*`="`**ScrollBar.LineLeftCommand**`"/>`
## Examples
The following example shows how to specify the <xref:System.Windows.Controls.Primitives.ScrollBar.LineLeftCommand> in a custom <xref:System.Windows.Controls.Primitives.ScrollBar> style template.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls.Primitives/ScrollBar/LineDownCommand/Window1.xaml" id="Snippetlineleftcommand":::
]]></format>
</remarks>
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineDownCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineRightCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineUpCommand" />
</Docs>
</Member>
<Member MemberName="LineRightCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand LineRightCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand LineRightCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.LineRightCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly LineRightCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable LineRightCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.LineRightCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ LineRightCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that scrolls a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> by a small amount in the horizontal direction of increasing value of its <see cref="T:System.Windows.Controls.Primitives.Track" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This command increases the <xref:System.Windows.Controls.Primitives.Track.Value%2A> of the <xref:System.Windows.Controls.Primitives.Track> in the <xref:System.Windows.Controls.Primitives.ScrollBar> by the value of the <xref:System.Windows.Controls.Primitives.RangeBase.SmallChange%2A> property.
This command occurs when the user presses the right <xref:System.Windows.Controls.Primitives.RepeatButton>.
When you implement a <xref:System.Windows.Controls.Primitives.ScrollBar> as part of a <xref:System.Windows.Controls.ScrollViewer> control, the <xref:System.Windows.Controls.ScrollViewer> executes this command.
<a name="xamlTextUsage_LineRightCommand"></a>
## XAML Text Usage
`<` *object* *property*`="`**ScrollBar.LineRightCommand**`"/>`
## Examples
The following example shows how to specify the <xref:System.Windows.Controls.Primitives.ScrollBar.LineRightCommand> in a custom <xref:System.Windows.Controls.Primitives.ScrollBar> style template.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls.Primitives/ScrollBar/LineDownCommand/Window1.xaml" id="Snippetlinerightcommand":::
]]></format>
</remarks>
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineDownCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineLeftCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineUpCommand" />
</Docs>
</Member>
<Member MemberName="LineUpCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand LineUpCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand LineUpCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.LineUpCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly LineUpCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable LineUpCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.LineUpCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ LineUpCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that scrolls a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> by a small amount in the vertical direction of decreasing value of its <see cref="T:System.Windows.Controls.Primitives.Track" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This command reduces the <xref:System.Windows.Controls.Primitives.Track.Value%2A> of the <xref:System.Windows.Controls.Primitives.Track> in the <xref:System.Windows.Controls.Primitives.ScrollBar> by the value of the <xref:System.Windows.Controls.Primitives.RangeBase.SmallChange%2A> property.
This command occurs when the user presses the UP ARROW key.
When you implement a <xref:System.Windows.Controls.Primitives.ScrollBar> as part of a <xref:System.Windows.Controls.ScrollViewer> control, the <xref:System.Windows.Controls.ScrollViewer> executes this command.
<a name="xamlTextUsage_LineUpCommand"></a>
## XAML Text Usage
`<` *object* *property*`="`**ScrollBar.LineUpCommand**`"/>`
## Examples
The following example shows how to specify the <xref:System.Windows.Controls.Primitives.ScrollBar.LineUpCommand> in a custom <xref:System.Windows.Controls.Primitives.ScrollBar> style template.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls.Primitives/ScrollBar/LineDownCommand/Window1.xaml" id="Snippetlineupcommand":::
]]></format>
</remarks>
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineDownCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineLeftCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.LineRightCommand" />
</Docs>
</Member>
<Member MemberName="OnApplyTemplate">
<MemberSignature Language="C#" Value="public override void OnApplyTemplate ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void OnApplyTemplate() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Primitives.ScrollBar.OnApplyTemplate" />
<MemberSignature Language="VB.NET" Value="Public Overrides Sub OnApplyTemplate ()" />
<MemberSignature Language="F#" Value="override this.OnApplyTemplate : unit -> unit" Usage="scrollBar.OnApplyTemplate " />
<MemberSignature Language="C++ CLI" Value="public:
 override void OnApplyTemplate();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates the visual tree for the <see cref="T:System.Windows.Controls.Primitives.ScrollBar" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This implementation also sets the <xref:System.Windows.Controls.Primitives.ScrollBar.Track%2A> property to the <xref:System.Windows.Controls.Primitives.Track> that is defined in the <xref:System.Windows.Controls.Primitives.ScrollBar> template.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="OnContextMenuClosing">
<MemberSignature Language="C#" Value="protected override void OnContextMenuClosing (System.Windows.Controls.ContextMenuEventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnContextMenuClosing(class System.Windows.Controls.ContextMenuEventArgs e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Primitives.ScrollBar.OnContextMenuClosing(System.Windows.Controls.ContextMenuEventArgs)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnContextMenuClosing (e As ContextMenuEventArgs)" />
<MemberSignature Language="F#" Value="override this.OnContextMenuClosing : System.Windows.Controls.ContextMenuEventArgs -> unit" Usage="scrollBar.OnContextMenuClosing e" />
<MemberSignature Language="C++ CLI" Value="protected:
 override void OnContextMenuClosing(System::Windows::Controls::ContextMenuEventArgs ^ e);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="e" Type="System.Windows.Controls.ContextMenuEventArgs" />
</Parameters>
<Docs>
<param name="e">The event data.</param>
<summary>Provides class handling for the <see cref="E:System.Windows.FrameworkElement.ContextMenuClosing" /> event that occurs when the <see cref="T:System.Windows.Controls.ContextMenu" /> for a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> closes.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Controls.ContextMenu> of a <xref:System.Windows.Controls.Primitives.ScrollBar> provides options for changing the <xref:System.Windows.Controls.Primitives.RangeBase.Value%2A> of the <xref:System.Windows.Controls.Primitives.ScrollBar>.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="OnContextMenuOpening">
<MemberSignature Language="C#" Value="protected override void OnContextMenuOpening (System.Windows.Controls.ContextMenuEventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnContextMenuOpening(class System.Windows.Controls.ContextMenuEventArgs e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Primitives.ScrollBar.OnContextMenuOpening(System.Windows.Controls.ContextMenuEventArgs)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnContextMenuOpening (e As ContextMenuEventArgs)" />
<MemberSignature Language="F#" Value="override this.OnContextMenuOpening : System.Windows.Controls.ContextMenuEventArgs -> unit" Usage="scrollBar.OnContextMenuOpening e" />
<MemberSignature Language="C++ CLI" Value="protected:
 override void OnContextMenuOpening(System::Windows::Controls::ContextMenuEventArgs ^ e);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="e" Type="System.Windows.Controls.ContextMenuEventArgs" />
</Parameters>
<Docs>
<param name="e">The event data.</param>
<summary>Provides class handling for the <see cref="E:System.Windows.FrameworkElement.ContextMenuOpening" /> event that occurs when the <see cref="T:System.Windows.Controls.ContextMenu" /> for a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> opens.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Controls.ContextMenu> of a <xref:System.Windows.Controls.Primitives.ScrollBar> provides options for changing the <xref:System.Windows.Controls.Primitives.RangeBase.Value%2A> of the <xref:System.Windows.Controls.Primitives.ScrollBar>.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="OnCreateAutomationPeer">
<MemberSignature Language="C#" Value="protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Primitives.ScrollBar.OnCreateAutomationPeer" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function OnCreateAutomationPeer () As AutomationPeer" />
<MemberSignature Language="F#" Value="override this.OnCreateAutomationPeer : unit -> System.Windows.Automation.Peers.AutomationPeer" Usage="scrollBar.OnCreateAutomationPeer " />
<MemberSignature Language="C++ CLI" Value="protected:
 override System::Windows::Automation::Peers::AutomationPeer ^ OnCreateAutomationPeer();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.Peers.AutomationPeer</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates an <see cref="T:System.Windows.Automation.Peers.AutomationPeer" /> for this <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> control.</summary>
<returns>A <see cref="T:System.Windows.Automation.Peers.ScrollBarAutomationPeer" /> for the <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> control.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnPreviewMouseLeftButtonDown">
<MemberSignature Language="C#" Value="protected override void OnPreviewMouseLeftButtonDown (System.Windows.Input.MouseButtonEventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnPreviewMouseLeftButtonDown(class System.Windows.Input.MouseButtonEventArgs e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Primitives.ScrollBar.OnPreviewMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnPreviewMouseLeftButtonDown (e As MouseButtonEventArgs)" />
<MemberSignature Language="F#" Value="override this.OnPreviewMouseLeftButtonDown : System.Windows.Input.MouseButtonEventArgs -> unit" Usage="scrollBar.OnPreviewMouseLeftButtonDown e" />
<MemberSignature Language="C++ CLI" Value="protected:
 override void OnPreviewMouseLeftButtonDown(System::Windows::Input::MouseButtonEventArgs ^ e);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="e" Type="System.Windows.Input.MouseButtonEventArgs" />
</Parameters>
<Docs>
<param name="e">The event data.</param>
<summary>Provides class handling for the <see cref="E:System.Windows.UIElement.PreviewMouseLeftButtonDown" /> event.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This implementation changes the <xref:System.Windows.Controls.Primitives.RangeBase.Value%2A> of the <xref:System.Windows.Controls.Primitives.ScrollBar> to the location of the <xref:System.Windows.UIElement.PreviewMouseLeftButtonDown> event that occurs while the user presses the SHIFT key. The event is handled by setting <xref:System.Windows.RoutedEventArgs.Handled%2A> in the event data `e` to `true`.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="OnPreviewMouseRightButtonUp">
<MemberSignature Language="C#" Value="protected override void OnPreviewMouseRightButtonUp (System.Windows.Input.MouseButtonEventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnPreviewMouseRightButtonUp(class System.Windows.Input.MouseButtonEventArgs e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.Primitives.ScrollBar.OnPreviewMouseRightButtonUp(System.Windows.Input.MouseButtonEventArgs)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnPreviewMouseRightButtonUp (e As MouseButtonEventArgs)" />
<MemberSignature Language="F#" Value="override this.OnPreviewMouseRightButtonUp : System.Windows.Input.MouseButtonEventArgs -> unit" Usage="scrollBar.OnPreviewMouseRightButtonUp e" />
<MemberSignature Language="C++ CLI" Value="protected:
 override void OnPreviewMouseRightButtonUp(System::Windows::Input::MouseButtonEventArgs ^ e);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="e" Type="System.Windows.Input.MouseButtonEventArgs" />
</Parameters>
<Docs>
<param name="e">The event data.</param>
<summary>Provides class handling for the <see cref="E:System.Windows.UIElement.PreviewMouseRightButtonUp" /> event.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This implementation saves the position of the mouse click so that the <xref:System.Windows.Controls.Primitives.ScrollBar> can scroll to that position in response to a <xref:System.Windows.Controls.Primitives.ScrollBar.ScrollHereCommand>.
## Examples
A <xref:System.Windows.Controls.Primitives.ScrollBar.ScrollHereCommand> occurs when the user selects **Scroll Here** from the menu that appears when the user presses the right mouse button over the <xref:System.Windows.Controls.Primitives.ScrollBar>.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Orientation">
<MemberSignature Language="C#" Value="public System.Windows.Controls.Orientation Orientation { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Controls.Orientation Orientation" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.Primitives.ScrollBar.Orientation" />
<MemberSignature Language="VB.NET" Value="Public Property Orientation As Orientation" />
<MemberSignature Language="F#" Value="member this.Orientation : System.Windows.Controls.Orientation with get, set" Usage="System.Windows.Controls.Primitives.ScrollBar.Orientation" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Windows::Controls::Orientation Orientation { System::Windows::Controls::Orientation get(); void set(System::Windows::Controls::Orientation value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Controls.Orientation</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets whether the <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> is displayed horizontally or vertically.</summary>
<value>An <see cref="T:System.Windows.Controls.Orientation" /> enumeration value that defines whether the <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> is displayed horizontally or vertically. The default is <see cref="F:System.Windows.Controls.Orientation.Vertical" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="dependencyPropertyInfo_Orientation"></a>
## Dependency Property Information
| Item | Value |
|-----------------------------------|--------------------------------------------------------|
|Identifier field|<xref:System.Windows.Controls.Primitives.ScrollBar.OrientationProperty>|
|Metadata properties set to `true`|None|
## Examples
The following example shows how to set the <xref:System.Windows.Controls.Primitives.ScrollBar.Orientation%2A> property for a <xref:System.Windows.Controls.Primitives.ScrollBar> control.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/Orientation/Overview/Window1.xaml.cs" id="Snippetorientation":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/ScrollBarSnips/visualbasic/window1.xaml.vb" id="Snippetorientation":::
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/Orientation/Overview/Window1.xaml" id="Snippetorientation":::
]]></format>
</remarks>
<altmember cref="T:System.Windows.Controls.Orientation" />
</Docs>
</Member>
<Member MemberName="OrientationProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty OrientationProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty OrientationProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.OrientationProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly OrientationProperty As DependencyProperty " />
<MemberSignature Language="F#" Value=" staticval mutable OrientationProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.Primitives.ScrollBar.OrientationProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ OrientationProperty;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.Primitives.ScrollBar.Orientation" /> dependency property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PageDownCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand PageDownCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand PageDownCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.PageDownCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly PageDownCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable PageDownCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.PageDownCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ PageDownCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that scrolls a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> by a large amount in the vertical direction of increasing value of its <see cref="T:System.Windows.Controls.Primitives.Track" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This command increases the <xref:System.Windows.Controls.Primitives.Track.Value%2A> of the <xref:System.Windows.Controls.Primitives.Track> in the <xref:System.Windows.Controls.Primitives.ScrollBar> by the value of the <xref:System.Windows.Controls.Primitives.RangeBase.LargeChange%2A> property.
This command occurs when the user presses the PAGE DOWN key.
When you implement a <xref:System.Windows.Controls.Primitives.ScrollBar> as part of a <xref:System.Windows.Controls.ScrollViewer> control, the <xref:System.Windows.Controls.ScrollViewer> executes this command.
<a name="xamlTextUsage_PageDownCommand"></a>
## XAML Text Usage
`<` *object* *property*`="`**ScrollBar.PageDownCommand**`"/>`
## Examples
The following example shows how to specify the <xref:System.Windows.Controls.Primitives.ScrollBar.PageDownCommand> in a custom <xref:System.Windows.Controls.Primitives.ScrollBar> style template.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls.Primitives/ScrollBar/LineDownCommand/Window1.xaml" id="Snippetpagedowncommand":::
]]></format>
</remarks>
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageUpCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageLeftCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageRightCommand" />
</Docs>
</Member>
<Member MemberName="PageLeftCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand PageLeftCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand PageLeftCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.PageLeftCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly PageLeftCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable PageLeftCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.PageLeftCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ PageLeftCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that scrolls a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> by a large amount in the horizontal direction of decreasing value of its <see cref="T:System.Windows.Controls.Primitives.Track" />.</summary>
<remarks>
<format type="text/markdown"><
When you implement a <xref:System.Windows.Controls.Primitives.ScrollBar> as part of a <xref:System.Windows.Controls.ScrollViewer> control, the <xref:System.Windows.Controls.ScrollViewer> executes this command.
<a name="xamlTextUsage_PageLeftCommand"></a>
## XAML Text Usage
`<` *object* *property*`="`**ScrollBar.PageLeftCommand**`"/>`
## Examples
The following example shows how to specify the <xref:System.Windows.Controls.Primitives.ScrollBar.PageLeftCommand> in a custom <xref:System.Windows.Controls.Primitives.ScrollBar> style template.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls.Primitives/ScrollBar/LineDownCommand/Window1.xaml" id="Snippetpageleftcommand":::
]]></format>
</remarks>
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageUpCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageDownCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageRightCommand" />
</Docs>
</Member>
<Member MemberName="PageRightCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand PageRightCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand PageRightCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.PageRightCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly PageRightCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable PageRightCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.PageRightCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ PageRightCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that scrolls a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> by a large amount in the horizontal direction of increasing value of its <see cref="T:System.Windows.Controls.Primitives.Track" />.</summary>
<remarks>
<format type="text/markdown"><
When you implement a <xref:System.Windows.Controls.Primitives.ScrollBar> as part of a <xref:System.Windows.Controls.ScrollViewer> control, the <xref:System.Windows.Controls.ScrollViewer> executes this command.
<a name="xamlTextUsage_PageRightCommand"></a>
## XAML Text Usage
`<` *object* *property*`="`**ScrollBar.PageRightCommand**`"/>`
## Examples
The following example shows how to specify the <xref:System.Windows.Controls.Primitives.ScrollBar.PageRightCommand> in a custom <xref:System.Windows.Controls.Primitives.ScrollBar> style template.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls.Primitives/ScrollBar/LineDownCommand/Window1.xaml" id="Snippetpagerightcommand":::
]]></format>
</remarks>
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageUpCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageDownCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageLeftCommand" />
</Docs>
</Member>
<Member MemberName="PageUpCommand">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Input.RoutedCommand PageUpCommand;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Input.RoutedCommand PageUpCommand" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.PageUpCommand" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly PageUpCommand As RoutedCommand " />
<MemberSignature Language="F#" Value=" staticval mutable PageUpCommand : System.Windows.Input.RoutedCommand" Usage="System.Windows.Controls.Primitives.ScrollBar.PageUpCommand" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Input::RoutedCommand ^ PageUpCommand;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.RoutedCommand</ReturnType>
</ReturnValue>
<Docs>
<summary>The command that scrolls a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> by a large amount in the vertical direction of decreasing value of its <see cref="T:System.Windows.Controls.Primitives.Track" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This command reduces the <xref:System.Windows.Controls.Primitives.Track.Value%2A> of the <xref:System.Windows.Controls.Primitives.Track> in the <xref:System.Windows.Controls.Primitives.ScrollBar> by the value of the <xref:System.Windows.Controls.Primitives.RangeBase.LargeChange%2A> property.
This command occurs when the user presses the PAGE UP key.
When you implement a <xref:System.Windows.Controls.Primitives.ScrollBar> as part of a <xref:System.Windows.Controls.ScrollViewer> control, the <xref:System.Windows.Controls.ScrollViewer> executes this command.
<a name="xamlTextUsage_PageUpCommand"></a>
## XAML Text Usage
`<` *object* *property*`="`**ScrollBar.PageUpCommand**`"/>`
## Examples
The following example shows how to specify the <xref:System.Windows.Controls.Primitives.ScrollBar.PageUpCommand> in a custom <xref:System.Windows.Controls.Primitives.ScrollBar> style template.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls.Primitives/ScrollBar/LineDownCommand/Window1.xaml" id="Snippetpageupcommand":::
]]></format>
</remarks>
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageDownCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageLeftCommand" />
<altmember cref="F:System.Windows.Controls.Primitives.ScrollBar.PageRightCommand" />
</Docs>
</Member>
<Member MemberName="Scroll">
<MemberSignature Language="C#" Value="public event System.Windows.Controls.Primitives.ScrollEventHandler Scroll;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.Controls.Primitives.ScrollEventHandler Scroll" />
<MemberSignature Language="DocId" Value="E:System.Windows.Controls.Primitives.ScrollBar.Scroll" />
<MemberSignature Language="VB.NET" Value="Public Custom Event Scroll As ScrollEventHandler " />
<MemberSignature Language="F#" Value="member this.Scroll : System.Windows.Controls.Primitives.ScrollEventHandler " Usage="member this.Scroll : System.Windows.Controls.Primitives.ScrollEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event System::Windows::Controls::Primitives::ScrollEventHandler ^ Scroll;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Category("Behavior")]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Category("Behavior")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Controls.Primitives.ScrollEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs one or more times as content scrolls in a <see cref="T:System.Windows.Controls.Primitives.ScrollBar" /> when the user moves the <see cref="P:System.Windows.Controls.Primitives.Track.Thumb" /> by using the mouse.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This event typically occurs multiple times when the user changes the <xref:System.Windows.Controls.Primitives.RangeBase.Value%2A> of the <xref:System.Windows.Controls.Primitives.ScrollBar> by dragging the <xref:System.Windows.Controls.Primitives.Track.Thumb%2A>. There is no limit to the number of times this event is raised as the <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> position is dragged.
This event is not raised when the <xref:System.Windows.Controls.Primitives.RangeBase.Value%2A> of the <xref:System.Windows.Controls.Primitives.ScrollBar> control is changed in code.
<a name="routedEventInfo_Scroll"></a>
## Routed Event Information
| Item | Value |
|-----------------------------------|--------------------------------------------------------|
|Identifier field|<xref:System.Windows.Controls.Primitives.ScrollBar.ScrollEvent>|
|Routing strategy|Bubbling|
|Delegate|<xref:System.Windows.Controls.Primitives.ScrollEventHandler>|
## Examples
The following example shows how assign an event handler for the <xref:System.Windows.Controls.Primitives.ScrollBar.Scroll> event to a <xref:System.Windows.Controls.Primitives.ScrollBar> control, and how to define the event handler in code.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/Orientation/Overview/Window1.xaml" id="Snippetscroll":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/Orientation/Overview/Window1.xaml.cs" id="Snippetscrollhandler":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/ScrollBarSnips/visualbasic/window1.xaml.vb" id="Snippetscrollhandler":::
]]></format>
</remarks>
<altmember cref="T:System.Windows.Controls.Primitives.ScrollEventArgs" />
</Docs>
</Member>
<Member MemberName="ScrollEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.RoutedEvent ScrollEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.RoutedEvent ScrollEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.Primitives.ScrollBar.ScrollEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ScrollEvent As RoutedEvent " />
<MemberSignature Language="F#" Value=" staticval mutable ScrollEvent : System.Windows.RoutedEvent" Usage="System.Windows.Controls.Primitives.ScrollBar.ScrollEvent" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::RoutedEvent ^ ScrollEvent;" />