Fix LinkLabel binding
This commit is contained in:
		
							parent
							
								
									db417111fd
								
							
						
					
					
						commit
						674f9d2fba
					
				| 
						 | 
					@ -79,6 +79,8 @@ namespace Ooui.Forms.Renderers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (e.PropertyName == Ooui.Forms.LinkLabel.HRefProperty.PropertyName)
 | 
					            if (e.PropertyName == Ooui.Forms.LinkLabel.HRefProperty.PropertyName)
 | 
				
			||||||
                UpdateHRef ();
 | 
					                UpdateHRef ();
 | 
				
			||||||
 | 
					            if (e.PropertyName == Ooui.Forms.LinkLabel.TargetProperty.PropertyName)
 | 
				
			||||||
 | 
					                UpdateTarget ();
 | 
				
			||||||
            else if (e.PropertyName == Xamarin.Forms.Label.HorizontalTextAlignmentProperty.PropertyName)
 | 
					            else if (e.PropertyName == Xamarin.Forms.Label.HorizontalTextAlignmentProperty.PropertyName)
 | 
				
			||||||
                UpdateAlignment ();
 | 
					                UpdateAlignment ();
 | 
				
			||||||
            else if (e.PropertyName == Xamarin.Forms.Label.VerticalTextAlignmentProperty.PropertyName)
 | 
					            else if (e.PropertyName == Xamarin.Forms.Label.VerticalTextAlignmentProperty.PropertyName)
 | 
				
			||||||
| 
						 | 
					@ -110,7 +112,7 @@ namespace Ooui.Forms.Renderers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        void UpdateTarget ()
 | 
					        void UpdateTarget ()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Control.Target = Element.HRef;
 | 
					            Control.Target = Element.Target;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        void UpdateAlignment ()
 | 
					        void UpdateAlignment ()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue