WPF progressbar

来源:互联网 时间:1970-01-01

<StatusBar DockPanel.Dock="Bottom">

                    <StatusBar.ItemsPanel>                        <ItemsPanelTemplate>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="4*"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                            </Grid>
                        </ItemsPanelTemplate>
                    </StatusBar.ItemsPanel>
                    <StatusBarItem>
                        <TextBlock>Ready</TextBlock>
                    </StatusBarItem>
                    <StatusBarItem Grid.Column="1">
                        <ProgressBar Name="progressbar" 
Value="0" Width="80" Height="18" Maximum="100" Minimum="0"/>
                    </StatusBarItem>
                    <StatusBarItem Grid.Column="2">
                        <TextBlock>Set</TextBlock>
                    </StatusBarItem>
                    <StatusBarItem Grid.Column="3">
                        <TextBlock>Go!</TextBlock>
                    </StatusBarItem>
                </StatusBar>

本文来自shenjianzong的博客,原文地址:http://hi.baidu.com/shenjianzong/blog/item/2668cdba60c5301819d81fe8.html


相关阅读:
Top