i'm trying to create a tab called about page under the setting in the charm(right bar). I want the tab About inside the settings and when clicked , it will load the information inside the snap view itself. I'm coding in C# , anyone have any idea about this?
Regards,
Binary
Yes, you have to register your About "page" as a SettingsCommand in order to get it to show up in the Settings charm.
I think you want an about link to show up when the user brings up the settings pane - and when clicked - that should show an about page in the settings pane itself - right?
If so, have a look at the Callisto project on github: it has a SettingsFlyout which you could use as follows:
var settingsFlyout = new SettingsFlyout();
settingsFlyout.Content = new YourSettingsControl(); //this is just a regular XAML UserControl
settingsFlyout.IsOpen = true;
Now, all you need to do is execute the code above, when the user clicks on your settings link. As to how the link itself shows up in the settings pane, see the App settings sample on MSDN.
Related
I'm using WinUI 2.8, and I want change Height of PaneToggleButton from my NavigationView.
Can someone help me?
<NavigationView PaneTitle="Test" IsPaneToggleButtonVisible="True" IsBackButtonVisible="Visible"></NavigationView>
#FrozenAssassine is showing the way to edit the default style of the native NavigationView control. Actually, you just need to check the PaneToggleButtonStyle. It will be created along with the NavigationView style automatically when you follow #FrozenAssassine steps. You could also find the generic.xaml (it saves all the default styles for all the native UWP controls.) in the \(Program Files)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\<SDK version>\Generic folder
If you are using the NavigationView control from the WinUI, you could also check WinUI's generic.xaml here: C:\Users\(username)\.nuget\packages\microsoft.ui.xaml\2.8.2\lib\uap10.0\Microsoft.UI.Xaml\Themes
You have to edit the default Styling of your NavigationView. This can be done by following the steps:
Open the Document outline(Ctrl + Alt + D) and your .xaml code file
In the document outline, right click on your NavigationView in the document outline and click on "Edit Template" -> "Edit a copy"
A window will pop up, and you can give the style a name.
The custom style will be added to your code
Search for: x:Name="TogglePaneButton"
This is the line of the button, you are looking for and you can now change its properties like normal
Here is also the documentation:
https://learn.microsoft.com/en-us/windows/apps/design/style/xaml-control-templates
I just new to Xamarin.Form with Prism. I want to load the page in different behavior. The first one I achieve already is in image below.
But I want to do a behavior like below image. Load a new page outside master detail page. How can I do it in prism?
You have figured out how to display the "Hamburger" icon as well as title by doing the following.
NavigationService.NavigateAsync("MasterPage/NavigationPage/DetailsPage")
If a user makes a selection from the actions listed on the master page. For Example, let's say settings.
You have a couple of options here, you can do navigate relatively
NavigationService.NavigateAsync("Settings")
This will navigate to the settings page. This will also display the back button as the second image. Your current page path will be
MasterPage/NavigationPage/DetailsPage/Settings
Now let's say you want the settings page to be the top details page. You have to navigate to it via an absolute path.
MasterPage/NavigationPage/Settings
NavigationService.NavigateAsync("MasterPage/NavigationPage/Settings")
You need to add a new page to the stack, page over existing one. To do that you should do navigation like this:
navigationService.NavigateAsync("Settings")
I am using the asp.net chart control.
I need to redirect to a url of another domain by clicking an X-axis value or series that should open as a new window. I used to Series.Points[index].url = "http://www.domainxxx.com/abc.aspx?abcvalue=1000".
How can I open it as a new window?
Add the target attribute to open in new window:
$("SeriesId").attr("target", "_blank");
I am migrating my Windows Phone 8 App to Windows 8.1 App and I have created a Page with blank page template. In that there are some Items like TextBlock,ComboBox and TextBox. Now, there is an item LocationTextBlock with border around it. When I click on it, it navigates to a new Page LocationPage, where I need to select location and save that object and navigate using Frame.GoBack() method. Now the issue, when I navigate back, I get the object of LocationData but the LocationTextBlock which was created previously is showing null, so I can't populate Location in that TextBlock.
Questions
Is this issue occurring due to Blank Page Template ?
Can it be solved using NavigationHelper Class?
Will using Basic Page Template resolve this issue?
Please suggest with some code or description, whether it can be done using Blank Page template as I have added many lines of code inside it.
It can be done with Blank Page template (although using NavigationHelper would be the prefered way).
What you have to do is set NavigationCacheMode to Enabled in your Page's Constructor:
this.NavigationCacheMode = NavigationCacheMode.Enabled;
This way the Page with all the properties in it is cached. So when you navigate back you get back the state in which the Page was when you navigated from it. However, if you navigate to this page not through backnavigation, you'll still get back the saved state, which you don't want. The solution is to clean up all the resources (initializing the needed variables, setting UI elements to default value etc.) in the OnNavigatedTo(NavigationEventArgs e) method if (e.NavigationMode != NavigationMode.Back). Don't know if it's the best approach, but it'll work.
EDIT:
You could even use a Flyout or a ContentDialog instead of your LocationPage, so you don't need to navigate from the page, thus not needing to cache/save the page.
OK I'm new to DotNetNuke and need to write a simple module in DNN that will display an article for everyone, and allow the admin to edit the article/add a new one.
I have a test page that contains a DNN module with one module definition and two controls in that definition. The default control shows the article based on an articleID field in the querystring. You then click a button that is supposed to load the edit control and pass the articleID in the query string.
If I use EditURL() in the onClick the edit control is loaded with the correct articleID, but using the admin skin. If I use Globals.NavigateURL() then the correct skin is shown but my edit control isn't loading in the page.
Any clue as to how to what I'm doing wrong or how to get the edit control loading with the correct skin?
My two methods of switching to the edit control (in my button click event) are listed below:
string newURL = this.EditUrl("articleID", Request.QueryString["articleID"], "EditArticle");
Response.Redirect(newURL);
and
string newURL = Globals.NavigateURL(this.TabId, "EditArticle","articleID="+Request.QueryString["articleID"]);
Response.Redirect(newURL);
Actually you are doing this correctly - the editurl in DNN does load the Admin skin - usually this skin is based on someone administering content so it strips out all other modules and shows the 'basics'. Right or wrong this is what it does.
If you dont want to to do that you could provide a switch in the querystring and show a seperate panel or do a multiview control and show different views based on the switch in the query string.
There are a few other approaches like changing the content area to editing text area with ajax or using popup modal style windows.