├── SlimSocial for Facebook ├── _pkginfo.txt ├── GlobalSuppressions.cs ├── Assets │ ├── StoreLogo.scale-100.png │ ├── StoreLogo.scale-200.png │ ├── StoreLogo.scale-400.png │ ├── Square44x44Logo.scale-100.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.scale-400.png │ ├── Square71x71Logo.scale-100.png │ ├── Square71x71Logo.scale-200.png │ ├── Square71x71Logo.scale-400.png │ ├── Wide310x150Logo.scale-100.png │ ├── Wide310x150Logo.scale-200.png │ ├── Wide310x150Logo.scale-400.png │ ├── Square150x150Logo.scale-100.png │ ├── Square150x150Logo.scale-200.png │ └── Square150x150Logo.scale-400.png ├── App.xaml ├── project.json ├── UserAgentHelper.cs ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml ├── Package.appxmanifest ├── MainPage.xaml ├── App.xaml.cs ├── SettingPage.xaml.cs ├── SettingPage.xaml ├── SlimSocial for Facebook.csproj ├── Strings │ ├── en-US │ │ └── Resources.resw │ ├── it-IT │ │ └── Resources.resw │ ├── es-ES │ │ └── Resources.resw │ ├── de-DE │ │ └── Resources.resw │ └── fr-FR │ │ └── Resources.resw ├── MainPage.xaml.cs └── Package.StoreAssociation.xml ├── README.md ├── SlimSocial for Facebook.sln ├── .gitignore └── LICENSE /SlimSocial for Facebook/_pkginfo.txt: -------------------------------------------------------------------------------- 1 | C:\Users\mbran\Desktop\SlimSocial for Facebook_2.0.0.0\SlimSocial for Facebook_2.0.0.0_arm.appxbundle 2 | -------------------------------------------------------------------------------- /SlimSocial for Facebook/GlobalSuppressions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/GlobalSuppressions.cs -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/StoreLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/StoreLogo.scale-200.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/StoreLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/StoreLogo.scale-400.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Square71x71Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Square71x71Logo.scale-100.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Square71x71Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Square71x71Logo.scale-200.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Square71x71Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Square71x71Logo.scale-400.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/Assets/Square150x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rignaneseleo/SlimSocial-for-Facebook-UWP/HEAD/SlimSocial for Facebook/Assets/Square150x150Logo.scale-400.png -------------------------------------------------------------------------------- /SlimSocial for Facebook/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /SlimSocial for Facebook/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.3" 4 | }, 5 | "frameworks": { 6 | "uap10.0": {} 7 | }, 8 | "runtimes": { 9 | "win10-arm": {}, 10 | "win10-arm-aot": {}, 11 | "win10-x86": {}, 12 | "win10-x86-aot": {}, 13 | "win10-x64": {}, 14 | "win10-x64-aot": {} 15 | } 16 | } -------------------------------------------------------------------------------- /SlimSocial for Facebook/UserAgentHelper.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | 3 | namespace SlimSocial_for_Facebook 4 | { 5 | public class UserAgentHelper 6 | { 7 | [DllImport("urlmon.dll", CharSet = CharSet.Ansi, ExactSpelling = true)] 8 | private static extern int UrlMkSetSessionOption(int dwOption, string pBuffer, int dwBufferLength, int dwReserved); 9 | 10 | private const int URLMON_OPTION_USERAGENT = 0x10000001; 11 | 12 | public static void SetDefaultUserAgent(string userAgent) 13 | { 14 | UrlMkSetSessionOption(URLMON_OPTION_USERAGENT, userAgent, userAgent.Length, 0); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SlimSocial for Facebook (UWP version) 2 | Light version of Facebook. Light not only in weight but also in the use. (Universal Windows App) 3 | 4 | # DOWNLOAD 5 | https://www.microsoft.com/it-it/store/apps/slimsocial-for-facebook/9nblggh4vmr8 6 | 7 | 8 | 9 | ## I need your hand! Improve the app :) 10 | FB: https://www.facebook.com/SlimSocialProject/ 11 | 12 | 13 | ### Donate 14 | https://www.paypal.com/it/cgi-bin/webscr?cmd=_flow&SESSION=z_sYEv9yZKkadXAsh6e6VTkq2WMSOh9Fsm09A4egi0Xp1uMSA9cd7gZdv-S&dispatch=5885d80a13c0db1f8e263663d3faee8d83a0bf7db316a7beb1b14b43acd04037&rapidsState=Donation__DonationFlow___StateDonationStart&rapidsStateSignature=54c657361924d3311b7fc1727a9745096826e545 15 | 16 | 17 | ## Credits 18 | Michele Branchesi [] 19 | 20 | Leonardo Rignanese 21 | -------------------------------------------------------------------------------- /SlimSocial for Facebook/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | // General Information about an assembly is controlled through the following 5 | // set of attributes. Change these attribute values to modify the information 6 | // associated with an assembly. 7 | [assembly: AssemblyTitle("SlimSocial for Facebook")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("SlimSocial for Facebook")] 12 | [assembly: AssemblyCopyright("Copyright © 2016")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Version information for an assembly consists of the following four values: 17 | // 18 | // Major Version 19 | // Minor Version 20 | // Build Number 21 | // Revision 22 | // 23 | // You can specify all the values or you can default the Build and Revision Numbers 24 | // by using the '*' as shown below: 25 | // [assembly: AssemblyVersion("1.0.*")] 26 | [assembly: AssemblyVersion("1.0.0.0")] 27 | [assembly: AssemblyFileVersion("1.0.0.0")] 28 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /SlimSocial for Facebook/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /SlimSocial for Facebook/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | SlimSocial for Facebook 7 | Michele Branchesi 8 | Assets\StoreLogo.png 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /SlimSocial for Facebook.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25123.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlimSocial for Facebook", "SlimSocial for Facebook\SlimSocial for Facebook.csproj", "{DF276781-75B6-4858-8EC4-ACA89CB47454}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|ARM = Debug|ARM 11 | Debug|x64 = Debug|x64 12 | Debug|x86 = Debug|x86 13 | Release|ARM = Release|ARM 14 | Release|x64 = Release|x64 15 | Release|x86 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Debug|ARM.ActiveCfg = Debug|ARM 19 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Debug|ARM.Build.0 = Debug|ARM 20 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Debug|ARM.Deploy.0 = Debug|ARM 21 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Debug|x64.ActiveCfg = Debug|x64 22 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Debug|x64.Build.0 = Debug|x64 23 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Debug|x64.Deploy.0 = Debug|x64 24 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Debug|x86.ActiveCfg = Debug|x86 25 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Debug|x86.Build.0 = Debug|x86 26 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Debug|x86.Deploy.0 = Debug|x86 27 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Release|ARM.ActiveCfg = Release|ARM 28 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Release|ARM.Build.0 = Release|ARM 29 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Release|ARM.Deploy.0 = Release|ARM 30 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Release|x64.ActiveCfg = Release|x64 31 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Release|x64.Build.0 = Release|x64 32 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Release|x64.Deploy.0 = Release|x64 33 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Release|x86.ActiveCfg = Release|x86 34 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Release|x86.Build.0 = Release|x86 35 | {DF276781-75B6-4858-8EC4-ACA89CB47454}.Release|x86.Deploy.0 = Release|x86 36 | EndGlobalSection 37 | GlobalSection(SolutionProperties) = preSolution 38 | HideSolutionNode = FALSE 39 | EndGlobalSection 40 | EndGlobal 41 | -------------------------------------------------------------------------------- /SlimSocial for Facebook/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /SlimSocial for Facebook/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Windows.ApplicationModel.Activation; 3 | using Windows.UI.Xaml; 4 | using Windows.UI.Xaml.Controls; 5 | using Windows.UI.Xaml.Navigation; 6 | 7 | namespace SlimSocial_for_Facebook 8 | { 9 | sealed partial class App 10 | { 11 | public App() 12 | { 13 | InitializeComponent(); 14 | 15 | UserAgentHelper.SetDefaultUserAgent("Mozilla/5.0 (BB10; Kbd) AppleWebKit/537.10+ (KHTML, like Gecko) Version/10.1.0.4633 Mobile Safari/537.10+"); 16 | } 17 | 18 | protected override void OnLaunched(LaunchActivatedEventArgs e) 19 | { 20 | Frame rootFrame = Window.Current.Content as Frame; 21 | 22 | // Non ripetere l'inizializzazione dell'applicazione se la finestra già dispone di contenuto, 23 | // assicurarsi solo che la finestra sia attiva 24 | if (rootFrame == null) 25 | { 26 | // Creare un frame che agisca da contesto di navigazione e passare alla prima pagina 27 | rootFrame = new Frame(); 28 | 29 | rootFrame.NavigationFailed += OnNavigationFailed; 30 | 31 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) 32 | { 33 | //TODO: caricare lo stato dall'applicazione sospesa in precedenza 34 | } 35 | 36 | // Posizionare il frame nella finestra corrente 37 | Window.Current.Content = rootFrame; 38 | } 39 | 40 | if (rootFrame.Content == null) 41 | { 42 | // Quando lo stack di esplorazione non viene ripristinato, passare alla prima pagina 43 | // e configurare la nuova pagina passando le informazioni richieste come parametro 44 | // parametro 45 | rootFrame.Navigate(typeof(MainPage), e.Arguments); 46 | } 47 | // Assicurarsi che la finestra corrente sia attiva 48 | Window.Current.Activate(); 49 | } 50 | 51 | private Frame CreateRootFrame() 52 | { 53 | Frame rootFrame = Window.Current.Content as Frame; 54 | 55 | // Non ripetere l'inizializzazione dell'app quando la schermata ha già un contenuto, 56 | // assicurarsi solo che la schermata sia aperta 57 | if (rootFrame == null) 58 | { 59 | // Creare un Frame per agire come contenuto di navigazione e navigare alla prima pagina 60 | rootFrame = new Frame(); 61 | 62 | rootFrame.NavigationFailed += OnNavigationFailed; 63 | 64 | // Posizionare il Frame nella finestra corrente 65 | Window.Current.Content = rootFrame; 66 | } 67 | 68 | return rootFrame; 69 | } 70 | 71 | /// 72 | /// Chiamato quando la navigazione a una determinata pagina ha esito negativo 73 | /// 74 | /// Frame la cui navigazione non è riuscita 75 | /// Dettagli sull'errore di navigazione. 76 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e) 77 | { 78 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName); 79 | } 80 | } 81 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | 24 | # Visual Studio 2015 cache/options directory 25 | .vs/ 26 | # Uncomment if you have tasks that create the project's static files in wwwroot 27 | #wwwroot/ 28 | 29 | # MSTest test Results 30 | [Tt]est[Rr]esult*/ 31 | [Bb]uild[Ll]og.* 32 | 33 | # NUNIT 34 | *.VisualState.xml 35 | TestResult.xml 36 | 37 | # Build Results of an ATL Project 38 | [Dd]ebugPS/ 39 | [Rr]eleasePS/ 40 | dlldata.c 41 | 42 | # DNX 43 | project.lock.json 44 | artifacts/ 45 | 46 | *_i.c 47 | *_p.c 48 | *_i.h 49 | *.ilk 50 | *.meta 51 | *.obj 52 | *.pch 53 | *.pdb 54 | *.pgc 55 | *.pgd 56 | *.rsp 57 | *.sbr 58 | *.tlb 59 | *.tli 60 | *.tlh 61 | *.tmp 62 | *.tmp_proj 63 | *.log 64 | *.vspscc 65 | *.vssscc 66 | .builds 67 | *.pidb 68 | *.svclog 69 | *.scc 70 | 71 | # Chutzpah Test files 72 | _Chutzpah* 73 | 74 | # Visual C++ cache files 75 | ipch/ 76 | *.aps 77 | *.ncb 78 | *.opendb 79 | *.opensdf 80 | *.sdf 81 | *.cachefile 82 | 83 | # Visual Studio profiler 84 | *.psess 85 | *.vsp 86 | *.vspx 87 | *.sap 88 | 89 | # TFS 2012 Local Workspace 90 | $tf/ 91 | 92 | # Guidance Automation Toolkit 93 | *.gpState 94 | 95 | # ReSharper is a .NET coding add-in 96 | _ReSharper*/ 97 | *.[Rr]e[Ss]harper 98 | *.DotSettings.user 99 | 100 | # JustCode is a .NET coding add-in 101 | .JustCode 102 | 103 | # TeamCity is a build add-in 104 | _TeamCity* 105 | 106 | # DotCover is a Code Coverage Tool 107 | *.dotCover 108 | 109 | # NCrunch 110 | _NCrunch_* 111 | .*crunch*.local.xml 112 | nCrunchTemp_* 113 | 114 | # MightyMoose 115 | *.mm.* 116 | AutoTest.Net/ 117 | 118 | # Web workbench (sass) 119 | .sass-cache/ 120 | 121 | # Installshield output folder 122 | [Ee]xpress/ 123 | 124 | # DocProject is a documentation generator add-in 125 | DocProject/buildhelp/ 126 | DocProject/Help/*.HxT 127 | DocProject/Help/*.HxC 128 | DocProject/Help/*.hhc 129 | DocProject/Help/*.hhk 130 | DocProject/Help/*.hhp 131 | DocProject/Help/Html2 132 | DocProject/Help/html 133 | 134 | # Click-Once directory 135 | publish/ 136 | 137 | # Publish Web Output 138 | *.[Pp]ublish.xml 139 | *.azurePubxml 140 | # TODO: Comment the next line if you want to checkin your web deploy settings 141 | # but database connection strings (with potential passwords) will be unencrypted 142 | *.pubxml 143 | *.publishproj 144 | 145 | # NuGet Packages 146 | *.nupkg 147 | # The packages folder can be ignored because of Package Restore 148 | **/packages/* 149 | # except build/, which is used as an MSBuild target. 150 | !**/packages/build/ 151 | # Uncomment if necessary however generally it will be regenerated when needed 152 | #!**/packages/repositories.config 153 | # NuGet v3's project.json files produces more ignoreable files 154 | *.nuget.props 155 | *.nuget.targets 156 | 157 | # Microsoft Azure Build Output 158 | csx/ 159 | *.build.csdef 160 | 161 | # Microsoft Azure Emulator 162 | ecf/ 163 | rcf/ 164 | 165 | # Microsoft Azure ApplicationInsights config file 166 | ApplicationInsights.config 167 | 168 | # Windows Store app package directory 169 | AppPackages/ 170 | BundleArtifacts/ 171 | 172 | # Visual Studio cache files 173 | # files ending in .cache can be ignored 174 | *.[Cc]ache 175 | # but keep track of directories ending in .cache 176 | !*.[Cc]ache/ 177 | 178 | # Others 179 | ClientBin/ 180 | ~$* 181 | *~ 182 | *.dbmdl 183 | *.dbproj.schemaview 184 | *.pfx 185 | *.publishsettings 186 | node_modules/ 187 | orleans.codegen.cs 188 | 189 | # RIA/Silverlight projects 190 | Generated_Code/ 191 | 192 | # Backup & report files from converting an old project file 193 | # to a newer Visual Studio version. Backup files are not needed, 194 | # because we have git ;-) 195 | _UpgradeReport_Files/ 196 | Backup*/ 197 | UpgradeLog*.XML 198 | UpgradeLog*.htm 199 | 200 | # SQL Server files 201 | *.mdf 202 | *.ldf 203 | 204 | # Business Intelligence projects 205 | *.rdl.data 206 | *.bim.layout 207 | *.bim_*.settings 208 | 209 | # Microsoft Fakes 210 | FakesAssemblies/ 211 | 212 | # GhostDoc plugin setting file 213 | *.GhostDoc.xml 214 | 215 | # Node.js Tools for Visual Studio 216 | .ntvs_analysis.dat 217 | 218 | # Visual Studio 6 build log 219 | *.plg 220 | 221 | # Visual Studio 6 workspace options file 222 | *.opt 223 | 224 | # Visual Studio LightSwitch build output 225 | **/*.HTMLClient/GeneratedArtifacts 226 | **/*.DesktopClient/GeneratedArtifacts 227 | **/*.DesktopClient/ModelManifest.xml 228 | **/*.Server/GeneratedArtifacts 229 | **/*.Server/ModelManifest.xml 230 | _Pvt_Extensions 231 | 232 | # Paket dependency manager 233 | .paket/paket.exe 234 | 235 | # FAKE - F# Make 236 | .fake/ 237 | -------------------------------------------------------------------------------- /SlimSocial for Facebook/SettingPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Windows.ApplicationModel; 3 | using Windows.ApplicationModel.DataTransfer; 4 | using Windows.ApplicationModel.Resources; 5 | using Windows.Storage; 6 | using Windows.UI.Core; 7 | using Windows.UI.Xaml; 8 | using Windows.UI.Xaml.Controls; 9 | 10 | namespace SlimSocial_for_Facebook 11 | { 12 | public sealed partial class SettingPage 13 | { 14 | ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings; 15 | 16 | public SettingPage() 17 | { 18 | InitializeComponent(); 19 | LoadSavedValue(); 20 | 21 | PackageVersion number = Package.Current.Id.Version; // Get app version 22 | version.Text += string.Format(" {0}.{1}.{2}\r\n", number.Major, number.Minor, number.Build); 23 | creatorName.Text = "Pharetra\r\n"; 24 | 25 | // Handle the back button request (go to the previous page) 26 | SystemNavigationManager.GetForCurrentView().BackRequested += (s, a) => // add the back event 27 | { 28 | if (Frame.CanGoBack) 29 | { 30 | Frame.GoBack(); 31 | a.Handled = true; // This block the app closing 32 | } 33 | }; 34 | } 35 | 36 | private void LoadSavedValue() 37 | { 38 | if (localSettings.Values.ContainsKey("fullScreen")) 39 | fullScreen.IsOn = (bool)localSettings.Values["fullScreen"]; 40 | if (localSettings.Values.ContainsKey("blockTopBar")) 41 | blockTopBar.IsOn = (bool)localSettings.Values["blockTopBar"]; 42 | if (localSettings.Values.ContainsKey("showRecentNews")) 43 | showRecentNews.IsOn = (bool)localSettings.Values["showRecentNews"]; 44 | if (localSettings.Values.ContainsKey("hideAdsAndPeopleYouMayKnow")) 45 | hideAdsAndPeopleYouMayKnow.IsOn = (bool)localSettings.Values["hideAdsAndPeopleYouMayKnow"]; 46 | if (localSettings.Values.ContainsKey("centerTextPosts")) 47 | centerTextPosts.IsOn = (bool)localSettings.Values["centerTextPosts"]; 48 | if (localSettings.Values.ContainsKey("addSpaceBetweenPosts")) 49 | addSpaceBetweenPosts.IsOn = (bool)localSettings.Values["addSpaceBetweenPosts"]; 50 | if (localSettings.Values.ContainsKey("darkTheme")) 51 | darkTheme.IsOn = (bool)localSettings.Values["darkTheme"]; 52 | } 53 | 54 | private void SaveStatus_Toggled(object sender, RoutedEventArgs e) 55 | { 56 | ToggleSwitch thisToggle = ((ToggleSwitch)sender); 57 | bool isOn = thisToggle.IsOn; 58 | string toggleName = thisToggle.Name; 59 | 60 | if (!localSettings.Values.ContainsKey(toggleName)) 61 | localSettings.Values.Add(toggleName, isOn); // add it 62 | else 63 | localSettings.Values[toggleName] = isOn; // edit it 64 | } 65 | 66 | private async void MichiBra_Click(object sender, RoutedEventArgs e) 67 | { 68 | var urlMichi = new Uri("https://www.linkedin.com/in/branchesimichele"); 69 | await Windows.System.Launcher.LaunchUriAsync(urlMichi); 70 | } 71 | 72 | private async void LeoRigna_Click(object sender, RoutedEventArgs e) 73 | { 74 | var urlLeo = new Uri("https://github.com/rignaneseleo"); 75 | await Windows.System.Launcher.LaunchUriAsync(urlLeo); 76 | } 77 | 78 | private void BackButton_Click(object sender, RoutedEventArgs e) 79 | { Frame.Navigate(typeof(MainPage)); } 80 | 81 | private async void DonatesButton_Click(object sender, RoutedEventArgs e) 82 | { 83 | string donates = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BS9BABTJFPD8L"; 84 | var uri = new Uri(donates); 85 | await Windows.System.Launcher.LaunchUriAsync(uri); 86 | } 87 | 88 | private void ShareAppButton_Click(object sender, RoutedEventArgs e) 89 | { 90 | DataTransferManager.ShowShareUI(); // Show share UI 91 | DataTransferManager.GetForCurrentView().DataRequested += MainPage_DataRequested; // Add the data request event 92 | } 93 | 94 | private void MainPage_DataRequested(DataTransferManager sender, DataRequestedEventArgs args) 95 | { 96 | var loader = new ResourceLoader(); 97 | string shareMessage = loader.GetString("shareMessage"); 98 | if (!string.IsNullOrEmpty(shareMessage)) 99 | { 100 | args.Request.Data.SetText(shareMessage); 101 | args.Request.Data.Properties.Title = Package.Current.DisplayName; 102 | } 103 | } 104 | } 105 | } -------------------------------------------------------------------------------- /SlimSocial for Facebook/SettingPage.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 |