Skip to content

Commit 1a3a156

Browse files
committed
WIP
1 parent 4e54508 commit 1a3a156

40 files changed

+1846
-484
lines changed

.gitignore

+292-484
Large diffs are not rendered by default.

PrismHelperApp.sln

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30907.101
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PrismHelperApp", "PrismHelperApp\PrismHelperApp\PrismHelperApp.csproj", "{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PrismHelperApp.UWP", "PrismHelperApp\PrismHelperApp.UWP\PrismHelperApp.UWP.csproj", "{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfPrismFileAdjust", "WpfPrismFileAdjust\WpfPrismFileAdjust.csproj", "{0FE73570-D98D-44EA-9749-330804845071}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|Any CPU = Debug|Any CPU
15+
Debug|ARM = Debug|ARM
16+
Debug|x64 = Debug|x64
17+
Debug|x86 = Debug|x86
18+
Release|Any CPU = Release|Any CPU
19+
Release|ARM = Release|ARM
20+
Release|x64 = Release|x64
21+
Release|x86 = Release|x86
22+
EndGlobalSection
23+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
24+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Debug|Any CPU.Build.0 = Debug|Any CPU
26+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Debug|ARM.ActiveCfg = Debug|Any CPU
27+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Debug|ARM.Build.0 = Debug|Any CPU
28+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Debug|x64.ActiveCfg = Debug|Any CPU
29+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Debug|x64.Build.0 = Debug|Any CPU
30+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Debug|x86.ActiveCfg = Debug|Any CPU
31+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Debug|x86.Build.0 = Debug|Any CPU
32+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Release|ARM.ActiveCfg = Release|Any CPU
35+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Release|ARM.Build.0 = Release|Any CPU
36+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Release|x64.ActiveCfg = Release|Any CPU
37+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Release|x64.Build.0 = Release|Any CPU
38+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Release|x86.ActiveCfg = Release|Any CPU
39+
{B3B16F6D-FB7F-4727-9B65-DF5BF0C0D03B}.Release|x86.Build.0 = Release|Any CPU
40+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|Any CPU.ActiveCfg = Debug|x86
41+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|Any CPU.Build.0 = Debug|x86
42+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|Any CPU.Deploy.0 = Debug|x86
43+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|ARM.ActiveCfg = Debug|ARM
44+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|ARM.Build.0 = Debug|ARM
45+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|ARM.Deploy.0 = Debug|ARM
46+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|x64.ActiveCfg = Debug|x64
47+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|x64.Build.0 = Debug|x64
48+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|x64.Deploy.0 = Debug|x64
49+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|x86.ActiveCfg = Debug|x86
50+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|x86.Build.0 = Debug|x86
51+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Debug|x86.Deploy.0 = Debug|x86
52+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|Any CPU.ActiveCfg = Release|x86
53+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|ARM.ActiveCfg = Release|ARM
54+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|ARM.Build.0 = Release|ARM
55+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|ARM.Deploy.0 = Release|ARM
56+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|x64.ActiveCfg = Release|x64
57+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|x64.Build.0 = Release|x64
58+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|x64.Deploy.0 = Release|x64
59+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|x86.ActiveCfg = Release|x86
60+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|x86.Build.0 = Release|x86
61+
{5F4583FE-F9CD-483A-83D4-8DD5D147C0B0}.Release|x86.Deploy.0 = Release|x86
62+
{0FE73570-D98D-44EA-9749-330804845071}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63+
{0FE73570-D98D-44EA-9749-330804845071}.Debug|Any CPU.Build.0 = Debug|Any CPU
64+
{0FE73570-D98D-44EA-9749-330804845071}.Debug|ARM.ActiveCfg = Debug|Any CPU
65+
{0FE73570-D98D-44EA-9749-330804845071}.Debug|ARM.Build.0 = Debug|Any CPU
66+
{0FE73570-D98D-44EA-9749-330804845071}.Debug|x64.ActiveCfg = Debug|Any CPU
67+
{0FE73570-D98D-44EA-9749-330804845071}.Debug|x64.Build.0 = Debug|Any CPU
68+
{0FE73570-D98D-44EA-9749-330804845071}.Debug|x86.ActiveCfg = Debug|Any CPU
69+
{0FE73570-D98D-44EA-9749-330804845071}.Debug|x86.Build.0 = Debug|Any CPU
70+
{0FE73570-D98D-44EA-9749-330804845071}.Release|Any CPU.ActiveCfg = Release|Any CPU
71+
{0FE73570-D98D-44EA-9749-330804845071}.Release|Any CPU.Build.0 = Release|Any CPU
72+
{0FE73570-D98D-44EA-9749-330804845071}.Release|ARM.ActiveCfg = Release|Any CPU
73+
{0FE73570-D98D-44EA-9749-330804845071}.Release|ARM.Build.0 = Release|Any CPU
74+
{0FE73570-D98D-44EA-9749-330804845071}.Release|x64.ActiveCfg = Release|Any CPU
75+
{0FE73570-D98D-44EA-9749-330804845071}.Release|x64.Build.0 = Release|Any CPU
76+
{0FE73570-D98D-44EA-9749-330804845071}.Release|x86.ActiveCfg = Release|Any CPU
77+
{0FE73570-D98D-44EA-9749-330804845071}.Release|x86.Build.0 = Release|Any CPU
78+
EndGlobalSection
79+
GlobalSection(SolutionProperties) = preSolution
80+
HideSolutionNode = FALSE
81+
EndGlobalSection
82+
GlobalSection(ExtensibilityGlobals) = postSolution
83+
SolutionGuid = {C8843311-5547-49B9-91C6-B5E0EA0C0FB6}
84+
EndGlobalSection
85+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Application
2+
x:Class="PrismHelperApp.UWP.App"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:local="using:PrismHelperApp.UWP"
6+
RequestedTheme="Light">
7+
8+
</Application>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Runtime.InteropServices.WindowsRuntime;
6+
using Windows.ApplicationModel;
7+
using Windows.ApplicationModel.Activation;
8+
using Windows.Foundation;
9+
using Windows.Foundation.Collections;
10+
using Windows.UI.Xaml;
11+
using Windows.UI.Xaml.Controls;
12+
using Windows.UI.Xaml.Controls.Primitives;
13+
using Windows.UI.Xaml.Data;
14+
using Windows.UI.Xaml.Input;
15+
using Windows.UI.Xaml.Media;
16+
using Windows.UI.Xaml.Navigation;
17+
18+
namespace PrismHelperApp.UWP
19+
{
20+
/// <summary>
21+
/// Provides application-specific behavior to supplement the default Application class.
22+
/// </summary>
23+
sealed partial class App : Application
24+
{
25+
/// <summary>
26+
/// Initializes the singleton application object. This is the first line of authored code
27+
/// executed, and as such is the logical equivalent of main() or WinMain().
28+
/// </summary>
29+
public App()
30+
{
31+
this.InitializeComponent();
32+
this.Suspending += OnSuspending;
33+
}
34+
35+
/// <summary>
36+
/// Invoked when the application is launched normally by the end user. Other entry points
37+
/// will be used such as when the application is launched to open a specific file.
38+
/// </summary>
39+
/// <param name="e">Details about the launch request and process.</param>
40+
protected override void OnLaunched(LaunchActivatedEventArgs e)
41+
{
42+
43+
44+
Frame rootFrame = Window.Current.Content as Frame;
45+
46+
// Do not repeat app initialization when the Window already has content,
47+
// just ensure that the window is active
48+
if (rootFrame == null)
49+
{
50+
// Create a Frame to act as the navigation context and navigate to the first page
51+
rootFrame = new Frame();
52+
53+
rootFrame.NavigationFailed += OnNavigationFailed;
54+
55+
Xamarin.Forms.Forms.Init(e);
56+
57+
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
58+
{
59+
//TODO: Load state from previously suspended application
60+
}
61+
62+
// Place the frame in the current Window
63+
Window.Current.Content = rootFrame;
64+
}
65+
66+
if (rootFrame.Content == null)
67+
{
68+
// When the navigation stack isn't restored navigate to the first page,
69+
// configuring the new page by passing required information as a navigation
70+
// parameter
71+
rootFrame.Navigate(typeof(MainPage), e.Arguments);
72+
}
73+
// Ensure the current window is active
74+
Window.Current.Activate();
75+
}
76+
77+
/// <summary>
78+
/// Invoked when Navigation to a certain page fails
79+
/// </summary>
80+
/// <param name="sender">The Frame which failed navigation</param>
81+
/// <param name="e">Details about the navigation failure</param>
82+
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
83+
{
84+
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
85+
}
86+
87+
/// <summary>
88+
/// Invoked when application execution is being suspended. Application state is saved
89+
/// without knowing whether the application will be terminated or resumed with the contents
90+
/// of memory still intact.
91+
/// </summary>
92+
/// <param name="sender">The source of the suspend request.</param>
93+
/// <param name="e">Details about the suspend request.</param>
94+
private void OnSuspending(object sender, SuspendingEventArgs e)
95+
{
96+
var deferral = e.SuspendingOperation.GetDeferral();
97+
//TODO: Save application state and stop any background activity
98+
deferral.Complete();
99+
}
100+
}
101+
}
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<forms:WindowsPage
2+
x:Class="PrismHelperApp.UWP.MainPage"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:forms="using:Xamarin.Forms.Platform.UWP"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6+
xmlns:local="using:PrismHelperApp.UWP"
7+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
8+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9+
mc:Ignorable="d"
10+
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
11+
12+
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
13+
14+
</Grid>
15+
</forms:WindowsPage>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using Prism;
2+
using Prism.Ioc;
3+
using PrismHelperApp.Services;
4+
using PrismHelperApp.UWP.Services;
5+
using System;
6+
using System.Collections.Generic;
7+
using System.IO;
8+
using System.Linq;
9+
using System.Runtime.InteropServices.WindowsRuntime;
10+
using Windows.Foundation;
11+
using Windows.Foundation.Collections;
12+
using Windows.UI.Xaml;
13+
using Windows.UI.Xaml.Controls;
14+
using Windows.UI.Xaml.Controls.Primitives;
15+
using Windows.UI.Xaml.Data;
16+
using Windows.UI.Xaml.Input;
17+
using Windows.UI.Xaml.Media;
18+
using Windows.UI.Xaml.Navigation;
19+
20+
namespace PrismHelperApp.UWP
21+
{
22+
public sealed partial class MainPage
23+
{
24+
public MainPage()
25+
{
26+
this.InitializeComponent();
27+
28+
LoadApplication(new PrismHelperApp.App(new UwpInitializer()));
29+
}
30+
}
31+
32+
public class UwpInitializer : IPlatformInitializer
33+
{
34+
public void RegisterTypes(IContainerRegistry containerRegistry)
35+
{
36+
containerRegistry.RegisterSingleton<IDirectoryService, UWPDirectoryService>();
37+
// Register any platform specific implementations
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Package IgnorableNamespaces="uap mp rescap" xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:uap4="http://schemas.microsoft.com/appx/manifest/uap/windows10/4" xmlns:uap2="http://schemas.microsoft.com/appx/manifest/uap/windows10/2">
3+
<Identity Name="31e6402e-0407-4419-a6c3-7c6d18576017" Publisher="CN=BLagunas" Version="1.0.0.0" />
4+
<mp:PhoneIdentity PhoneProductId="31e6402e-0407-4419-a6c3-7c6d18576017" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
5+
6+
<Properties>
7+
<DisplayName>PrismHelperApp</DisplayName>
8+
<PublisherDisplayName>BLagunas</PublisherDisplayName>
9+
<Logo>Assets\StoreLogo.png</Logo>
10+
</Properties>
11+
<Dependencies>
12+
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
13+
</Dependencies>
14+
<Resources>
15+
<Resource Language="x-generate" />
16+
</Resources>
17+
<Applications>
18+
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="App1.App">
19+
<uap:VisualElements DisplayName="App1" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="App1" BackgroundColor="transparent">
20+
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
21+
</uap:DefaultTile>
22+
<uap:SplashScreen Image="Assets\SplashScreen.png" />
23+
</uap:VisualElements>
24+
</Application>
25+
</Applications>
26+
<Capabilities>
27+
<rescap:Capability Name="broadFileSystemAccess" />
28+
<Capability Name="internetClient" />
29+
<iot:Capability Name="systemManagement"/>
30+
<uap:Capability Name="removableStorage"/>
31+
<uap3:Capability Name="remoteSystem"/>
32+
<Capability Name="allJoyn"/>
33+
<iot:Capability Name="lowLevelDevices"/>
34+
<uap4:Capability Name="userDataTasks"/>
35+
<Capability Name="internetClientServer"/>
36+
<uap:Capability Name="appointments"/>
37+
<uap3:Capability Name="backgroundMediaPlayback"/>
38+
<uap:Capability Name="blockedChatMessages"/>
39+
<uap:Capability Name="chat"/>
40+
<Capability Name="codeGeneration"/>
41+
<uap:Capability Name="contacts"/>
42+
<uap:Capability Name="enterpriseAuthentication"/>
43+
<uap:Capability Name="musicLibrary"/>
44+
<uap:Capability Name="objects3D"/>
45+
<uap4:Capability Name="offlineMapsManagement"/>
46+
<uap:Capability Name="phoneCall"/>
47+
<uap2:Capability Name="phoneCallHistoryPublic"/>
48+
<uap:Capability Name="picturesLibrary"/>
49+
<Capability Name="privateNetworkClientServer"/>
50+
<uap:Capability Name="sharedUserCertificates"/>
51+
<uap2:Capability Name="spatialPerception"/>
52+
<uap:Capability Name="userAccountInformation"/>
53+
<uap3:Capability Name="userNotificationListener"/>
54+
<uap:Capability Name="videosLibrary"/>
55+
<uap:Capability Name="voipCall"/>
56+
<DeviceCapability Name="lowLevel"/>
57+
<DeviceCapability Name="bluetooth"/>
58+
<DeviceCapability Name="location"/>
59+
<DeviceCapability Name="microphone"/>
60+
<DeviceCapability Name="pointOfService"/>
61+
<DeviceCapability Name="proximity"/>
62+
<DeviceCapability Name="webcam"/>
63+
</Capabilities>
64+
</Package>

0 commit comments

Comments
 (0)