commit
cf234b9ced
@ -0,0 +1,477 @@
|
|||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
##
|
||||||
|
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.rsuser
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Mono auto generated files
|
||||||
|
mono_crash.*
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
[Ww][Ii][Nn]32/
|
||||||
|
[Aa][Rr][Mm]/
|
||||||
|
[Aa][Rr][Mm]64/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Ll]og/
|
||||||
|
[Ll]ogs/
|
||||||
|
|
||||||
|
# Visual Studio 2015/2017 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# Visual Studio 2017 auto generated files
|
||||||
|
Generated\ Files/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUnit
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
nunit-*.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# Benchmark Results
|
||||||
|
BenchmarkDotNet.Artifacts/
|
||||||
|
|
||||||
|
# .NET
|
||||||
|
project.lock.json
|
||||||
|
project.fragment.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
# Tye
|
||||||
|
.tye/
|
||||||
|
|
||||||
|
# ASP.NET Scaffolding
|
||||||
|
ScaffoldingReadMe.txt
|
||||||
|
|
||||||
|
# StyleCop
|
||||||
|
StyleCopReport.xml
|
||||||
|
|
||||||
|
# Files built by Visual Studio
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_h.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.iobj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.ipdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*_wpftmp.csproj
|
||||||
|
*.log
|
||||||
|
*.tlog
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.svclog
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Chutzpah Test files
|
||||||
|
_Chutzpah*
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opendb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
*.VC.db
|
||||||
|
*.VC.VC.opendb
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
*.sap
|
||||||
|
|
||||||
|
# Visual Studio Trace Files
|
||||||
|
*.e2e
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# AxoCover is a Code Coverage Tool
|
||||||
|
.axoCover/*
|
||||||
|
!.axoCover/settings.json
|
||||||
|
|
||||||
|
# Coverlet is a free, cross platform Code Coverage Tool
|
||||||
|
coverage*.json
|
||||||
|
coverage*.xml
|
||||||
|
coverage*.info
|
||||||
|
|
||||||
|
# Visual Studio code coverage results
|
||||||
|
*.coverage
|
||||||
|
*.coveragexml
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
_NCrunch_*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
nCrunchTemp_*
|
||||||
|
|
||||||
|
# MightyMoose
|
||||||
|
*.mm.*
|
||||||
|
AutoTest.Net/
|
||||||
|
|
||||||
|
# Web workbench (sass)
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.azurePubxml
|
||||||
|
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||||
|
# but database connection strings (with potential passwords) will be unencrypted
|
||||||
|
*.pubxml
|
||||||
|
*.publishproj
|
||||||
|
|
||||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||||
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||||
|
# in these scripts will be unencrypted
|
||||||
|
PublishScripts/
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# NuGet Symbol Packages
|
||||||
|
*.snupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/[Pp]ackages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/[Pp]ackages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/[Pp]ackages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignorable files
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
||||||
|
# Microsoft Azure Build Output
|
||||||
|
csx/
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Microsoft Azure Emulator
|
||||||
|
ecf/
|
||||||
|
rcf/
|
||||||
|
|
||||||
|
# Windows Store app package directories and files
|
||||||
|
AppPackages/
|
||||||
|
BundleArtifacts/
|
||||||
|
Package.StoreAssociation.xml
|
||||||
|
_pkginfo.txt
|
||||||
|
*.appx
|
||||||
|
*.appxbundle
|
||||||
|
*.appxupload
|
||||||
|
|
||||||
|
# Visual Studio cache files
|
||||||
|
# files ending in .cache can be ignored
|
||||||
|
*.[Cc]ache
|
||||||
|
# but keep track of directories ending in .cache
|
||||||
|
!?*.[Cc]ache/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
ClientBin/
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.dbproj.schemaview
|
||||||
|
*.jfm
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# Including strong name files can present a security risk
|
||||||
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||||
|
#*.snk
|
||||||
|
|
||||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||||
|
#bower_components/
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file
|
||||||
|
# to a newer Visual Studio version. Backup files are not needed,
|
||||||
|
# because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
ServiceFabricBackup/
|
||||||
|
*.rptproj.bak
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
*.ndf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
*.rptproj.rsuser
|
||||||
|
*- [Bb]ackup.rdl
|
||||||
|
*- [Bb]ackup ([0-9]).rdl
|
||||||
|
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||||
|
*.vbw
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
|
||||||
|
*.vbp
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
|
||||||
|
*.dsw
|
||||||
|
*.dsp
|
||||||
|
|
||||||
|
# Visual Studio 6 technical files
|
||||||
|
*.ncb
|
||||||
|
*.aps
|
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output
|
||||||
|
**/*.HTMLClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/ModelManifest.xml
|
||||||
|
**/*.Server/GeneratedArtifacts
|
||||||
|
**/*.Server/ModelManifest.xml
|
||||||
|
_Pvt_Extensions
|
||||||
|
|
||||||
|
# Paket dependency manager
|
||||||
|
.paket/paket.exe
|
||||||
|
paket-files/
|
||||||
|
|
||||||
|
# FAKE - F# Make
|
||||||
|
.fake/
|
||||||
|
|
||||||
|
# CodeRush personal settings
|
||||||
|
.cr/personal
|
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS)
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Cake - Uncomment if you are using it
|
||||||
|
# tools/**
|
||||||
|
# !tools/packages.config
|
||||||
|
|
||||||
|
# Tabs Studio
|
||||||
|
*.tss
|
||||||
|
|
||||||
|
# Telerik's JustMock configuration file
|
||||||
|
*.jmconfig
|
||||||
|
|
||||||
|
# BizTalk build output
|
||||||
|
*.btp.cs
|
||||||
|
*.btm.cs
|
||||||
|
*.odx.cs
|
||||||
|
*.xsd.cs
|
||||||
|
|
||||||
|
# OpenCover UI analysis results
|
||||||
|
OpenCover/
|
||||||
|
|
||||||
|
# Azure Stream Analytics local run output
|
||||||
|
ASALocalRun/
|
||||||
|
|
||||||
|
# MSBuild Binary and Structured Log
|
||||||
|
*.binlog
|
||||||
|
|
||||||
|
# NVidia Nsight GPU debugger configuration file
|
||||||
|
*.nvuser
|
||||||
|
|
||||||
|
# MFractors (Xamarin productivity tool) working folder
|
||||||
|
.mfractor/
|
||||||
|
|
||||||
|
# Local History for Visual Studio
|
||||||
|
.localhistory/
|
||||||
|
|
||||||
|
# Visual Studio History (VSHistory) files
|
||||||
|
.vshistory/
|
||||||
|
|
||||||
|
# BeatPulse healthcheck temp database
|
||||||
|
healthchecksdb
|
||||||
|
|
||||||
|
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||||
|
MigrationBackup/
|
||||||
|
|
||||||
|
# Ionide (cross platform F# VS Code tools) working folder
|
||||||
|
.ionide/
|
||||||
|
|
||||||
|
# Fody - auto-generated XML schema
|
||||||
|
FodyWeavers.xsd
|
||||||
|
|
||||||
|
# VS Code files for those working on multiple tools
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
*.code-workspace
|
||||||
|
|
||||||
|
# Local History for Visual Studio Code
|
||||||
|
.history/
|
||||||
|
|
||||||
|
# Windows Installer files from build outputs
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msix
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# JetBrains Rider
|
||||||
|
*.sln.iml
|
||||||
|
|
||||||
|
##
|
||||||
|
## Visual studio for Mac
|
||||||
|
##
|
||||||
|
|
||||||
|
|
||||||
|
# globs
|
||||||
|
Makefile.in
|
||||||
|
*.userprefs
|
||||||
|
*.usertasks
|
||||||
|
config.make
|
||||||
|
config.status
|
||||||
|
aclocal.m4
|
||||||
|
install-sh
|
||||||
|
autom4te.cache/
|
||||||
|
*.tar.gz
|
||||||
|
tarballs/
|
||||||
|
test-results/
|
||||||
|
|
||||||
|
# Mac bundle stuff
|
||||||
|
*.dmg
|
||||||
|
*.app
|
||||||
|
|
||||||
|
# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
|
||||||
|
# General
|
||||||
|
.DS_Store
|
||||||
|
.AppleDouble
|
||||||
|
.LSOverride
|
||||||
|
|
||||||
|
# Icon must end with two \r
|
||||||
|
Icon
|
||||||
|
|
||||||
|
|
||||||
|
# Thumbnails
|
||||||
|
._*
|
||||||
|
|
||||||
|
# Files that might appear in the root of a volume
|
||||||
|
.DocumentRevisions-V100
|
||||||
|
.fseventsd
|
||||||
|
.Spotlight-V100
|
||||||
|
.TemporaryItems
|
||||||
|
.Trashes
|
||||||
|
.VolumeIcon.icns
|
||||||
|
.com.apple.timemachine.donotpresent
|
||||||
|
|
||||||
|
# Directories potentially created on remote AFP share
|
||||||
|
.AppleDB
|
||||||
|
.AppleDesktop
|
||||||
|
Network Trash Folder
|
||||||
|
Temporary Items
|
||||||
|
.apdisk
|
||||||
|
|
||||||
|
# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
|
||||||
|
# Windows thumbnail cache files
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
ehthumbs_vista.db
|
||||||
|
|
||||||
|
# Dump file
|
||||||
|
*.stackdump
|
||||||
|
|
||||||
|
# Folder config file
|
||||||
|
[Dd]esktop.ini
|
||||||
|
|
||||||
|
# Recycle Bin used on file shares
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Windows Installer files
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msix
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# Windows shortcuts
|
||||||
|
*.lnk
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version = "1.0" encoding = "UTF-8" ?>
|
||||||
|
<Application
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:local="clr-namespace:YOUserbase"
|
||||||
|
x:Class="YOUserbase.App">
|
||||||
|
<Application.Resources>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary
|
||||||
|
Source="Resources/Styles/Colors.xaml" />
|
||||||
|
<ResourceDictionary
|
||||||
|
Source="Resources/Styles/Styles.xaml" />
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</Application.Resources>
|
||||||
|
</Application>
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<Shell
|
||||||
|
x:Class="YOUserbase.AppShell"
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:local="clr-namespace:YOUserbase"
|
||||||
|
x:DataType="local:AppShell">
|
||||||
|
|
||||||
|
<TabBar>
|
||||||
|
<Tab
|
||||||
|
Title="Main">
|
||||||
|
<ShellContent
|
||||||
|
Title="User Overview"
|
||||||
|
ContentTemplate="{DataTemplate local:UserOverviewPage}" />
|
||||||
|
<ShellContent
|
||||||
|
Title="Group Overview"
|
||||||
|
ContentTemplate="{DataTemplate local:GroupOverviewPage}" />
|
||||||
|
<ShellContent
|
||||||
|
Title="FAQ"
|
||||||
|
ContentTemplate="{DataTemplate local:FAQPage}" />
|
||||||
|
<ShellContent
|
||||||
|
Title="Impressum"
|
||||||
|
ContentTemplate="{DataTemplate local:ImpressumPage}" />
|
||||||
|
</Tab>
|
||||||
|
</TabBar>
|
||||||
|
</Shell>
|
||||||
@ -0,0 +1,43 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:DataType="ContentPage"
|
||||||
|
x:Name="contentPage"
|
||||||
|
x:Class="YOUserbase.CreateGroupPage"
|
||||||
|
Title="Create a new group">
|
||||||
|
<ScrollView>
|
||||||
|
<VerticalStackLayout
|
||||||
|
Spacing="25"
|
||||||
|
Padding="300,60">
|
||||||
|
<Label
|
||||||
|
x:Name="lblName"
|
||||||
|
Text="Group name:" />
|
||||||
|
<Entry
|
||||||
|
x:Name="NameEntry"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
x:Name="errName"
|
||||||
|
TextColor="Red" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
x:Name="lblDetails"
|
||||||
|
Text="Group details:" />
|
||||||
|
<Entry
|
||||||
|
x:Name="DetailsEntry"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
x:Name="errDetails"
|
||||||
|
TextColor="Red" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
x:Name="btnCreate"
|
||||||
|
Text="Create"
|
||||||
|
Clicked="OnCreateClicked" />
|
||||||
|
<Label
|
||||||
|
x:Name="errAll"
|
||||||
|
TextColor="Red" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</ContentPage>
|
||||||
@ -0,0 +1,139 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="YOUserbase.CreateUserPage"
|
||||||
|
x:DataType="ContentPage"
|
||||||
|
x:Name="contentPage"
|
||||||
|
Title="Create a new user">
|
||||||
|
<ContentPage.Resources>
|
||||||
|
<Style
|
||||||
|
x:Key="InvalidEntryStyle"
|
||||||
|
TargetType="Entry">
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Red" />
|
||||||
|
</Style>
|
||||||
|
<Style
|
||||||
|
x:Key="ValidEntryStyle"
|
||||||
|
TargetType="Entry">
|
||||||
|
<!--<Setter Property="TextColor" Value="Green" />-->
|
||||||
|
</Style>
|
||||||
|
</ContentPage.Resources>
|
||||||
|
|
||||||
|
<ScrollView>
|
||||||
|
<VerticalStackLayout
|
||||||
|
Spacing="25"
|
||||||
|
Padding="300,60">
|
||||||
|
<Label
|
||||||
|
x:Name="lblFirstname"
|
||||||
|
Text="First name:" />
|
||||||
|
<Entry
|
||||||
|
x:Name="FirstnameEntry"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
x:Name="errFirstname"
|
||||||
|
TextColor="Red" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
x:Name="lblLastname"
|
||||||
|
Text="Family name:" />
|
||||||
|
<Entry
|
||||||
|
x:Name="LastnameEntry"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
x:Name="errLastname"
|
||||||
|
TextColor="Red" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
x:Name="lblBirthDate"
|
||||||
|
Text="Birth date:" />
|
||||||
|
<DatePicker
|
||||||
|
x:Name="birthdatePicker"
|
||||||
|
MaximumDate="1/1/2023" />
|
||||||
|
<Label
|
||||||
|
x:Name="errBirthDate"
|
||||||
|
TextColor="Red" />
|
||||||
|
|
||||||
|
<Picker
|
||||||
|
x:Name="groupPicker"
|
||||||
|
Title="Select working group" />
|
||||||
|
<Label
|
||||||
|
x:Name="errGroup"
|
||||||
|
TextColor="Red" />
|
||||||
|
|
||||||
|
<HorizontalStackLayout
|
||||||
|
Spacing="10">
|
||||||
|
<Label
|
||||||
|
x:Name="lblSwitch"
|
||||||
|
Text="Works full time:"
|
||||||
|
VerticalOptions="Center" />
|
||||||
|
<Switch
|
||||||
|
x:Name="FullTimeSwitch"
|
||||||
|
IsToggled="True"
|
||||||
|
VerticalOptions="Center" />
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
|
||||||
|
<Label
|
||||||
|
x:Name="lblDetails"
|
||||||
|
Text="Additional details:" />
|
||||||
|
<Entry
|
||||||
|
x:Name="DetailsEntry"
|
||||||
|
Text="" />
|
||||||
|
<Label
|
||||||
|
x:Name="errDetails"
|
||||||
|
TextColor="Red" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
x:Name="lblCheckbox"
|
||||||
|
Text="Check the correct information for this user" />
|
||||||
|
<HorizontalStackLayout
|
||||||
|
Spacing="10">
|
||||||
|
<CheckBox
|
||||||
|
x:Name="IsExternalCheck"
|
||||||
|
IsChecked="False"
|
||||||
|
VerticalOptions="Center" />
|
||||||
|
<Label
|
||||||
|
x:Name="lblExternal"
|
||||||
|
Text="Works external"
|
||||||
|
VerticalOptions="Center" />
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
<HorizontalStackLayout
|
||||||
|
Spacing="10">
|
||||||
|
<CheckBox
|
||||||
|
x:Name="IsRemoteCheck"
|
||||||
|
IsChecked="False"
|
||||||
|
VerticalOptions="Center" />
|
||||||
|
<Label
|
||||||
|
x:Name="lblRemote"
|
||||||
|
Text="Works remotely"
|
||||||
|
VerticalOptions="Center" />
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
|
||||||
|
<Label
|
||||||
|
x:Name="lblNbProjects"
|
||||||
|
Text="This user is currently working in how many projects" />
|
||||||
|
<HorizontalStackLayout
|
||||||
|
Spacing="10">
|
||||||
|
<Stepper
|
||||||
|
x:Name="NbProjectsStepper"
|
||||||
|
Maximum="10"
|
||||||
|
Minimum="0"
|
||||||
|
Increment="1"
|
||||||
|
Value="1"
|
||||||
|
ValueChanged="OnStepperChanged"
|
||||||
|
VerticalOptions="Center" />
|
||||||
|
<Label
|
||||||
|
x:Name="lblNbProj"
|
||||||
|
Text="1"
|
||||||
|
VerticalOptions="Center" />
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
x:Name="btnCreate"
|
||||||
|
Text="Create"
|
||||||
|
Clicked="OnCreateClicked" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</ContentPage>
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:DataType="ContentPage"
|
||||||
|
x:Class="YOUserbase.FAQPage"
|
||||||
|
Title="FAQ">
|
||||||
|
<VerticalStackLayout
|
||||||
|
Padding="30,60">
|
||||||
|
<Label
|
||||||
|
Text="Q: How do I add a new user?"
|
||||||
|
FontSize="Large"
|
||||||
|
Padding="0,0,0,20" />
|
||||||
|
<Label
|
||||||
|
Text="A: Go To the `User Overview` Tab and click the `New user` button."
|
||||||
|
FontSize="Medium"
|
||||||
|
Padding="0,0,0,40" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Text="Q: How do I delete an existing user?"
|
||||||
|
FontSize="Large"
|
||||||
|
Padding="0,0,0,20" />
|
||||||
|
<Label
|
||||||
|
Text="A: Go To the `User Overview` Tab and click the `Delete` button on the user you want to delete."
|
||||||
|
FontSize="Medium"
|
||||||
|
Padding="0,0,0,40" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Text="Q: How do I add a new group?"
|
||||||
|
FontSize="Large"
|
||||||
|
Padding="0,0,0,20" />
|
||||||
|
<Label
|
||||||
|
Text="A: Go To the `Group Overview` Tab and click the `New group` button."
|
||||||
|
FontSize="Medium"
|
||||||
|
Padding="0,0,0,40" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Text="Q: How do I delete an existing group?"
|
||||||
|
FontSize="Large"
|
||||||
|
Padding="0,0,0,20" />
|
||||||
|
<Label
|
||||||
|
Text="A: Go To the `Group Overview` Tab and click the `Delete` button on the group you want to delete."
|
||||||
|
FontSize="Medium"
|
||||||
|
Padding="0,0,0,40" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ContentPage>
|
||||||
@ -0,0 +1,37 @@
|
|||||||
|
using System.ComponentModel;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
|
namespace YOUserbase {
|
||||||
|
public class Group : INotifyPropertyChanged {
|
||||||
|
int id;
|
||||||
|
string name;
|
||||||
|
string details;
|
||||||
|
public int Id { get => id; set => ChangeValue(ref id, value); }
|
||||||
|
public string Name { get => name; set => ChangeValue(ref name, value); }
|
||||||
|
public string Details { get => details; set => ChangeValue(ref details, value); }
|
||||||
|
|
||||||
|
private static int index = 0;
|
||||||
|
|
||||||
|
public Group() {
|
||||||
|
Id = ++index;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Change value so setter looks a bit nicer :)
|
||||||
|
private void ChangeValue<T>(ref T field, T value) {
|
||||||
|
if (!value.Equals(field)) {
|
||||||
|
field = value;
|
||||||
|
NotifyPropertyChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// This method is called by the Set accessor of each property.
|
||||||
|
// The CallerMemberName attribute that is applied to the optional propertyName
|
||||||
|
// parameter causes the property name of the caller to be substituted as an argument.
|
||||||
|
private void NotifyPropertyChanged ([CallerMemberName] string propertyName = "")
|
||||||
|
{
|
||||||
|
if (PropertyChanged != null) { PropertyChanged (this, new PropertyChangedEventArgs (propertyName)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,89 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ContentPage
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:youserbase="clr-namespace:YOUserbase"
|
||||||
|
x:DataType="youserbase:GroupOverviewPage"
|
||||||
|
x:Class="YOUserbase.GroupOverviewPage"
|
||||||
|
Title="Group Overview">
|
||||||
|
<ScrollView>
|
||||||
|
<VerticalStackLayout
|
||||||
|
Spacing="25"
|
||||||
|
Padding="30,60"
|
||||||
|
VerticalOptions="Center">
|
||||||
|
|
||||||
|
<HorizontalStackLayout
|
||||||
|
Spacing="10">
|
||||||
|
<Button
|
||||||
|
x:Name="btnAdd"
|
||||||
|
Text="Add group"
|
||||||
|
SemanticProperties.Hint="Add a new group"
|
||||||
|
Clicked="OnAdd"
|
||||||
|
HorizontalOptions="Center" />
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
<CollectionView
|
||||||
|
x:Name="groups"
|
||||||
|
SelectionMode="Single">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Grid
|
||||||
|
Padding="10">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition
|
||||||
|
Height="*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="200" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="200" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="*" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="100" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="100" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Label
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding Id}"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding Name}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="2"
|
||||||
|
Text="{Binding Details}"
|
||||||
|
FontAttributes="Italic"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Button
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="3"
|
||||||
|
x:Name="btnEditThis"
|
||||||
|
Text="Edit"
|
||||||
|
SemanticProperties.Hint="Edits this item"
|
||||||
|
Clicked="OnEditItem"
|
||||||
|
ClassId="{Binding Id}" />
|
||||||
|
<Button
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="4"
|
||||||
|
x:Name="btnRemoveThis"
|
||||||
|
Text="Remove"
|
||||||
|
SemanticProperties.Hint="Deletes this item"
|
||||||
|
Clicked="OnDeleteItem"
|
||||||
|
ClassId="{Binding Id}" />
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</ContentPage>
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:DataType="ContentPage"
|
||||||
|
x:Class="YOUserbase.ImpressumPage"
|
||||||
|
Title="Impressum">
|
||||||
|
<VerticalStackLayout
|
||||||
|
Padding="30,60">
|
||||||
|
<Label
|
||||||
|
Text="This application was created by Kimi with the framework .NET MAUI"
|
||||||
|
Padding="0,0,0,20" />
|
||||||
|
<Label
|
||||||
|
Text="Gibb Berufsfachschule" />
|
||||||
|
<Label
|
||||||
|
Text="Lorrainestrasse 1" />
|
||||||
|
<Label
|
||||||
|
Text="3031 Bern" />
|
||||||
|
<Label
|
||||||
|
Text="Kimi Löffel" />
|
||||||
|
<Label
|
||||||
|
Text="076 721 32 29" />
|
||||||
|
<Label
|
||||||
|
Text="klo132407@stud.gibb.ch" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ContentPage>
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:youserbase="clr-namespace:YOUserbase"
|
||||||
|
xmlns:local="clr-namespace:YOUserbase"
|
||||||
|
x:DataType="youserbase:LoginPage"
|
||||||
|
x:Class="YOUserbase.LoginPage">
|
||||||
|
<ScrollView>
|
||||||
|
<VerticalStackLayout
|
||||||
|
Spacing="25"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
HorizontalOptions="Center">
|
||||||
|
<Image
|
||||||
|
Source="logo_white.png"
|
||||||
|
SemanticProperties.Description="YOUserbase Logo"
|
||||||
|
MaximumWidthRequest="300"
|
||||||
|
MaximumHeightRequest="340"
|
||||||
|
MinimumWidthRequest="300"
|
||||||
|
MinimumHeightRequest="340" />
|
||||||
|
<Label
|
||||||
|
Text="YOUserbase"
|
||||||
|
SemanticProperties.HeadingLevel="Level4"
|
||||||
|
FontSize="48"
|
||||||
|
FontFamily="BlimoneRegular"
|
||||||
|
HorizontalOptions="Center" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
x:Name="lblUsername"
|
||||||
|
Text="Username:"
|
||||||
|
WidthRequest="500" />
|
||||||
|
<Entry
|
||||||
|
x:Name="UsernameEntry"
|
||||||
|
WidthRequest="500" />
|
||||||
|
<Label
|
||||||
|
x:Name="lblPassword"
|
||||||
|
Text="Password:"
|
||||||
|
WidthRequest="500" />
|
||||||
|
<Entry
|
||||||
|
x:Name="PasswordEntry"
|
||||||
|
IsPassword="true"
|
||||||
|
WidthRequest="500" />
|
||||||
|
<Button
|
||||||
|
x:Name="btnLogin"
|
||||||
|
Text="Login"
|
||||||
|
Clicked="OnLoginClicked"
|
||||||
|
WidthRequest="500" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</ContentPage>
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<Shell
|
||||||
|
x:Class="YOUserbase.LoginShell"
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:local="clr-namespace:YOUserbase"
|
||||||
|
x:DataType="local:LoginShell">
|
||||||
|
|
||||||
|
<ShellContent
|
||||||
|
Title="Login"
|
||||||
|
ContentTemplate="{DataTemplate local:LoginPage}" />
|
||||||
|
</Shell>
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:youserbase="clr-namespace:YOUserbase"
|
||||||
|
x:DataType="youserbase:MainPage"
|
||||||
|
x:Class="YOUserbase.MainPage">
|
||||||
|
<ScrollView>
|
||||||
|
<VerticalStackLayout
|
||||||
|
Spacing="25"
|
||||||
|
Padding="900,0"
|
||||||
|
VerticalOptions="Center">
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</ContentPage>
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="colorPrimary">#512BD4</color>
|
||||||
|
<color name="colorPrimaryDark">#2B0B98</color>
|
||||||
|
<color name="colorAccent">#2B0B98</color>
|
||||||
|
</resources>
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>UIDeviceFamily</key>
|
||||||
|
<array>
|
||||||
|
<integer>1</integer>
|
||||||
|
<integer>2</integer>
|
||||||
|
</array>
|
||||||
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>XSAppIconAssets</key>
|
||||||
|
<string>Assets.xcassets/appicon.appiconset</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.Maui;
|
||||||
|
using Microsoft.Maui.Hosting;
|
||||||
|
|
||||||
|
namespace YOUserbase;
|
||||||
|
|
||||||
|
class Program : MauiApplication
|
||||||
|
{
|
||||||
|
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||||
|
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
var app = new Program();
|
||||||
|
app.Run(args);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
<maui:MauiWinUIApplication
|
||||||
|
x:Class="YOUserbase.WinUI.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:maui="using:Microsoft.Maui"
|
||||||
|
xmlns:local="using:YOUserbase.WinUI">
|
||||||
|
|
||||||
|
</maui:MauiWinUIApplication>
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Package
|
||||||
|
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||||
|
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||||
|
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
||||||
|
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
||||||
|
IgnorableNamespaces="uap rescap">
|
||||||
|
|
||||||
|
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
|
||||||
|
|
||||||
|
<mp:PhoneIdentity PhoneProductId="57B21C99-F412-47C4-9C36-3ED0EFA995B1" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||||
|
|
||||||
|
<Properties>
|
||||||
|
<DisplayName>$placeholder$</DisplayName>
|
||||||
|
<PublisherDisplayName>User Name</PublisherDisplayName>
|
||||||
|
<Logo>$placeholder$.png</Logo>
|
||||||
|
</Properties>
|
||||||
|
|
||||||
|
<Dependencies>
|
||||||
|
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||||
|
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||||
|
</Dependencies>
|
||||||
|
|
||||||
|
<Resources>
|
||||||
|
<Resource Language="x-generate" />
|
||||||
|
</Resources>
|
||||||
|
|
||||||
|
<Applications>
|
||||||
|
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
|
||||||
|
<uap:VisualElements
|
||||||
|
DisplayName="$placeholder$"
|
||||||
|
Description="$placeholder$"
|
||||||
|
Square150x150Logo="$placeholder$.png"
|
||||||
|
Square44x44Logo="$placeholder$.png"
|
||||||
|
BackgroundColor="transparent">
|
||||||
|
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" />
|
||||||
|
<uap:SplashScreen Image="$placeholder$.png" />
|
||||||
|
</uap:VisualElements>
|
||||||
|
</Application>
|
||||||
|
</Applications>
|
||||||
|
|
||||||
|
<Capabilities>
|
||||||
|
<rescap:Capability Name="runFullTrust" />
|
||||||
|
</Capabilities>
|
||||||
|
|
||||||
|
</Package>
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<assemblyIdentity version="1.0.0.0" name="YOUserbase.WinUI.app"/>
|
||||||
|
|
||||||
|
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<windowsSettings>
|
||||||
|
<!-- The combination of below two tags have the following effect:
|
||||||
|
1) Per-Monitor for >= Windows 10 Anniversary Update
|
||||||
|
2) System < Windows 10 Anniversary Update
|
||||||
|
-->
|
||||||
|
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
|
||||||
|
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
||||||
|
</windowsSettings>
|
||||||
|
</application>
|
||||||
|
</assembly>
|
||||||
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
<true/>
|
||||||
|
<key>UIDeviceFamily</key>
|
||||||
|
<array>
|
||||||
|
<integer>1</integer>
|
||||||
|
<integer>2</integer>
|
||||||
|
</array>
|
||||||
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>XSAppIconAssets</key>
|
||||||
|
<string>Assets.xcassets/appicon.appiconset</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"Windows Machine": {
|
||||||
|
"commandName": "MsixPackage",
|
||||||
|
"nativeDebugging": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 231 B |
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
@ -0,0 +1,15 @@
|
|||||||
|
Any raw assets you want to be deployed with your application can be placed in
|
||||||
|
this directory (and child directories). Deployment of the asset to your application
|
||||||
|
is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
|
||||||
|
|
||||||
|
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||||
|
|
||||||
|
These files will be deployed with you package and will be accessible using Essentials:
|
||||||
|
|
||||||
|
async Task LoadMauiAsset()
|
||||||
|
{
|
||||||
|
using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
|
||||||
|
using var reader = new StreamReader(stream);
|
||||||
|
|
||||||
|
var contents = reader.ReadToEnd();
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 1.8 KiB |
@ -0,0 +1,92 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<?xaml-comp compile="true" ?>
|
||||||
|
<ResourceDictionary
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
||||||
|
|
||||||
|
<Color
|
||||||
|
x:Key="Primary">#155860</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Secondary">#35B3BD</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Tertiary">#1C3F40</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="White">#EFE8EA</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Black">#111012</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Gray100">#E1E1E1</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Gray200">#C8C8C8</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Gray300">#ACACAC</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Gray400">#919191</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Gray500">#6E6E6E</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Gray600">#404040</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Gray900">#212121</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Gray950">#141414</Color>
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="PrimaryBrush"
|
||||||
|
Color="{StaticResource Primary}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="SecondaryBrush"
|
||||||
|
Color="{StaticResource Secondary}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="TertiaryBrush"
|
||||||
|
Color="{StaticResource Tertiary}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="WhiteBrush"
|
||||||
|
Color="{StaticResource White}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="BlackBrush"
|
||||||
|
Color="{StaticResource Black}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="Gray100Brush"
|
||||||
|
Color="{StaticResource Gray100}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="Gray200Brush"
|
||||||
|
Color="{StaticResource Gray200}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="Gray300Brush"
|
||||||
|
Color="{StaticResource Gray300}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="Gray400Brush"
|
||||||
|
Color="{StaticResource Gray400}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="Gray500Brush"
|
||||||
|
Color="{StaticResource Gray500}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="Gray600Brush"
|
||||||
|
Color="{StaticResource Gray600}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="Gray900Brush"
|
||||||
|
Color="{StaticResource Gray900}" />
|
||||||
|
<SolidColorBrush
|
||||||
|
x:Key="Gray950Brush"
|
||||||
|
Color="{StaticResource Gray950}" />
|
||||||
|
|
||||||
|
<Color
|
||||||
|
x:Key="Yellow100Accent">#F7B548</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Yellow200Accent">#FFD590</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Yellow300Accent">#FFE5B9</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Cyan100Accent">#28C2D1</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Cyan200Accent">#7BDDEF</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Cyan300Accent">#C3F2F4</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Blue100Accent">#3E8EED</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Blue200Accent">#72ACF1</Color>
|
||||||
|
<Color
|
||||||
|
x:Key="Blue300Accent">#A7CBF6</Color>
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
||||||
@ -0,0 +1,779 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<?xaml-comp compile="true" ?>
|
||||||
|
<ResourceDictionary
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="ActivityIndicator">
|
||||||
|
<Setter
|
||||||
|
Property="Color"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="IndicatorView">
|
||||||
|
<Setter
|
||||||
|
Property="IndicatorColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter
|
||||||
|
Property="SelectedIndicatorColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray100}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Border">
|
||||||
|
<Setter
|
||||||
|
Property="Stroke"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter
|
||||||
|
Property="StrokeShape"
|
||||||
|
Value="Rectangle" />
|
||||||
|
<Setter
|
||||||
|
Property="StrokeThickness"
|
||||||
|
Value="1" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="BoxView">
|
||||||
|
<Setter
|
||||||
|
Property="Color"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Button">
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Primary}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter
|
||||||
|
Property="CornerRadius"
|
||||||
|
Value="8" />
|
||||||
|
<Setter
|
||||||
|
Property="Padding"
|
||||||
|
Value="14,10" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="CheckBox">
|
||||||
|
<Setter
|
||||||
|
Property="Color"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="Color"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="DatePicker">
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Editor">
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter
|
||||||
|
Property="PlaceholderColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Entry">
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter
|
||||||
|
Property="PlaceholderColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Frame">
|
||||||
|
<Setter
|
||||||
|
Property="HasShadow"
|
||||||
|
Value="False" />
|
||||||
|
<Setter
|
||||||
|
Property="BorderColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter
|
||||||
|
Property="CornerRadius"
|
||||||
|
Value="8" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="ImageButton">
|
||||||
|
<Setter
|
||||||
|
Property="Opacity"
|
||||||
|
Value="1" />
|
||||||
|
<Setter
|
||||||
|
Property="BorderColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="BorderWidth"
|
||||||
|
Value="0" />
|
||||||
|
<Setter
|
||||||
|
Property="CornerRadius"
|
||||||
|
Value="0" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="Opacity"
|
||||||
|
Value="0.5" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Label">
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="16" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="ListView">
|
||||||
|
<Setter
|
||||||
|
Property="SeparatorColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||||
|
<Setter
|
||||||
|
Property="RefreshControlColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Picker">
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="TitleColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter
|
||||||
|
Property="TitleColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="ProgressBar">
|
||||||
|
<Setter
|
||||||
|
Property="ProgressColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="ProgressColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="RadioButton">
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="RefreshView">
|
||||||
|
<Setter
|
||||||
|
Property="RefreshColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="SearchBar">
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="PlaceholderColor"
|
||||||
|
Value="{StaticResource Gray500}" />
|
||||||
|
<Setter
|
||||||
|
Property="CancelButtonColor"
|
||||||
|
Value="{StaticResource Gray500}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter
|
||||||
|
Property="PlaceholderColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="SearchHandler">
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="PlaceholderColor"
|
||||||
|
Value="{StaticResource Gray500}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter
|
||||||
|
Property="PlaceholderColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Shadow">
|
||||||
|
<Setter
|
||||||
|
Property="Radius"
|
||||||
|
Value="15" />
|
||||||
|
<Setter
|
||||||
|
Property="Opacity"
|
||||||
|
Value="0.5" />
|
||||||
|
<Setter
|
||||||
|
Property="Brush"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="Offset"
|
||||||
|
Value="10,10" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Slider">
|
||||||
|
<Setter
|
||||||
|
Property="MinimumTrackColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="MaximumTrackColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter
|
||||||
|
Property="ThumbColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="MinimumTrackColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter
|
||||||
|
Property="MaximumTrackColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter
|
||||||
|
Property="ThumbColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="SwipeItem">
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Switch">
|
||||||
|
<Setter
|
||||||
|
Property="OnColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="ThumbColor"
|
||||||
|
Value="{StaticResource White}" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="OnColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
<Setter
|
||||||
|
Property="ThumbColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
<VisualState
|
||||||
|
x:Name="On">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="OnColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray200}}" />
|
||||||
|
<Setter
|
||||||
|
Property="ThumbColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
<VisualState
|
||||||
|
x:Name="Off">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="ThumbColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray400}, Dark={StaticResource Gray500}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="TimePicker">
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="Transparent" />
|
||||||
|
<Setter
|
||||||
|
Property="FontFamily"
|
||||||
|
Value="AllianceNo1Regular" />
|
||||||
|
<Setter
|
||||||
|
Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumHeightRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="MinimumWidthRequest"
|
||||||
|
Value="44" />
|
||||||
|
<Setter
|
||||||
|
Property="VisualStateManager.VisualStateGroups">
|
||||||
|
<VisualStateGroupList>
|
||||||
|
<VisualStateGroup
|
||||||
|
x:Name="CommonStates">
|
||||||
|
<VisualState
|
||||||
|
x:Name="Normal" />
|
||||||
|
<VisualState
|
||||||
|
x:Name="Disabled">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter
|
||||||
|
Property="TextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateGroupList>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Page"
|
||||||
|
ApplyToDerivedTypes="True">
|
||||||
|
<Setter
|
||||||
|
Property="Padding"
|
||||||
|
Value="0" />
|
||||||
|
<Setter
|
||||||
|
Property="BackgroundColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="Shell"
|
||||||
|
ApplyToDerivedTypes="True">
|
||||||
|
<Setter
|
||||||
|
Property="Shell.BackgroundColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter
|
||||||
|
Property="Shell.ForegroundColor"
|
||||||
|
Value="{OnPlatform WinUI={StaticResource Primary}, Default={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="Shell.TitleColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="Shell.DisabledColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter
|
||||||
|
Property="Shell.UnselectedColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray200}}" />
|
||||||
|
<Setter
|
||||||
|
Property="Shell.NavBarHasShadow"
|
||||||
|
Value="False" />
|
||||||
|
<Setter
|
||||||
|
Property="Shell.TabBarBackgroundColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
|
||||||
|
<Setter
|
||||||
|
Property="Shell.TabBarForegroundColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="Shell.TabBarTitleColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="Shell.TabBarUnselectedColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="NavigationPage">
|
||||||
|
<Setter
|
||||||
|
Property="BarBackgroundColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BarTextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="IconColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
TargetType="TabbedPage">
|
||||||
|
<Setter
|
||||||
|
Property="BarBackgroundColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter
|
||||||
|
Property="BarTextColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||||
|
<Setter
|
||||||
|
Property="UnselectedTabColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
|
||||||
|
<Setter
|
||||||
|
Property="SelectedTabColor"
|
||||||
|
Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
||||||
@ -0,0 +1,56 @@
|
|||||||
|
using System.ComponentModel;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
|
namespace YOUserbase {
|
||||||
|
public class User : INotifyPropertyChanged {
|
||||||
|
int id;
|
||||||
|
string firstname;
|
||||||
|
string lastname;
|
||||||
|
DateTime birthDate;
|
||||||
|
string details;
|
||||||
|
Group workingGroup;
|
||||||
|
bool isFullTime;
|
||||||
|
bool isExternal;
|
||||||
|
bool isRemote;
|
||||||
|
int nbProjects;
|
||||||
|
public int Id { get => id; set => ChangeValue(ref id, value); }
|
||||||
|
public string Firstname { get => firstname; set => ChangeValue(ref firstname, value); }
|
||||||
|
public string Lastname { get => lastname; set => ChangeValue(ref lastname, value); }
|
||||||
|
public DateTime BirthDate { get => birthDate; set => ChangeValue(ref birthDate, value); }
|
||||||
|
public string Details { get => details; set => ChangeValue(ref details, value); }
|
||||||
|
public Group WorkingGroup { get => workingGroup; set => ChangeValue(ref workingGroup, value); }
|
||||||
|
public bool IsFullTime { get => isFullTime; set => ChangeValue(ref isFullTime, value); }
|
||||||
|
public bool IsExternal { get => isExternal; set => ChangeValue(ref isExternal, value); }
|
||||||
|
public bool IsRemote { get => isRemote; set => ChangeValue(ref isRemote, value); }
|
||||||
|
public int NbProjects { get => nbProjects; set => ChangeValue(ref nbProjects, value); }
|
||||||
|
|
||||||
|
private static int index = 0;
|
||||||
|
|
||||||
|
public User() {
|
||||||
|
Id = ++index;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User(int id) {
|
||||||
|
Id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Change value so setter looks a bit nicer :)
|
||||||
|
private void ChangeValue<T>(ref T field, T value, [CallerMemberName] string propertyName = "") {
|
||||||
|
if (!value.Equals(field)) {
|
||||||
|
field = value;
|
||||||
|
NotifyPropertyChanged(propertyName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// This method is called by the Set accessor of each property.
|
||||||
|
// The CallerMemberName attribute that is applied to the optional propertyName
|
||||||
|
// parameter causes the property name of the caller to be substituted as an argument.
|
||||||
|
private void NotifyPropertyChanged ([CallerMemberName] string propertyName = "")
|
||||||
|
{
|
||||||
|
Console.WriteLine(propertyName);
|
||||||
|
if (PropertyChanged != null) { PropertyChanged (this, new PropertyChangedEventArgs (propertyName)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,107 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ContentPage
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:youserbase="clr-namespace:YOUserbase"
|
||||||
|
x:DataType="youserbase:UserOverviewPage"
|
||||||
|
x:Class="YOUserbase.UserOverviewPage"
|
||||||
|
Title="User Overview">
|
||||||
|
<ScrollView>
|
||||||
|
<VerticalStackLayout
|
||||||
|
Spacing="25"
|
||||||
|
Padding="30,60"
|
||||||
|
VerticalOptions="Center">
|
||||||
|
|
||||||
|
<HorizontalStackLayout
|
||||||
|
Spacing="10">
|
||||||
|
<Button
|
||||||
|
x:Name="btnAdd"
|
||||||
|
Text="Add user"
|
||||||
|
SemanticProperties.Hint="Add a new user"
|
||||||
|
Clicked="OnAdd"
|
||||||
|
HorizontalOptions="Center" />
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
<CollectionView
|
||||||
|
x:Name="users"
|
||||||
|
SelectionMode="None">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Grid
|
||||||
|
Padding="10">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition
|
||||||
|
Height="*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="30" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="200" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="200" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="200" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="*" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="100" />
|
||||||
|
<ColumnDefinition
|
||||||
|
Width="100" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Label
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding Id}"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding Firstname}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="2"
|
||||||
|
Text="{Binding Lastname}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="3"
|
||||||
|
Text="{Binding BirthDate}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Label
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="4"
|
||||||
|
Text="{Binding Details}"
|
||||||
|
FontAttributes="Italic"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="FillAndExpand" />
|
||||||
|
<Button
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="5"
|
||||||
|
x:Name="btnEditThis"
|
||||||
|
Text="Edit"
|
||||||
|
SemanticProperties.Hint="Edit this item"
|
||||||
|
Clicked="OnEditItem"
|
||||||
|
ClassId="{Binding Id}" />
|
||||||
|
<Button
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="6"
|
||||||
|
x:Name="btnRemoveThis"
|
||||||
|
Text="Remove"
|
||||||
|
SemanticProperties.Hint="Deletes this item"
|
||||||
|
Clicked="OnDeleteItem"
|
||||||
|
ClassId="{Binding Id}" />
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</ContentPage>
|
||||||
Loading…
Reference in new issue