代码之家  ›  专栏  ›  技术社区  ›  Pxaml

xamarin表单c中的定位元素#

  •  0
  • Pxaml  · 技术社区  · 7 年前

    信息图标需要位于此标签的右侧,仅使用c#。 enter image description here

    exa:

    this.Content = new StackLayout
                {
    
                    Children =
                    {
                        infoIcon,
                        Label,
                        webView
                    }
    
    1 回复  |  直到 5 年前
        1
  •  0
  •   Luccas Clezar    7 年前
    this.Content = new StackLayout
    {
        Children =
        {
            new StackLayout
            {
                Orientation = StackOrientation.Horizontal,
                Children = 
                {
                    Label,
                    infoIcon,
                }
            },
            webView
        }
    }
    

    就是这样,希望有帮助!