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.
66 lines
2.3 KiB
66 lines
2.3 KiB
/***************************************************************************************
|
|
|
|
Toolkit for WPF
|
|
|
|
Copyright (C) 2007-2016 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
|
|
|
|
For more features, controls, and fast professional support,
|
|
pick up the Plus Edition at https://xceed.com/xceed-toolkit-plus-for-wpf/
|
|
|
|
Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids
|
|
|
|
************************************************************************************/
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using Xceed.Wpf.Toolkit;
|
|
using System.Collections.ObjectModel;
|
|
|
|
namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Window.Resources
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for WindowModelEditor.xaml
|
|
/// </summary>
|
|
public partial class WindowModelEditor : UserControl
|
|
{
|
|
public WindowModelEditor()
|
|
{
|
|
InitializeComponent();
|
|
|
|
ObservableCollection<ColorItem> alphaAvailableColors = new ObservableCollection<ColorItem>();
|
|
foreach( ColorItem item in _titleShadowBrushColorPicker.AvailableColors )
|
|
{
|
|
System.Windows.Media.Color color = System.Windows.Media.Color.FromArgb( ( byte )100, item.Color.Value.R, item.Color.Value.G, item.Color.Value.B );
|
|
alphaAvailableColors.Add( new ColorItem( color, item.Name ) );
|
|
}
|
|
_titleShadowBrushColorPicker.AvailableColors = alphaAvailableColors;
|
|
}
|
|
|
|
#region IsStyleEnabled
|
|
|
|
public static readonly DependencyProperty IsStyleEnabledProperty =
|
|
DependencyProperty.Register( "IsStyleEnabled", typeof( bool ), typeof( WindowModelEditor ), new UIPropertyMetadata( false ) );
|
|
|
|
public bool IsStyleEnabled
|
|
{
|
|
get { return ( bool )GetValue( IsStyleEnabledProperty ); }
|
|
set { SetValue( IsStyleEnabledProperty, value ); }
|
|
}
|
|
|
|
#endregion //IsStyleEnabled
|
|
}
|
|
}
|
|
|