Fleet Mobile
Search Results for

    Show / Hide Table of Contents

    Class PreferenceObject<T>

    自定义选项对象基础类

    Inheritance
    object
    BindableObject
    BaseObject
    PreferenceObject<T>
    Implements
    INotifyPropertyChanged
    ILoading
    Inherited Members
    BaseObject.IsLoadingProperty
    BaseObject.CreateProperty<T, V>(string, T, BindingMode, Action<V, T>)
    BaseObject.IsLoading
    BindableObject.BindingContextProperty
    BindableObject.ClearValue(BindableProperty)
    BindableObject.ClearValue(BindablePropertyKey)
    BindableObject.GetValue(BindableProperty)
    BindableObject.IsSet(BindableProperty)
    BindableObject.RemoveBinding(BindableProperty)
    BindableObject.SetBinding(BindableProperty, BindingBase)
    BindableObject.ApplyBindings()
    BindableObject.OnBindingContextChanged()
    BindableObject.OnPropertyChanged(string)
    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.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Extension Methods
    UIExtensions.AppThemeBinding<T, K>(T, BindableProperty, K, K)
    UIExtensions.Binding<T>(T, BindableProperty, BindingBase)
    UIExtensions.Binding<T, TSource, TProperty>(T, BindableProperty, Func<TSource, TProperty>, string, Action<TSource, TProperty>, BindingMode?, IValueConverter, object, string, TSource)
    UIExtensions.GridColumnSpan<T>(T, int)
    UIExtensions.GridColumn<T>(T, int)
    UIExtensions.GridRowSpan<T>(T, int)
    UIExtensions.GridRow<T>(T, int)
    Namespace: Fleet.Mobile.Containers
    Assembly: FleetMobile.dll
    Syntax
    public abstract class PreferenceObject<T> : BaseObject, INotifyPropertyChanged, ILoading where T : new()
    Type Parameters
    T

    选项类型

    Constructors

    PreferenceObject()

    Declaration
    protected PreferenceObject()

    Fields

    isLocked

    当前对象是否已锁定,锁定状态下不会写入配置文件

    Declaration
    protected bool isLocked
    Field Value
    bool

    item

    选项对象

    Declaration
    protected T item
    Field Value
    T

    Properties

    PreferenceKey

    选项键值

    Declaration
    protected abstract string PreferenceKey { get; }
    Property Value
    string

    Methods

    LoadPreference()

    从配置文件中加载选项设置。

    Declaration
    protected void LoadPreference()

    OnPreferenceLoaded()

    选项设置加载后触发的方法。

    Declaration
    protected abstract void OnPreferenceLoaded()

    OnPreferenceSaving()

    选项设置保存至配置文件之前触发的方法。

    Declaration
    protected abstract void OnPreferenceSaving()

    SavePreference()

    保存选项设置到配置文件。

    Declaration
    public void SavePreference()
    In this article
    Back to top Generated by DocFX