File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ImageEx Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11
11
<Grid Margin =" 40"
12
12
Background =" White" >
13
13
<ScrollViewer VerticalScrollBarVisibility =" Auto" >
14
- <Grid Height =" 3000 " >
14
+ <Grid Height =" 6000 " >
15
15
<Border Width =" 200"
16
16
Height =" 200"
17
17
HorizontalAlignment =" Center"
35
35
VerticalAlignment =" Top"
36
36
Background =" Transparent"
37
37
BorderThickness =" 0"
38
- Click =" CloseButton_Click" >
38
+ Click =" CloseButton_Click"
39
+ Foreground =" Black" >
39
40
<SymbolIcon Symbol =" Cancel" />
40
41
</Button >
41
42
</Grid >
Original file line number Diff line number Diff line change @@ -82,7 +82,15 @@ private async void Load()
82
82
83
83
if ( lazyLoadingControlHost != null )
84
84
{
85
- lazyLoadingControlHost . Child = imageExLazyLoadingControl ;
85
+ // Allow this to act as a toggle.
86
+ if ( lazyLoadingControlHost . Child == null )
87
+ {
88
+ lazyLoadingControlHost . Child = imageExLazyLoadingControl ;
89
+ }
90
+ else
91
+ {
92
+ lazyLoadingControlHost . Child = null ;
93
+ }
86
94
}
87
95
} ) ;
88
96
You can’t perform that action at this time.
0 commit comments