Xamarin.Forms navigate through multiple labels in the same page - c#

I'm trying to write an PDF/Epub reader with Xamarin.Forms.
I managed to get Epub content, showing into a view, scrolling like a web page, all basic stuff. Right now, I wan't to create some kind of page with a right/left slider, just like any other reading app does, but i failed in this task and I have not found a tutorial or project on github that do it.
I want to do something that Adobe Reader already does: You open a file, it fits the page into your screen, when you slide your finger from right to left, you go to the next page, and when you goes from left to right, you go to the previous page. In this app, it looks like some kind of gallery was implemented, but, instead of images, it shows text.
So, any of you know how to accomplish that?
Thank you in advance!

Why don't you use CarouselPage I can see it fits your needs.

Related

How to stick a button to the top of the screen in Xamarin.Forms

I've been trying to get better at implementing UI in Xamarin.Forms. I have been searching online and on my phone for cool layouts and trying to recreate them in Xamarin.Forms to increase my skills. I want to recreate the UI for playlists in Spotify on iOS (possibly Android as well but I don't know). I know the whole solution might be too complicated to post so even just tips on how to get started on something like this or at the very least somewhere to look to learn how to implement a sticky button like they have. I thought about having a hidden button that gets shown when the real button scrolls out of view but I'm wondering if there is a better way. Here is what Spotify looks like:
Button starts stuck to top:
If you scroll up past the top it shows a hidden album art and search:
The when you scroll down the button sticks to the top again:

Custom Print Preview -- Design Choice

I need to implement a custom print preview screen for one of the pages in my MVC web project. I was just wondering what some of the recommended ways of doing it are. Basically, we have a dropdown menu with a bunch of different options-- each one displays a different statistical report under the dropdown menu. For the print preview, I only want to preview the report, not the whole page.
Should I simply take the html and cut off the stuff I don't want, and re-render it? Or create some kind of other document, XPS maybe, and display it as that? Alternate CSS maybe?
Not that anyone is probably interested, but I ended up just using the HTML from the original page and disabling/restyling all of the links and stuff, and hid unnecessary elements via javascript.

Want to show 500 images for my e catalogue apps in wp7

I want to show nearly 500 images serially in my e-catalogue application.
It should be like panorama view, the half of the image appear in the first screen when drag the next half will appear. Like that I have to show 500 jpeg images like a ebook application. Which is the best way?
I have tried it in panorama using selection changed event but it can't load quickly. Kindly guide me.
try load the two first image (1.jpeg and 2.jpeg) and with the event, when you are on 2.jpeg (load another image (3.jpeg))
Another alternative is using virtual paging an article with sample project can be found here
http://kent-boogaart.com/blog/virtual-paging-in-silverlight

Moving Picture Box depending on monitor size? C#

I am using a picture box in my C# application, I want it to cover a certain portion of the web browser (the username part on youtube).
I have a 21.5" monitor and this is what it looks like to me:
But then this is what it looks like to one of my users with a 24" monitor:
As you can see the position of the picture box has moved up due to that persons screen size (I believe)
Is there a way to make sure that it will always be over that section of the web browser or moving it to that section of the web browser?
Thanks.
I am convinced your approach is wrong and would break anytime either for screen resolution or size changes, or for using the mouse-wheel to zoom in/out the page or whatever. it is just unreliable and patching this by overlapping another UI control like a picture box or a panel on top of what you want to hide is simply insecure and unreliable.
I think the tow real options you have are these:
You try to interpret the page content and remove from the page's DOM the information you do not want to show to the user (eventually HTML Agility Pack could help for this DOM parsing and manipulation but I am not sure if you can read what the WebBrowser control is showing and inject changes into it);
use the YouTube APIs and Tools - .NET APIs to load the videos and details you want to load and show but rendering this information with your specific UI elements in your windows forms application, without using a browser to show the normal YouTube site.
Probably the second option takes more work but is more secure, I am not sure 100%, as I said, if the first option is viable at all. You could search for HTML Agility Pack and web browser control to see if anybody has done this before already :)

Windows Forms Browser Skeleton (C#/.NET)

I was wondering if anyone knows of an existing sample or an approach to achieve the desired functionality.
Basically, what I'm looking for is a web browser like skeleton. The idea is that the main screen of my application is shown in the left tab. This tab can never be closed. On this screen is an overview of various application components such as activities, events, contacts, etc.
When the user clicks on a specific contact/event/activity a new tab is created and auto-focused. The user can view and edit the information. When they are done they can close the tab.
The ability to have multiple tabs open is important.
Also, keyboard shortcuts to easily navigate between tabs would be great, but not absolutely essential at this point.
Note: I don't need to access any web content.
Really what I'm looking for, at least what I think I'm looking for, is a shell of a modern web browser. Does something like this exist? Is there a good approach to building such an application?
Note: I'm new to Windows GUI development, so I apologize if this is a rudimentary question. I was unable to find anything meaningful while searching MSDN and other resources.
Thanks!
What it sounds like is not really a Web Browser shell at all, simply the relative appearance of one functionality-wise.
What you can do is use a TabControl control. This can be altered to suit your needs quite perfectly in my view.
An example of a modified TabControl is as follows: [ From here ]
There are a number of things that can be done with a TabControl (as with any other component) to make it suit what you need.
Here are some links that you may find helpful:
Flat Tab Control - As per the picture
MSDN
Video on using a Tab Control
C# Corner

Categories

Resources