- gridstep2.zip
- GOAOpen
- Extensions
- Grid
- GoaControls
- HandyContentControl
- HandyDataPresenter
- HandyDropDown
- HandyList
- HandyList
- HandyLocatedBorder
- HandyScroller
- HandySizers
- GoaOpen.csproj
- LICENSE.txt
- Properties
- ReadMe.txt
- ResourceHelper.cs
- SLControls
- Data
- DataGrid
- Extended
- Calendar
- DatePicker
- GridSplitter
- TabControl
- Standard
- Button
- CheckBox
- HandySlider
- HandyStyler
- HyperlinkButton
- ListBox
- ProgressBar
- RadioButton
- TextBox
- ToggleButton
- ToolTip
- themes
- ReadMe.txt
- Tutorials
- GridBody
|
// Copyright 2008-2009 NETiKA TECH.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Windows;
using System.Windows.Controls;
namespace Open.Windows.Controls
{
/// <summary>
/// The HandyGridSplitter control inherits from the Silverlight GridSplitter. It adds HandyStyle features to it.
/// </summary>
public class HandyGridSplitter: GridSplitter
{
public static readonly DependencyProperty HandyStyleProperty;
static HandyGridSplitter()
{
HandyStyleProperty = DependencyProperty.Register("HandyStyle", typeof(HandyGridSplitterStyle), typeof(HandyGridSplitter), null);
}
public HandyGridSplitter()
{
DefaultStyleKey = typeof(HandyGridSplitter);
this.LayoutUpdated += new EventHandler(HandyGridSplitter_LayoutUpdated);
}
private void HandyGridSplitter_LayoutUpdated(object sender, EventArgs e)
{
if (!handyStyleApplied)
{
this.ApplyHandyStyle();
}
}
/// <summary>
/// The Style to apply to the control
/// </summary>
public HandyGridSplitterStyle HandyStyle
{
get
{
return (HandyGridSplitterStyle)this.GetValue(HandyStyleProperty);
}
set
{
base.SetValue(HandyStyleProperty, value);
}
}
private bool handyStyleApplied;
private void ApplyHandyStyle()
{
Style style = ResourceHelper.FindResource(Enum.GetName(typeof(HandyGridSplitterStyle), HandyStyle)) as Style;
if (style != null)
{
if (this.Style == null)
{
this.Style = style;
handyStyleApplied = true;
}
}
}
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.