ListView and Viewbox Control page layouts

Source: Internet
Author: User

<lDataBase:KanbanViewBase              Xmlns:ldatabase= "Clr-namespace:mes. Plugin.kanban.localdata;assembly=midea.mes.plugin.kanban.localdata "    x:class=" MES. Plugin.KanBan.Layout.Views.UploadingParking "               xmlns:ex= "Clr-namespace:mes. Plugin.KanBan.Layout.Views.MaterialPushingEx "              xmlns= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"               xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml"              xmlns:mc= "/http schemas.openxmlformats.org/markup-compatibility/2006 "               xmlns:d= "Http://schemas.microsoft.com/expression/blend/2008 " xmlns:ctl=" clr-namespace:mes. Plugin.KanBan.Layout.Controls "                xmlns:c= "Clr-namespace:midea.mes.plugin.kanban.layout.converters"               mc:ignorable= "D"                d:designheight= " d:designwidth="  FontSize= "18" ><ldatabase:kanbanviewbase.resources><c:rectangletorectanglebycount x:key= " Rectangletorectanglebycount "></c:rectangletorectanglebycount><solidcolorbrush x:key=" Backgroupcolor " color=" Black "/></ldatabase:kanbanviewbase.resources><grid x:name=" root " ><grid><grid.rowdefinitions><rowdefinition height= "></RowDefinition><" rowdefinition ></rowdefinition><rowdefinition height= "></RowDefinition><" /grid.rowdefinitions><stackpanel orientation= "Horizontal"  dockpanel.dock= "Top"  Background= "# ff2f3142 " ><textblock text=" Current time: " foreground=" #fffffb00 " verticalalignment=" Center "  fontsize= ""  margin= "30,0,0,0" ></textblock><ctl:ucdatetimecontrol></ctl: ucdatetimecontrol></stackpanel><grid grid.row= "1"  background= "#FF909090"  Margin= " 30,0 "><listview itemssource=" {binding loadeddata} "  name=" LvDefect "  Verticalalignment= "Top" ><listview.template><controltemplate><border  cornerradius= "1"  borderbrush= "Royalblue"  borderthickness= "0"  ><itemspresenter /></border ></ControlTemplate></ListView.Template><ListView.ItemsPanel><ItemsPanelTemplate> <wrappanel isitemshost= "True"/></itemspaneltemplate></listview.itemspanel>< Listview.itemcontainerstyle><style tArgettype= "{X:type listviewitem}" ><setter property= "Template" ><Setter.Value>< controltemplate><border  cornerradius= "5"  margin= "0"  ><Border.Width>< Multibinding  converter= "{Staticresource rectangletorectanglebycount}"    Converterparameter= "Width" ><binding elementname= "root"  path= "ActualWidth"/><binding  elementname= "root"  path= "ActualHeight"/><binding elementname= "root"  path= " Datacontext.cellcount "/></multibinding></border.width><border.height><multibinding   converter= "{staticresource rectangletorectanglebycount}"   converterparameter= " Height "><binding elementname=" root " path=" ActualWidth "/><binding elementname=" root "  path= "ActualHeight"/><binding elementname= "root"  path= "Datacontext.cellcount"/></ Multibinding></border.height><border margin= "1"  background= "{binding alertcolor}" ><border margin= "1"  background= "{Binding  alertcolor} "><grid><grid.rowdefinitions><rowdefinition height=" 80* "></ rowdefinition><rowdefinition height= "40*" ></RowDefinition></Grid.RowDefinitions>< Grid.columndefinitions><columndefinition width= "10*" ></ColumnDefinition>< Columndefinition width= "10*" ></ColumnDefinition></Grid.ColumnDefinitions><Viewbox  margin= "1"  grid.row= "0"  grid.columnspan= "2" ><label  content= "{Binding  Parkinglotcode} " foreground=" White " horizontalcontentalignment=" Center   Verticalcontentalignment= "Center" ></label></viewbox><viewbox margin= "1"  Grid.Row= " 1 " grid.column=" 1 "><label  grid.column=" 1 "  foreground=" white " Content=" { BINDING&NBSP;CARWAITCNT} " horizontalcontentalignment=" RighT " verticalcontentalignment=" Center " ></label></viewbox><viewbox margin=" 1 "  grid.row= "1"  grid.column= "0"  ><image visibility= "{binding picvisable}"    grid.column= "0"  source= "/midea.mes.plugin.kanban.layout;component/resources/images/car.png"   Horizontalalignment= "left"/></viewbox></grid></border></border></border></ controltemplate></setter.value></setter></style></listview.itemcontainerstyle></ listview></grid><grid grid.row= "2"  margin= "30,0" ><Grid.ColumnDefinitions>< Columndefinition width= "375" ></columndefinition><columndefinition width= "></" Columndefinition><columndefinition width= "375" ></columndefinition><columndefinition  width= "></columndefinition><columndefinition width=" 375 "></ColumnDefinition ><columndefinition&nbsP Width= "*" ></columndefinition><columndefinition width= "*" ></columndefinition></ grid.columndefinitions><grid.rowdefinitions><rowdefinition height= "*" ></RowDefinition ><rowdefinition height= "></rowdefinition><rowdefinition height=" ></ Rowdefinition></grid.rowdefinitions><border background= "#197c4b"  grid.row= "1"   grid.column= "0" ><textblock text= "idle"  foreground= "white"  fontsize= " " Verticalalignment= "Center"  horizontalalignment= "center" ></textblock></border><border  background= "#da860d"  grid.row= "1"  grid.column= "2" ><textblock text= "unloading"   foreground= "White"  fontsize= " verticalalignment=" Center  horizontalalignment= "center" > </textblock></border><border background= "#bf2530"  grid.row= "1"  Grid.Column= "4" ><textblock text= "Timeout Docking"   foreground= "White"  fontsize= " verticalalignment=" Center  horizontalalignment= "center" >< /textblock></border></grid></grid></grid></ldatabase:kanbanviewbase>


This article is from the "Imagine the Sky" blog, please be sure to keep this source http://kinwar.blog.51cto.com/3723399/1733705

ListView and Viewbox Control page layouts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.