Does WPF's GridView have vertical borders? -
Is there a way to set a vertical border on WPF GridView?
Some good horizontal limitations Is there a good way to add vertical borders to the gridview that is inside this list view?
style x: key = "ListViewItemBase" TargetType = "{x: Type ListViewItem}" & gt; & Lt; Setter property = "borderline" value = "1" /> & Lt; Setter Property = "Borderbrush" Value = "#Baby" /> & Lt; / Style & gt;
Thanks in advance
Try it ... < / P>
& lt; ScrollContentPresenter x: Name = "PART_ScrollContentPresenter" SnapsToDevicePixels = "{TemplateBinding SnapsToDevicePixels}" ContentTemplate = "{TemplateBinding ContentTemplate}" KeyboardNavigation.DirectionalNavigation = "local" CanContentScroll = "{TemplateBinding CanContentScroll}" & gt; & Lt; ScrollContentPresenter.Content & gt; & Lt; Grid & gt; & Lt ;! - Container of vertical and horizontal lines - & gt; & Lt; Mdonkantrol See Margin = "3,0,0,0" items Source = "{Binding Path = Templatted parter.. Columns, relative Sors = {relative Srs Templeted paint}}" & gt; & Lt; ItemsControl.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; Border width = "{Binding Path = Wastvikwykti}" own right = "0,0,1,0" Borderbrs = "{Daynemicarsos vertical lines collar}" / & gt; & Lt; / DataTemplate & gt; & Lt; /ItemsControl.ItemTemplate> & Lt; ItemsControl.ItemsPanel & gt; & Lt; ItemsPanelTemplate & gt; & Lt; StackPanel Orientation = "Horizontal" /> & Lt; / ItemsPanelTemplate & gt; & Lt; /ItemsControl.ItemsPanel> & Lt ;! - Fill in the background with horizontal lines - & gt; & Lt; ItemsControl.Background & gt; & Lt; VisualBrush tile mode = "tile" stretch = "none" viewport = "{binding source = {static resource column height}, converter = {static resource column viewport controller}}" ViewportUnet = "absolute" & gt; & Lt; VisualBrush.Visual & gt; & Lt; StackPanel horizontal alignment = "statch" vertical alignment = "stretch" & gt; & Lt ;! - Add rectangles here for more horizontal lines - & gt; & Lt; Rectangle height = "{DynamicResource columnHeight}" Vrtiklelinement = "Stacc" fill = "{Dynamic Resource Kshatijlain collar 1}" width = "1" / & gt; & Lt; Rectangle height = "{DynamicResource columnHeight}" Vrtiklelinement = "Stacc" fill = "{Dynamic Resource Kshatijlain Koljr 2}" width = "1" / & gt; & Lt; / StackPanel & gt; & Lt; /VisualBrush.Visual> & Lt; / VisualBrush & gt; & Lt; /ItemsControl.Background> & Lt; / ItemsControl> & Lt; Content Control Content = "{TemplateBinding Content}" /> & Lt; / Grid & gt; & Lt; /ScrollContentPresenter.Content> & Lt; / ScrollContentPresenter & gt;
Comments
Post a Comment