diff --git a/DateiExplorer/DateiExplorer.sln b/DateiExplorer/DateiExplorer.sln new file mode 100644 index 0000000..6b24014 --- /dev/null +++ b/DateiExplorer/DateiExplorer.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DateiExplorer", "DateiExplorer\DateiExplorer.csproj", "{29963948-8A1A-4B4F-A309-9947DAF67458}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {29963948-8A1A-4B4F-A309-9947DAF67458}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {29963948-8A1A-4B4F-A309-9947DAF67458}.Debug|Any CPU.Build.0 = Debug|Any CPU + {29963948-8A1A-4B4F-A309-9947DAF67458}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {29963948-8A1A-4B4F-A309-9947DAF67458}.Release|Any CPU.ActiveCfg = Release|Any CPU + {29963948-8A1A-4B4F-A309-9947DAF67458}.Release|Any CPU.Build.0 = Release|Any CPU + {29963948-8A1A-4B4F-A309-9947DAF67458}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/DateiExplorer/DateiExplorer/App.xaml b/DateiExplorer/DateiExplorer/App.xaml new file mode 100644 index 0000000..f92310d --- /dev/null +++ b/DateiExplorer/DateiExplorer/App.xaml @@ -0,0 +1,19 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/DateiExplorer/DateiExplorer/App.xaml.cs b/DateiExplorer/DateiExplorer/App.xaml.cs new file mode 100644 index 0000000..fdc2aa2 --- /dev/null +++ b/DateiExplorer/DateiExplorer/App.xaml.cs @@ -0,0 +1,142 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Navigation; +using System.Windows.Shapes; +using Microsoft.Phone.Controls; +using Microsoft.Phone.Shell; + +namespace DateiExplorer +{ + public partial class App : Application + { + /// + /// Bietet einen einfachen Zugriff auf den Stammframe der Phone-Anwendung. + /// + /// Der Stammframe der Phone-Anwendung. + public PhoneApplicationFrame RootFrame { get; private set; } + + /// + /// Konstruktor für das Application-Objekt. + /// + public App() + { + // Globaler Handler für nicht abgefangene Ausnahmen. + UnhandledException += Application_UnhandledException; + + // Silverlight-Standardinitialisierung + InitializeComponent(); + + // Phone-spezifische Initialisierung + InitializePhoneApplication(); + + // Während des Debuggens Profilerstellungsinformationen zur Grafikleistung anzeigen. + if (System.Diagnostics.Debugger.IsAttached) + { + // Zähler für die aktuelle Bildrate anzeigen. + Application.Current.Host.Settings.EnableFrameRateCounter = true; + + // Bereiche der Anwendung hervorheben, die mit jedem Bild neu gezeichnet werden. + //Application.Current.Host.Settings.EnableRedrawRegions = true; + + // Nicht produktiven Visualisierungsmodus für die Analyse aktivieren, + // in dem Bereiche einer Seite angezeigt werden, die mit einer Farbüberlagerung an die GPU übergeben wurden. + //Application.Current.Host.Settings.EnableCacheVisualization = true; + + // Deaktivieren Sie die Leerlauferkennung der Anwendung, indem Sie die UserIdleDetectionMode-Eigenschaft des + // PhoneApplicationService-Objekts der Anwendung auf "Disabled" festlegen. + // Vorsicht: Nur im Debugmodus verwenden. Eine Anwendung mit deaktivierter Benutzerleerlauferkennung wird weiterhin ausgeführt + // und verbraucht auch dann Akkuenergie, wenn der Benutzer das Handy nicht verwendet. + PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; + } + + } + + // Code, der beim Starten der Anwendung ausgeführt werden soll (z. B. über "Start") + // Dieser Code wird beim Reaktivieren der Anwendung nicht ausgeführt + private void Application_Launching(object sender, LaunchingEventArgs e) + { + } + + // Code, der ausgeführt werden soll, wenn die Anwendung aktiviert wird (in den Vordergrund gebracht wird) + // Dieser Code wird beim ersten Starten der Anwendung nicht ausgeführt + private void Application_Activated(object sender, ActivatedEventArgs e) + { + } + + // Code, der ausgeführt werden soll, wenn die Anwendung deaktiviert wird (in den Hintergrund gebracht wird) + // Dieser Code wird beim Schließen der Anwendung nicht ausgeführt + private void Application_Deactivated(object sender, DeactivatedEventArgs e) + { + } + + // Code, der beim Schließen der Anwendung ausgeführt wird (z. B. wenn der Benutzer auf "Zurück" klickt) + // Dieser Code wird beim Deaktivieren der Anwendung nicht ausgeführt + private void Application_Closing(object sender, ClosingEventArgs e) + { + } + + // Code, der bei einem Navigationsfehler ausgeführt wird + private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) + { + if (System.Diagnostics.Debugger.IsAttached) + { + // Navigationsfehler. Unterbrechen und Debugger öffnen + System.Diagnostics.Debugger.Break(); + } + } + + // Code, der bei nicht behandelten Ausnahmen ausgeführt wird + private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) + { + if (System.Diagnostics.Debugger.IsAttached) + { + // Eine nicht behandelte Ausnahme ist aufgetreten. Unterbrechen und Debugger öffnen + System.Diagnostics.Debugger.Break(); + } + } + + #region Initialisierung der Phone-Anwendung + + // Doppelte Initialisierung vermeiden + private bool phoneApplicationInitialized = false; + + // Fügen Sie keinen zusätzlichen Code zu dieser Methode hinzu + private void InitializePhoneApplication() + { + if (phoneApplicationInitialized) + return; + + // Frame erstellen, aber noch nicht als RootVisual festlegen. Dadurch kann der Begrüßungsbildschirm + // aktiv bleiben, bis die Anwendung bereit für das Rendern ist. + RootFrame = new PhoneApplicationFrame(); + RootFrame.Navigated += CompleteInitializePhoneApplication; + + // Navigationsfehler behandeln + RootFrame.NavigationFailed += RootFrame_NavigationFailed; + + // Sicherstellen, dass keine erneute Initialisierung erfolgt + phoneApplicationInitialized = true; + } + + // Fügen Sie keinen zusätzlichen Code zu dieser Methode hinzu + private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e) + { + // Visuelle Stammkomponente festlegen, sodass die Anwendung gerendert werden kann + if (RootVisual != RootFrame) + RootVisual = RootFrame; + + // Dieser Handler wird nicht mehr benötigt und kann entfernt werden + RootFrame.Navigated -= CompleteInitializePhoneApplication; + } + + #endregion + } +} \ No newline at end of file diff --git a/DateiExplorer/DateiExplorer/ApplicationIcon.png b/DateiExplorer/DateiExplorer/ApplicationIcon.png new file mode 100644 index 0000000..5859393 Binary files /dev/null and b/DateiExplorer/DateiExplorer/ApplicationIcon.png differ diff --git a/DateiExplorer/DateiExplorer/Background.png b/DateiExplorer/DateiExplorer/Background.png new file mode 100644 index 0000000..e46f21d Binary files /dev/null and b/DateiExplorer/DateiExplorer/Background.png differ diff --git a/DateiExplorer/DateiExplorer/DateiExplorer.csproj b/DateiExplorer/DateiExplorer/DateiExplorer.csproj new file mode 100644 index 0000000..fae8879 --- /dev/null +++ b/DateiExplorer/DateiExplorer/DateiExplorer.csproj @@ -0,0 +1,105 @@ + + + + Debug + AnyCPU + 10.0.20506 + 2.0 + {29963948-8A1A-4B4F-A309-9947DAF67458} + {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + DateiExplorer + DateiExplorer + v4.0 + $(TargetFrameworkVersion) + WindowsPhone71 + Silverlight + true + + + true + true + DateiExplorer.xap + Properties\AppManifest.xml + DateiExplorer.App + true + true + + + true + full + false + Bin\Debug + DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + pdbonly + true + Bin\Release + TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + + + + + + + + + + + + App.xaml + + + MainPage.xaml + + + + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + + + + + + + PreserveNewest + + + PreserveNewest + + + + + + + + + + + \ No newline at end of file diff --git a/DateiExplorer/DateiExplorer/DateiExplorer.csproj.user b/DateiExplorer/DateiExplorer/DateiExplorer.csproj.user new file mode 100644 index 0000000..0140cb8 --- /dev/null +++ b/DateiExplorer/DateiExplorer/DateiExplorer.csproj.user @@ -0,0 +1,12 @@ + + + + + + + False + + + + + \ No newline at end of file diff --git a/DateiExplorer/DateiExplorer/FileSystem.dll b/DateiExplorer/DateiExplorer/FileSystem.dll new file mode 100644 index 0000000..c7d082e Binary files /dev/null and b/DateiExplorer/DateiExplorer/FileSystem.dll differ diff --git a/DateiExplorer/DateiExplorer/MainPage.xaml b/DateiExplorer/DateiExplorer/MainPage.xaml new file mode 100644 index 0000000..d031e8d --- /dev/null +++ b/DateiExplorer/DateiExplorer/MainPage.xaml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + +