Bug 42236 - Xamarin Forms load UWP page Native with PageRenderer
Summary: Xamarin Forms load UWP page Native with PageRenderer
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.2.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: E.Z. Hart [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-06-29 10:36 UTC by nono-gui35
Modified: 2017-06-19 18:41 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description nono-gui35 2016-06-29 10:36:24 UTC
Hi everyone,

I have a xamarin forms project with Android, Ios and UWP (Windows Phone 10), in this project I need a camera with special specification.
For that I develop a camera on Native for differents mobile.
In Android it's okay but in UWP I have a problem.
For load a native page I use a PageRenderer and a page (I helped with sample Forms2Native), in my PageRenderer I have :

[assembly: ExportRenderer(typeof(T_Badge.Model.Camera), typeof(CameraRenderer))]
namespace T_Badge.UWP.Renderer
{
    public class CameraRenderer : PageRenderer
    {
        protected override void OnElementChanged(ElementChangedEventArgs<Page> e)
        {
            base.OnElementChanged(e);

            var p = new T_Badge.UWP.Camera();

            this.Children.Add(p);

        }
    }

}

and for my page (T_Badge.UWP.Camera.xaml) I helped with sample CameraStarterKit.

I can launch my application and go to my native page (no error) but my screen is white and my page is loaded.
I think the problem is in my PageRendere.

Some idea please ?
Comment 1 E.Z. Hart [MSFT] 2016-08-11 23:34:57 UTC
(In reply to nono-gui35 from comment #0)
> 
> I can launch my application and go to my native page (no error) but my
> screen is white and my page is loaded.

Can you provide the XAML and codebehind you're using for the T_Badge.UWP.Camera page?
Comment 2 Samantha Houts [MSFT] 2017-06-19 18:41:40 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!