Showing posts with label Silverlight. Show all posts
Showing posts with label Silverlight. Show all posts

Windows Phone 7 Chart Control Data-binding with xml (MVVM)

Sunday, December 18, 2011




Windows Phone 7 Provide you great Support of Data Visualization with Charts and Vector graphic. You can also bind chart with xml data by using mvvm pattern.

To Create Chart Control with XML.

1
Open Visual Studio 2010 then create new Silverlight windows Phone Project

2
Add XML file and define some schema



3
Add three Folders in Solution "Model", "View" , "ViewModel"

4
Add Class in Model name ResultView.cs and map your xml scheme with properties.


5
Add Class in ViewModel and Named ResultViewModel.cs in this class you load data from xml

6
Open App.xaml and define or copy from sample code in you Template for PhoneChart Portrait and Landscape orientation in ResourceDictionary.


7
Add one UserControl in your View Folder and named ResultView.xaml.

8
Open MainPage.xaml add View in it :)


9
Open MainPage.xaml and Override the OnOrientationChanged event handler and change template on On Orientation.

10
F5 and Enjoy :)

Download Source Code Here

By Usama Wahab Khan
for More Question and help email me :)
thanks ali sultan for send two screen short :)



Windows Phone 7 Application for Enterprise by using Silver-light Prism (Part 1)

Saturday, December 3, 2011


Windows Phone 7 Mango provides an exciting opportunity for companies and developers to build applications that travel with users, are interactive and attractive, and are available whenever and wherever users want to work with them.

Windows Phone 7 is really great opportunity for Companies and Developer to Provide best interactive Application with Metro User Experiences. The Windows Phone 7 mango Application with on premise Server and Applications, services and Application that runs on cloud with great support windows Azure Platform. Developer can build high Scalable , Rapid, standardized , reliable and powerful and hug applications that extends Functionality beyond. More Portable and accessible environment.


To build high level of applications for enterprise and consumer basic needs for Companies.

Strong UI and UX

Hug and Standards Application Development Platform

SOP,XML and other API Support

Application extensibility

Project Testing

Repaid Development

Easy and Separate Development Tools (designing, development ,testing)

Modular base development model.

Independence for Development Teams for Modular base Developing environment.

Microsoft Provide Widodws Phone with Complete solution for Application Development

XNA for Gaming Development with XNA and C# support.

Silverlight Rich User experiences and separate designing and development tools

Need standard and modular based approach. Microsoft Windows Phone Application Development Platform Silverlight. Allows you to code and design you application separately by using MVVM pattern.



For Modular Approach base development you need to development model separately and also with few framework dependency. So the solution is PRISM.




The signed Prism Library for Windows Phone 7 includes a subset of the Prism and Prism.Interaction library targeted to Windows Phone 7. This includes the Prism event aggregator, commands, view model, and interaction request. For information about using the Prism Phone Library, see the Windows Phone 7 Developer Guide community site athttp://wp7guide.codeplex.com/.

The guidance is designed to help architects and developers achieve the following objectives:

· Create an application from modules that can be built, assembled, and, optionally, deployed by independent teams using WPF or Silverlight.

· Minimize cross-team dependencies and allow teams to specialize in different areas, such as user interface (UI) design, business logic implementation, and infrastructure code development.

· Use an architecture that promotes reusability across independent teams.

· Increase the quality of applications by abstracting common services that are available to all the teams.

· Incrementally integrate new capabilities.

Application Development Challenges

1) Client application Requirement can be Change any time.

2) Customer Feedback during ADC(Application Development cycle) affect scope of Application.

3) It is very Important to build application in that manner where it can more flexible and can be easily update , modified and extended over the time.

4) Required great architecture to develop and manage this kind of flexible design. Which allows individual part of the application to be independently developed , design and test. Without effecting on rest of application.

5) Now today Application requirement are very much complex to development specially for enterprise which required more than developer or teams.

Teams for Development.

UI and UX designers.

Localizers.

Developer

SQA

One of the Biggest Challenge to designs application which can be used by multiple developers and teams for work simultaneously.

Develop application in pieces for multiple developer. and each can be developed independently. And ensure that the all pieces come together seamlessly and integrate into Application.

Most enterprise applications are sufficiently complex that they require more than one developer, maybe even a large

Designing and building applications in a monolithic style can lead to an application that is very difficult and inefficient to maintain. In this case, "monolithic" refers to an application in which the components are very tightly coupled and there is no clear separation between them. Typically, applications designed and built this way suffer from problemsthat make the developer's life hard. It is difficult to add new features to the system or replace existing features, it is difficult to resolve bugs without breaking other portions of the system, and it is difficult to test and deploy. Also, it impacts the ability of developers and designers to work efficiently together.

The Composite Approach

An effective remedy for these challenges is to partition the application into a number of discrete, loosely coupled,

semi-independent components that can then be easily integrated together into an application "shell" to form a

coherent solution. Applications designed and built this way are often known as composite applications.

Composite applications provide many benefits, including the following:

 They allow modules to be individually developed, tested, and deployed by different individuals or subteams; they

also allow them to be modified or extended with new functionality more easily, thereby allowing the application

to be more easily extended and maintained. Note that even single-person projects experience benefits in

creating more testable and maintainable applications using the composite approach.

Using Prism

Now that you've seen the major capabilities and design patterns that Prism supports, it's time to see how easily you can start to use Prism when developing a new application. This section provides an overview of the first few steps required to create a basic Prism application. You can extend this basic application to leverage the additional capabilities and design patterns provided by Prism, as required by your scenario.

A typical Prism application leverages most or all of the Prism capabilities and design patterns described earlier to be able to fully realize the benefits of the loose coupling and separation of concerns architectural design principles. However, for this example, the steps required to create a basic Prism application that consists of a single module that defines a single view are described.

Prism guidance includes completely rewritten documentation with the addition of new topics such as Model-View-ViewModel (MVVM), Managed Extensibility Framework (MEF), and application navigation.

The code assets include reusable library code (named the Prism Library), two reference implementations, QuickStart tutorials, and hands-on labs. The Prism Library is delivered as Microsoft signed assemblies and source code.

Important Prism Compound


Define the Shell


Bootstrapper




Useful Resources:

http://compositewpf.codeplex.com/

MVVM QuickStart

http://msdn.microsoft.com/en-us/library/gg430857(v=PandP.40).aspx

Prism Resource

§ Prism 4 Download

§ Visual Basic Prism 4 Reference Implementations, QuickStarts, and Hands-on Labs

§ Prism 4 Readme

§ Developer's Guide to Microsoft Prism (on MSDN)

§ What's new in Prism 4

§ Prism 4 Documentation (includes a PDF format)

§ Prism (all versions) Knowledge base

§ Prism (all versions) Known Issues


NEXT PART how can you use SharePOint with WP7

PSD to XMAL Microsoft Expression blend

Monday, May 23, 2011





Simple File uploader Silverlight

Tuesday, May 10, 2011


Finally Silverlight 5 Beta Is Available

Wednesday, April 13, 2011



Silverlight 5 continues the pace of rapid innovation, building on Silverlight 4's capabilities in the areas of rich applications and premium media experiences. With over 40 new features, the Silverlight 5 beta highlights dramatic video quality and performance improvements, as well as new capabilities that improve developer productivity


proved media support and rich UI capabilities:

Hardware Decode and presentation of H.264 improve performance for lower-power devices to render high-definition video using GPU support.

TrickPlay allows video to be played at different speeds and supports fast-forward and rewind. At up to twice the speed, audio pitch correction allows users to watch videos while preserving a
normal audio pitch.

Improved power awareness prevents the screen saver from being shown while watching video and allows the computer to sleep when video is not active.

Remote-control support allows users to control media playback.

