언어 설정

Menu
Sites
Language
<NavigationPage.TitleView> Not supported on Tizen wearable 5.0 .NET platform?

 

We tried to create the page vavigationable watch app using "<NavigationPage.TitleView>" on xaml file.

 

But the component or class is likely not to support "<NavigationPage.TitleView>" on xaml editor in visual studio with Xamarin.forms.

 

"<NavigationPage.TitleView>" is Not supported on Tizen wearable 5.0 .NET platform?

Then the wearable app dose Not support the function such as page-navigation ?

 

please check this and thanks in advance.

 

답변 바로가기

Responses

1 댓글
Mark as answer
Tizen .NET

Hi Jaehong Park,
There are some limitations to NavigationPage, but we are supporting it on Tizen wearable profile.
When I check NavigationPage.TitleView on Tizen 5.0 wearable emulator with the following code, it works.
Could you check it again or share the sample code you used with us?
Thanks.

public App()
{
    InitializeComponent();
    MainPage = new NavigationPage(new Navi.MainPage());
}

MainPage.xaml

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Navi.MainPage">
    <NavigationPage.TitleView>
        <Label Text="Title Label"
               HeightRequest="80" 
               HorizontalTextAlignment="Center"
               VerticalTextAlignment="Center"
               TextColor="Black"
               BackgroundColor="Aqua"/>
    </NavigationPage.TitleView>
    <ContentPage.Content>
        <StackLayout>
            <Label Text="Welcome to Xamarin.Forms!"
                   VerticalOptions="CenterAndExpand"
                   HorizontalOptions="CenterAndExpand" />
            <Button Text="Next Page"
                    Clicked="Button_Clicked"/>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>

MainPage.xaml.cs

private async void Button_Clicked(object sender, EventArgs e)
{
    await Navigation.PushAsync(new SecondPage());
}

SecondPage.xaml

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Navi.SecondPage"
             Title="SecondPage">
    <ContentPage.Content>
        <StackLayout BackgroundColor="HotPink">
            <Label Text="Second!"
                   VerticalOptions="CenterAndExpand" 
                   HorizontalOptions="CenterAndExpand" />
        </StackLayout>
    </ContentPage.Content>
</ContentPage>