Added some styles

Added mapping StyleId -> ClassName
This commit is contained in:
Daniel Sandberg 2018-05-14 21:26:19 +02:00
parent 2c5efd7cf8
commit 723d09c73b
2 changed files with 24 additions and 0 deletions

View File

@ -115,6 +115,7 @@ namespace Ooui.Forms
}
element.PropertyChanged += _propertyChangedHandler;
ClassName = Element?.StyleId;
}
OnElementChanged (new ElementChangedEventArgs<TElement> (oldElement, element));
@ -143,6 +144,9 @@ namespace Ooui.Forms
else if (e.PropertyName == Layout.IsClippedToBoundsProperty.PropertyName) {
//UpdateClipToBounds ();
}
else if (e.PropertyName == "StyleId") {
ClassName = Element?.StyleId;
}
}
protected virtual void OnRegisterEffect (PlatformEffect effect)

View File

@ -20,6 +20,10 @@ namespace Ooui
get => this["align-self"];
set => this["align-self"] = value;
}
public Value BackfaceVisibility {
get => this["backface-visibility"];
set => this["backface-visibility"] = value;
}
public Value BackgroundColor {
get => this["background-color"];
@ -288,6 +292,11 @@ namespace Ooui
}
}
public Value Perspective {
get => this["perspective"];
set => this["perspective"] = value;
}
public Value Position {
get => this["position"];
set => this["position"] = value;
@ -323,6 +332,17 @@ namespace Ooui
set => this["transform-origin"] = value;
}
public Value TransformStyle {
get => this["transform-style"];
set => this["transform-style"] = value;
}
public Value Transition
{
get => this["transition"];
set => this["transition"] = value;
}
public Value VerticalAlign {
get => this["vertical-align"];
set => this["vertical-align"] = value;