Skip to content

Commit 921e8db

Browse files
committed
Forms: Fix bindings to Flash, bottom, top text
The binding context of the `ZXingDefaultOverlay` view was never set, so any attempts to change the visibility of the flash button or set the top/bottom text would cause it to not be visible, basically the bindings weren’t propogating.
1 parent 9a0e86f commit 921e8db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/ZXing.Net.Mobile.Forms/ZXingDefaultOverlay.cs

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public class ZXingDefaultOverlay : Grid
1515

1616
public ZXingDefaultOverlay ()
1717
{
18+
BindingContext = this;
19+
1820
VerticalOptions = LayoutOptions.FillAndExpand;
1921
HorizontalOptions = LayoutOptions.FillAndExpand;
2022

0 commit comments

Comments
 (0)