Anchoring isofields has been added
This commit is contained in:
37
StructureHelper/Windows/Errors/ErrorMessage.xaml
Normal file
37
StructureHelper/Windows/Errors/ErrorMessage.xaml
Normal file
@@ -0,0 +1,37 @@
|
||||
<Window x:Class="StructureHelper.Windows.Errors.ErrorMessage"
|
||||
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:StructureHelper.Windows.Errors"
|
||||
xmlns:vm="clr-namespace:StructureHelper.Windows.ViewModels.Errors"
|
||||
d:DataContext="{d:DesignInstance vm:ErrorProcessor}"
|
||||
mc:Ignorable="d"
|
||||
Title="Error Message" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Width="500" Height="300">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<!--<Image Source="IconBug128.png"/>-->
|
||||
<TabControl Grid.Column="1" x:Name="tabControl">
|
||||
<TabItem Header="Short information" Margin="0">
|
||||
<Grid Background="#FFE5E5E5">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="50"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock x:Name="HeaderText" TextWrapping="Wrap" Text="Happened something wrong" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" FontWeight="Bold"/>
|
||||
<TextBlock Grid.Row="1" x:Name="MainText" TextWrapping="Wrap" Text="{Binding ShortText}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Detailed Information">
|
||||
<Grid Background="#FFE5E5E5">
|
||||
<ScrollViewer>
|
||||
<TextBlock x:Name="ExtendedText" TextWrapping="Wrap" Text="{Binding DetailText}"/>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Grid>
|
||||
</Window>
|
||||
31
StructureHelper/Windows/Errors/ErrorMessage.xaml.cs
Normal file
31
StructureHelper/Windows/Errors/ErrorMessage.xaml.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using StructureHelper.Windows.ViewModels.Errors;
|
||||
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;
|
||||
|
||||
namespace StructureHelper.Windows.Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Логика взаимодействия для ErrorMessage.xaml
|
||||
/// </summary>
|
||||
public partial class ErrorMessage : Window
|
||||
{
|
||||
ErrorProcessor vm;
|
||||
public ErrorMessage(ErrorProcessor errorProcessor)
|
||||
{
|
||||
vm = errorProcessor;
|
||||
this.DataContext = vm;
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user