Intersoft ClientUI Documentation
GetCurrentPageTitle Method
Example 



Returns the page title of the currently loaded content.
Syntax
Public Function GetCurrentPageTitle() As String
Dim instance As UXFrame
Dim value As String
 
value = instance.GetCurrentPageTitle()
public string GetCurrentPageTitle()
public:
String^ GetCurrentPageTitle(); 

Return Value

A string object representing the current page title.
Example
This following code shows how to get current page title.
<Intersoft:UXFrame x:Name="ContentFrame" Intersoft:DockPanel.Dock="Top" Intersoft:DockPanel.IsFillElement="True" Margin="0,10,0,0" EnablePageTransition="True" DefaultTransitionEffect="FlipLeft" AutoDetectNavigationDirection="True" NewTransitionEffect="FlipLeft" AllowNestedFrameNavigation="True">
    <Intersoft:UXFrame.UriMapper>
        <Intersoft:UriMapper>
            <Intersoft:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
            <Intersoft:UriMapping Uri="/Error" MappedUri="/ErrorPage.xaml"/>
            <Intersoft:UriMapping Uri="/{page}" MappedUri="/Views/{page}.xaml"/>
        </Intersoft:UriMapper>
    </Intersoft:UXFrame.UriMapper>
</Intersoft:UXFrame>
private void ContentFrame_Navigated(object sender, NavigationEventArgs e)
{
    string title = ContentFrame.GetCurrentPageTitle();
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXFrame Class
UXFrame Members

Send Feedback