是否可以在右侧对齐工具栏托盘?

时间:2018-10-30 05:38:43

标签: wpf material-design-in-xaml

WPF/ MaterialDesignInXamlToolkit是否可能 将ToolBar显示为Dock右对齐? 默认为左对齐。

enter image description here

我认为我应该修改this Style file

但是我找不到“ DockPanel.Dock =“左”

 <ToolBarTray>
        <ToolBar Style="{DynamicResource MaterialDesignToolBar}" ClipToBounds="False" >

            <Button ToolTip="Home">
                <materialDesign:PackIcon Kind="Home" />
            </Button>
            <Button ToolTip="Add">
                <materialDesign:PackIcon Kind="AccountMultiplePlus" />
            </Button>
            <Button ToolTip="Test">
                <materialDesign:PackIcon Kind="FlagCheckered" />
            </Button>
            <Separator />
            <Button ToolTip="Layer" >
                <materialDesign:PackIcon Kind="Layers" />
            </Button>
            <Separator />
            <Button ToolTip="Setting" >
                <materialDesign:PackIcon Kind="Settings" />
            </Button>
            <Button ToolTip="Help">
                <materialDesign:PackIcon Kind="HelpCircleOutline" />
            </Button>

        </ToolBar>
    </ToolBarTray>

1 个答案:

答案 0 :(得分:1)

if (inputFile.hasNextLine()) 
{
    String start = inputFile.nextLine();
    String [] rowsAndCols = start.split(" "); // part where it should read the first two integers
    int rows = Integer.parseInt(rowsAndCols[0]);
    int cols = Integer.parseInt(rowsAndCols[1]);
}
相关问题