Design-Time Data for Windows Phone: Listing 1

MockDataSource.xaml.cs file in Expression Blend.

<SampleData:MockDataSource 
    xmlns:SampleData="clr-namespace:Expression.Blend.SampleData.MockDataSource" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
  <SampleData:MockDataSource.Images>
    <SampleData:ImagesItem 
        Title="Nam class" 
ImageUrl="/DesignTimeDataSample;component/SampleData/MockDataSource/MockDataSource_Files/image01.png" />
    <SampleData:ImagesItem 
        Title="Curae maecenas cras duis"
 ImageUrl="/DesignTimeDataSample;component/SampleData/MockDataSource/MockDataSource_Files/image02.png" />
  </SampleData:MockDataSource.Images>
</SampleData:MockDataSource>

About the Author

Nick Randolph runs Built to Roam, a consulting company that specializes in training, mentoring and assisting other companies build mobile applications. With a heritage in rich client applications for both the desktop and a variety of mobile platforms, Nick currently presents, writes and educates on the Windows Phone platform.

comments powered by Disqus

Featured

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.

Upcoming Events