Digital rights management advancements allow seamless switching between DRM media sources.

Building next-generation business applications:
Networking and Windows Communication Foundation enhancements:
Silverlight 5 performance improvements include:

Graphics improvements:

Graphics Processing Unit (GPU) accelerated 3-D application programming interface (API) provides rich graphics on the Web for building advanced data visualizations and rich user experience (UI).
Immediate mode graphics API allows direct rendering to the GPU.
Hardware acceleration is enabled in windowless mode with Internet Explorer 9.


Silverlight 5 extends features of the ‘Trusted Application’ model to the browser for the first time. These features, when enabled via a group policy registry key and an application certificate, mean users won’t need to leave the browser to perform complex tasks:

Host HTML content as a Web browser control within the Silverlight application. HTML pages, such as help content or e-mail, can be integrated within the application.
Read and write files to the user’s My Documents folder, making it easier to find media files or create local copies of reports.


Additional Silverlight 5 Features Included in this Beta
  • Hardware video decode for H.264 playback.
  • Multi‐core background JIT support for improved startup performance.
  • ComboBox type ahead with text searching.
  • Full keyboard support in full‐screen for trusted in‐browser applications, enables richer kiosk and
  • media viewing applications in‐browser.
  • Default filename in SaveFileDialog – Specify a default filename when you launch the SaveFileDialog.
  • Unrestricted filesystem access – trusted applications can Read write to files in any directory on
  • the filesystem.
  • Improved Graphics stack – The graphics stack has been re‐architected to bring over
  • improvements from WP7, such as Independent Animations.
  • Performance optimizations –
  • XAML Parser performance optimizations.
  • Network Latency optimizations. Text layout performance improvements.
  • Hardware acceleration is enabled in windowless mode with Internet Explorer 9.Silverlight 5 Features not included in this Beta
  • The Beta is a step towards the final release of Silverlight 5. The full feature set planned for Silverlight 5
  • was announced at the Firestarter event in December 2011 and also includes the following features not
  • shipped in this Beta:
  • Support for Postscript vector printing enables users to create reports and documents, including
  • the ability to create a virtual print view different from what is shown on the screen.
  • Improved power awareness prevents the screen saver from being shown while watching video and allows the computer to sleep when video is not active.
  • Remote control support, allowing users to control media playback
  • DRM advancements that allow seamless switching between DRM media sources.
  • Enhanced OpenType support.
  • Fluid user interface enables smoother animation within the UI. Inter‐Layout Transitions allow
  • developers to specify animations to apply when elements are added, removed or re‐ordered
  • within a layout. This provides smoother user experiences when, for example, items are inserted
  • into a list.
  • Text clarity is improved with Pixel Snapping.
  • The DataContextChanged event is being introduced.
  • WS‐Trust support: Security Assertion Markup Language authentication token.
  • 64 bit support
  • COM Interop for trusted applications running in‐browser.
  • Calling unmanaged code using P/Invoke from trusted applications in and out of browser.
  • The Pivot viewer control enables a visual way to rapidly sort through large collections of
  • graphical data, for example a catalog of movies represented by images of dvd covers, using
  • intuitive transitions to show the effects of filters on the result set

Download Silverlight 5 Beta and Tools

Window Phone FireStarter Registration Now

Thursday, April 7, 2011



Microsoft innovation centre invites you for Windows phone 7 training at Microsoft innovation centre. This training is arranged to empower students with the latest cutting edge technology.
Basic Agenda :
This training course is geared for beginners who want to get started with developing applications for the latest Windows Phone operating system.
Even if you don’t know Silverlight or XNA Framework, you’ll find this Training Course useful. More seasoned Silverlight developers should also
find this course useful, as it explains some of the differences between Silverlight and Silverlight for the phone.

Date: 11 April 2011
Venue: Microsoft Innovation centre
Time: 5:00 Pm - 7 :00 pm

