forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- ImageButtonHandler and Handler Re-usability (dotnet#2352) - Remove IBoxView (dotnet#2619) - Add SupportedOSPlatformVersion (dotnet#2565) - Merge all the .NET 6 projects/solutions (dotnet#2505) - Shadow Support (dotnet#570) - Add IndicatorView handler(dotnet#2038)
- Loading branch information
1 parent
04c9445
commit 8a77e8c
Showing
31 changed files
with
276 additions
and
154 deletions.
There are no files selected for viewing
File renamed without changes.
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
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 was deleted.
Oops, something went wrong.
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
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
19 changes: 19 additions & 0 deletions
19
src/Core/src/Handlers/ImageButton/ImageButtonHandler.Tizen.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,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using ElmSharp; | ||
using TImage = Tizen.UIExtensions.ElmSharp.Image; | ||
|
||
namespace Microsoft.Maui.Handlers | ||
{ | ||
//TODO: Need to impl | ||
public partial class ImageButtonHandler : ViewHandler<IImageButton, TImage> | ||
{ | ||
protected override TImage CreateNativeView() => throw new NotImplementedException(); | ||
|
||
void OnSetImageSource(TImage? obj) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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
60 changes: 60 additions & 0 deletions
60
src/Core/src/Handlers/IndicatorView/IndicatorViewHandler.Tizen.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,60 @@ | ||
using System; | ||
using Tizen.UIExtensions.ElmSharp; | ||
|
||
namespace Microsoft.Maui.Handlers | ||
{ | ||
public partial class IndicatorViewHandler : ViewHandler<IIndicatorView, IndicatorView> | ||
{ | ||
protected override IndicatorView CreateNativeView() | ||
{ | ||
_ = NativeParent ?? throw new ArgumentNullException(nameof(NativeParent)); | ||
return new IndicatorView(NativeParent); | ||
} | ||
|
||
protected override void ConnectHandler(IndicatorView nativeView) | ||
{ | ||
base.ConnectHandler(nativeView); | ||
NativeView.SelectedPosition += OnSelectedPosition; | ||
} | ||
|
||
protected override void DisconnectHandler(IndicatorView nativeView) | ||
{ | ||
base.DisconnectHandler(nativeView); | ||
NativeView.SelectedPosition -= OnSelectedPosition; | ||
} | ||
|
||
public static void MapCount(IndicatorViewHandler handler, IIndicatorView indicator) | ||
{ | ||
handler.NativeView.UpdateIndicatorCount(indicator); | ||
} | ||
|
||
public static void MapPosition(IndicatorViewHandler handler, IIndicatorView indicator) | ||
{ | ||
handler.NativeView.UpdatePosition(indicator); | ||
} | ||
|
||
//TODO : Need to impl | ||
[MissingMapper] | ||
public static void MapHideSingle(IndicatorViewHandler handler, IIndicatorView indicator) { } | ||
|
||
[MissingMapper] | ||
public static void MapMaximumVisible(IndicatorViewHandler handler, IIndicatorView indicator) { } | ||
|
||
[MissingMapper] | ||
public static void MapIndicatorSize(IndicatorViewHandler handler, IIndicatorView indicator) { } | ||
|
||
[MissingMapper] | ||
public static void MapIndicatorColor(IndicatorViewHandler handler, IIndicatorView indicator) { } | ||
|
||
[MissingMapper] | ||
public static void MapSelectedIndicatorColor(IndicatorViewHandler handler, IIndicatorView indicator) { } | ||
|
||
[MissingMapper] | ||
public static void MapIndicatorShape(IndicatorViewHandler handler, IIndicatorView indicator) { } | ||
|
||
void OnSelectedPosition(object? sender, SelectedPositionChangedEventArgs e) | ||
{ | ||
VirtualView.Position = e.SelectedPosition; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.