Click here to Skip to main content
15,890,690 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: ListBox Binding From Within A User Control Pin
Mark Salsbery21-Jun-09 16:38
Mark Salsbery21-Jun-09 16:38 
GeneralRe: ListBox Binding From Within A User Control Pin
BlitzPackage21-Jun-09 17:08
BlitzPackage21-Jun-09 17:08 
QuestionRe: ListBox Binding From Within A User Control Pin
Mark Salsbery21-Jun-09 17:45
Mark Salsbery21-Jun-09 17:45 
AnswerRe: ListBox Binding From Within A User Control Pin
BlitzPackage21-Jun-09 17:55
BlitzPackage21-Jun-09 17:55 
GeneralRe: ListBox Binding From Within A User Control Pin
Mark Salsbery21-Jun-09 18:01
Mark 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
Etienne_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
protectorChristian Graus21-Jun-09 12:10 
QuestionHow do you display separator bars in a StatusBar? Pin
fjparisIII21-Jun-09 8:27
fjparisIII21-Jun-09 8:27 
I've been trying for an hour and can't get them to show up. I want three TextBlock fields in the StatusBar, each separated by a Separator. The TextBlock fields show up fine. I want the middle field to to be centered and take up all the space that the left and right fields do not, and my XAML does achieve this. Here is that XAML. I tried an explicit width of 10 for the two Separator elements, but that didn't make a difference. What am I doing wrong?

<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
            Name="statusBarHelp"
            >
        </TextBlock>
    </StatusBarItem>
    <StatusBarItem
        Grid.Column="1"
        >
        <Separator></Separator>
    </StatusBarItem>
    <StatusBarItem
        Grid.Column="2"
        HorizontalContentAlignment="Center"
        >
        <TextBlock
            Name="statusBarFullPath"
            >
        </TextBlock>
    </StatusBarItem>
    <StatusBarItem
        Grid.Column="3"
        >
        <Separator></Separator>
    </StatusBarItem>
    <StatusBarItem
        Grid.Column="4"
        >
        <TextBlock
            Name="imageCount"
            Padding="0,0,10,0"
            >
        </TextBlock>
    </StatusBarItem>
</StatusBar>

AnswerRe: How do you display separator bars in a StatusBar? Pin
Christian Graus21-Jun-09 10:05
protectorChristian Graus21-Jun-09 10:05 
GeneralRe: How do you display separator bars in a StatusBar? Pin
fjparisIII21-Jun-09 11:09
fjparisIII21-Jun-09 11:09 
GeneralRe: How do you display separator bars in a StatusBar? Pin
Mark Salsbery21-Jun-09 11:13
Mark 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
fjparisIII21-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
Mark 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
fjparisIII21-Jun-09 11:51 
AnswerRe: How do you display separator bars in a StatusBar? [modified] Pin
Mark Salsbery21-Jun-09 10:50
Mark Salsbery21-Jun-09 10:50 
GeneralRe: How do you display separator bars in a StatusBar? Pin
Christian Graus21-Jun-09 10:51
protectorChristian Graus21-Jun-09 10:51 
GeneralRe: How do you display separator bars in a StatusBar? Pin
Mark Salsbery21-Jun-09 11:04
Mark Salsbery21-Jun-09 11:04 
GeneralRe: How do you display separator bars in a StatusBar? Pin
Mark Salsbery21-Jun-09 11:09
Mark Salsbery21-Jun-09 11:09 
AnswerRe: How do you display separator bars in a StatusBar? Pin
Mark Salsbery21-Jun-09 11:05
Mark Salsbery21-Jun-09 11:05 
GeneralRe: How do you display separator bars in a StatusBar? Pin
fjparisIII21-Jun-09 11:40
fjparisIII21-Jun-09 11:40 
QuestionHow to find the temparary drives created Pin
Nekkantidivya19-Jun-09 20:45
Nekkantidivya19-Jun-09 20:45 
AnswerRe: How to find the temparary drives created Pin
ABitSmart19-Jun-09 21:51
ABitSmart19-Jun-09 21:51 
Question[Message Deleted] Pin
CBenac19-Jun-09 14:11
CBenac19-Jun-09 14:11 
AnswerRe: Problem with WPF Browser application Pin
Christian Graus19-Jun-09 17:39
protectorChristian Graus19-Jun-09 17:39 
General[Message Deleted] Pin
CBenac20-Jun-09 3:13
CBenac20-Jun-09 3:13 

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.