Class CanvasView

    Definition

    Namespace:
    Tizen.NUI.BaseComponents.VectorGraphics
    Assembly:
    Tizen.NUI.dll

    CanvasView is a class for displaying vector primitives.

    public class CanvasView : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    CanvasView
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    CanvasView()

    Creates an initialized CanvasView.

    Declaration
    public CanvasView()
    View Source

    CanvasView(Size2D)

    Creates an initialized CanvasView.

    Declaration
    public CanvasView(Size2D viewBox)
    Parameters
    Type Name Description
    Size2D viewBox

    The size of viewbox.

    Fields

    View Source

    RasterizationRequestManuallyProperty

    RasterizationRequestManuallyProperty

    Declaration
    public static readonly BindableProperty RasterizationRequestManuallyProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    SynchronousLoadingProperty

    SynchronousLoadingProperty

    Declaration
    public static readonly BindableProperty SynchronousLoadingProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ViewBoxProperty

    ViewBoxProperty

    Declaration
    public static readonly BindableProperty ViewBoxProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    RasterizationRequestManually

    Whether we rasterize CanvasView manually or not.

    Declaration
    public bool RasterizationRequestManually { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    If true, need to call RequestRasterization() to rasterize CanvasView. If false, CanvasView will be rasterized automatically even if we don't call RequestRasterization().

    View Source

    SynchronousLoading

    Whether we rasterize CanvasView synchronously or not.

    Declaration
    public bool SynchronousLoading { get; set; }
    Property Value
    Type Description
    bool
    View Source

    ViewBox

    The viewbox of the CanvasView. The viewbox means the size of CanvasView's internal space. If the size of the viewbox is larger than the size of the CanvasView, the shapes are displayed smaller than the specified size. The default value of the viewbox is the same as the size of the canvasview.

    Declaration
    public Size2D ViewBox { get; set; }
    Property Value
    Type Description
    Size2D

    Methods

    View Source

    AddDrawable(Drawable)

    Add drawable object to the CanvasView. This method is similar to registration. The added shape is drawn on the inner canvas.

    Declaration
    public void AddDrawable(Drawable drawable)
    Parameters
    Type Name Description
    Drawable drawable

    Drawable object

    View Source

    Dispose(DisposeTypes)

    You can override it to clean-up your own resources.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type

    DisposeTypes

    Overrides
    View.Dispose(DisposeTypes)
    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    View.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)
    View Source

    RemoveAllDrawables()

    Remove all drawable objects added to the CanvasView.

    Declaration
    public void RemoveAllDrawables()
    View Source

    RemoveDrawable(Drawable)

    Remove drawable object to the CanvasView. This method is similar to deregistration.

    Declaration
    public void RemoveDrawable(Drawable drawable)
    Parameters
    Type Name Description
    Drawable drawable

    Drawable object

    View Source

    RequestRasterization()

    Reqeust rasterization manually to the CanvasView.

    Declaration
    public void RequestRasterization()

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    BindingExtensions.BindingSession<T, TViewModel>(T, BindingSession<TViewModel>)
    BindingExtensions.SetBinding<T, TView>(TView, BindingSession<T>, Action<T, TView>, string)
    BindingExtensions.SetBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, BindingProperty<TView, TProperty>, string)
    BindingExtensions.SetTwoWayBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, TwoWayBindingProperty<TView, TProperty>, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    BindingExtensions.BindingSession<TViewModel>(View)
    BindingExtensions.SetBinding<T>(View, BindingSession<T>, Action<T>, string)
    BindingExtensions.SetBinding<TViewModel>(View, BindingSession<TViewModel>, string, string)
    BindingExtensions.SetTwoWayBinding<TViewModel, TProperty>(View, BindingSession<TViewModel>, TwoWayBindingProperty<View, TProperty>, string)
    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX