Click here to Skip to main content
12,244,489 members (44,295 online)
Click here to Skip to main content

Stats

326.4K views
8K downloads
247 bookmarked
Posted

Exploring a Model-View-ViewModel Application; WPF Password Manager, Cipher Text

, 28 Dec 2008 CPOL
An article exploring Model-View-ViewModel (MVVM) WPF UI Design Pattern as leveraged in a WPF Password Manager. Password Manager allows user to modify the shape and behavior of a record at run-time.
CipherText.exe
CipherText.exe
CipherText
CipherText
bin
Debug
Release
CipherText.csi
CipherText.vbproj.user
Class Diagram
CommandViewClassDiagram.cd
FieldEditorClassDiagram.cd
RelayCommandClassDiagram.cd
Command
Converter
DataTemplateSelector
Deep Copy
EventArgs
Fonts
OCRAEXT.TTF
Model
My Project
MyExtensions
Random Password
Resources
Images
add.png
allRecords.png
bank.png
creditCards.png
delete.png
edit.png
email.png
engineer.png
firewall.png
hardware.png
key.png
keyPad.png
LockedUser.ico
server.png
softwareLicense.png
visa.png
vpn.png
webSite.png
String Formatting
SubsetFont.targets
SubsetFontTask.dll
Validation Rules - Helper
View
ViewModel
XAML Shield
CipherText.sln.cache
CipherText.suo
CipherText.csi
CipherText.vbproj.user
CommandViewClassDiagram.cd
FieldEditorClassDiagram.cd
RelayCommandClassDiagram.cd
OCRAEXT.TTF
obj
add.png
allRecords.png
bank.png
creditCards.png
delete.png
edit.png
email.png
engineer.png
firewall.png
hardware.png
key.png
keyPad.png
LockedUser.ico
server.png
softwareLicense.png
visa.png
vpn.png
webSite.png
SubsetFont.targets
SubsetFontTask.dll
CipherText.sln.cache
CipherText.suo
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{E558700D-992B-4A17-B158-B22259DB0C6E}</ProjectGuid>
    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
    <OutputType>WinExe</OutputType>
    <RootNamespace>CipherText</RootNamespace>
    <AssemblyName>CipherText</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <MyType>Custom</MyType>
    <OptionExplicit>On</OptionExplicit>
    <OptionCompare>Binary</OptionCompare>
    <OptionStrict>On</OptionStrict>
    <OptionInfer>On</OptionInfer>
    <ApplicationIcon>Resources\Images\LockedUser.ico</ApplicationIcon>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <IncrementalBuild>true</IncrementalBuild>
    <OutputPath>bin\Debug\</OutputPath>
    <DocumentationFile>CipherText.xml</DocumentationFile>
    <NoWarn>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036,42314</NoWarn>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugSymbols>false</DebugSymbols>
    <DefineDebug>false</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <IncrementalBuild>false</IncrementalBuild>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DocumentationFile>CipherText.xml</DocumentationFile>
    <NoWarn>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036,42314</NoWarn>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="PresentationFramework.Aero" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="UIAutomationProvider">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="WindowsBase">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="PresentationCore">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="PresentationFramework">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
    <BlendEmbeddedFont Include="Fonts\OCRAEXT.TTF">
      <IsSystemFont>True</IsSystemFont>
      <All>True</All>
    </BlendEmbeddedFont>
  </ItemGroup>
  <ItemGroup>
    <ApplicationDefinition Include="Application.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </ApplicationDefinition>
    <Compile Include="Application.xaml.vb">
      <SubType>Code</SubType>
      <DependentUpon>Application.xaml</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <Import Include="System.Linq" />
    <Import Include="System.Xml.Linq" />
    <Import Include="Microsoft.VisualBasic" />
    <Import Include="System" />
    <Import Include="System.Collections" />
    <Import Include="System.Collections.Generic" />
    <Import Include="System.Diagnostics" />
    <Import Include="System.Windows" />
    <Import Include="System.Windows.Controls" />
    <Import Include="System.Windows.Data" />
    <Import Include="System.Windows.Documents" />
    <Import Include="System.Windows.Input" />
    <Import Include="System.Windows.Shapes" />
    <Import Include="System.Windows.Media" />
    <Import Include="System.Windows.Media.Imaging" />
    <Import Include="System.Windows.Navigation" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Command\RelayCommand.vb" />
    <Compile Include="Converter\IsAllRecordsConverter.vb" />
    <Compile Include="DataTemplateSelector\CardTitleDataTemplateSelector.vb" />
    <Compile Include="Deep Copy\DeepCopy.vb" />
    <Compile Include="ViewModel\CardViewModel.vb" />
    <Compile Include="ViewModel\CardTypeCommandViewModel.vb" />
    <Compile Include="ViewModel\ChangePasswordDialogViewModel.vb" />
    <Compile Include="ViewModel\CharacterCasingCheckViewModel.vb" />
    <Compile Include="ViewModel\ModifyCaseCorrectionViewModel.vb" />
    <Compile Include="ViewModel\OptionViewModel.vb" />
    <Compile Include="View\CardTypeCommandView.xaml.vb">
      <DependentUpon>CardTypeCommandView.xaml</DependentUpon>
    </Compile>
    <Compile Include="View\ChangePasswordDialogView.xaml.vb">
      <DependentUpon>ChangePasswordDialogView.xaml</DependentUpon>
    </Compile>
    <Compile Include="View\ModifyCaseCorrectionView.xaml.vb">
      <DependentUpon>ModifyCaseCorrectionView.xaml</DependentUpon>
    </Compile>
    <Compile Include="XAML Shield\XAMLShield.xaml.vb">
      <DependentUpon>XAMLShield.xaml</DependentUpon>
    </Compile>
    <Compile Include="Converter\FieldTypeConverter.vb" />
    <Compile Include="EventArgs\EditCardEventArgs.vb" />
    <Compile Include="EventArgs\EventDelegates.vb" />
    <Compile Include="Random Password\RandomPassword.vb" />
    <Compile Include="Model\Card.vb" />
    <Compile Include="Model\CardField.vb" />
    <Compile Include="Model\CardBase.vb" />
    <Compile Include="Model\CardFields.vb" />
    <Compile Include="Model\Cards.vb" />
    <Compile Include="Model\CardType.vb" />
    <Compile Include="Model\DataBase.vb" />
    <Compile Include="Model\FieldCase.vb" />
    <Compile Include="Model\FieldType.vb" />
    <Compile Include="My Project\AssemblyInfo.vb">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="My Project\MyExtensions\MyWpfExtension.vb">
      <VBMyExtensionTemplateID>Microsoft.VisualBasic.WPF.MyExtension</VBMyExtensionTemplateID>
      <VBMyExtensionTemplateVersion>1.0.0.0</VBMyExtensionTemplateVersion>
    </Compile>
    <Compile Include="My Project\Resources.Designer.vb">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="My Project\Settings.Designer.vb">
      <AutoGen>True</AutoGen>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
      <DependentUpon>Settings.settings</DependentUpon>
    </Compile>
    <Compile Include="Model\CharacterCasing.vb" />
    <Compile Include="Model\CharacterCasingCheck.vb" />
    <Compile Include="String Formatting\FormatText.vb" />
    <Compile Include="Validation Rules - Helper\ValidationHelper.vb" />
    <Compile Include="Validation Rules - Helper\RegularExpressionPatternType.vb">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="ViewModel\ApplicationMainWindowViewModel.vb" />
    <Compile Include="ViewModel\DataBaseViewModel.vb" />
    <Compile Include="ViewModel\DataEditorViewModel.vb" />
    <Compile Include="ViewModel\FieldEditorViewModel.vb" />
    <Compile Include="ViewModel\ViewModelBase.vb" />
    <Compile Include="View\ApplicationMainWindowView.xaml.vb">
      <DependentUpon>ApplicationMainWindowView.xaml</DependentUpon>
    </Compile>
    <Compile Include="View\DatabaseView.xaml.vb">
      <DependentUpon>DatabaseView.xaml</DependentUpon>
    </Compile>
    <Compile Include="View\DataEditorView.xaml.vb">
      <DependentUpon>DataEditorView.xaml</DependentUpon>
    </Compile>
    <Compile Include="View\FieldEditorView.xaml.vb">
      <DependentUpon>FieldEditorView.xaml</DependentUpon>
    </Compile>
    <Compile Include="View\GeneratePasswordDialog.xaml.vb">
      <DependentUpon>GeneratePasswordDialog.xaml</DependentUpon>
    </Compile>
    <Compile Include="View\LoginDialog.xaml.vb">
      <DependentUpon>LoginDialog.xaml</DependentUpon>
    </Compile>
    <EmbeddedResource Include="My Project\Resources.resx">
      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.vb</LastGenOutput>
      <CustomToolNamespace>My.Resources</CustomToolNamespace>
    </EmbeddedResource>
    <None Include="Class Diagram\CommandViewClassDiagram.cd" />
    <None Include="Class Diagram\FieldEditorClassDiagram.cd" />
    <None Include="Class Diagram\RelayCommandClassDiagram.cd" />
    <None Include="My Project\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.vb</LastGenOutput>
    </None>
    <AppDesigner Include="My Project\" />
  </ItemGroup>
  <ItemGroup>
    <Page Include="View\CardTypeCommandView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="View\ChangePasswordDialogView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="View\ModifyCaseCorrectionView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="XAML Shield\XAMLShield.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="View\ApplicationMainWindowView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="View\DatabaseView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="View\DataEditorView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="View\FieldEditorView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="View\GeneratePasswordDialog.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="View\LoginDialog.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\Images\key.png" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\Images\edit.png" />
    <Resource Include="Resources\Images\engineer.png" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\Images\delete.png" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\Images\add.png" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\Images\bank.png" />
    <Resource Include="Resources\Images\keyPad.png" />
    <Resource Include="Resources\Images\firewall.png" />
    <Resource Include="Resources\Images\visa.png" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\Images\creditCards.png" />
    <Resource Include="Resources\Images\email.png" />
    <Resource Include="Resources\Images\hardware.png" />
    <Resource Include="Resources\Images\server.png" />
    <Resource Include="Resources\Images\softwareLicense.png" />
    <Resource Include="Resources\Images\webSite.png" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\Images\allRecords.png" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\Images\LockedUser.ico" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\Images\vpn.png" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
  <Import Project="SubsetFont.targets" />
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Karl Shifflett
Architect
United States United States

Current passions are: Electron, ES6, Node.js, Angular, Aurelia, hybrid, Socket.IO, MQTT, and IoT.

Still keen on WPF and Prism, but currently Electron and ES6 deliver the same apps with much better performance, and they are cross-platform.

My Github Repros

Just a grain of sand on the worlds beaches.


You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160426.1 | Last Updated 29 Dec 2008
Article Copyright 2008 by Karl Shifflett
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid