-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added rendering capability for a WPF Panel in React Native via a Reac…
…tViewManager
- Loading branch information
1 parent
3701804
commit cc26462
Showing
7 changed files
with
70 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
|
||
namespace ReactNative.UIManager | ||
{ | ||
class RootViewManager : ViewGroupManager | ||
{ | ||
private readonly string REACT_CLASS = "ReactView"; | ||
|
||
|
||
/// <summary> | ||
/// Get the name of the react root view | ||
/// </summary> | ||
public override string Name | ||
{ | ||
get | ||
{ | ||
return REACT_CLASS; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Creates a new view instance of type <typeparamref name="Panel"/>. | ||
/// </summary> | ||
/// <param name="reactContext">The react context.</param> | ||
/// <returns>The view instance.</returns> | ||
protected override FrameworkElement CreateViewInstance(ThemedReactContext reactContext) | ||
{ | ||
return new SizeMonitoringFrameLayout(); | ||
} | ||
} | ||
} |
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