Click here to Skip to main content
13,150,867 members (40,819 online)

Silverlight / WPF

 
GeneralRe: ListBox Binding From Within A User Control Pin
BlitzPackage21-Jun-09 17:08
memberBlitzPackage21-Jun-09 17:08 
QuestionRe: ListBox Binding From Within A User Control Pin
Mark Salsbery21-Jun-09 17:45
mvpMark Salsbery21-Jun-09 17:45 
AnswerRe: ListBox Binding From Within A User Control Pin
BlitzPackage21-Jun-09 17:55
memberBlitzPackage21-Jun-09 17:55 
GeneralRe: ListBox Binding From Within A User Control Pin
Mark Salsbery21-Jun-09 18:01
mvpMark Salsbery21-Jun-09 18:01 
QuestionHow do I check whether the "X" button in the top right corner was clicked on a WPF form? Pin
Etienne_12321-Jun-09 11:54
memberEtienne_12321-Jun-09 11:54 
AnswerRe: How do I check whether the "X" button in the top right corner was clicked on a WPF form? Pin
Christian Graus21-Jun-09 12:10
mvpChristian Graus21-Jun-09 12:10 
QuestionHow do you display separator bars in a StatusBar? Pin
fjparisIII21-Jun-09 8:27
memberfjparisIII21-Jun-09 8:27 
AnswerRe: How do you display separator bars in a StatusBar? Pin
Christian Graus21-Jun-09 10:05
mvpChristian Graus21-Jun-09 10:05 
GeneralRe: How do you display separator bars in a StatusBar? Pin
fjparisIII21-Jun-09 11:09
memberfjparisIII21-Jun-09 11:09 
GeneralRe: How do you display separator bars in a StatusBar? Pin
Mark Salsbery21-Jun-09 11:13
mvpMark Salsbery21-Jun-09 11:13 
GeneralRe: How do you display separator bars in a StatusBar? (Ans: don't use them) Pin
fjparisIII21-Jun-09 11:26
memberfjparisIII21-Jun-09 11:26 
GeneralRe: How do you display separator bars in a StatusBar? (Ans: don't use them) Pin
Mark Salsbery21-Jun-09 11:29
mvpMark Salsbery21-Jun-09 11:29 
GeneralRe: How do you display separator bars in a StatusBar? (Ans: don't use them) Pin
fjparisIII21-Jun-09 11:51
memberfjparisIII21-Jun-09 11:51 
AnswerRe: How do you display separator bars in a StatusBar? [modified] Pin
Mark Salsbery21-Jun-09 10:50
mvpMark 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? Pin
Christian Graus21-Jun-09 10:51
mvpChristian Graus21-Jun-09 10:51 
GeneralRe: How do you display separator bars in a StatusBar? Pin
Mark Salsbery21-Jun-09 11:04
mvpMark Salsbery21-Jun-09 11:04 
GeneralRe: How do you display separator bars in a StatusBar? Pin
Mark Salsbery21-Jun-09 11:09
mvpMark Salsbery21-Jun-09 11:09 
AnswerRe: How do you display separator bars in a StatusBar? Pin
Mark Salsbery21-Jun-09 11:05
mvpMark Salsbery21-Jun-09 11:05 
GeneralRe: How do you display separator bars in a StatusBar? Pin
fjparisIII21-Jun-09 11:40
memberfjparisIII21-Jun-09 11:40 
QuestionHow to find the temparary drives created Pin
Nekkantidivya19-Jun-09 20:45
memberNekkantidivya19-Jun-09 20:45 
AnswerRe: How to find the temparary drives created Pin
ABitSmart19-Jun-09 21:51
memberABitSmart19-Jun-09 21:51 
Question[Message Deleted] Pin
CBenac19-Jun-09 14:11
memberCBenac19-Jun-09 14:11 
AnswerRe: Problem with WPF Browser application Pin
Christian Graus19-Jun-09 17:39
mvpChristian Graus19-Jun-09 17:39 
General[Message Deleted] Pin
CBenac20-Jun-09 3:13
memberCBenac20-Jun-09 3:13 
GeneralRe: Problem with WPF Browser application Pin
Christian Graus20-Jun-09 11:32
mvpChristian Graus20-Jun-09 11:32 
AnswerRe: [Message Deleted] Pin
Christian Graus20-Jun-09 13:09
mvpChristian Graus20-Jun-09 13:09 
GeneralHow to connect a XPAP application to the Northwind database Pin
CBenac20-Jun-09 15:34
memberCBenac20-Jun-09 15:34 
GeneralRe: How to connect a XPAP application to the Northwind database Pin
Christian Graus21-Jun-09 0:39
mvpChristian Graus21-Jun-09 0:39 
GeneralRe: How to connect a XPAP application to the Northwind database Pin
CBenac21-Jun-09 12:58
memberCBenac21-Jun-09 12:58 
GeneralRe: How to connect a XPAP application to the Northwind database Pin
CBenac22-Jun-09 8:28
memberCBenac22-Jun-09 8:28 
AnswerRe: Canvas with an Image Pin
Christian Graus19-Jun-09 11:02
mvpChristian Graus19-Jun-09 11:02 
GeneralRe: Canvas with an Image Pin
Christian Graus19-Jun-09 11:25
mvpChristian Graus19-Jun-09 11:25 
GeneralRe: Canvas with an Image Pin
Christian Graus19-Jun-09 11:37
mvpChristian Graus19-Jun-09 11:37 
GeneralRe: Canvas with an Image Pin
Mark Salsbery21-Jun-09 7:33
mvpMark Salsbery21-Jun-09 7:33 
QuestionHow to remember the position of a GridSplitter Pin
fjparisIII19-Jun-09 8:57
memberfjparisIII19-Jun-09 8:57 
AnswerRe: How to remember the position of a GridSplitter (I "SOLVED" IT MYSELF) Pin
fjparisIII19-Jun-09 11:37
memberfjparisIII19-Jun-09 11:37 
GeneralRe: How to remember the position of a GridSplitter (I SOLVED IT MYSELF) Pin
Christian Graus19-Jun-09 12:46
mvpChristian Graus19-Jun-09 12:46 
GeneralRe: How to remember the position of a GridSplitter (I "SOLVED" IT MYSELF) Pin
fjparisIII19-Jun-09 13:55
memberfjparisIII19-Jun-09 13:55 
GeneralRe: How to remember the position of a GridSplitter (I SOLVED IT MYSELF) Pin
Christian Graus19-Jun-09 17:37
mvpChristian Graus19-Jun-09 17:37 
Questionxmlns question Pin
John Simmons / outlaw programmer19-Jun-09 4:39
mvpJohn Simmons / outlaw programmer19-Jun-09 4:39 
AnswerRe: xmlns question [modified] Pin
Eslam Afifi19-Jun-09 6:29
memberEslam Afifi19-Jun-09 6:29 
AnswerRe: xmlns question Pin
Christian Graus19-Jun-09 11:45
mvpChristian Graus19-Jun-09 11:45 
GeneralRe: xmlns question Pin
John Simmons / outlaw programmer19-Jun-09 15:15
mvpJohn Simmons / outlaw programmer19-Jun-09 15:15 
GeneralRe: xmlns question Pin
Mark Salsbery21-Jun-09 7:47
mvpMark Salsbery21-Jun-09 7:47 
AnswerRe: xmlns question Pin
Steve Solomon22-Jun-09 0:18
memberSteve Solomon22-Jun-09 0:18 
QuestionWeb browser application having database Pin
Rits11038918-Jun-09 21:34
memberRits11038918-Jun-09 21:34 
AnswerRe: Web browser application having database Pin
Christian Graus18-Jun-09 23:54
mvpChristian Graus18-Jun-09 23:54 
GeneralRe: Web browser application having database Pin
John Simmons / outlaw programmer19-Jun-09 0:11
mvpJohn Simmons / outlaw programmer19-Jun-09 0:11 
GeneralRe: Web browser application having database Pin
Rits11038919-Jun-09 0:27
memberRits11038919-Jun-09 0:27 
GeneralRe: Web browser application having database Pin
Christian Graus19-Jun-09 11:00
mvpChristian Graus19-Jun-09 11:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 |
Web02 | 2.8.170924.2 | Last Updated 22 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid