簡単なC#Windows8グリッドアプリケーションを作成しました。
このレイアウトに慣れていない場合は、ここに簡単な説明があります:
私が欲しいのは単純です-いくつかのカスタムItemDetailPages
。GroupDetailPage
とのいくつかの項目をクリックして、複数の画像を含めることができるGroupedItemsPage
カスタムファイルに移動できるようにしたいと思います。.xaml
私が見逃していた簡単な方法があると確信しています。また、この情報は多くの人々に役立つと確信しているので、この質問に報奨金を提供します。
私はこれまでこれを行うのに苦労しました:
私はクラスでを作成しCustomDataItem
ました:SampleDataSource.cs
/// <summary>
/// Generic item data model.
/// </summary>
public class CustomDataItem : SampleDataCommon
{
public CustomDataItem(String uniqueId, String title, String subtitle, String imagePath, String description, String content, SampleDataGroup group)
: base(uniqueId, title, subtitle, imagePath, description)
{
this._content = content;
this._group = group;
}
private string _content = string.Empty;
public string Content
{
get { return this._content; }
set { this.SetProperty(ref this._content, value); }
}
private SampleDataGroup _group;
public SampleDataGroup Group
{
get { return this._group; }
set { this.SetProperty(ref this._group, value); }
}
}
ただし、明らかに、ObservableCollection
private ObservableCollection<SampleDataGroup> _allGroups = new ObservableCollection<SampleDataGroup>();
public ObservableCollection<SampleDataGroup> AllGroups
{
get { return this._allGroups; }
}
別のデータ型では不可能です。では、この場合はどうすればよいですか?
どうもありがとう。