Click here to Skip to main content
       

Silverlight / WPF

 
QuestionHow do you display separator bars in a StatusBar? PinmemberfjparisIII21-Jun-09 8:27 
AnswerRe: How do you display separator bars in a StatusBar? PinmvpChristian Graus21-Jun-09 10:05 
GeneralRe: How do you display separator bars in a StatusBar? PinmemberfjparisIII21-Jun-09 11:09 
GeneralRe: How do you display separator bars in a StatusBar? PinmvpMark Salsbery21-Jun-09 11:13 
GeneralRe: How do you display separator bars in a StatusBar? (Ans: don't use them) PinmemberfjparisIII21-Jun-09 11:26 
GeneralRe: How do you display separator bars in a StatusBar? (Ans: don't use them) PinmvpMark Salsbery21-Jun-09 11:29 
GeneralRe: How do you display separator bars in a StatusBar? (Ans: don't use them) PinmemberfjparisIII21-Jun-09 11:51 
AnswerRe: How do you display separator bars in a StatusBar? [modified] PinmvpMark Salsbery21-Jun-09 10:50 
*Edit*
With your Separators wrapped in StatusBarItem, they default to a horizontal orientation, so
you'd need to give your separators a vertically oriented style, otherwise you can't see them...
    <StatusBar Grid.Row="1"
               DockPanel.Dock="Bottom"
               Height="23"
               VerticalAlignment="Bottom"
               BorderBrush="Black"
               BorderThickness="0,.5,0,0" >
        <StatusBar.ItemsPanel>
            <ItemsPanelTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                </Grid>
            </ItemsPanelTemplate>
        </StatusBar.ItemsPanel>
        <StatusBarItem Grid.Column="0" >
            <TextBlock Text="TextBlock 1" Name="statusBarHelp" />
        </StatusBarItem>
        <StatusBarItem Grid.Column="1" >
            <Separator >
                <Separator.Style>
                    <Style TargetType="{x:Type Separator}">
                        <Setter Property="Height" Value="20"/>
                        <Setter Property="Margin" Value="2,0,2,0"/>
                        <Setter Property="Focusable" Value="false"/>
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type Separator}">
                                    <Border BorderBrush="LightSlateGray" BorderThickness="1"/>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </Separator.Style>
            </Separator>
        </StatusBarItem>
        <StatusBarItem Grid.Column="2" HorizontalContentAlignment="Center" >
            <TextBlock Text="TextBlock 2" Name="statusBarFullPath" />
        </StatusBarItem>
        <StatusBarItem Grid.Column="3" >
            <Separator >
                <Separator.Style>
                    <Style TargetType="{x:Type Separator}">
                        <Setter Property="Height" Value="20"/>
                        <Setter Property="Margin" Value="2,0,2,0"/>
                        <Setter Property="Focusable" Value="false"/>
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type Separator}">
                                    <Border BorderBrush="LightSlateGray" BorderThickness="1"/>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </Separator.Style>
            </Separator>
        </StatusBarItem>
        <StatusBarItem Grid.Column="4" >
            <TextBlock Text="TextBlock 3" Name="imageCount" />
        </StatusBarItem>
    </StatusBar>
In my second reply is a simpler version with the StatusBarItem wrappers removed.
 

Mark
 
Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]
modified on Sunday, June 21, 2009 5:06 PM

GeneralRe: How do you display separator bars in a StatusBar? PinmvpChristian Graus21-Jun-09 10:51 
GeneralRe: How do you display separator bars in a StatusBar? PinmvpMark Salsbery21-Jun-09 11:04 
GeneralRe: How do you display separator bars in a StatusBar? PinmvpMark Salsbery21-Jun-09 11:09 
AnswerRe: How do you display separator bars in a StatusBar? PinmvpMark Salsbery21-Jun-09 11:05 
GeneralRe: How do you display separator bars in a StatusBar? PinmemberfjparisIII21-Jun-09 11:40 
QuestionHow to find the temparary drives created PinmemberNekkantidivya19-Jun-09 20:45 
AnswerRe: How to find the temparary drives created PinmemberABitSmart19-Jun-09 21:51 
Question[Message Deleted] PinmemberCBenac19-Jun-09 14:11 
AnswerRe: Problem with WPF Browser application PinmvpChristian Graus19-Jun-09 17:39 
General[Message Deleted] PinmemberCBenac20-Jun-09 3:13 
GeneralRe: Problem with WPF Browser application PinmvpChristian Graus20-Jun-09 11:32 
AnswerRe: [Message Deleted] PinmvpChristian Graus20-Jun-09 13:09 
GeneralHow to connect a XPAP application to the Northwind database PinmemberCBenac20-Jun-09 15:34 
GeneralRe: How to connect a XPAP application to the Northwind database PinmvpChristian Graus21-Jun-09 0:39 
GeneralRe: How to connect a XPAP application to the Northwind database PinmemberCBenac21-Jun-09 12:58 
GeneralRe: How to connect a XPAP application to the Northwind database PinmemberCBenac22-Jun-09 8:28 
QuestionCanvas with an Image PinmemberCollin Jasnoch19-Jun-09 10:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.141022.2 | Last Updated 24 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid