This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +27
-27
lines changed
src/GitHub.InlineReviews/Glyph Expand file tree Collapse file tree 1 file changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,33 @@ public ITextViewMargin GetTextViewMargin(string marginName)
6666 return ( marginName == this . marginName ) ? this : null ;
6767 }
6868
69+ public bool Enabled
70+ {
71+ get
72+ {
73+ ThrowIfDisposed ( ) ;
74+ return true ;
75+ }
76+ }
77+
78+ public double MarginSize
79+ {
80+ get
81+ {
82+ ThrowIfDisposed ( ) ;
83+ return marginVisual . Width ;
84+ }
85+ }
86+
87+ public FrameworkElement VisualElement
88+ {
89+ get
90+ {
91+ ThrowIfDisposed ( ) ;
92+ return marginVisual ;
93+ }
94+ }
95+
6996 void OnLoaded ( object sender , RoutedEventArgs e )
7097 {
7198 RefreshMarginVisibility ( ) ;
@@ -179,32 +206,5 @@ void ThrowIfDisposed()
179206 throw new ObjectDisposedException ( marginName ) ;
180207 }
181208 }
182-
183- public bool Enabled
184- {
185- get
186- {
187- ThrowIfDisposed ( ) ;
188- return true ;
189- }
190- }
191-
192- public double MarginSize
193- {
194- get
195- {
196- ThrowIfDisposed ( ) ;
197- return marginVisual . Width ;
198- }
199- }
200-
201- public FrameworkElement VisualElement
202- {
203- get
204- {
205- ThrowIfDisposed ( ) ;
206- return marginVisual ;
207- }
208- }
209209 }
210210}
You can’t perform that action at this time.
0 commit comments