I have implemented a hamburger menu using master detail page in my Xamarin app.
Referred this link
I'm trying to display the title "Dashboard" by default in the action bar and after that the name of page navigated from the menu will display over there.
The solution that I found according to that given title to all pages then why is is not showing that navigated page title in action bar.
Any help most appreciated.
Thank you
I had a look at the page you referred and I can't see the page title being set anywhere.
One way to do it is to change the code in OnMenuSelected
from
Detail = new NavigationPage((Page)Activator.CreateInstance(page));
to
var page = (Page)Activator.CreateInstance(page);
page.Title = item.Title;
Detail = new NavigationPage(page);
Related
When im getting application error in DefaultFailurePage.pcf while Policy center page navigation
But i can't to identifying that page button where mentioned in designing in DefaultFailurePage.pcf and referenced page.
Please let me know how to change that button Label and where ?
DefaultFailurePage has ErrorTabBar.pcf.
You can change the button labels directly in PCF file or change the display key for your language, (displaykey.Web.TabBar.Help, displaykey.Web.TabBar.About, displaykey.Web.TabBar.Logout(entity.User.util.CurrentUser), displaykey.Web.TabBar.PartialLogout)
I have a Xamarin page with a Navigation bar at the top.
I keep changing the views on the page with some button clicks, but the page remains the same.
What I need is, when I load a new view (say View A) on this page, I want to add a Back button on the top Nav bar of the page.
I saw some forums where they are using Custom page renderers to add Back button.
But here, the page remains the same. Only the view changes. So, I guess I need to use the custom view renderer to add the Navigation button.
How can I achieve this, as NavigationController which I need to add a Nav button is present in Page renderers, not View renderers.
I need some help.
Thanks
UIBarButtonItem customButton = new UIBarButtonItem(
UIImage.FromFile("Image/image.png"),
UIBarButtonItemStyle.Plain,
(sender, e) =>{
//InitView
});
NavigationItem.LeftBarButtonItem = customButton;
this.NavigationItem.LeftBarButtonItem.TintColor = UIColor.Orange;
I created a list and setup 3 views using "filters" in Sharepoint 2010. On the main wiki page, I created a custom dataview that brought the list into a wiki page and the view was the default view. I have created 3 img buttons and placed them into the datalistview just above the columns in the list so on the wiki page you see the 3 img btns (new, updated, contacts) then the default list view.
What I can't seem to get working (I am not a programmer) is when one of the buttons are clicked, I need the webpart to show the related list view to show on the wiki page, in the webpart. So if I clicked on "New" button, the "new" list view replaces the default view in the webpart. hope this makes sense....
I have been searching for days trying various code that references iframes, and even on this site looked at button click change view questions but none have actually addressed this item that I could tell. Any help would be wonderful!
I'm building a bulletin board site (in 2010) and I'm sure this must be simple but again it doesn't seem so. Anyway on my default page I have a query webpart showing the latest items and what I need is just a button at the top of the page "Add new item" which would show the popup and allow users to complete the form just like it works on the display list items form.
I've looked at AllItems.aspx but can't even see the "Add new item" button to copy!
Any ideas?
Thanks
Dan
This is actually very easy. You need to know the address for your NewForm.aspx page. To make it look like a dialog box, you want to add IsDlg=1 to the query string. SharePoint has a built in JavaScript that can do all this for you. Below is an example of a button I created to open new help desk tickets.
//Handle the DialogCallback callback
function DialogCallback(dialogResult, returnValue){}
//Open the Dialog
function OpenNewDialog(){
var options = {
url:"/depts/is/helpdesk/Lists/Service%20Requests/NewForm.aspx?IsDlg=1",
width: 700,
height: 700,
dialogReturnValueCallback: DialogCallback
};
SP.UI.ModalDialog.showModalDialog(options);
}
You can also leave off the width and height options and the dialog window will size itself. For the HTML
<div style="text-align: center">
Open a new Service Request
</div>
How complicated is your query? If the query is only pulling from one list, you could put the filters into a view in the list and replace your query webpart with a List View Web Part (in the browser, select the webpart named after your list). In the List View Web Part properties, switch to your new view. By default, a List View Web Part includes an Add New Item link.
Now, it's a link and not a button. And it's in the footer of the webpart, not at the the top. If you really need a button at the top of the page, you could add a Content Editor Web Part and insert HTML for your own button. You should be able to reuse the Add New Item URL from AllItems.aspx. The URL should look something like this: http://mysite/_layouts/listform.aspx?PageType=8&ListId={21AA3D96-75EE-45CC-A153-D0FA7856DE67}&RootFolder=
Hi I was wondering which Layout I could use to get the search box in the top right hand corner. I used (Welcome Page) Blank Web Part Page) as the page layout but its missing the search box in the top right corner.
Also another question: How can I add my own layouts to the list in the Create Page, page. Thank you.
The search box is defined in your master page. Ususally default.master, it would not matter which layout you choose the elements defined in the master page will still be in the same place. In your case it would appear that the search box does not exist on your master and would need to be added in again.
You would need to amend the master page for your site and add the appropriate SP control for search into the appropriate place on your page. This will ensure that a SP search box is rendered in that location for every page.
To define your own page layout have a look at Link 1 and Link 2.
As for the search box, it is defined as part of the Site Template. Try creating a Site using the Collaboration Site template.