Intersoft ClientUI Documentation
GetCurrentPageTitle Method
See Also  Example Send Feedback
Intersoft.Client.UI.Navigation Namespace > UXFrame Class : GetCurrentPageTitle Method






Returns the page title of the currently loaded content.

Syntax

Visual Basic (Declaration) 
Public Function GetCurrentPageTitle() As String
Visual Basic (Usage)Copy Code
Dim instance As UXFrame
Dim value As String
 
value = instance.GetCurrentPageTitle()
C# 
public string GetCurrentPageTitle()
Delphi 
public function GetCurrentPageTitle(): String; 
JScript 
public function GetCurrentPageTitle() : String;
Managed Extensions for C++ 
public: string* GetCurrentPageTitle(); 
C++/CLI 
public:
String^ GetCurrentPageTitle(); 

Return Value

A string object representing the current page title.

Example

This following code shows how to get current page title.
XAMLCopy Code
<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>
C#Copy Code
private void ContentFrame_Navigated(object sender, NavigationEventArgs e)
{
    string title = ContentFrame.GetCurrentPageTitle();
}

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.