本文整理汇总了C#中System.Windows.Controls.Button.Count方法的典型用法代码示例。如果您正苦于以下问题:C# Button.Count方法的具体用法?C# Button.Count怎么用?C# Button.Count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.Button
的用法示例。
在下文中一共展示了Button.Count方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: setSidePaneltoTopPanelColor
//Desc: Sets side panel buttons to match top panel color
//Pre: array of buttons
private void setSidePaneltoTopPanelColor(Button[] btn)
{
for(int i = 0; i<btn.Count(); i++)
{
if(sidepanelclosedon == "round")
{
btn[i].Background = getRoundTopPanelSolidColor();
}
else if(sidepanelclosedon == "course")
{
btn[i].Background = getCourseTopPanelSolidColor();
}
else if(sidepanelclosedon == "disc")
{
btn[i].Background = getDiscTopPanelSolidColor();
}
else if(sidepanelclosedon == "stats")
{
btn[i].Background = getStatsTopPanelSolidColor();
}
else
{
return;
}
}
}
示例2: setSidePanelButtonsVisible
//Desc: sets side panel buttons to visible coresponding to top panel button pressed
//Pre: array of buttons
private void setSidePanelButtonsVisible(Button[] btns)
{
for(int i = 0; i<btns.Count(); i++)
{
btns[i].Visibility = Visibility.Visible;
}
}
示例3: setSidePanelButtons
//Desc: sets non clicked side panel buttons dark, sets pushed panel button light, sets page color to light, sets foregrounds
//Pre: array of buttons, button
private void setSidePanelButtons(Button[] darkBtns, Button lightBtn)
{
//sets pages to light backgroud color
pageload3_f.Background = getCurrentTopPanelButtonSolidColor();
for (int i = 0; i < darkBtns.Count(); i++)
{
darkBtns[i].Background = getWindowButtonDarkColor();
darkBtns[i].Foreground = Brushes.Black;
}
lightBtn.Background = getCurrentTopPanelButtonSolidColor();
lightBtn.Foreground = Brushes.White;
}
示例4: setSidePanelButtonsGenericColor
//Sets array of buttons generic
//Pre: array of buttons
private void setSidePanelButtonsGenericColor(Button[] btns)
{
for(int i = 0; i<btns.Count(); i++)
{
btns[i].Background = getWindowButtonGenericColor();
}
}
示例5: setSidePanelButtonForegroundBlack
//Descs: sets forground black
//Pre: array of buttons
private void setSidePanelButtonForegroundBlack(Button[] black)
{
for(int i = 0; i<black.Count(); i++)
{
black[i].Foreground = Brushes.Black;
}
}