Merge pull request #163 from bjorndaniel/master

Add the ability to set ClassName from Xamarin Forms StyleId
This commit is contained in:
Frank A. Krueger 2018-09-06 07:19:38 -07:00 committed by GitHub
commit 72a6281072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

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

View File

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