-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added zxing.maui sample ui - works on android simulator 30
- Loading branch information
1 parent
33dc260
commit 5845acd
Showing
6 changed files
with
92 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
POC_AvaloniaMauiApp01/POC_AvaloniaMauiApp01/MauiGridLengthExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using Microsoft.Maui; | ||
|
||
namespace Avalonia.Maui.Controls; | ||
|
||
public class MauiGridLengthExtension | ||
{ | ||
private readonly double _value; | ||
private readonly GridUnitType _type; | ||
|
||
|
||
public MauiGridLengthExtension(double value, GridUnitType type) | ||
{ | ||
_value = value; | ||
_type = type; | ||
} | ||
|
||
public Microsoft.Maui.GridLength ProvideValue(IServiceProvider provider) | ||
{ | ||
return new Microsoft.Maui.GridLength(_value, _type); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters