Continuing work on help dialogs.
parent
db55b6a73b
commit
46338490f7
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -26,6 +26,12 @@ namespace WifiSitterGui.View
|
|||
public void TriangleVirt(VerticalAlignment Pos) {
|
||||
Arrow.VerticalAlignment = Pos;
|
||||
}
|
||||
|
||||
public HelpBubble(string msg) {
|
||||
InitializeComponent();
|
||||
|
||||
this.helpText.Text = msg;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue