|
| 1 | +<UserControl x:Class="SyncPlayWPF.Pages.ApplicationPages.ExceptionView" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:local="clr-namespace:SyncPlayWPF.Pages.ApplicationPages" |
| 7 | + mc:Ignorable="d" |
| 8 | + d:DesignHeight="450" d:DesignWidth="800"> |
| 9 | + <UserControl.Resources> |
| 10 | + <ResourceDictionary Source="../../Themes/Generic.xaml"/> |
| 11 | + </UserControl.Resources> |
| 12 | + <Border Background="{StaticResource DarkMode_AccentColorJ}"> |
| 13 | + |
| 14 | + <Grid Margin="25, 10, 25, 10" x:Name="ContainerGrid"> |
| 15 | + |
| 16 | + <Grid.RowDefinitions> |
| 17 | + <RowDefinition Height="auto"/> |
| 18 | + <RowDefinition Height="auto"/> |
| 19 | + <RowDefinition Height="*"/> |
| 20 | + <RowDefinition Height="auto"/> |
| 21 | + </Grid.RowDefinitions> |
| 22 | + |
| 23 | + <TextBlock |
| 24 | + Grid.Row="0" |
| 25 | + Text="ಠ╭╮ಠ" |
| 26 | + FontSize="50" |
| 27 | + Margin="10,0,0,0" |
| 28 | + Foreground="{StaticResource DarkMode_TextColorA}"> |
| 29 | + <TextBlock.Effect> |
| 30 | + <DropShadowEffect BlurRadius="10" ShadowDepth="0" Opacity="1"/> |
| 31 | + </TextBlock.Effect> |
| 32 | + </TextBlock> |
| 33 | + |
| 34 | + <TextBlock |
| 35 | + Grid.Row="1" |
| 36 | + Text="Whoops. It would seem that you have come across an excpetion. So you have two options. You can ignore the exception and continue with normal usage, or you can submit the following stack trace and help us to make SyncPlay.NET better" |
| 37 | + TextWrapping="WrapWithOverflow" |
| 38 | + FontSize="15" |
| 39 | + Margin="0,10,0,0" |
| 40 | + Foreground="{StaticResource DarkMode_TextColorF}"/> |
| 41 | + |
| 42 | + <Border |
| 43 | + Background="{StaticResource DarkMode_AccentColorE}" |
| 44 | + CornerRadius="10" |
| 45 | + Margin="0,15,0,0" |
| 46 | + Width="{Binding ElementName=ContainerGrid, Path=ActualWidth, Converter={StaticResource PercentageConverter}, ConverterParameter='0.9'}" |
| 47 | + Padding="10" |
| 48 | + Grid.Row="2"> |
| 49 | + |
| 50 | + <ScrollViewer Style="{StaticResource FavsScrollViewer}"> |
| 51 | + <TextBox |
| 52 | + x:Name="ExceptionDetails" |
| 53 | + Background="Transparent" |
| 54 | + Margin="0,0,10,0" |
| 55 | + Foreground="Black" |
| 56 | + BorderThickness="0" |
| 57 | + Text="Test Exception
 |
| 58 | + at SyncPlayWPF.Pages.SessionLandingPage.ToggleSidePanel(Object sender, RoutedEventArgs e) in D:\GitHub\SyncPlayWPF\SyncPlayWPF\SyncPlayWPF\Pages\SessionLandingPage.xaml.cs:line 37
 |
| 59 | + at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 |
| 60 | + at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 |
| 61 | + at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
 |
| 62 | + at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
 |
| 63 | + at System.Windows.Controls.Primitives.ButtonBase.OnClick()
 |
| 64 | + at System.Windows.Controls.Button.OnClick()
 |
| 65 | + at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
 |
| 66 | + at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
 |
| 67 | + at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 |
| 68 | + at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 |
| 69 | + at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 |
| 70 | + at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 |
| 71 | + at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
 |
| 72 | + at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
 |
| 73 | + at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 |
| 74 | + at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 |
| 75 | + at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 |
| 76 | + at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 |
| 77 | + at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
 |
| 78 | + at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
 |
| 79 | + at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
 |
| 80 | + at System.Windows.Input.InputManager.ProcessStagingArea()
 |
| 81 | + at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
 |
| 82 | + at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
 |
| 83 | + at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
 |
| 84 | + at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean handled)
 |
| 85 | + at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean handled)
 |
| 86 | + at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean handled)
 |
| 87 | + at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 |
| 88 | + at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 |
| 89 | + at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)"/> |
| 90 | + </ScrollViewer> |
| 91 | + </Border> |
| 92 | + |
| 93 | + <StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Center" > |
| 94 | + <Button Margin="2,6,2,0" Style="{StaticResource GenericPrimaryActionButton}" Width="125" Content="Submit Exception"/> |
| 95 | + <Button Margin="2,6,2,0" Style="{StaticResource GenericPrimaryActionButton}" Width="125" Content="Submit new Issue"/> |
| 96 | + <Button Margin="2,6,2,0" Style="{StaticResource GenericPrimaryActionButton}" Width="125" Content="Close"/> |
| 97 | + </StackPanel> |
| 98 | + |
| 99 | + </Grid> |
| 100 | + |
| 101 | + </Border> |
| 102 | + |
| 103 | +</UserControl> |
0 commit comments