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.
40 lines
1.2 KiB
40 lines
1.2 KiB
// <file> |
|
// <copyright see="prj:///doc/copyright.txt"/> |
|
// <license see="prj:///doc/license.txt"/> |
|
// <author name="Daniel Grunwald"/> |
|
// <version>$Revision$</version> |
|
// </file> |
|
|
|
using System; |
|
using System.Collections.Generic; |
|
using System.Reflection; |
|
using System.Windows.Controls; |
|
|
|
using ICSharpCode.Core; |
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
namespace ICSharpCode.StartPage |
|
{ |
|
/// <summary> |
|
/// Interaction logic for StartPageControl.xaml |
|
/// </summary> |
|
public partial class StartPageControl : UserControl |
|
{ |
|
public StartPageControl() |
|
{ |
|
InitializeComponent(); |
|
List<object> items = AddInTree.BuildItems<object>("/SharpDevelop/ViewContent/StartPage/Items", this, false); |
|
// WPF does not use DataTemplates if the item already is a UIElement; so we 'box' it. |
|
List<BoxEntry> entries = items.ConvertAll(control => new BoxEntry { Control = control } ); |
|
startPageItems.ItemsSource = entries; |
|
|
|
var aca = (AssemblyCopyrightAttribute)typeof(CommonAboutDialog).Assembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0]; |
|
copyrightText.Text = aca.Copyright; |
|
} |
|
|
|
sealed class BoxEntry |
|
{ |
|
public object Control { get; set; } |
|
} |
|
} |
|
}
|
|
|