blob: 74fe9e05771943b99137bfbfb0be1a30c2988b19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AudioView.xaml.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
// Interaction logic for AudioView.xaml
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.Views.Controls
{
using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using HandBrake.ApplicationServices.Model.Encoding;
/// <summary>
/// Interaction logic for AudioView.xaml
/// </summary>
public partial class AudioView : UserControl
{
/// <summary>
/// Initializes a new instance of the <see cref="AudioView"/> class.
/// </summary>
public AudioView()
{
InitializeComponent();
this.AudioTracks = new BindingList<AudioTrack>();
}
/// <summary>
/// The "Query" Dependancy Property
/// </summary>
public static readonly DependencyProperty QueryProperty = DependencyProperty.Register("AudioTracks", typeof(BindingList<AudioTrack>), typeof(AudioView), new PropertyMetadata(null));
/// <summary>
/// Gets or sets State.
/// </summary>
public BindingList<AudioTrack> AudioTracks
{
get { return (BindingList<AudioTrack>)this.GetValue(QueryProperty); }
set { this.SetValue(QueryProperty, value); }
}
/// <summary>
/// Add an audio track.
/// </summary>
public void Add()
{
this.AudioTracks.Add(new AudioTrack());
}
/// <summary>
/// Remove an Audio Track
/// </summary>
public void Remove()
{
throw new NotImplementedException("Not Done Yet!");
}
}
}
|