How can I have a fixed footer like Instagram through multiple pages in a xamarin forms app without determining it on every page?
I find out I can use a nuget package to make this like a tapped page but it makes me write all the codes in one page like this:
https://www.youtube.com/watch?v=Cp_2F621Az0
how can I implement this more efficiently
In this cenario I suggest you use Tabbed Page. Because the tabs will are part down in your app.
In this link you can read and understand how works a tabbed page:
https://developer.xamarin.com/samples/xamarin-forms/Navigation/TabbedPageWithNavigationPage/
Related
Is there a good/efficent way to have a MasterDetailPage (FlyoutPage) while also having shell like tabs at the bottom of the page?
Because I am using Prism I assume that using Shell as well is probably not ideal.
The Gmail and MyAnimeList App are great references for what I am trying to archive.
Prism and shell don't work properly together. You should create a MasterDetail Page, and in it, as part of the detail page, you should add a NavigationPage.
From here, you can try two things inside the NavigationPage
a Tabbed page inside the navigation page (I haven't tried this approach though)
You could use a normal ContentPage and inside that, add TabView from XamarinCommunity Toolkit
https://learn.microsoft.com/en-us/xamarin/community-toolkit/views/tabview
I've been working on a project and I noticed I reuse the same menu over and over again and it got to a point where, if I needed to change something I would need to change 20+ pages too because of it being a menu.
My question is, is it possible to have a single aspx file with the working menu on it, and have the other pages call it? So far I've tried
<?php include('Menu.aspx') ?>
<iframe id="myIframe" src="Menu.aspx" height="100%" width="100%"></iframe>
The later (iframe) showed something but I was unable to resize it and the links didn't work either. The php one didn't show anything. Any help would be appreciated, thank you very much.
You can use the following approaches to solve this:
Master Pages allow to have a common layout that is applied to several aspx pages. The master page defines a layout and provides some content placeholders that are filled in by the pages that reference the master page. Your example of a menu fits good; the menu would be placed on the master page. See this link for details.
Another way to share layouts are ASP.NET UserControls. These are created as ascx files and can be reused in several aspx pages. See this link for details.
The best option for you is to create an User Control, and use it in all your pages.
An user control is similar to a server control (e.g. asp textbox, update panel etc.), but custom made by the developer to suit his specific needs.
If the menu is more like the common layout/theme of all your pages you can use a Master Page instead.
You have to make yourself familiar with master pages. See this as a beginner tutorial: http://www.codeproject.com/Articles/333650/Beginner-s-Tutorial-on-Master-Pages-in-ASP-NET
There are two option to reuse menu in asp.net page.
Master Page
User Control
using sitemap and add into master page.
https://msdn.microsoft.com/en-us/library/aa581781.aspx
http://webproject.scottgu.com/CSharp/MasterPages/MasterPages.aspx
Hope this will help you.
thanks
There are many applications out there that are displaying html content using XAML controls rather than displaying a web browser. Does anyone know if there is control used for this? If no control is available, what's the best way to do this?
I found this article but that seems to be overkill... Or is it?
http://thewp7dev.wordpress.com/2012/03/05/html-textblock/
I would like to keep the exact format of a web page (i.e. text, images, formatting, etc...) but I'd like if possible at all not use the web browser.
I have a pivot that requires 4 websites to be displayed but it would seem very heavy to create 4 web browser, not to mention I'd like to add different touch functionality that I'm struggling to do using the web browser.
I'd appreciate any feedback.
Thanks
There is no XAML controls for windows phone, except WebBrowser Control (WebView in WP8.1), which can display HTML as it is.
Your article describes exactly what you have to do, to display HTML in some other XAML controls (RichTextBox for example).
You have to parse HTML to XAML format. You can use thrid party components for this (HTML agility Pack http://htmlagilitypack.codeplex.com/) or implement your own parsing.
Also, I don't think, that combining WebBrowser control with Pivot (or Panorama) is a good idea, because it just consumes to much memory and there could be problems with scrolling and touch interaction.
The simple path I think is to reconsider your navigation model and use webbrowser control to display HTML. Maybe you can provide one WebBrowser and 4 links on top to switch between souces.
I have some pages in the win8 application, most of which have a similar layout, I use Frame.Navigate to switch the pages. Just wonder if there is something like MasterPage in asp.net webform/mvc.
Just create a page with the layout you want and then use templates to customize it for particular views. You could have one main view .xaml file and then create a resource dictionary file (for separation purposes) for each different way you use it.
Edit:
I found someone who made a "Master Page" for wpf. See here. You could do something similar for metro.
I have an ASP.NET web application that I am making and I am thinking of making it a tabbed interface using Telerik's RadTabStrip. I am trying to figure out the best way to approach this though. I would need about 10 tabs because I have about 10 different main areas of my application. My question is how is the best way to integrate the content into the tabs. All of the simple examples I've seen create RadViews with imbedded HTML/ASP.NET content. The problem with this approach is that, with 10 tabs, it would make my main ASPX file really really big and it would be kind of clumsy to work with, having to integrate all 10 pages into one page. Is there a better or more accepted way to accomplish this?
I think, you have several possibilities:
Use one RadTabStrip and several RadView controls. Put the content for each tab into a separate user control (*.ascx). Then you only have to include the user controls in your main aspx page.
Use a master page and put the RadTabStrip on it. Create a separate page for each area of your application (each using the same master page). Use the RadTab's NavigateUrl property to navigate to the corresponding page (as shown in this demo).
there are certainly other possibilities...