New help window.

zmq
Sean McArdle 2016-12-29 11:31:34 -08:00
parent 3e2a387708
commit b5ffddbbc7
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<Window x:Class="WifiSitterGui.View.HelpWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WifiSitterGui.View"
mc:Ignorable="d"
Title="HelpWindow" Height="300" Width="300">
<Grid x:Name="Grid_Main">
</Grid>
</Window>

View File

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using WifiSitterGui.Helpers;
namespace WifiSitterGui.View
{
/// <summary>
/// Interaction logic for HelpWindow.xaml
/// </summary>
public partial class HelpWindow : Window
{
public HelpWindow() {
InitializeComponent();
}
public HelpWindow(Uri RtfContent) {
InitializeComponent();
var rtb = new RichTextBox();
rtb.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
rtb.Margin = new Thickness(10);
rtb.SetRtf(RtfContent);
rtb.ScrollToHome();
}
}
}