-
Notifications
You must be signed in to change notification settings - Fork 3
PropertyList.PropertyEditors.SizeEditor
Back to home | Back to Reference | View raw text
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi.PropertyList.PropertyEditors
SolidShineUi.PropertyList.PropertyEditors.SizeEditor[[SizeEditor]]
end
subgraph SolidShineUi.PropertyList
SolidShineUi.PropertyList.IPropertyEditor[[IPropertyEditor]]
class SolidShineUi.PropertyList.IPropertyEditor interfaceStyle;
end
subgraph System.Windows
System.Windows.IInputElement[[IInputElement]]
System.Windows.IFrameworkInputElement[[IFrameworkInputElement]]
end
subgraph System.Windows.Markup
System.Windows.Markup.IComponentConnector[[IComponentConnector]]
end
subgraph System.Windows.Controls
System.Windows.Controls.UserControl[[UserControl]]
end
SolidShineUi.PropertyList.IPropertyEditor --> SolidShineUi.PropertyList.PropertyEditors.SizeEditor
System.Windows.IInputElement --> SolidShineUi.PropertyList.IPropertyEditor
System.Windows.IFrameworkInputElement --> SolidShineUi.PropertyList.IPropertyEditor
System.Windows.Markup.IComponentConnector --> SolidShineUi.PropertyList.PropertyEditors.SizeEditor
System.Windows.Controls.UserControl --> SolidShineUi.PropertyList.PropertyEditors.SizeEditor
Type | Name | Methods |
---|---|---|
ColorScheme |
ColorScheme Set the ColorScheme, to set the visual appearance of the control. |
set |
bool |
EditorAllowsModifying Get whether this editor control actually has the capability to edit the value of a property, not just viewing it. |
get |
bool |
IsPropertyWritable Get or set if the property being loaded can actually be edited (writeable). |
get, set |
ExperimentalPropertyList |
ParentPropertyList Set the parent PropertyList control for this IPropertyEditor. This allows the IPropertyEditor to connect to the PropertyList directly, to get info or set certain values. |
set |
List <Type > |
ValidTypes Get a list of all valid types that this editor supports editing. |
get |
Returns | Name |
---|---|
FrameworkElement |
GetFrameworkElement ()Get the FrameworkElement for this IPropertyEditor control. |
object |
GetValue ()Get the value of the property, as set in this editor control. |
void |
InitializeComponent ()InitializeComponent |
void |
LoadValue (object value, Type type)Load in the value of a property. |
Returns | Name |
---|---|
Delegate |
_CreateDelegate (Type delegateType, string handler) |
-
IPropertyEditor
IInputElement
IFrameworkInputElement
IComponentConnector
UserControl
public SizeEditor()
Create a SizeEditor.
public virtual FrameworkElement GetFrameworkElement()
Get the FrameworkElement for this IPropertyEditor control.
This is present due to how the WPF architecture was designed, and limitations with C# itself.
Please simply return this
in your code when implementing this interface.
public virtual void LoadValue(object value, Type type)
Type | Name | Description |
---|---|---|
object |
value | The value to load. |
Type |
type | The type of the property; this may not exactly match the type of the value itself, but the value's type will always implement this type. |
Load in the value of a property.
public virtual object GetValue()
Get the value of the property, as set in this editor control.
public virtual void InitializeComponent()
InitializeComponent
internal Delegate _CreateDelegate(Type delegateType, string handler)
Type | Name | Description |
---|---|---|
Type |
delegateType | |
string |
handler |
public virtual List<Type> ValidTypes { get; }
Get a list of all valid types that this editor supports editing.
public virtual bool EditorAllowsModifying { get; }
Get whether this editor control actually has the capability to edit the value of a property, not just viewing it.
public virtual bool IsPropertyWritable { get; set; }
Get or set if the property being loaded can actually be edited (writeable).
public virtual ExperimentalPropertyList ParentPropertyList { set; }
Set the parent PropertyList control for this IPropertyEditor. This allows the IPropertyEditor to connect to the PropertyList directly, to get info or set certain values.
public virtual ColorScheme ColorScheme { set; }
Set the ColorScheme, to set the visual appearance of the control.
This is a setter-only property in the interface as a getter is never needed. Implementers can add a getter for this property if needed.
public event EventHandler ValueChanged
Raised when the value is changed, by changing the data in this editor control. Handlers should then call IPropertyEditor.GetValue to then get the value to set the underlying property to.
Generated with ModularDoc