question

AhmedWassimBENSALEMENISo-3626 avatar image
0 Votes"
AhmedWassimBENSALEMENISo-3626 asked AhmedWassimBENSALEMENISo-3626 edited

Make a views Page Invisible !

So i have a stream camera runing inside a views page , i want the camera be invsible in the views page , but it should keep runing and give data..
Any solutions "

dotnet-csharpdotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered AhmedWassimBENSALEMENISo-3626 edited

Hello,​

Welcome to our Microsoft Q&A platform!

If you use camera preview like this thread

https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/custom-renderer/view

You cannot make the views or page to invisble, but you can set the HeightRequest="1" and WidthRequest="1" make it to be small like this screenshot.

86926-image.png

But if you navigate to other pages, this cameraview will be closed.

Best Regards,

Leon Lu



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (73.6 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@LeonLu-MSFT actually i am passing the camera stream to the views through a page render , you can check the screenshot
i attached to you the SetupUserInterface method










86905-capture.png


0 Votes 0 ·
capture.png (41.3 KiB)
LeonLu-MSFT avatar image LeonLu-MSFT AhmedWassimBENSALEMENISo-3626 ·

Change your matchParentParams to this code RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(1,1);

1 Vote 1 ·

@LeonLu-MSFT yes it works , fine . Now sir is there any solution for integrating this page (CameraPage) to another Page in my application
because i will use only one page (Dashboard Page) and i want the camera page alawys running

0 Votes 0 ·
Show more comments