Ads by Google

Donate

If you like articles and you want an increase of them, please make a little donation. If you make a donation you can submit us by mail an argument for next articles!

Importo: 

add RSS

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati

Subscribe to Blog

Follow us on Twitter

follow us

Manfriday blog gadget

Blog

Finally the WPF Ribbon has been released officially by Microsoft. This very powerful component will allow to develop modern applications easily .

Will be also available a new project template in Visual Studio and Expression Blend.

 

This is a interesting introduction to the WPF Ribbon

Enjoy yourself...

 

Bye bye and happy holidays

 

 
Sql Server single quote escape

Just a note about single quote escape in SQL server... :-)

 the following query

SELECT *
FROM Person.Name
WHERE Name = 'D'agostino'

 will give you an error... so to escape the single quote you have to use '' 

 

 SELECT *

FROM Person.Name
WHERE Name = 'D''agostino'

 

 
C# 4.0 Parallel Computing

I think this is the best news of .NET 4.0, because allows to improve performance
of your application in a very simple and safe way and in many situations.
 
Safe is the key, infact I've never seen anyone to parallelize a for statement using
the ProcessorCount and delegate approach , because nobody want introduce
side effects in its code to parallelize a stupid for... anyway now with the native
implementation of Foreach and for statements is really safe and the improvement
of performance is real good.
 
// Sequential version             
foreach (var item in sourceCollection) 
{     
Process(item); 
} 
 // Parallel equivalent  
Parallel.ForEach(sourceCollection, item => Process(item));
 
When your action on a single item inside a for loop is independent from other items,
you can easily parallelize it as in the above example.
In this example if you have 4 processors in your workstation, the speedup will be
quite near to 4, that's pretty good. 
 
 
Blend 4 news, PathPanel Bug ?

the Blend 4 RC is now available and it brings a lot of news. It's incredible the amount of new controls, shapes and behaviours that microsoft introduced. 
I think that they leveraged the MVVM pattern in the right way, now designers can start to go deeply with events in a MVVM application too. Yes, because for a designer was impossible to approach to command world, but now with the new set of attached behaviours and actions is really simple to target events and handle them without write down code.
 
 
 An other amazing feature is the PathListBox ... infact you can bind the layout of a list box to a geometrical shape : an ellipse, a path or something else.
this produce awesome effects in your application.. here an example of Pathlistbox from xaml ninja
 
 
 
An other very useful control is the PathPanel that allows to you to define your own itemscontrol and use the pathpanel as ItemsPanel, unfortunately I discovered that the OrientToPath property doesn't work as expected. Probably the PathPanel will be removed in the RTM version of WPF 4, I hope that it will come back soon.
 
 
Code Bubbles

An interesting new IDE paradigm. 

The demo video is really awesome and shows some really good features. I don't know if could be more productive than a traditional IDE, but I can't wait to give it a try .

http://www.cs.brown.edu/people/acb/codebubbles_site.htm

 

 
MIX10

Probably the best mix ever is going live in Las Vegas. The keynote day 1 was amazing... silverligth 4, XNA and Windows Mobile 7 astonished everyone today. 

I want suggest to follow the keynote day 2 tomorrow, I'm sure that the italian guy Giorgio Sardo will surprise us, he is really brilliant !!!

Speaking about this blog, I will be back really soon with a lot of WPF tips and tricks.

 

Bye 

 

 
DataGridComboBoxColumn Binding
Domenica 25 Ottobre 2009 13:58
 
I want show you a great hack by Joel on computing to fix a bug of DataGridComboBoxColumn binding. 
using this class instead of DataGridComboBoxColumn  you will be able to apply binding to this column type.
 
This is the elegant solution of Joel 
 
public class DataGridComboBoxColumnWithBindingHack : DataGridComboBoxColumn
    {
        protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem)
        {
            FrameworkElement element = base.GenerateEditingElement(cell, dataItem);
            CopyItemsSource(element);
            return element;
        }
 
 
WPF Printing
Domenica 25 Ottobre 2009 13:04

Printing with WPF is very simple and amazing . We were used to do that whit GDI, where you need to draw every single element. Instead with wpf you can print directly an user control in a single page.
Let's see how to do that.
 
private void InvokePrint(object sender, RoutedEventArgs e)
        {
            // Create the print dialog object and set options
            PrintDialog pDialog = new PrintDialog();
            pDialog.PageRangeSelection = PageRangeSelection.AllPages;
            pDialog.UserPageRangeEnabled = true;

            // Display the dialog. This returns true if the user presses the Print button.
            Nullable<Boolean> print = pDialog.ShowDialog();
            if (print == true)
            {
                
 
DataModel for interactive DataGridCheckBox
Lunedì 05 Ottobre 2009 22:49

Hi there, it has been an hard period for me, but now I can write again

something that I hope will be useful.

 

Speaking about WPF Datagrid, we saw how it's easy to have a DataGrid CheckBox

Column type inside our Datagrid.

What it's not so easy is create a external checkbox to perform the SelectAll function...

 

Why ? that because of WPF Datagrid is a presentation layer and it's not a good idea

to access data from that.

Behind the Datagrid you always need a DataContainer for manage your data, then you

can bind DataGrid on that.

DataTable is the most large used, but a List is suitable too.

 

DataTable is great to load data from a DB and maybe make some filter using LINQ,

but if you need of something that automatically update your DataGrid when data changes

probably the best choice is to implement a custom class implementing INotifyPropertyChanged.

 

 
How to insert an iframe in joomla content
Domenica 26 Luglio 2009 23:19

 

In joomla articles is not allowed to insert an iframe because it belongs to a blacklist of tags that are filtered. When you try to add one of these tags, it's automatically removed....it's a very useful security policy and we reccomend to don't disable it.

anyway if you have the need to use an iframe like the deepzoompix in the previous article...you can use this workaround :

1) install the full pack Jumi

2) build an html file with only the iframe that you need and put it on your web server. You need to do this because Jumi work only with local files.

3) in the joomla article use a snippet like this one : 

{jumi incl[yourfile.html] width[180px] high[430] scroll[no]}

 
DeepZoomPix Portfolio
Domenica 26 Luglio 2009 12:22

Today we were trying VS 2010 Beta, Expression Blend 3, Silverlight 3 SDK, ecc.... and we decided to give a look to DeepZoom Composer...

 very simple tool : add photos, arrange them and export the deep zoom project.... very cool. The export could be in silverlight or in Ajax.... Ajax? Yes, the SeaDragon has provided it...the result is awesome...try the full screen mode on deepzoompix below to see it working.

Instead if you want export as a silverlight project you can host your application on Silverlight Streaming services....We will try it next time.

 
<< Inizio < Prec. 1 2 3 4 Succ. > Fine >>

Pagina 1 di 4
Ricerca personalizzata