1
0
Fork 0
mirror of https://github.com/wagesj45/butterflow-ui.git synced 2025-09-09 03:00:39 -05:00

Fleshing out bindings and values

This commit is contained in:
Jordan Wages 2018-06-24 03:29:34 -05:00
commit 7fde16539f
3 changed files with 50 additions and 18 deletions

View file

@ -23,6 +23,8 @@ namespace butterflow_ui
{
#region Properties
/// <summary> Gets or sets the butyterflow options configuration. </summary>
/// <value> The options configuration. </value>
public OptionsConfiguration OptionsConfiguration { get; set; } = new OptionsConfiguration();
#endregion
@ -49,5 +51,19 @@ namespace butterflow_ui
mediaPreview.Source = new Uri(ofd.FileName);
}
}
/// <summary> Event handler. Called by PlaybackRate radio buttons for checked events. </summary>
/// <param name="sender"> Source of the event. </param>
/// <param name="e"> Routed event information. </param>
private void PlaybackRateRadioButton_Checked(object sender, RoutedEventArgs e)
{
var typedSender = (RadioButton)sender;
if(typedSender != null)
{
var tag = typedSender.Tag.ToString();
this.OptionsConfiguration.PlaybackRate = tag;
}
}
}
}