Show / Hide Table of Contents

    Class ImageSource

    Forms9Patch ImageSource.

    Inheritance
    Object
    BindableObject
    Element
    ImageSource
    ImageSource
    Implements
    INotifyPropertyChanged
    IElementController
    Inherited Members
    ImageSource.Cancel()
    ImageSource.FromFile(String)
    ImageSource.FromResource(String, Type)
    ImageSource.FromStream(Func<Stream>)
    ImageSource.FromUri(Uri)
    ImageSource.OnLoadingCompleted(Boolean)
    ImageSource.OnLoadingStarted()
    ImageSource.OnSourceChanged()
    ImageSource.IsEmpty
    ImageSource.CancellationTokenSource
    Element.MenuProperty
    Element.AutomationIdProperty
    Element.ClassIdProperty
    Element.GetMenu(BindableObject)
    Element.SetMenu(BindableObject, Menu)
    Element.IElementController.SetValueFromRenderer(BindableProperty, Object)
    Element.FindByName(String)
    Element.RemoveDynamicResource(BindableProperty)
    Element.SetDynamicResource(BindableProperty, String)
    Element.OnBindingContextChanged()
    Element.OnChildAdded(Element)
    Element.OnChildRemoved(Element)
    Xamarin.Forms.Element.OnChildRemoved(Xamarin.Forms.Element, System.Int32)
    Element.OnParentSet()
    Element.OnPropertyChanged(String)
    Element.AutomationId
    Element.ClassId
    Element.Effects
    Element.Id
    Element.StyleId
    Element.Parent
    Element.ChildAdded
    Element.ChildRemoved
    Element.DescendantAdded
    Element.DescendantRemoved
    BindableObject.BindingContextProperty
    BindableObject.ClearValue(BindableProperty)
    BindableObject.ClearValue(BindablePropertyKey)
    BindableObject.GetValue(BindableProperty)
    BindableObject.IsSet(BindableProperty)
    BindableObject.RemoveBinding(BindableProperty)
    BindableObject.SetBinding(BindableProperty, BindingBase)
    BindableObject.ApplyBindings()
    BindableObject.OnPropertyChanging(String)
    BindableObject.UnapplyBindings()
    BindableObject.SetValue(BindableProperty, Object)
    BindableObject.SetValue(BindablePropertyKey, Object)
    BindableObject.CoerceValue(BindableProperty)
    BindableObject.CoerceValue(BindablePropertyKey)
    BindableObject.Dispatcher
    BindableObject.BindingContext
    BindableObject.PropertyChanged
    BindableObject.PropertyChanging
    BindableObject.BindingContextChanged
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Forms9Patch
    Assembly: Forms9Patch.dll
    Syntax
    public class ImageSource : ImageSource, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IStyleSelectable

    Methods

    FromMultiResource(String, Assembly)

    Cached selection of best fit multi-device / multi-resolution image embedded resource

    Declaration
    public static ImageSource FromMultiResource(string resourceId, Assembly assembly = null)
    Parameters
    Type Name Description
    String resourceId

    ResourceID without extension, resolution modifier, or device modifier

    Assembly assembly

    Assembly in which the resource can be found

    Returns
    Type Description
    ImageSource

    Xamarin.Forms.ImageSource

    FromResource(String, Assembly)

    Cached selection of resource (literally - no automated selection of device, resolution, or extension).

    Declaration
    public static ImageSource FromResource(string resourceId, Assembly assembly = null)
    Parameters
    Type Name Description
    String resourceId

    Path.

    Assembly assembly

    Assembly.

    Returns
    Type Description
    ImageSource

    The resource.

    FromResourceAsFile(String, Assembly)

    Load an EmbeddedResource as a Xamarin.Forms.FileImageSource

    Declaration
    public static FileImageSource FromResourceAsFile(string resourceId, Assembly assembly = null)
    Parameters
    Type Name Description
    String resourceId
    Assembly assembly
    Returns
    Type Description
    FileImageSource

    FromSvgText(String)

    Use a SVG string as a image source for a Forms9Patch image

    Declaration
    public static ImageSource FromSvgText(string svgText)
    Parameters
    Type Name Description
    String svgText
    Returns
    Type Description
    ImageSource

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Xamarin.Forms.IElementController

    Extension Methods

    VisualElementExtensions.IsDescendentOf(Element, Element)
    VisualElementExtensions.IsAncestorOf(Element, Element)
    VisualElementExtensions.FindChildWithFocus(Element)
    VisualElementExtensions.FindAncestorOfType(Element, Type)
    ElementExtensions.AncestorOfBaseType<T>(Element)
    ElementExtensions.Ancestor<T>(Element)
    ImageSourceExtensions.SameAs(ImageSource, ImageSource)
    DebugExtensions.AddToCensus(Object)
    DebugExtensions.RemoveFromCensus(Object)
    ReflectionExtensions.GetProperties(Object)
    ReflectionExtensions.GetProperty(Object, String)
    ReflectionExtensions.PropertyNames(Object)
    ReflectionExtensions.PropertyExists(Object, String)
    ReflectionExtensions.HasProperty(Object, String)
    ReflectionExtensions.GetPropertyValue(Object, String)
    ReflectionExtensions.SetPropertyValue(Object, String, Object)
    ReflectionExtensions.GetFieldValue(Object, String)
    ReflectionExtensions.SetFieldValue(Object, String, Object)
    ReflectionExtensions.CallMethod(Object, String, Object[])
    Back to top Copyright © 2018 42nd Parallel