mirror of
https://github.com/wagesj45/butterflow-ui.git
synced 2025-09-09 03:00:39 -05:00
Basic pieces seem to be in place
Got the controls working in the way that I wanted them.
This commit is contained in:
parent
9ea01e5e5b
commit
d5f58560fd
10 changed files with 184 additions and 97 deletions
|
|
@ -23,35 +23,24 @@ namespace butterflow_ui
|
|||
{
|
||||
#region Properties
|
||||
|
||||
public string PlaybackRate
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)GetValue(PlaybackRateProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
SetValue(PlaybackRateProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Dependency Properties
|
||||
|
||||
public static DependencyProperty PlaybackRateProperty = DependencyProperty.Register("PlaybackRateProperty", typeof(string), typeof(MainWindow));
|
||||
public OptionsConfiguration OptionsConfiguration { get; set; } = new OptionsConfiguration();
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary> Default constructor. </summary>
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary> Event handler. Called by btnFilePicker for click events. </summary>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Routed event information. </param>
|
||||
private void btnFilePicker_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var ofd = new OpenFileDialog();
|
||||
ofd.Filter = "Supported Video Files|*.mp4;*.mkv";
|
||||
|
||||
|
||||
var result = ofd.ShowDialog(this);
|
||||
if (result.HasValue && result.Value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue