When writing in CSS I can add a class of \"badge\" and get what I want. A small number near a button or tab with some styling to it, to show that this control has pending in
Really the easiest and best way to achieve this is to create a new customized UserControl
. Just add a button and insert a label over it on the right. Then add getters
and setters
for the controls inside you new UserControl
. Here's an example of get/set to configure the button's notification:
public String ButtonNotification {
get { return yourUserControlLabel.Text; }
set {
if (value == null || value == "") { yourUserControlLabel.Visibility = Hidden; }
else { yourUserControlLabel.Visibility = Visible; }
yourUserControlLabel.Text = value;
}
}
Then you can customize the label's visibility and other properties with the getters/setters.