Sign in
|
Join
|
Help
Pavel's Blog
Pavel is a software guy that is interested in almost everything
software related... way too much for too little time
Home
Contact
About
RSS
Atom
Comments RSS
Go
Tags
.NET
.NET 4
.NET 4.0
.NET 4.5
.NET2
64 bit
AI
AJAX
Algorithms
ASP.NET
Audio
Azure
BUILD
C#
C# 3.0
C# 4.0
C# 5.0
C++
C++/CX
C++0X
C++11
CLR
CLR Explorer
COM
COM Apartments
Console
courses
D&D
Debugging
DEV
Developer Academy 3
Device Drivers
DirectCompute
DirectX
food
Fun
Games
Graphics
Intel
Intellisense
Internals
Interop
ITPRO
LINQ
LINQ to XML
Mathematics
Media Foundation
MEF
Memory Map Viewer
Metro
MFC
Multithreading
Native API
Native Development
NLP
Numerics
OFFTOPIC
OpenDay
PARSING
PDC2008
ReSharper
Robotics
Roslyn
Silverlight
Silverlight 2
Task Parallel Library
TECH
teched
teched_il
TechEd2010
TechedIsrael2008
thoughts
Threading
Tips
Tutorial
video
Vista
Visual Basic
Visual C++
Visual Studio
Visual Studio 11
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Visual Studio 2012
WebTech
Win32
WinDbg
Windows 8
Windows Devices User Group
Windows Phone
Windows Phone 8
Windows Phone User Group
Windows Platfrom User Group
Windows Runtime
Windows7
WPF
XAML
XNA
מכללת הי-טק
Archives
May 2013 (2)
April 2013 (2)
March 2013 (3)
February 2013 (2)
January 2013 (2)
December 2012 (3)
November 2012 (3)
October 2012 (5)
September 2012 (6)
August 2012 (4)
July 2012 (2)
June 2012 (4)
May 2012 (5)
April 2012 (4)
March 2012 (7)
February 2012 (7)
January 2012 (6)
December 2011 (6)
November 2011 (5)
October 2011 (5)
September 2011 (5)
August 2011 (5)
July 2011 (3)
June 2011 (3)
May 2011 (3)
April 2011 (3)
March 2011 (8)
February 2011 (4)
January 2011 (5)
December 2010 (5)
November 2010 (13)
October 2010 (4)
September 2010 (5)
August 2010 (7)
July 2010 (1)
June 2010 (3)
May 2010 (4)
April 2010 (1)
March 2010 (2)
February 2010 (2)
January 2010 (3)
December 2009 (1)
November 2009 (4)
October 2009 (5)
September 2009 (3)
August 2009 (1)
July 2009 (4)
June 2009 (3)
May 2009 (2)
April 2009 (3)
March 2009 (2)
February 2009 (5)
January 2009 (3)
December 2008 (2)
November 2008 (4)
October 2008 (7)
September 2008 (6)
August 2008 (5)
July 2008 (6)
June 2008 (3)
May 2008 (5)
April 2008 (2)
March 2008 (9)
February 2008 (4)
January 2008 (9)
December 2007 (6)
Navigation
Home
All Posts
RSS
Popular Tags
Browse by Tags
All Tags
»
C#
(
RSS
)
.NET
.NET 4
.NET 4.0
.NET 4.5
.NET2
.NET3.5
64 bit
AJAX
Algorithms
ASP.NET
Audio
Azure
BigInteger
C# 3.0
C# 4.0
C# 5.0
C++
C++/CX
C++11
CLR
COM
COM Apartments
Console
courses
Design
DEV
Developer Academy 3
DirectX
Fun
Games
Graphics
Intellisense
Internals
Interop
LINQ
LINQ to XML
Mathematics
Media Foundation
MEF
Metro
MFC
MS Agent
MVVM
Native Development
Numerics
OFFTOPIC
OpenDay
PARSING
Reactive Extensions
ReSharper
Roslyn
Rx
Shaders
Silverlight
Task Parallel Library
teched_il
TechEd2010
thoughts
Tutorial
Unity
video
Visual Basic
Visual C++
Visual Studio
Visual Studio 11
Visual Studio 2010
Visual Studio 2012
Win32
Windows 8
Windows Devices User Group
Windows Phone
Windows Phone 8
Windows Phone User Group
Windows Runtime
WPF
XAML
XNA
מכללת הי-טק
My Wish List for Windows “Blue”
17 May 13 05:48 PM
|
pavely
| with
no comments
Many rumors are flying around at this time about the upcoming release of Windows 8.1 (code named “Blue”, which represents a wave of product updates, including Windows Phone and others). I thought I‘d state my hopes for this release, not just in terms of user features, but also from a developer’s perspective. As a developer, I spend most of my time on my trusty laptop, not some tablet based device. Naturally, the desktop world is my friend. The Windows 8 Start screen is close to perfect for tablet...
XAML as DSL
05 May 13 04:14 PM
|
pavely
|
2 comment(s)
About 3 years ago, when .NET 4 and Visual Studio 2010 were just released, I’ve blogged (part 1, part 2) about the changes that took XAML from its WPF inception to the System.Xaml namespace and System.Xaml.Dll assembly, to be available more generally, not just for WPF. I’ve shown that XAML is just a declarative way of creating objects, setting their properties – sometimes in interesting ways. I did promise at the end of that second post that I’d show how to use attached properties, but never did have...
Windows Phone 8 Dev Camp
22 April 13 03:13 PM
|
pavely
| with
no comments
A few hours ago, Ariel Ben Horesh and myself presented two sessions for Windows Phone 8 development at Microsoft offices in Ra’anana (Israel). Thank you all for attending! It was fun – it was the second time I presented with someone else (Ariel) at the same time… we had no time to rehearse, but it was great! The code we showed can be found on github at https://github.com/arielbh/RightMyGuide . The slides links are below. Enjoy! BTW, the IMDB service I created to run on Azure will not be up forever...
Task and TaskCompletionSource
12 April 13 10:38 AM
|
pavely
|
1 comment(s)
The Task and Task<T> classes have been around since in .NET 4, and are fairly well known. In .NET 4, the typical usage of a Task is to run some code on a separate thread (by default using the thread pool), as a better alternative to the raw thread pool. Task has a multitude of constructors, but all of them expect a delegate that is the code to be run when the task is executed. Task provides methods such as Wait , so that code can continue when a Task finishes, and powerful continuation model...
Webcasts on Windows Phone 8 development
27 March 13 09:51 AM
|
pavely
| with
no comments
Recently, I’ve done two sessions on Windows Phone 8 development, that are available on YouTube . If you’re new to Windows Phone, these sessions may help you to get started. The session are in English and are comprised mostly of coding examples. A third session is planned to happen about 2 weeks from now. First session: Second session: Enjoy!
Windows Phone Tip: Beware of PhoneApplicationService.State
18 March 13 05:58 AM
|
pavely
| with
no comments
A Windows Phone 8 app may be in one of several states: In the running state, it’s the foreground app and the user is working with the app. So far good. If the user taps the Start hardware button, he’s taken to the Home screen (naturally), and our app becomes dormant. In this state, all its memory is intact, but all threads are suspended so that app cannot consume any CPU time. Entering this state causes the PhoneApplicationService.Deactivated event to be fired. The app should save its state because...
XAML Tip: Graphics with ItemsControl
23 February 13 12:04 AM
|
pavely
| with
no comments
Sometimes in a WPF or Windows Store or Windows Phone application we need to draw some things based on some collection of data items. Suppose we have the following simple data item: class CarData { public double Distance { get; set; } public string Image { get; set; } } Suppose we have a collection of CarData objects, and the requirement was to show a set of images along a line with a particular distance, like in the following screenshot: The distance from the left is determined by the Distance property...
C# Extension Methods and Fluent Interfaces
07 February 13 03:42 AM
|
pavely
|
1 comment(s)
The idea of fluent interfaces is not new, and has many forms. The basic idea is to use a single statement to encompass a series of operations that are natural, or at least simple, to use. There are very few fluent interfaces in .NET – the most well known, which has some fluent interface semantics, is the System.Text.StringBuilder class. Here’s a simple example: public static string BuildInfo(Process process) { return new StringBuilder( "Process " ) .AppendLine(process.ProcessName) .Append...
Windows Runtime with C++/C#: Anatomy of a WinRT Class
30 December 12 09:47 AM
|
pavely
| with
no comments
The Windows Runtime (WinRT) is based on COM (I referred to it in the past as a “better COM”), which means every method and property must be part of an interface. Also, COM does not support static members (only instance members) and does not easily support parameterized constructors. Inheritance is again an issue in classic COM – the closest thing is COM aggregation, and that’s not really inheritance in the usual sense of the word. Using C++/CX or a .NET language allows creating WinRT types that support...
Windows Phone 8: Integrating with the Wallet
08 November 12 11:18 AM
|
pavely
| with
no comments
Earlier this week, Microsoft held the Discovery event in Tel Aviv, Israel, with a distinguished guest, Steve Ballmer. In the event, Microsoft has officially launched Windows 8 and Windows Phone 8 (and XBOX 360 and Kinect…) in Israel. During the presentations, a wallet application on Windows Phone was shown, which was developed by us, CodeValue (and specifically by me ). This article and this one describe something about the app (in Hebrew). Here are some screenshots (some text is in Hebrew): In this...
Windows 8 Store Apps: Class Library vs. Windows Runtime Component
30 October 12 03:14 PM
|
pavely
|
1 comment(s)
When working with Windows 8 Store apps in C# (or VB, but I’ll stick with C#), there are several ways of creating reusable (or at least seemingly reusable) class libraries for Windows 8 Store projects. In this post, I’ll take a to look at the options, contrasting their features and usefulness. Looking at the new project dialog in Visual Studio 2012, under the Windows Store node (under Visual C# ), we can see the following: There is a third option, the traditional Class Library project located under...
Windows Phone: Playing Sound Effects
03 September 12 01:25 PM
|
pavely
| with
no comments
I wanted to create a simple timer application for Windows Phone . The timer would count backwards from a user configured value and when it reached zero, it would play some sound effect to indicate expiration. Sounds simple enough… This is how the application looks like: The problem turned out to be playing that sound effect. I had a WAV file I wanted to play. Silverlight has a MediaElement object that is capable of playing video and/or audio, so it seemed to be a good candidate for the job. MediaElement...
Windows 8 & Phone 8 UG August Meeting
29 August 12 11:22 PM
|
pavely
| with
no comments
Last evening we had a User Group meeting in Microsoft Offices in Ra’anana, with a lot of activity and fun. Thank you all for participating! In the first part, we discussed the Windows 8 Store from various angles, end user and developer. In the second part, we discussed Windows Phone 7.x and the upcoming 8, along with other sporadic topics - C++, WinRT, DirectX, COM, XNA, XAML… it was fun! And don’t forget the giveaways! Just as a gentle reminder, out next meeting is on September 13th , where we’ll...
Console Calculator with Roslyn (Part 2)
08 August 12 02:39 PM
|
pavely
| with
no comments
In the first part we created a simple enough calculator, but it lacked two features I wanted to have: 1. work with degrees or radians in trigonometric functions. 2. allow simple variables to be used without first declaring them. Let’s see how we can implement these features, starting with the first. Trigonometric functions work in radians, which is sometimes inconvenient.What we need is a way to change the parameter to the trigonometric functions by multiplying it by PI/180 if degrees was requested...
Console Calculator with Roslyn (Part 1)
06 August 12 11:49 AM
|
pavely
|
1 comment(s)
A while back I create a Console Calculator project (on CodePlex ) that used manual expression parsing to “understand” a mathematical expression and resolve it. As parsing was involved, this wasn’t a trivial undertaking. What about implementing something similar with Roslyn? Roslyn is Microsoft’s “Compiler as a Service” initiative, now in its second CTP. It provides a powerful framework for examining and manipulating code (among other services). Roslyn can be installed on VS 2010 SP1 or VS 2012 RC...
More Posts
Next page »