Internet Explorer Developer Tools Cookie Management

Never notied the cookie management built in to developer tools in IE before, Might have to try uing the browser again.


Posted by: Rick Sammons
Posted on: 8/17/2010 at 3:10 PM
Categories: Internet Explorer | Cookie Management
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Silverlight 4 Beta – A comment on new features

Just reading the new features list for Silverlight 4. Looks like things are going jump to the next level. ICommand, Webcam support, Richtext control.. Oh My!...

http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx#printing

Direct Access to local file on a client machine.. hmm. As a developer I like the idea of not having to rely solely on cookies, as a user I'll have to see how limited the access is.

Notification (aka “toast”) API >> no more writing a status view.

Right-click event handling >> Okay, now I believe in Santa again.

With all this coming in SL4 who is going to write anything in Winforms anymore?.

I've seen guesses for spring, it would be nice, but with SL3 hardly out of the box I would be amazed if it gets here that soon. Also after the nightmare I had moving from SL3 beta to SL3 release, I think I'm going to setup a laptop just to test the beta, and I get a client that wants to start work in SL4 pre-release I'm going to run for the hills.

Happy Coding.

 


Posted by: Rick Sammons
Posted on: 12/13/2009 at 12:02 AM
Tags:
Categories: Silverlight 4
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Silverlight ComboBox SelectedItem

Does not work!!!
<
ComboBox SelectedItem="{Binding Selected}" ItemsSource="{Binding items}" DisplayMemberPat="Name" />

Works!!!
<ComboBox ItemsSource="{Binding items}" SelectedItem="{Binding Selected}" DisplayMemberPath="Name" />

Can you spot the difference? It appears that SelectItem and ItemSource are fired in the order that they are added to the control.


Posted by: Rick Sammons
Posted on: 8/31/2009 at 9:40 PM
Tags: , ,
Categories: Silverlight 3
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

MouseDragElementBehavior with Silverlight 3

Some great new functionality. One of my favorites is MouseDragElementBehavior. We've all written drag and drop functionality over the years. but with Expression Blend and Silverlight 3 it's easier than ever.

To start, lets create a new Silverlight application, go ahead and select create new web site with the solution.

Once it loads, add a class named MyDragEvent.cs, using Microsoft.Expression.Interactivity.Layout in your class let add.

Change your class to inherit from MouseDragElementBehavior.
public class MyDragEvent : MouseDragElementBehavior

Add a constructor and in the constructor add an event to handle the mouse release event.
base.DragFinished += new MouseEventHandler(MyDragEvent_DragFinished);

Put in the code to handle the event, and lets add a popup in there just because there are not already enough popups in the world.
void MyDragEvent_DragFinished(object sender, MouseEventArgs e)
{
  
HtmlPage.Window.Alert("Ground control, this is major Tom.");
}

Now the fun part!!!

Save the solution and open it in Expression Blend.

In Blend, create a rectangle and change the background to a Gradient, whichever colors you like.

After that you select the 'Behaviors' Item in the Assets Tab (Like So)



Next you should notice that the event we created in our class is available in the listbox of Behaviors. Now all you have to do is drag 'MyDragEvent' on to the rectangle you created and then save your work. Now close Blend, go back to your solutions and run it. You should be able to drag until your wrist hurts.

 

Happy Coding!


Posted by: Rick Sammons
Posted on: 7/15/2009 at 7:04 AM
Tags: , ,
Categories: Silverlight 3
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Multiple Index Search with Lucene.NET

One of the issues I have run across lately is running a query across multiple Lucene.NET indexes. Although a rather simple exercise, something I had trouble finding help on none the less.

I'm going to assume you have already performed a search across a single index and just start from where you would create load multiple index and search.

To Start out we would need to create a Searchable object. In this exercise we will just assume that there are two indexs located in c:\index1 and c:\index2.

As mentioned before first we create an array of the searchable obj.

Lucene.Net.Search.
Searchable[] _searchables = new Searchable[2];

Next we have to create two index searcher and assign them two the searchables object

_searchables[0] = new IndexSearcher(@"c:\index1");
_searchables[1] = new IndexSearcher(@"c:\index2");

After that we can create a MultSearcher using the array of searchables for the constructor.
Lucene.Net.Search.MultiSearcher searcher = new MultiSearcher(_searchables);

We can now create our 'Hits' object and do our search.
Lucene.Net.Search.Hits hits = searcher.Search(compoundQuery);

After this it's just a matter or building your results.

Happy Coding.


Posted by: Rick Sammons
Posted on: 6/28/2009 at 7:48 PM
Tags: , ,
Categories: Lucene.NET
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed