You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.5 KiB
90 lines
2.5 KiB
/************************************************************************
|
|
|
|
Extended WPF Toolkit
|
|
|
|
Copyright (C) 2010-2012 Xceed Software Inc.
|
|
|
|
This program is provided to you under the terms of the Microsoft Public
|
|
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
|
|
|
|
This program can be provided to you by Xceed Software Inc. under a
|
|
proprietary commercial license agreement for use in non-Open Source
|
|
projects. The commercial version of Extended WPF Toolkit also includes
|
|
priority technical support, commercial updates, and many additional
|
|
useful WPF controls if you license Xceed Business Suite for WPF.
|
|
|
|
Visit http://xceed.com and follow @datagrid on Twitter.
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
using Microsoft.Practices.Prism.Regions;
|
|
using Samples.Infrastructure.Controls;
|
|
using System.Collections.Generic;
|
|
namespace Samples.Modules.Text.Views
|
|
{
|
|
public class Movie
|
|
{
|
|
public string Title
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public string Review
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public double Rating
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Interaction logic for MultiLineTextEditor.xaml
|
|
/// </summary>
|
|
[RegionMemberLifetime( KeepAlive = false )]
|
|
public partial class MultiLineTextEditorView : DemoView
|
|
{
|
|
public MultiLineTextEditorView()
|
|
{
|
|
InitializeComponent();
|
|
_dataGrid.DataContext = InitMovieList();
|
|
}
|
|
|
|
private List<Movie> InitMovieList()
|
|
{
|
|
List<Movie> movieList = new List<Movie>();
|
|
movieList.Add( new Movie()
|
|
{
|
|
Title = "Lord Of The Rings",
|
|
Review = "A great movie with many special effects.",
|
|
Rating = 9
|
|
} );
|
|
movieList.Add( new Movie()
|
|
{
|
|
Title = "Pirates Of The Caribbean",
|
|
Review = "An epic pirate movie with ships, swords, explosions, and a treasure.",
|
|
Rating = 9.5
|
|
} );
|
|
movieList.Add( new Movie()
|
|
{
|
|
Title = "Batman",
|
|
Review = "Batman returns after 8 years, stronger than ever, to deliver Gotham City from a new criminal.",
|
|
Rating = 7.8
|
|
} );
|
|
movieList.Add( new Movie()
|
|
{
|
|
Title = "Indiana Jones",
|
|
Review = "Harrison Ford strikes back for an action-packed movie in the jungle to find a mysterious Crystal skull.",
|
|
Rating = 6.4
|
|
} );
|
|
|
|
return movieList;
|
|
}
|
|
}
|
|
}
|
|
|