// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ToggleRadioButton.xaml.cs" company="Catel development team">
// Copyright (c) 2008 - 2011 Catel development team. All rights reserved.
// </copyright>
// <summary>
// Interaction logic for ToggleRadioButton.xaml
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using System.Windows;
using System.Windows.Controls;
namespace Catel.Windows.Controls
{
/// <summary>
/// Interaction logic for ToggleRadioButton.xaml
/// </summary>
public partial class ToggleRadioButton : UserControl
{
#region Variables
#endregion
#region Constructor & destructor
/// <summary>
/// Initializes a new instance of the <see cref="ToggleRadioButton"/> class.
/// </summary>
public ToggleRadioButton()
{
InitializeComponent();
}
#endregion
#region Properties
/// <summary>
/// Wrapper for the GivenAnswer dependency property
/// </summary>
public bool? GivenAnswer
{
get { return (bool?)GetValue(GivenAnswerProperty); }
set { SetValue(GivenAnswerProperty, value); }
}
/// <summary>
/// DependencyProperty definition as the backing store for GivenAnswer
/// </summary>
public static readonly DependencyProperty GivenAnswerProperty =
DependencyProperty.Register("GivenAnswer", typeof(bool?), typeof(ToggleRadioButton), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
/// <summary>
/// Wrapper for the TextCaption dependency wrapper
/// </summary>
public string TextCaption
{
get { return (string)GetValue(TextCaptionProperty); }
set { SetValue(TextCaptionProperty, value); }
}
/// <summary>
/// DependencyProperty definition as the backing store for TextCaption
/// </summary>
public static readonly DependencyProperty TextCaptionProperty = DependencyProperty.Register("TextCaption", typeof(string),
typeof(ToggleRadioButton), new UIPropertyMetadata(Properties.Resources.Empty));
/// <summary>
/// Wrapper for the TextCaptionYes dependency wrapper
/// </summary>
public string TextCaptionYes
{
get { return (string)GetValue(TextCaptionYesProperty); }
set { SetValue(TextCaptionYesProperty, value); }
}
/// <summary>
/// DependencyProperty definition as the backing store for TextCaptionYes
/// </summary>
public static readonly DependencyProperty TextCaptionYesProperty = DependencyProperty.Register("TextCaptionYes", typeof(string),
typeof(ToggleRadioButton), new UIPropertyMetadata(Properties.Resources.Yes));
/// <summary>
/// Wrapper for the TextCaptionNo dependency wrapper
/// </summary>
public string TextCaptionNo
{
get { return (string)GetValue(TextCaptionNoProperty); }
set { SetValue(TextCaptionNoProperty, value); }
}
/// <summary>
/// DependencyProperty definition as the backing store for TextCaptionNo
/// </summary>
public static readonly DependencyProperty TextCaptionNoProperty = DependencyProperty.Register("TextCaptionNo", typeof(string),
typeof(ToggleRadioButton), new UIPropertyMetadata(Properties.Resources.No));
#endregion
#region Methods
#endregion
}
}