├── Steps ├── Assets │ ├── Logo.png │ ├── AlignmentGrid.png │ ├── Logo.scale-240.png │ ├── steps_launcher.png │ ├── WideLogo.scale-240.png │ ├── BadgeLogo.scale-240.png │ ├── StoreLogo.scale-240.png │ ├── Tiles │ │ ├── IconicTileSmall.png │ │ └── IconicTileMediumLarge.png │ ├── steps_background_02.png │ ├── SplashScreen.scale-240.png │ ├── SquareTile71x71.scale-240.png │ └── SquareTile150x150.scale-240.png ├── Properties │ ├── AppManifest.xml │ ├── AssemblyInfo.cs │ └── WMAppManifest.xml ├── packages.config ├── LocalizedStrings.cs ├── AboutPage.xaml.cs ├── App.xaml ├── DataConverter.cs ├── Package.appxmanifest ├── AboutPage.xaml ├── DataModels │ └── MainModel.cs ├── Resources │ ├── AppResources.Designer.cs │ └── AppResources.resx ├── MainPage.xaml ├── App.xaml.cs ├── StepsDemoVersion.csproj ├── MainPage.xaml.cs └── Simulations │ └── short walk.txt ├── README.md ├── ActivateSensorCore ├── packages.config ├── ActivateSensorCoreResults.cs ├── Properties │ └── AssemblyInfo.cs ├── Pages │ ├── ActivateSensorCore.xaml │ └── ActivateSensorCore.xaml.cs ├── Resources │ ├── AppResources.fi-FI.resx │ ├── AppResources.Designer.cs │ └── AppResources.resx └── ActivateSensorCoreSL81.csproj ├── .gitattributes ├── .gitignore ├── Steps.sln └── .nuget └── NuGet.targets /Steps/Assets/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/Logo.png -------------------------------------------------------------------------------- /Steps/Assets/AlignmentGrid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/AlignmentGrid.png -------------------------------------------------------------------------------- /Steps/Assets/Logo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/Logo.scale-240.png -------------------------------------------------------------------------------- /Steps/Assets/steps_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/steps_launcher.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ActivateSensorCore 2 | ================== 3 | 4 | Helper library for SensorCore SDK to activate Location and Motion data. 5 | -------------------------------------------------------------------------------- /Steps/Assets/WideLogo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/WideLogo.scale-240.png -------------------------------------------------------------------------------- /Steps/Assets/BadgeLogo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/BadgeLogo.scale-240.png -------------------------------------------------------------------------------- /Steps/Assets/StoreLogo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/StoreLogo.scale-240.png -------------------------------------------------------------------------------- /Steps/Assets/Tiles/IconicTileSmall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/Tiles/IconicTileSmall.png -------------------------------------------------------------------------------- /Steps/Assets/steps_background_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/steps_background_02.png -------------------------------------------------------------------------------- /Steps/Assets/SplashScreen.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/SplashScreen.scale-240.png -------------------------------------------------------------------------------- /Steps/Assets/SquareTile71x71.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/SquareTile71x71.scale-240.png -------------------------------------------------------------------------------- /Steps/Assets/SquareTile150x150.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/SquareTile150x150.scale-240.png -------------------------------------------------------------------------------- /Steps/Assets/Tiles/IconicTileMediumLarge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/activate-sensorcore/master/Steps/Assets/Tiles/IconicTileMediumLarge.png -------------------------------------------------------------------------------- /ActivateSensorCore/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Steps/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Steps/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ActivateSensorCore/ActivateSensorCoreResults.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ActivateSensorCore 8 | { 9 | public enum ActivationRequestResults 10 | { 11 | AllEnabled, 12 | AskMeLater, 13 | NoAndDontAskAgain 14 | }; 15 | 16 | public class ActivateSensorCoreResult 17 | { 18 | public ActivationRequestResults ActivationRequestResult; 19 | public bool Ongoing = false; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Steps/LocalizedStrings.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014 Microsoft Mobile. All rights reserved. 3 | * See the license text file provided with this project for more information. 4 | */ 5 | using Steps.Resources; 6 | 7 | namespace Steps 8 | { 9 | /// 10 | /// Provides access to string resources. 11 | /// 12 | public class LocalizedStrings 13 | { 14 | private static AppResources _localizedResources = new AppResources(); 15 | 16 | public AppResources LocalizedResources { get { return _localizedResources; } } 17 | } 18 | } -------------------------------------------------------------------------------- /Steps/AboutPage.xaml.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014 Microsoft Mobile. All rights reserved. 3 | * See the license text file provided with this project for more information. 4 | */ 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Net; 9 | using System.Windows; 10 | using System.Windows.Controls; 11 | using System.Windows.Navigation; 12 | using Microsoft.Phone.Controls; 13 | using Microsoft.Phone.Shell; 14 | 15 | namespace Steps 16 | { 17 | public partial class AboutPage : PhoneApplicationPage 18 | { 19 | public AboutPage() 20 | { 21 | InitializeComponent(); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /Steps/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Steps/DataConverter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014 Microsoft Mobile. All rights reserved. 3 | * See the license text file provided with this project for more information. 4 | */ 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Globalization; 8 | using System.Linq; 9 | using System.Text; 10 | using System.Threading.Tasks; 11 | using System.Windows.Data; 12 | 13 | namespace Steps 14 | { 15 | 16 | public class Half : IValueConverter 17 | { 18 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 19 | { 20 | 21 | return (double)value/2; 22 | } 23 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 24 | { 25 | 26 | return ""; 27 | } 28 | 29 | } 30 | 31 | public class Margin : IValueConverter 32 | { 33 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 34 | { 35 | 36 | return (double)value -6; 37 | } 38 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 39 | { 40 | 41 | return ""; 42 | } 43 | 44 | } 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /Steps/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Resources; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Steps")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("Steps")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // Setting ComVisible to false makes the types in this assembly not visible 19 | // to COM components. If you need to access a type in this assembly from 20 | // COM, set the ComVisible attribute to true on that type. 21 | [assembly: ComVisible(false)] 22 | 23 | // The following GUID is for the ID of the typelib if this project is exposed to COM 24 | [assembly: Guid("fb9770c8-5c8a-4e54-818b-ef540d05b2c3")] 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | // You can specify all the values or you can default the Revision and Build Numbers 34 | // by using the '*' as shown below: 35 | [assembly: AssemblyVersion("1.0.0.2")] 36 | [assembly: AssemblyFileVersion("1.0.0.2")] 37 | [assembly: NeutralResourcesLanguageAttribute("en-US")] 38 | -------------------------------------------------------------------------------- /ActivateSensorCore/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Resources; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("ActivateSensorCore")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("ActivateSensorCore")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // Setting ComVisible to false makes the types in this assembly not visible 19 | // to COM components. If you need to access a type in this assembly from 20 | // COM, set the ComVisible attribute to true on that type. 21 | [assembly: ComVisible(false)] 22 | 23 | // The following GUID is for the ID of the typelib if this project is exposed to COM 24 | [assembly: Guid("bfa88a28-3d42-42d0-8b37-107c18b9dd74")] 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | // You can specify all the values or you can default the Revision and Build Numbers 34 | // by using the '*' as shown below: 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | [assembly: NeutralResourcesLanguageAttribute("en-US")] 38 | -------------------------------------------------------------------------------- /Steps/Properties/WMAppManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Assets\steps_launcher.png 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Assets\Tiles\IconicTileSmall.png 21 | 0 22 | Assets\Tiles\IconicTileMediumLarge.png 23 | 24 | 25 | 26 | 27 | 28 | 29 | false 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Steps/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Steps 7 | juhankos 8 | Assets\StoreLogo.png 9 | 10 | 11 | 6.3.1 12 | 6.3.1 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 | AgHostSvcs.dll 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /Steps/AboutPage.xaml: -------------------------------------------------------------------------------- 1 | 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 | -------------------------------------------------------------------------------- /.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 | *.sln.docstates 8 | 9 | # Build results 10 | 11 | [Dd]ebug/ 12 | [Rr]elease/ 13 | x64/ 14 | build/ 15 | [Bb]in/ 16 | [Oo]bj/ 17 | 18 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets 19 | !packages/*/build/ 20 | 21 | # MSTest test Results 22 | [Tt]est[Rr]esult*/ 23 | [Bb]uild[Ll]og.* 24 | 25 | *_i.c 26 | *_p.c 27 | *.ilk 28 | *.meta 29 | *.obj 30 | *.pch 31 | *.pdb 32 | *.pgc 33 | *.pgd 34 | *.rsp 35 | *.sbr 36 | *.tlb 37 | *.tli 38 | *.tlh 39 | *.tmp 40 | *.tmp_proj 41 | *.log 42 | *.vspscc 43 | *.vssscc 44 | .builds 45 | *.pidb 46 | *.log 47 | *.scc 48 | 49 | # Visual C++ cache files 50 | ipch/ 51 | *.aps 52 | *.ncb 53 | *.opensdf 54 | *.sdf 55 | *.cachefile 56 | 57 | # Visual Studio profiler 58 | *.psess 59 | *.vsp 60 | *.vspx 61 | 62 | # Guidance Automation Toolkit 63 | *.gpState 64 | 65 | # ReSharper is a .NET coding add-in 66 | _ReSharper*/ 67 | *.[Rr]e[Ss]harper 68 | 69 | # TeamCity is a build add-in 70 | _TeamCity* 71 | 72 | # DotCover is a Code Coverage Tool 73 | *.dotCover 74 | 75 | # NCrunch 76 | *.ncrunch* 77 | .*crunch*.local.xml 78 | 79 | # Installshield output folder 80 | [Ee]xpress/ 81 | 82 | # DocProject is a documentation generator add-in 83 | DocProject/buildhelp/ 84 | DocProject/Help/*.HxT 85 | DocProject/Help/*.HxC 86 | DocProject/Help/*.hhc 87 | DocProject/Help/*.hhk 88 | DocProject/Help/*.hhp 89 | DocProject/Help/Html2 90 | DocProject/Help/html 91 | 92 | # Click-Once directory 93 | publish/ 94 | 95 | # Publish Web Output 96 | *.Publish.xml 97 | 98 | # NuGet Packages Directory 99 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line 100 | #packages/ 101 | 102 | # Windows Azure Build Output 103 | csx 104 | *.build.csdef 105 | 106 | # Windows Store app package directory 107 | AppPackages/ 108 | 109 | # Others 110 | sql/ 111 | *.Cache 112 | ClientBin/ 113 | [Ss]tyle[Cc]op.* 114 | ~$* 115 | *~ 116 | *.dbmdl 117 | *.[Pp]ublish.xml 118 | *.pfx 119 | *.publishsettings 120 | 121 | # RIA/Silverlight projects 122 | Generated_Code/ 123 | 124 | # Backup & report files from converting an old project file to a newer 125 | # Visual Studio version. Backup files are not needed, because we have git ;-) 126 | _UpgradeReport_Files/ 127 | Backup*/ 128 | UpgradeLog*.XML 129 | UpgradeLog*.htm 130 | 131 | # SQL Server files 132 | App_Data/*.mdf 133 | App_Data/*.ldf 134 | 135 | 136 | #LightSwitch generated files 137 | GeneratedArtifacts/ 138 | _Pvt_Extensions/ 139 | ModelManifest.xml 140 | 141 | # ========================= 142 | # Windows detritus 143 | # ========================= 144 | 145 | # Windows image file caches 146 | Thumbs.db 147 | ehthumbs.db 148 | 149 | # Folder config file 150 | Desktop.ini 151 | 152 | # Recycle Bin used on file shares 153 | $RECYCLE.BIN/ 154 | 155 | # Mac desktop service store files 156 | .DS_Store 157 | -------------------------------------------------------------------------------- /Steps.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30723.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StepsDemoVersion", "Steps\StepsDemoVersion.csproj", "{C80AFAB2-39D5-406A-ABBE-3777E3F0B625}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{483F2517-011A-4381-8379-3041287C4CAD}" 9 | ProjectSection(SolutionItems) = preProject 10 | .nuget\NuGet.targets = .nuget\NuGet.targets 11 | EndProjectSection 12 | EndProject 13 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ActivateSensorCoreSL81", "ActivateSensorCore\ActivateSensorCoreSL81.csproj", "{BFA88A28-3D42-42D0-8B37-107C18B9DD74}" 14 | EndProject 15 | Global 16 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 17 | Debug|Any CPU = Debug|Any CPU 18 | Debug|ARM = Debug|ARM 19 | Debug|Mixed Platforms = Debug|Mixed Platforms 20 | Debug|x86 = Debug|x86 21 | Release|Any CPU = Release|Any CPU 22 | Release|ARM = Release|ARM 23 | Release|Mixed Platforms = Release|Mixed Platforms 24 | Release|x86 = Release|x86 25 | EndGlobalSection 26 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 27 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 28 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|Any CPU.Build.0 = Debug|Any CPU 29 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|Any CPU.Deploy.0 = Debug|Any CPU 30 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|ARM.ActiveCfg = Debug|ARM 31 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|ARM.Build.0 = Debug|ARM 32 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|ARM.Deploy.0 = Debug|ARM 33 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 34 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|Mixed Platforms.Build.0 = Debug|x86 35 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|Mixed Platforms.Deploy.0 = Debug|x86 36 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|x86.ActiveCfg = Debug|x86 37 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|x86.Build.0 = Debug|x86 38 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Debug|x86.Deploy.0 = Debug|x86 39 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|Any CPU.ActiveCfg = Release|Any CPU 40 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|Any CPU.Build.0 = Release|Any CPU 41 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|Any CPU.Deploy.0 = Release|Any CPU 42 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|ARM.ActiveCfg = Release|ARM 43 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|ARM.Build.0 = Release|ARM 44 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|ARM.Deploy.0 = Release|ARM 45 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|Mixed Platforms.ActiveCfg = Release|x86 46 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|Mixed Platforms.Build.0 = Release|x86 47 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|Mixed Platforms.Deploy.0 = Release|x86 48 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|x86.ActiveCfg = Release|x86 49 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|x86.Build.0 = Release|x86 50 | {C80AFAB2-39D5-406A-ABBE-3777E3F0B625}.Release|x86.Deploy.0 = Release|x86 51 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 52 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Debug|Any CPU.Build.0 = Debug|Any CPU 53 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Debug|ARM.ActiveCfg = Debug|ARM 54 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Debug|ARM.Build.0 = Debug|ARM 55 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 56 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Debug|Mixed Platforms.Build.0 = Debug|x86 57 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Debug|x86.ActiveCfg = Debug|x86 58 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Debug|x86.Build.0 = Debug|x86 59 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Release|Any CPU.ActiveCfg = Release|Any CPU 60 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Release|Any CPU.Build.0 = Release|Any CPU 61 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Release|ARM.ActiveCfg = Release|ARM 62 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Release|ARM.Build.0 = Release|ARM 63 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Release|Mixed Platforms.ActiveCfg = Release|x86 64 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Release|Mixed Platforms.Build.0 = Release|x86 65 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Release|x86.ActiveCfg = Release|x86 66 | {BFA88A28-3D42-42D0-8B37-107C18B9DD74}.Release|x86.Build.0 = Release|x86 67 | EndGlobalSection 68 | GlobalSection(SolutionProperties) = preSolution 69 | HideSolutionNode = FALSE 70 | EndGlobalSection 71 | EndGlobal 72 | -------------------------------------------------------------------------------- /Steps/DataModels/MainModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Steps 9 | { 10 | 11 | 12 | public class MainModel : INotifyPropertyChanged 13 | { 14 | private double _width; 15 | private double _height; 16 | private List _steps = new List(); 17 | private uint _max = 20000; 18 | int _resolutionInMinutes = 15; 19 | int _arrayMaxSize = 96; 20 | int _margin = 6; 21 | 22 | public void setParameters(double width, double height, List steps, int resolutionInMinutes) 23 | { 24 | _width = width; 25 | _height = height; 26 | _steps = steps; 27 | 28 | _resolutionInMinutes = resolutionInMinutes; // Resolution of graph is 15 min. Can be 5,10,15,20...60 29 | _arrayMaxSize = 1440 / _resolutionInMinutes; 30 | 31 | NotifyPropertyChanged(null); //We refresh all properties here 32 | } 33 | 34 | public void ChangeMax() 35 | { 36 | if (_max == 20000) 37 | _max = 10000; 38 | else if (_max == 10000) 39 | _max = 5000; 40 | else 41 | _max = 20000; 42 | 43 | 44 | NotifyPropertyChanged(null); //We refresh all properties here 45 | } 46 | 47 | 48 | 49 | public string MAX { get { return _max.ToString(); } } 50 | public string HALF { get { return (_max/2).ToString(); } } 51 | public string MARGIN { get { return (_margin).ToString(); } } 52 | 53 | 54 | private uint _walkingSteps = 0; 55 | /// 56 | /// Sample ViewModel property; this property is used in the view to display its value using a Binding. 57 | /// 58 | /// 59 | public uint WalkingSteps 60 | { 61 | get 62 | { 63 | return _walkingSteps; 64 | } 65 | set 66 | { 67 | 68 | if (value != _walkingSteps) 69 | { 70 | _walkingSteps = value; 71 | NotifyPropertyChanged("WalkingSteps"); 72 | } 73 | } 74 | } 75 | 76 | private uint _runningSteps = 0; 77 | /// 78 | /// Sample ViewModel property; this property is used in the view to display its value using a Binding. 79 | /// 80 | /// 81 | public uint RunningSteps 82 | { 83 | get 84 | { 85 | return _runningSteps; 86 | } 87 | set 88 | { 89 | 90 | if (value != _runningSteps) 91 | { 92 | _runningSteps = value; 93 | NotifyPropertyChanged("RunningSteps"); 94 | } 95 | } 96 | } 97 | private uint _stepsToday = 0; 98 | 99 | public uint StepsToday 100 | { 101 | get 102 | { 103 | return _stepsToday; 104 | } 105 | set 106 | { 107 | 108 | if (value != _stepsToday) 109 | { 110 | _stepsToday = value; 111 | NotifyPropertyChanged("StepsToday"); 112 | } 113 | } 114 | } 115 | 116 | public string PathString { 117 | get { 118 | 119 | String path = "M 6," + ((uint)_height).ToString(); 120 | for(int i = 1 ; i < _steps.Count ; i++ ){ 121 | uint stepcount = _max > _steps[i] ? _steps[i] : _max; 122 | 123 | path += " L " + ((uint)(((double)i / _arrayMaxSize) * (_width-6) )+6).ToString() + "," + (_height - (uint)(stepcount * (_height / _max))).ToString() + " "; 124 | } 125 | System.Diagnostics.Debug.WriteLine(path); 126 | return path; 127 | } 128 | } 129 | 130 | 131 | public event PropertyChangedEventHandler PropertyChanged; 132 | 133 | private void NotifyPropertyChanged(String propertyName) 134 | { 135 | PropertyChangedEventHandler handler = PropertyChanged; 136 | if (null != handler) 137 | { 138 | handler(this, new PropertyChangedEventArgs(propertyName)); 139 | } 140 | } 141 | 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /ActivateSensorCore/Pages/ActivateSensorCore.xaml: -------------------------------------------------------------------------------- 1 | 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 |