for more details contact salman shakeel @ :salmanshakeel07@hotmail.com
:+92-343-2150605


Don't miss this exclusive student training.



for Registration
Subject : wp7
User Name :
Contact Number :
Email Address :
send it to
salmanshakeel07@hotmail.com

SilverLight PDF Writer

Sunday, January 30, 2011










Create Image ,Arc,Text,Barcode to PDF

silverPDF is a Silverlight library that makes it easier for developers to create PDF files on the client side.
silverPDF is based on two excellent open source projects: PdfSharp (http://www.pdfsharp.net) and iTextSharp (http://itextsharp.sourceforge.net)



SiverlightPDF Library .



Download Source
By Usama Wahab Khan


Silverlight & WPF Timeline Control


Overview

With this Silverlight and WPF control you can create interactive timelines. The control is inspired by Simile Timeline Control (which is implemented with ajax). It is completely based on templates and styles, so it is possible to provide different style for events and timeline itself. Please suggest features and vote for the project if interested. You can use it directly from HTML (for those who is not working with Silverlight) or include it into your Silverlight/WPF projects.


its Great Control to Create Project or team Site in silverlight

Thanks to
Andrew Syrov

SLARToolkit - Silverlight Augmented Reality Toolkit

Friday, January 28, 2011

How it works
This sample uses the SLARToolkit CaptureSourceMarkerDetector to detect the markers in each webcam frame. The detection result contains a transformation matrix for each found marker which is then used to transform the selected UIElement. The tracked marker region is highlighted with a red quad through the WriteableBitmapEx library.

SLARToolkit is a flexible Augmented Reality library for Silverlight with the aim to make real time Augmented Reality applications with Silverlight as easy and fast as possible. It can be used with Silverlight's Webcam API or with any other CaptureSource or a WriteableBitmap. SLARTookit is based on the established NyARToolkit and ARToolkit. SLARToolkit uses a dual license model and could be used for open or closed source applications under certain conditions. See the License page for details.
Features:
Download it, build your app and augment your reality
The open source SLARToolkit library and the samples are hosted at CodePlex. If you have any comments, questions or suggestions don't hesitate and write a comment, use the Issue Tracker on the CodePlex site or contact me via any other media.
Have fun with the library and please keep me updated if you use it anywhere so I can put a link on the project site.

Update 03-15-2010
Updated to the Silverlight 4 Release Candidate.

Update 04-15-2010
Updated to the final Silverlight 4 RTW build.


Live Demo


Live Video

Thanks To

René Schulte


    Sir Syed Univeristy Mega Seminar By AUC Technologies

    Monday, January 24, 2011

































    Speakers

    • Muhammad Atif Hussain (MCT,Ms,MCPD,MCTS)
    • Sharyar Javed (Youngest MCPD , MCTS (Web))
    • Usama Wahab Khan(Silverlight and Sharepoint Expert )
    • Umema Adil (Youngest MCP)
    • Kamran (MCTS)
    • Mauhib Iqbal(MCTS)

    Topics
  • Visual Studio 2010 SP1 and .NET Framework 4.0 (Atif) 09:00 AM - =9:30 AM
  • ASP.NET 4.0, AJAX, ASP.NET MVC and LINQ (Sharyar) 09:30 AM - 10:00 AM
  • Silverlight and Windows Phone 7 (Usama) 10:00 AM - 10:30 AM
  • SharePoint 2010 (Usama) 10:30 AM - 11:00 AM
  • Augmented Reality (Mauhib) 11:00 AM - 11:30 AM
  • Entrepreneur and Blogging (Umema Adil) 11:30 AM - 12:00 PM
  • SQL Server 2008 R2 (Kamran) 12:00 PM - 12:30 PM
  • ePortal (Quran) (ZAHID) 12:30 PM - 12:40 PM
  • Question and Answers 12:40 PM - 01:00 PM

  • Slides



    Windows Phone 7


    share point


    silverlight