Continuing work on help dialogs.

master
Sean McArdle 2017-03-24 10:54:48 -07:00
parent db55b6a73b
commit 46338490f7
3 changed files with 13 additions and 2 deletions

View File

@ -93,7 +93,9 @@ namespace WifiSitterGui
var stdMargin = new Thickness(0, 4, 0, 4);
// Status Help
var statusHelp = new View.HelpBubble();
var statusHelpTxt = "Shows the status of the WifiSitter " +
"service to aid in troubleshooting.";
var statusHelp = new View.HelpBubble(statusHelpTxt);
statusHelp.TriangleVirt(VerticalAlignment.Bottom);
statusHelp.HorizontalAlignment = HorizontalAlignment.Right;
statusHelp.Margin = stdMargin;

View File

@ -17,9 +17,12 @@
<Border Grid.Column="0"
BorderThickness="4"
Padding="8"
Padding="4"
BorderBrush="#007ACC"
Background="White">
<TextBlock x:Name="helpText"
TextWrapping="Wrap"
/>
</Border>
<Polygon x:Name="Arrow"

View File

@ -26,6 +26,12 @@ namespace WifiSitterGui.View
public void TriangleVirt(VerticalAlignment Pos) {
Arrow.VerticalAlignment = Pos;
}
public HelpBubble(string msg) {
InitializeComponent();
this.helpText.Text = msg;
}
}
}