Xamarin Forms MultiPage<T> example - forms

I am thinking to implement a custom tabbed page with some custom functionality and I thought about using MultiPage.
I am thinking about that because it seems to be the base class of the Forms's TabTabbedPage and would like to actually have a page at the bottom to display the buttons and the top space to display come content pages based on the selection(of the user).
Currently I only added 2 pages on the MultiPage and the last page from the data set is being displayed but I can't shrink its height so that I can add another content page below to add the buttons. I tried to set the HeightRequest on the pages but with no effect.
Does anyone have at hand some samples involving the MultiPage or knows how to change the ContentPage width or height?
Thanks a lot!

Related

Microsoft Access : form height size in view mode does not match the height in design mode

I have designed an Access 2016 form with an embedded subform.
When displaying my (main) form (shown in 1st picture), I notice a space below the sub-form and above the "Form footer" that I cannot see in design mode (see 2nd picture).
I have no clue how I could get rid of this unncessary space. Can someone help me out to find out what I have missed in the design of my userform ?
Many thanks in advance.
The simplest way would be to move the buttons from the form footer to the bottom of the detail section.
Then get rid of header & footer, and set the form to Auto Resize = Yes.
If you don't want to do this, you must set and save the display size (height) of the popup form in design view.
You can't do this with tabbed documents, you need to switch to overlapping windows:
https://support.office.com/en-us/article/show-or-hide-object-tabs-25074ab7-bcc8-466d-81aa-b6cf739715cb
(and then open the form non-maximized in design view.)
It may take a bit of trial & error to get the height exactly right in design view.
Similar question: Access 2010 Popup Report always matches size of Report Design window

EvoPdf Page backgrounds and Margins

I am converting HTML pages using EvoPdf and would like to add a background image. I am generating documents and would like to add a cover page, I am doing this by prepending the HTML for the cover page then putting a page break directly after.
I am using this demo as a guide http://www.evopdf.com/demo/HTML_to_PDF/PDF_Pages_Background/Add_Elements_in_Background.aspx and have found that I need to remove the page margins for the image to cover the whole page otherwise it sits inside the margins.
If I remove the margins this means the content that flows over pages now starts directly at the top of the page and flows right to the bottom. I can fix this for left and right margins by putting this in the HTML but this does not work for top and bottom margins that flow over pages. (see the generated PDF from the above demo)
Is there a way to set the PDF page background irrespective of the page margins? I have been looking at creating multiple documents with their own configuration and merging the PDF's but I really want to avoid this.
You can set up a header and footer with the heights you wanted for the top and bottom margins, and then choose to not display them on the first page. This should give you the effect you're looking for.
You can find more information about how to do this here: http://www.evopdf.com/demo/HTML_to_PDF/Headers_and_Footers/HTML_in_Header_Footer.aspx

Fancybox 2: auto resize the iFrame height for tabbed content

I use Fancybox2 to open an iFrame popup window (content comes from the same website). Within this popup, I have tabbed content (Bootstrap tabs). Each tab has content of different heights.
I am hoping that Fancybox can resize its height accordingly when I click tabs to see content on different heights.
I tried different combinations of autoSiz, autoHeight, etc. Got no success. Googled, and it seems many people asked related questions.
Am I missing something? Or is it doable? I feel this should be an easy configuration.
Thanks!
You may need to trigger the $.fancybox.update() (fancybox v2.x) method after the tab selector event
If using iframes, try parent.$.fancybox.update()
You may also need set fitToView to false

how to add a scrollable toolbar for pdf reader IOS application

I have downloaded the pdf reader from https://github.com/vfr/Reader. This looks great but the bottom page bar or toolbar is stable. It adds all the pages into one single tool bar with out providing any scrolling feature. could someone help me to change this to a scrollable view?
I achieved this by changing the readerpagebar to derive from UIScrollviewController instead of UIViewController and increased the content size of scroll bar to number of images mounted in it. if someone needs further info, I will post the code here.

In LWUIT, how can i add multiple container/Layout on single Form?

In J2ME I am Using LWUIT library.
My problem is I want to add various component on single Form using different layout or Container. I am looking for some code or example.
Example..
add Header image on top of the Form.
Adding two label, two textfield on
one Container/layout and Two button
on another Container/layout. Design
like Login Form.
add Footer image on bottom of the
Form.
Set the title image of the form for showing header image. Set the softbutton image of the form for showing footer image.
Normally you can use the border layout or box layout for both container and form. See the LWUITDemo application on LWUIT repository. It will helps you. Also see the same sample examples,
The Lightweight User Interface Toolkit (LWUIT): An Introduction
Using LWUIT layouts
use different container with different layout to add in form
i.e set form to Borderlayout add title container to north and footer container to south
next use another container with your required layout and add it to center in form, thus create container hierarchy
For samples on how to arrange components in various layouts you can look within the LWUIT 1.5 distribution and on demos such as the LWUITDemo which has a layouts demo within it. Keep in mind that layouts can be nested.
The LWUIT blog which I maintain contains lots of samples of layout usage.