5 using SiliconStudio.Core.IO;
7 namespace SiliconStudio.Presentation.Settings
31 public bool IsCurrentProfile {
get {
return Profile == SettingsService.CurrentProfile; } }
53 DefaultObjectValue = defaultValue;
55 SettingsService.RegisterSettingsKey(name, defaultValue,
this);
61 public UFile Name {
get;
private set; }
66 public abstract Type Type {
get; }
71 public bool IsEditable {
get; set; }
77 public UFile DisplayName {
get; set; }
82 public string Description {
get; set; }
95 internal abstract object ConvertValue(
object value);
103 var handler = ChangesValidated;
SettingsKey(UFile name, object defaultValue)
Initializes a new instance of the SettingsKey class.
This class represents a collection of values for all registered SettingsKey. It may also contains val...
Arguments of the SettingsKey.ChangesValidated event.
This class represents property to store in the settings that is identified by a key.
EventHandler< ChangesValidatedEventArgs > ChangesValidated
Raised when the value of the settings key has been modified and the method SettingsProfile.ValidateSettingsChanges has been invoked.
ChangesValidatedEventArgs(SettingsProfile profile)
Initializes a new instance of the ChangesValidatedEventArgs class.
readonly object DefaultObjectValue
The default value of the settings key.
Defines a normalized file path. See UPath for details. This class cannot be inherited.