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

    • <bdo id='oERyz'></bdo><ul id='oERyz'></ul>

    1. <small id='oERyz'></small><noframes id='oERyz'>

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

        <legend id='oERyz'><style id='oERyz'><dir id='oERyz'><q id='oERyz'></q></dir></style></legend>

      1. WPF中類似訪問的數據導航?

        access-like data navigation in WPF?(WPF中類似訪問的數據導航?)
          <bdo id='7AE3V'></bdo><ul id='7AE3V'></ul>
          1. <small id='7AE3V'></small><noframes id='7AE3V'>

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

                <tbody id='7AE3V'></tbody>

                <legend id='7AE3V'><style id='7AE3V'><dir id='7AE3V'><q id='7AE3V'></q></dir></style></legend>
              • <tfoot id='7AE3V'></tfoot>

                1. 本文介紹了WPF中類似訪問的數據導航?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在 XAML/C# 中的訪問表單中構建數據導航的最佳方式是什么?

                  What would be the best way to build a data-navigation like in access-forms in XAML/C#?

                  我是否應該構建一個用戶控件(甚至是自定義控件),然后將其綁定到我的集合中,以便在其中放置其他控件?(因此這個問題:C# User Control that can包含其他控件(使用時))

                  Should I build a user control (or even custom control) that I just bind to my collection in which I can put other controls? (hence this question: C# User Control that can contain other Controls (when using it) )

                  或者我可以通過某種方式從 ItemsControl 派生來構建一些東西嗎?怎么樣?

                  Or can I build something by deriving from then ItemsControl somehow? how?

                  或者今天的做法會完全不同(比如這種導航方式在去年是如此!")?

                  Or would this be done completely different today (like "this style of navigation is so last year!")?

                  我對 C# 和所有東西都比較陌生(不是這樣編程,而是更像家庭主婦語言"Access-VBA),而且我不是以英語為母語的人.所以請溫柔=)

                  I'm relatively new to C# and all (not programming as such, but with more like "housewife-language" Access-VBA) also I'm no native english speaker. So pls be gentle =)

                  推薦答案

                  您可以創建用戶控件并在其中放置一堆按鈕(First、Prev、Next、Last 等)并將其放置在主窗口上.其次,您可以將數據導航用戶控件綁定到 CollectionViewSource,這將幫助您在數據之間導航.

                  You can create user control and place a bunch of buttons (First, Prev, Next, Last, etc..) in it and place it on the main window. Secondly, you can bind your data navigation user control to a CollectionViewSource which will help you to navigate among your data.

                  您的主窗口:

                  <Window.Resources>
                      <CollectionViewSource x:Key="items" Source="{Binding}" />
                  </Window.Resources>
                  <Grid>
                      <WpfApplication1:DataNavigation DataContext="{Binding Source={StaticResource items}}" />
                      <StackPanel>
                          <TextBox Text="{Binding Source={StaticResource items},Path=Name}" />
                      </StackPanel>
                  </Grid>
                  

                  您的數據導航用戶控件:

                  Your Data Navigation User Control:

                  <StackPanel>
                      <Button x:Name="Prev" Click="Prev_Click">&lt;</Button>
                      <Button x:Name="Next" Click="Next_Click">&gt;</Button>
                      <!-- and so on -->
                  </StackPanel>
                  

                  您的點擊處理程序如下所示:

                  And your click handlers goes like this:

                  private void Prev_Click(object sender, RoutedEventArgs e)
                  {
                      ICollectionView view = CollectionViewSource.GetDefaultView(DataContext);
                      if (view != null)
                      {
                          view.MoveCurrentToPrevious();
                      }
                  }
                  

                  我希望這會有所幫助.

                  這篇關于WPF中類似訪問的數據導航?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)
                      <tbody id='m1mWQ'></tbody>

                    <tfoot id='m1mWQ'></tfoot>

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

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

                          <bdo id='m1mWQ'></bdo><ul id='m1mWQ'></ul>
                            主站蜘蛛池模板: av在线免费观看网站 | 欧美精品久久 | 99精品国产一区二区三区 | 欧洲成人免费视频 | 91在线一区 | 久久久精品影院 | 国产精品观看 | 日韩欧美大片在线观看 | 久久久久网站 | 综合色播 | 中文字幕成人av | 99re热精品视频国产免费 | 午夜视频在线观看视频 | 91超碰在线观看 | 亚洲91精品 | 日韩 欧美 二区 | 国产精品亚洲第一区在线暖暖韩国 | 激情在线视频网站 | 91视频在线 | 久久手机在线视频 | 欧美一级在线 | 亚洲人久久 | 免费视频一区二区三区在线观看 | 天天操天天天干 | 99国产精品视频免费观看一公开 | 亚洲国产精品视频 | 在线高清免费观看视频 | 美女天天操 | 一区二区在线 | 在线观看免费av片 | 97精品国产一区二区三区 | 日韩精品在线免费观看视频 | 日韩www | 久久专区 | 国产欧美日韩综合精品一区二区 | 欧美国产91 | 中文字幕在线观看一区 | 国产成人亚洲精品 | 婷婷在线视频 | 亚洲h视频| 国产精品欧美一区二区三区不卡 |