Today I found a XAML Clipart gallery that can come very handy! It already contains 12000+ Cliparts: Xamalot – Free XAML Clipart

image

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

If you ever want to add a service reference to your Windows Phone 7 app, and fail with a message like:
Custom tool warning: No endpoints compatible with Silverlight 3 were found.


Please remember the following 2 simple actions to finally get your reference:

1) Silverlight only supports basicHttpBinding (default: wsHttpBinding) -> so change it in the web.config file

2) close your Visual Studio & reopen it again.

Now try to update your reference: ét voilà!
This worked for me. Bonne chance!

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg
Fulltext Search On XML Files using XDocument
Given the following XML-Document:
<Customers>
<Customer>
 <Name>Jerry</Name>
 <Age>26</26>
 <Addresses>
<Address>
<Street>Main Street</Street>
<Address>
<Addresses>
<Customers>
1) How would you implement a fulltext search to return a List of Customer-Names?
public void StartRead(string searchTerm)
{
XDocument xDocument = XDocument.Parse(GetFile());
//get all retval-nodes (allthough it’s just 1)
var customers = from cmd in xDocument.Descendants(“Customer”)
select cmd;
//loop through retval-nodes (still only 1)
foreach (XElement cust in customers)
{
if (RecursiveParser(cust, searchTerm))
{
this.textBox1.Text += cust.Element(“Name”).Value + @” ### “;
}
else
{
this.textBox1.Text += @”empty ### “;
}
}
}
public bool RecursiveParser(XElement element, string searchTerm)
{
if (element.IsEmpty) return false;
if (element.HasElements)
{
foreach (XElement xElement in element.Elements())
{
if (xElement.Value.ToLower().Contains(searchTerm))
return true;
if (RecursiveParser(xElement, searchTerm))
return true;
}
}
return false;
}
2. How would you implement a fulltext search for addresses only?
Just replace “Customer” by “Address”:
//get all retval-nodes (allthough it’s just 1)
var customers = from cmd in xDocument.Descendants(“Address”)
select cmd;

Given the following XML-Document (it’s the output of a serialized List<Customer>):

<ArrayOfCustomer>
<Customer>
<Name>Jerry</Name>
<Age>26</Age>
<Addresses>
<Address>
<Street>Main Street</Street>
</Address>
</Addresses>
</Customer>
</ArrayOfCustomer>

1) How would you implement a fulltext search to return a List of Customer-Names?

(weiterlesen…)

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

MS announced, that there will be no database available for 3rd party applications, like on windows mobile 6.5. Instead of using SqlServerCE the user shall use cloud computing or xml files to store data.

So I searched for alternatives, and found a very pretty proof of concept. This guy is using a modified version of csharp-SQLLite to manage a database in Isolated Storage. I tried it a few minutes ago, and although it has some performance issues yet, it’s working also with the beta release of Windows Phone 7 Development Tools.

Here’s the link: Mobile Development .
Thanks, Dan, you made my day!

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

In Silverlight 3.0 XmlDocument is no more. Instead, we have to use XDocument, XElement, XAttribute from System.Xml.Linq namespace.

It can be used in combination with linq, so here is how to parse a very simple xml-file:

<?xml version=\”1.0\”?>
<retval>
<command>0</command>
<verb>1</verb>
<verb2>2</verb2>
</retval>

(weiterlesen…)

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

It is a real challenge to run Silverlight applications standalone and have a way to do interprocess communication with windows applications! For our ongoing challenge we got inspired by DesLighter from Blendables – after this I found a more generic recipe  Stand alone multiplatform Silverlight application on Tamir Khason Blog.

In both concepts you implement a purpose built http server in the Host Application that wants to communicate with a Silverlight App integrated in a Webbrowser Control.

Some of this Scenarios can be solved with Silverlight 4 out of Browser functionalities – yet this is a very flexible and generic approach that fits our current challenges better.

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

Just playing with Silverlight & Windows Phone 7.

Guess, the result is quite okay so far. For what you can see, I used 2 components:
- PanoramaView Control: look&feel like known from the MS presentations
- AnimateOrientation: does the animation when rotating the phone.

See the video attached for where I got so far.

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg