Created TextViewer

This commit is contained in:
erri120 2019-10-11 14:57:30 +02:00
parent ed3b46e99b
commit 9b428aefdc
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<Window x:Class="Wabbajack.UI.TextViewer"
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:Wabbajack.UI"
Style="{StaticResource {x:Type Window}}"
mc:Ignorable="d"
Icon="Icons/wabbajack.ico"
WindowStyle="ToolWindow"
Title="TextViewer" Height="450" Width="800">
<Grid>
<TextBlock FontSize="20" Name="TextBlock" TextWrapping="Wrap"/>
<!--<RichTextBox FontSize="15" Name="RichTextBox" AllowDrop="False" IsReadOnly="True"/>-->
</Grid>
</Window>

View File

@ -0,0 +1,16 @@
using System;
using System.Windows;
using System.Windows.Documents;
namespace Wabbajack.UI
{
public partial class TextViewer : Window
{
public TextViewer(string text)
{
InitializeComponent();
TextBlock.Text = text;
}
}
}

View File

@ -198,6 +198,9 @@
<Compile Include="Themes\LeftMarginMultiplierConverter.cs" />
<Compile Include="Themes\TreeViewItemExtensions.cs" />
<Compile Include="UI\SlideShow.cs" />
<Compile Include="UI\TextViewer.xaml.cs">
<DependentUpon>TextViewer.xaml</DependentUpon>
</Compile>
<Compile Include="UI\UIUtils.cs" />
<Compile Include="Updater\CheckForUpdates.cs" />
<Compile Include="Validation\DTOs.cs" />
@ -232,6 +235,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="UI\TextViewer.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="NexusApi\NexusApi.cs" />