{"id":2877,"date":"2019-11-15T09:19:59","date_gmt":"2019-11-15T08:19:59","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=2877"},"modified":"2022-07-25T08:33:24","modified_gmt":"2022-07-25T07:33:24","slug":"c-xaml-example-gridlayout-splitter","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/c-xaml-example-gridlayout-splitter\/","title":{"rendered":"C# XAML example gridlayout + splitter"},"content":{"rendered":"\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;Pages:GridBasePage MinWidth=\"1000\"  xmlns:Pages=\"clr-namespace:Uniconta.ClientTools.Page;assembly=ClientTools\"\n\t\t\t\t\txmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\n\t\t\t\t\txmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\n\t\t\t\t\txmlns:d=\"http:\/\/schemas.microsoft.com\/expression\/blend\/2008\"\n\t\t\t\t\txmlns:mc=\"http:\/\/schemas.openxmlformats.org\/markup-compatibility\/2006\"\n\t\t\t\t\txmlns:UnicontaControls=\"clr-namespace:Uniconta.ClientTools.Controls;assembly=ClientTools\"\n\t\t\t\t\txmlns:ClientTools=\"clr-namespace:Uniconta.ClientTools;assembly=ClientTools\"\n\t\t\t\t\txmlns:dxg=\"http:\/\/schemas.devexpress.com\/winfx\/2008\/xaml\/grid\"\n\t\t\t\t\txmlns:dxe=\"http:\/\/schemas.devexpress.com\/winfx\/2008\/xaml\/editors\" xmlns:dxwui=\"http:\/\/schemas.devexpress.com\/winfx\/2008\/xaml\/windowsui\" \n\t\t\t\t\txmlns:dxlc=\"http:\/\/schemas.devexpress.com\/winfx\/2008\/xaml\/layoutcontrol\" \n\t\t\t\t\tx:Class=\"Plugin.Views.EdiOrderForm\">\n\t&lt;StackPanel>\n\t\t&lt;UnicontaControls:UnicontaRibbonControl x:Name=\"localMenu\" \/>\n\n\t\t&lt;Grid>\n\t\t\t&lt;Grid.ColumnDefinitions>\n\t\t\t\t&lt;ColumnDefinition Width=\"*\" \/>\n\t\t\t\t&lt;ColumnDefinition Width=\"5\" \/>\n\t\t\t\t&lt;ColumnDefinition Width=\"*\" \/>\n\t\t\t&lt;\/Grid.ColumnDefinitions>\n\t\t\t&lt;Grid.RowDefinitions>\n\t\t\t\t&lt;RowDefinition Height=\"1*\" \/>\n\t\t\t&lt;\/Grid.RowDefinitions>\n\n\t\t\t&lt;StackPanel Grid.Column=\"0\" Margin=\"5\">\n\t\t\t\t&lt;WrapPanel>\n\t\t\t\t\t&lt;Label Content=\"Order berichten\" \/>\n\t\t\t\t&lt;\/WrapPanel>\n\t\t\t\t&lt;dxg:GridControl x:Name=\"headerGrid\" Height=\"500\" SelectionMode=\"None\" SelectedItem=\"{Binding Path=SelectedVmAlgemeneConfiguratie}\"\n\t\t\t\t\t\t\t\t  AutoGenerateColumns=\"None\" HorizontalAlignment=\"Stretch\" VerticalAlignment=\"Stretch\" \n\t\t\t\t\t\t\t\t Grid.ColumnSpan=\"2\" Grid.Row=\"2\" ItemsSource=\"{Binding Path=AlgemeneConfiguratieLines, Mode=OneWay}\" >\n\t\t\t\t\t&lt;dxg:GridControl.View>\n\t\t\t\t\t\t&lt;dxg:TableView AllowColumnFiltering=\"False\" AllowSorting=\"False\" ShowFixedTotalSummary=\"True\"  AllowPerPixelScrolling=\"True\" \n\t\t\t\t\t\t\t\t\t\t   ShowGroupPanel=\"False\"  ShowIndicator=\"False\" EnableImmediatePosting=\"True\" \n\t\t\t\t\t\t\t\t\t\t   NewItemRowPosition=\"Bottom\" ColumnFilterPopupMode=\"ExcelSmart\" \/>\n\t\t\t\t\t&lt;\/dxg:GridControl.View>\n\n\t\t\t\t\t&lt;dxg:GridControl.Columns>\n\t\t\t\t\t\t&lt;dxg:GridColumn FieldName=\"Date\" Header=\"Date\" Width=\"150\" \/>\n\t\t\t\t\t\t&lt;dxg:GridColumn FieldName=\"Message.BuyerGLN\" Header=\"Klant GLN\" Width=\"200\" \/>\n\t\t\t\t\t\t&lt;dxg:GridColumn FieldName=\"Message.MatchedDebtorClient\" Header=\"Klant\" Width=\"200\" \/>\n\t\t\t\t\t\t&lt;dxg:GridColumn FieldName=\"Status\" Header=\"Status\" Width=\"200\" \/>\n\t\t\t\t\t&lt;\/dxg:GridControl.Columns>\n\t\t\t\t&lt;\/dxg:GridControl>\n\t\t\t&lt;\/StackPanel>\n\t\t\t&lt;GridSplitter Grid.Column=\"1\" Width=\"5\" HorizontalAlignment=\"Stretch\" \/>\n\n\t\t\t&lt;Grid Grid.Column=\"2\" Margin=\"5\">\n\t\t\t\t&lt;Grid.RowDefinitions>\n\t\t\t\t\t&lt;RowDefinition Height=\"*\" \/>\n\t\t\t\t\t&lt;RowDefinition Height=\"5\" \/>\n\t\t\t\t\t&lt;RowDefinition Height=\"*\" \/>\n\t\t\t\t&lt;\/Grid.RowDefinitions>\n\n\t\t\t\t&lt;!--&lt;Label Grid.Row=\"0\" Content=\"Order artikelen\" VerticalContentAlignment=\"Stretch\" \/>\n\t\t\t\t&lt;GridSplitter Grid.Row=\"1\" Height=\"5\" HorizontalAlignment=\"Stretch\" \/>\n\t\t\t\t&lt;Label Grid.Row=\"2\" Content=\"Message detail\" VerticalContentAlignment=\"Stretch\"  \/>-->\n\n\t\t\t\t&lt;StackPanel x:Name=\"detailTopPanel\" Grid.Row=\"0\" Height=\"auto\">\n\t\t\t\t\t&lt;Label Content=\"Order artikelen\" \/>\n\t\t\t\t\t&lt;dxg:GridControl x:Name=\"detailGrid\" Height=\"280\" SelectionMode=\"None\" SelectedItem=\"{Binding Path=SelectedVmAlgemeneConfiguratie}\"\n\t\t\t\t\t\t\t\tAutoGenerateColumns=\"None\" HorizontalAlignment=\"Stretch\" VerticalAlignment=\"Stretch\" \n\t\t\t\t\t\t\t\tGrid.ColumnSpan=\"2\" Grid.Row=\"2\" ItemsSource=\"{Binding Path=AlgemeneConfiguratieLines, Mode=OneWay}\" >\n\t\t\t\t\t\t&lt;dxg:GridControl.View>\n\t\t\t\t\t\t\t&lt;dxg:TableView AllowColumnFiltering=\"False\" AllowSorting=\"False\" ShowFixedTotalSummary=\"True\"  AllowPerPixelScrolling=\"True\" \n\t\t\t\t\t\t\t\t\t\tShowGroupPanel=\"False\"  ShowIndicator=\"False\" EnableImmediatePosting=\"True\" \n\t\t\t\t\t\t\t\t\t\tNewItemRowPosition=\"Bottom\" ColumnFilterPopupMode=\"ExcelSmart\" \/>\n\t\t\t\t\t\t&lt;\/dxg:GridControl.View>\n\n\t\t\t\t\t\t&lt;dxg:GridControl.Columns>\n\t\t\t\t\t\t\t&lt;dxg:GridColumn FieldName=\"LineNumber\" Header=\"Regel\" Width=\"100\" \/>\n\t\t\t\t\t\t\t&lt;dxg:GridColumn FieldName=\"ArticleCodeSupplier\" Header=\"Artikelcode\" Width=\"150\" \/>\n\t\t\t\t\t\t\t&lt;dxg:GridColumn FieldName=\"ArticleCodeBuyer\" Header=\"Artikelcode klant\" Width=\"150\" \/>\n\t\t\t\t\t\t\t&lt;dxg:GridColumn FieldName=\"OrderedQuantity\" Header=\"Aantal\" Width=\"150\" \/>\n\t\t\t\t\t\t&lt;\/dxg:GridControl.Columns>\n\t\t\t\t\t&lt;\/dxg:GridControl>\n\t\t\t\t&lt;\/StackPanel>\n\t\t\t\t&lt;GridSplitter Grid.Row=\"1\" Height=\"5\" HorizontalAlignment=\"Stretch\" \/>\n\t\t\t\t&lt;StackPanel x:Name=\"detailBottomPanel\" Grid.Row=\"2\" Height=\"auto\">\n\t\t\t\t\t&lt;Label Content=\"Order bericht\" \/>\n\t\t\t\t\t&lt;RichTextBox x:Name=\"textBoxMessage\" MinWidth=\"200\" MinHeight=\"200\" IsReadOnly=\"True\">\n\t\t\t\t\t\t&lt;FlowDocument>\n\t\t\t\t\t\t\t&lt;Paragraph>\n\t\t\t\t\t\t\t&lt;\/Paragraph>\n\t\t\t\t\t\t&lt;\/FlowDocument>\n\t\t\t\t\t&lt;\/RichTextBox>\n\t\t\t\t&lt;\/StackPanel>\n\t\t\t&lt;\/Grid>\n\t\t&lt;\/Grid>\n\t&lt;\/StackPanel>\n&lt;\/Pages:GridBasePage><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[6,4,1],"tags":[],"class_list":["post-2877","post","type-post","status-publish","format-standard","hentry","category-dotnet","category-programming","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/2877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=2877"}],"version-history":[{"count":1,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/2877\/revisions"}],"predecessor-version":[{"id":2878,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/2877\/revisions\/2878"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=2877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=2877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=2877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}