|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;
//###################################################################################
// Odyssey.Controls
// (c) Copyright 2008 Thomas Gerber
// All rights reserved.
//
// THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
// APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
// HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
// IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
// ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
//###################################################################################
namespace Odyssey.Controls
{
public class ApplyPropertiesEventArgs:RoutedEventArgs
{
public ApplyPropertiesEventArgs(object item, BreadcrumbItem breadcrumb, RoutedEvent routedEvent)
: base(routedEvent)
{
Item = item;
Breadcrumb = breadcrumb;
}
/// <summary>
/// The breadcrumb for which to apply the properites.
/// </summary>
public BreadcrumbItem Breadcrumb { get; private set; }
/// <summary>
/// The data item of the breadcrumb.
/// </summary>
public object Item { get; private set; }
public ImageSource Image { get; set; }
/// <summary>
/// The trace that is used to show the title of a breadcrumb.
/// </summary>
public object Trace { get; set; }
/// <summary>
/// The trace that is used to build the path.
/// This can be used to remove the trace of the root item in the path, if necassary.
/// </summary>
public string TraceValue { get; set; }
}
public delegate void ApplyPropertiesEventHandler(object sender, ApplyPropertiesEventArgs e);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.