|
|
@ -34,9 +34,6 @@ namespace Perspex.Controls |
|
|
|
|
|
|
|
|
public abstract class Control : Interactive, ILayoutable, IStyleable |
|
|
public abstract class Control : Interactive, ILayoutable, IStyleable |
|
|
{ |
|
|
{ |
|
|
public static readonly ReadOnlyPerspexProperty<Control> ParentProperty = |
|
|
|
|
|
new ReadOnlyPerspexProperty<Control>(ParentPropertyRW); |
|
|
|
|
|
|
|
|
|
|
|
public static readonly PerspexProperty<Brush> BackgroundProperty = |
|
|
public static readonly PerspexProperty<Brush> BackgroundProperty = |
|
|
PerspexProperty.Register<Control, Brush>("Background", inherits: true); |
|
|
PerspexProperty.Register<Control, Brush>("Background", inherits: true); |
|
|
|
|
|
|
|
|
@ -67,9 +64,6 @@ namespace Perspex.Controls |
|
|
public static readonly RoutedEvent<MouseEventArgs> MouseLeftButtonUpEvent = |
|
|
public static readonly RoutedEvent<MouseEventArgs> MouseLeftButtonUpEvent = |
|
|
RoutedEvent.Register<Control, MouseEventArgs>("MouseLeftButtonUp", RoutingStrategy.Bubble); |
|
|
RoutedEvent.Register<Control, MouseEventArgs>("MouseLeftButtonUp", RoutingStrategy.Bubble); |
|
|
|
|
|
|
|
|
internal static readonly PerspexProperty<Control> ParentPropertyRW = |
|
|
|
|
|
PerspexProperty.Register<Control, Control>("Parent"); |
|
|
|
|
|
|
|
|
|
|
|
private Classes classes; |
|
|
private Classes classes; |
|
|
|
|
|
|
|
|
private string id; |
|
|
private string id; |
|
|
@ -219,12 +213,6 @@ namespace Perspex.Controls |
|
|
set { this.SetValue(MarginProperty, value); } |
|
|
set { this.SetValue(MarginProperty, value); } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Control Parent |
|
|
|
|
|
{ |
|
|
|
|
|
get { return this.GetValue(ParentPropertyRW); } |
|
|
|
|
|
internal set { this.SetValue(ParentPropertyRW, value); } |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Styles Styles |
|
|
public Styles Styles |
|
|
{ |
|
|
{ |
|
|
get |
|
|
get |
|
|
|