background preloader

Windows phone 7

Facebook Twitter

ValidationControl-CustomValidationRulesExamples_1_2. Building WP7 Custom Validation Control - Validation Logic. <Visibility>Collapsed</Visibility> <Visibility>Visible</Visibility> <TextBox x:Name="DisabledOrReadonlyContent" Background="Transparent" Foreground="{StaticResource PhoneDisabledBrush}" FontWeight="{TemplateBinding FontWeight}" FontStyle="{TemplateBinding FontStyle}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" IsReadOnly="True" SelectionForeground="{TemplateBinding SelectionForeground}" SelectionBackground="{TemplateBinding SelectionBackground}" TextAlignment="{TemplateBinding TextAlignment}" TextWrapping="{TemplateBinding TextWrapping}" Text="{TemplateBinding Text}" />

Building WP7 Custom Validation Control - Architecture &amp; Basic Prototype. Published on: 4/6/2011| Views: 20228| Tags: CustomControls UI windows-phone Currently rated 4.08 by 13 people by WindowsPhoneGeek I am starting a series of 3 posts: "Building WP7 Custom Validation Control " in which I am going to talk about how to implement a fully functional, extensible and easy to use WP7 Validation Custom Control. This is the first articles, so I will start with architecture and basic prototype implementation. The idea Basically our VaidationControl will derive from TextBox and will enable users to define different validation rules(patterns). The final goal is to build a fully functional, extensible, stylable and easy to use validation control with custom logic that can be used in a Silverlight for Windows Phone 7 application. ValidationControl Architecture Here is how the basic structure of our ValidationControl should look like: Generally the control will have three important parts: 1. 2. 3.

Creating the basic VaidationControl prototype Step 1 - Create the project. The Application Design Process for Windows Phone.

Msdn library

Windows phone development quickstarts. Silverlight Toolkit - Download: Windows Phone Toolkit - August 2011 (7.1 SDK) Don’t forget to Encrypt your Windows Phone 7 Data. AESHMACSHA1HMACSHA256Rfc2898DeriveBytesSHA1SHA256 I thought I’d take some of these algorithms for a spin by building a sample app using Microsoft Visual Studio 2010 Express for Windows Phone. All I really wanted to do is use the Advanced Encryption Standard (AES) for symmetric key encryption to encrypt and decrypt some data so I could save it to Isolated Storage. Doing this would definitely check the security checkboxes of Microsoft’s customers and ISVs. Above are screenshots of the simple app I created. I also threw some buttons on there to save the newly encrypted data to Isolated Storage as an ApplicationSetting. Let’s take a look at some code. You’ll need to include the following using statements to get started: using System.IO; using System.IO.IsolatedStorage; using System.Security.Cryptography; using System.Text; The Encrypt() method below takes the data you want to encrypt as well as a password and salt value as arguments.

Keep coding, Rob Like this: Like Loading... Windows phone and xbox live indie games development.