Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,110 changes: 1,034 additions & 76 deletions FlowBoard/App.xaml

Large diffs are not rendered by default.

22 changes: 20 additions & 2 deletions FlowBoard/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
using System;
using Microsoft.Toolkit.Uwp.Helpers;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
Expand Down Expand Up @@ -30,7 +33,15 @@ public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
UnhandledException += OnUnhandledException;
TaskScheduler.UnobservedTaskException += OnUnobservedException;
AppDomain.CurrentDomain.FirstChanceException += CurrentDomain_FirstChanceException;
}
private static void OnUnobservedException(object sender, UnobservedTaskExceptionEventArgs e) => e.SetObserved();

private static void OnUnhandledException(object sender, Windows.UI.Xaml.UnhandledExceptionEventArgs e) => e.Handled = true;

private void CurrentDomain_FirstChanceException(object sender, FirstChanceExceptionEventArgs e) { }

/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
Expand Down Expand Up @@ -66,7 +77,14 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame.Navigate(typeof(MainPage), e.Arguments);
if (SystemInformation.Instance.IsAppUpdated || SystemInformation.Instance.IsFirstRun)
{
rootFrame.Navigate(typeof(ChangeLog), e.Arguments);
}
else
{
rootFrame.Navigate(typeof(HomePage), e.Arguments);
}
}
// Ensure the current window is active
Window.Current.Activate();
Expand Down
Binary file modified FlowBoard/Assets/LargeTile.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/LargeTile.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/LargeTile.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/LargeTile.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/LargeTile.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SmallTile.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SmallTile.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SmallTile.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SmallTile.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SmallTile.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SplashScreen.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SplashScreen.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SplashScreen.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/SplashScreen.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/Square150x150Logo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/Square150x150Logo.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/Square150x150Logo.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/Square150x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/Square150x150Logo.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified FlowBoard/Assets/Square44x44Logo.altform-unplated_targetsize-48.png
Binary file modified FlowBoard/Assets/Square44x44Logo.scale-100.png
Binary file modified FlowBoard/Assets/Square44x44Logo.scale-125.png
Binary file modified FlowBoard/Assets/Square44x44Logo.scale-150.png
Binary file modified FlowBoard/Assets/Square44x44Logo.scale-200.png
Binary file modified FlowBoard/Assets/Square44x44Logo.scale-400.png
Binary file modified FlowBoard/Assets/Square44x44Logo.targetsize-16.png
Binary file modified FlowBoard/Assets/Square44x44Logo.targetsize-24.png
Binary file modified FlowBoard/Assets/Square44x44Logo.targetsize-256.png
Binary file modified FlowBoard/Assets/Square44x44Logo.targetsize-32.png
Binary file modified FlowBoard/Assets/Square44x44Logo.targetsize-48.png
Binary file modified FlowBoard/Assets/StoreLogo.scale-100.png
Binary file modified FlowBoard/Assets/StoreLogo.scale-125.png
Binary file modified FlowBoard/Assets/StoreLogo.scale-150.png
Binary file modified FlowBoard/Assets/StoreLogo.scale-200.png
Binary file modified FlowBoard/Assets/StoreLogo.scale-400.png
Binary file modified FlowBoard/Assets/Wide310x150Logo.scale-100.png
Binary file modified FlowBoard/Assets/Wide310x150Logo.scale-125.png
Binary file modified FlowBoard/Assets/Wide310x150Logo.scale-150.png
Binary file modified FlowBoard/Assets/Wide310x150Logo.scale-200.png
Binary file modified FlowBoard/Assets/Wide310x150Logo.scale-400.png
75 changes: 75 additions & 0 deletions FlowBoard/ChangeLog.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<Page
x:Class="FlowBoard.ChangeLog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:FlowBoard"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:Icons="using:Fluent.Icons"
xmlns:toolkit="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:Materials="using:FlowBoard.Materials"
xmlns:helpers="using:FlowBoard.Helpers" xmlns:controls="using:FlowBoard.Controls"
muxc:BackdropMaterial.ApplyToRootOrPageBackground="True"
mc:Ignorable="d">

