public override void WillMoveToSuperview(UIView newsuper) { base.WillMoveToSuperview(newsuper); var converter = new UIColorConverter(); BackgroundColor = (UIColor)converter.Convert(Context.Texture, null, null, null); Context.PropertyChanged -= Context_PropertyChanged; Context.PropertyChanged += Context_PropertyChanged; var size = (nfloat)Math.Min(Frame.Height, Frame.Width); Frame = new CGRect(Frame.Location, new CGSize(size, size)); }
private void Label_MouseEnter(object sender, MouseEventArgs e) { SolidColorBrush ContainerCurrentBackround = (SolidColorBrush)MainWindow.Instance.TopBarColor.Background; (sender as Label).Background = UIColorConverter.Light(ContainerCurrentBackround); }