久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <small id='YrcAH'></small><noframes id='YrcAH'>

  • <tfoot id='YrcAH'></tfoot>
        <bdo id='YrcAH'></bdo><ul id='YrcAH'></ul>
      1. <legend id='YrcAH'><style id='YrcAH'><dir id='YrcAH'><q id='YrcAH'></q></dir></style></legend>

        <i id='YrcAH'><tr id='YrcAH'><dt id='YrcAH'><q id='YrcAH'><span id='YrcAH'><b id='YrcAH'><form id='YrcAH'><ins id='YrcAH'></ins><ul id='YrcAH'></ul><sub id='YrcAH'></sub></form><legend id='YrcAH'></legend><bdo id='YrcAH'><pre id='YrcAH'><center id='YrcAH'></center></pre></bdo></b><th id='YrcAH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YrcAH'><tfoot id='YrcAH'></tfoot><dl id='YrcAH'><fieldset id='YrcAH'></fieldset></dl></div>
      2. 如何使 RightToLeftLayout 適用于 GroupBoxes 和 Panels 中

        How to make RightToLeftLayout work for controls inside GroupBoxes and Panels?(如何使 RightToLeftLayout 適用于 GroupBoxes 和 Panels 中的控件?)
      3. <i id='aWmpA'><tr id='aWmpA'><dt id='aWmpA'><q id='aWmpA'><span id='aWmpA'><b id='aWmpA'><form id='aWmpA'><ins id='aWmpA'></ins><ul id='aWmpA'></ul><sub id='aWmpA'></sub></form><legend id='aWmpA'></legend><bdo id='aWmpA'><pre id='aWmpA'><center id='aWmpA'></center></pre></bdo></b><th id='aWmpA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='aWmpA'><tfoot id='aWmpA'></tfoot><dl id='aWmpA'><fieldset id='aWmpA'></fieldset></dl></div>
          <tbody id='aWmpA'></tbody>
      4. <legend id='aWmpA'><style id='aWmpA'><dir id='aWmpA'><q id='aWmpA'></q></dir></style></legend>

            <bdo id='aWmpA'></bdo><ul id='aWmpA'></ul>

                <tfoot id='aWmpA'></tfoot>

                <small id='aWmpA'></small><noframes id='aWmpA'>

                  本文介紹了如何使 RightToLeftLayout 適用于 GroupBoxes 和 Panels 中的控件?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  According to MSDN

                  form.RightToLeftLayout = True;
                  form.RightToLeft = ifWeWantRTL() ? RightToLeft.True : RightToLeft.False;
                  

                  is enough to mirrow the form content for RTL languages.

                  But controls placement gets mirrowed only for controls immediately on the form,
                  those inside a GroupBox or a Panel are not mirrowed, unless I put them on a TableLayoutPanel or a FlowLayoutPanel fisrt.

                  This is a lot of manual work to place a TableLayoutPanel inside each GroupBox, and especially to rearrange the controls (one control per table cell, padding, margin, etc)

                  Is there an easier way to make mirrowing work for all controls?

                  Or at least, how can I bypass the rearranging step, for it is quite a task with our number of forms?


                  Edit: RightToLeft property for each control on the form by default is inherited,
                  so Panels and GroupBoxes always have the needed RightToLeft setting.
                  Nevertheless, I tryed to reassign it for them both programmatically and from designer, it did not help.

                  解決方案

                  It does seen that you have quite a nasty problem on your hands. Have played with it for a while and come up with the following:

                  Making use of a little recursion you can run though all the controls and do the manaul RTL conversion for those controls trapped in Pannels and GroupBoxes.

                  This is a quick little mock of code that I slapped together. I would suggest you put this in your BaseForm (heres hoping you have one of these) and call on base form load.

                  private void SetRTL (bool setRTL)
                  {
                      ApplyRTL(setRTL, this);
                  }
                  
                  private void ApplyRTL(bool yes, Control startControl)
                  {
                      if ((startControl is Panel ) || (startControl is GroupBox))
                      {
                          foreach (Control control in startControl.Controls)
                          {
                              control.Location = CalculateRTL(control.Location, startControl.Size, control.Size);
                          }
                      }
                  
                      foreach (Control control in startControl.Controls)
                          ApplyRTL(yes, control);
                  }
                  
                  private Point CalculateRTL (Point currentPoint, Size parentSize, Size currentSize)
                  {
                      return new Point(parentSize.Width - currentSize.Width - currentPoint.X, currentPoint.Y);
                  }
                  

                  這篇關于如何使 RightToLeftLayout 適用于 GroupBoxes 和 Panels 中的控件?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  extracting just page text using HTMLAgilityPack(使用 HTMLAgilityPack 僅提取頁面文本)
                  C# extracting data from XML(C# 從 XML 中提取數據)
                  Read a XML (from a string) and get some fields - Problems reading XML(讀取 XML(從字符串)并獲取一些字段 - 讀取 XML 時出現問題)
                  Reading large XML documents in .net(在 .net 中讀取大型 XML 文檔)
                  How to create folder in Google Drive using .NET API?(如何使用 .NET API 在 Google Drive 中創建文件夾?)
                    <tbody id='TbO1v'></tbody>
                  <legend id='TbO1v'><style id='TbO1v'><dir id='TbO1v'><q id='TbO1v'></q></dir></style></legend>

                        <small id='TbO1v'></small><noframes id='TbO1v'>

                      1. <i id='TbO1v'><tr id='TbO1v'><dt id='TbO1v'><q id='TbO1v'><span id='TbO1v'><b id='TbO1v'><form id='TbO1v'><ins id='TbO1v'></ins><ul id='TbO1v'></ul><sub id='TbO1v'></sub></form><legend id='TbO1v'></legend><bdo id='TbO1v'><pre id='TbO1v'><center id='TbO1v'></center></pre></bdo></b><th id='TbO1v'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TbO1v'><tfoot id='TbO1v'></tfoot><dl id='TbO1v'><fieldset id='TbO1v'></fieldset></dl></div>
                          <bdo id='TbO1v'></bdo><ul id='TbO1v'></ul>

                          1. <tfoot id='TbO1v'></tfoot>
                            主站蜘蛛池模板: 视频一区二区中文字幕 | 欧美日韩亚洲一区 | 999精品视频| 国产日韩一区二区三免费高清 | 91看国产 | 国产免费福利小视频 | 日日摸夜夜添夜夜添特色大片 | 黄色免费在线观看 | 亚洲午夜精品在线观看 | 日韩免费一区二区 | 欧美视频第二页 | 国产成人精品免费视频大全最热 | h视频在线免费 | 久久一日本道色综合久久 | 毛片久久久 | 亚洲精品免费观看 | 国产美女一区二区 | 国产高清一区 | 午夜午夜精品一区二区三区文 | 日韩精品一区二区三区免费观看 | 成人一区二区视频 | 九九色综合 | 久久久精品 | 色欧美片视频在线观看 | 99色视频| 国产欧美一区二区三区久久人妖 | 我爱操 | 国产精品乱码一区二区三区 | 亚洲欧美日韩精品久久亚洲区 | 久久精品久久综合 | 蜜桃传媒一区二区 | 日韩在线精品视频 | www精品美女久久久tv | 91精品久久久久久久久 | 国内在线视频 | 成人精品一区二区三区中文字幕 | 亚洲高清一区二区三区 | 国产精品高清一区二区三区 | 国产精品日韩一区 | 伊人国产精品 | 91看片网 |