<Grid>
<Border x:Name="AppTitleBar"
IsHitTestVisible="True"
VerticalAlignment="Top"
Background="Transparent"
Height="40"
Canvas.ZIndex="1"
Margin="12,0,0,0">
<StackPanel Orientation="Horizontal">
<Image x:Name="AppFontIcon"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Source="Assets/Square44x44Logo.png"
Width="16"
Height="16"/>
<TextBlock x:Name="AppTitle"
Text="Changelog - FlowBoard FireCube's Edition PRE-RELEASE"
VerticalAlignment="Center"
Margin="12, 0, 0, 0"
Style="{StaticResource CaptionTextBlockStyle}" />
</StackPanel>
</Border>
<toolkit:DropShadowPanel Canvas.ZIndex="3" ShadowOpacity="0.4" OffsetX="4" CornerRadius="8" OffsetY="4" HorizontalAlignment="center" VerticalAlignment="Center">
<Grid BorderBrush="{ThemeResource MicaBorderBrush}" Background="{ThemeResource 1cBrush}" CornerRadius="8" BorderThickness="1" HorizontalAlignment="center" VerticalAlignment="Center">
<muxc:ProgressRing x:Name="Ring" IsActive="True" Visibility="Collapsed" Height="40" Width="40" HorizontalAlignment="Center" VerticalAlignment="Center" Canvas.ZIndex="2"/>
<StackPanel x:Name="Content" HorizontalAlignment="center" VerticalAlignment="Center" Padding="16">
<TextBlock FontSize="24" FontWeight="SemiBold" Margin="0, 0, 0, -4">Changelog PRE-RELEASE:</TextBlock>
<TextBlock TextWrapping="WrapWholeWords" Width="300"> <LineBreak/>
<Bold>Fixes and Features: </Bold>
<LineBreak/>
✓ Added keyboard shortcuts
<LineBreak/>
✓ Added onboarding process
<LineBreak/>
✓ Fixed app not closing
<LineBreak/>
✓ Fixed rename feature
<LineBreak/>
✓ visual fixes
<LineBreak/>
<LineBreak/>
<Bold>Known issues: </Bold>
<LineBreak/>
⛌ Jumplist missing
<LineBreak/>
⛌ Selection tool primary click
<LineBreak/>
⛌ Deleting pens
<LineBreak/>
⛌ Selecting pen does not disable eraser
<LineBreak/>
⛌ Windows 10 pens selected visual bug
</TextBlock>
<Button HorizontalAlignment="Right" Width="80" Click="Continue_Click" Margin="0, 12, 0, 0">Continue</Button>
</StackPanel>
</Grid>
</toolkit:DropShadowPanel>
<Materials:AuroraLite/>
</Grid>
</Page>
48 changes: 48 additions & 0 deletions FlowBoard/ChangeLog.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
using FlowBoard.Services;
using Microsoft.Toolkit.Uwp.Helpers;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238

namespace FlowBoard
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class ChangeLog : Page
{
public ChangeLog()
{
this.InitializeComponent();
WindowService.Initialize(AppTitleBar);
}

private void Continue_Click(object sender, RoutedEventArgs e)
{
Ring.Visibility = Visibility.Visible;
Content.Opacity = 0;
Frame rootFrame = Window.Current.Content as Frame;
if (SystemInformation.Instance.IsFirstRun)
{
rootFrame.Navigate(typeof(OOBEPage));
}
else
{
rootFrame.Navigate(typeof(HomePage));
}
}
}
}
16 changes: 16 additions & 0 deletions FlowBoard/Classes/ActionType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlowBoard.Classes
{
public enum ActionType
{
StrokeCollected,
StrokeErased,
StrokePortionErased,
StrokeMoved
}
}
19 changes: 19 additions & 0 deletions FlowBoard/Classes/FileClass.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.UI;
using Windows.UI.Input.Inking;

namespace FlowBoard.Classes
{
public class FileClass
{
public List<FileInkStroke> InkStrokes { get; set; }
public Color CanvasColor { get; set; }
public int Version { get; set; }
}
}
18 changes: 18 additions & 0 deletions FlowBoard/Classes/FileInkPoint.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation;

namespace FlowBoard.Classes
{
public class FileInkPoint
{
public float Pressure { get; set; }
public float TiltX { get; set; }
public float TiltY { get; set; }
public Point Position { get; set; }
public ulong TimeStamp { get; set; }
}
}
23 changes: 23 additions & 0 deletions FlowBoard/Classes/FileInkStroke.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.UI;

namespace FlowBoard.Classes
{
public class FileInkStroke
{
public Color Color { get; set; }
public bool DrawAsHighlighter { get; set; }
public bool IgnorePressure { get; set; }
public bool IgnoreTilt { get; set; }
public bool IsPenTipCircle { get; set; }
public List<FileInkPoint> InkPoints { get; set; }
public Size Size { get; set; }
public Matrix3x2 PointTransform { get; set; }
}
}
24 changes: 24 additions & 0 deletions FlowBoard/Classes/ProjectClass.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Windows.Storage;

namespace FlowBoard.Classes
{
public class ProjectClass
{
public FileClass File { get; set; }
public string Name { get; set; }
public StorageFile RawFile { get; set; }

public ProjectClass(string name)
{
Name = name;
File = new FileClass();
RawFile = null;
}
}
}
29 changes: 29 additions & 0 deletions FlowBoard/Classes/StrokeAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Input.Inking;

namespace FlowBoard.Classes
{
public class StrokeAction
{
public ActionType Type { get; set; }
public InkStroke Stroke { get; set; }
public int DeletedIndex { get; set; }

public StrokeAction(ActionType _Type, InkStroke _Stroke)
{
Type = _Type;
Stroke = _Stroke;
}

public StrokeAction(ActionType _Type, InkStroke _Stroke, int _Index)
{
Type = _Type;
Stroke = _Stroke;
DeletedIndex = _Index;
}
}
}
26 changes: 26 additions & 0 deletions FlowBoard/Classes/StrokeMovedAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.UI.Input.Inking;

namespace FlowBoard.Classes
{
public class StrokeMovedAction
{
public ActionType Type = ActionType.StrokeMoved;
public List<InkStroke> MovedStrokes { get; set; }
public Point Transform;
public Point InverseTransform;

public StrokeMovedAction(List<InkStroke> _MovedStroke, Point _Transform)
{
MovedStrokes = _MovedStroke;
Transform = _Transform;
InverseTransform = new Point(-_Transform.X, -_Transform.Y);
}
}
}
Loading