Skip to content

RoundCornerView does not work. #49

@sudachi808

Description

@sudachi808

RoundCornerView does not work.
But it works only in XAML preview.

rounccornerview

using Foundation;
using UIKit;

using NControl.iOS;

namespace RoundApp.iOS
{
    [Register("AppDelegate")]
    public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
    {
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            NControlViewRenderer.Init();

            LoadApplication(new App());

            return base.FinishedLaunching(app, options);
        }
    }
}
<?xml version="1.0" encoding="utf-8"?>
<ContentPage
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:RoundApp"
    xmlns:nc="clr-namespace:NControl.Controls;assembly=NControl.Controls"
    x:Class="RoundApp.RoundAppPage">

    <StackLayout HorizontalOptions="Center" VerticalOptions="Center">
        <nc:RoundCornerView  CornerRadius="10" BackgroundColor="Red" HeightRequest="100" WidthRequest="100" />
    </StackLayout>
    
</ContentPage>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions