diff --git a/BallanceTasEditor/BallanceTasEditor/Frontend/Views/NewFileDialog.xaml b/BallanceTasEditor/BallanceTasEditor/Frontend/Views/NewFileDialog.xaml index 46453ef..10c7802 100644 --- a/BallanceTasEditor/BallanceTasEditor/Frontend/Views/NewFileDialog.xaml +++ b/BallanceTasEditor/BallanceTasEditor/Frontend/Views/NewFileDialog.xaml @@ -6,9 +6,10 @@ xmlns:local="clr-namespace:BallanceTasEditor.Frontend.Views" xmlns:vm="clr-namespace:BallanceTasEditor.Frontend.ViewModels" xmlns:conveter="clr-namespace:BallanceTasEditor.Frontend.Converters" + xmlns:widget="clr-namespace:BallanceTasEditor.Frontend.Widgets" d:DataContext="{d:DesignInstance vm:NewFileDialog}" mc:Ignorable="d" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" ShowInTaskbar="False" - Title="New File" Height="250" Width="400" Icon="/Frontend/Assets/NewFile.ico"> + Title="New File" Height="250" Width="400" Icon="/Frontend/Assets/App.ico"> @@ -16,8 +17,9 @@ - + diff --git a/BallanceTasEditor/BallanceTasEditor/Frontend/Widgets/BannerBar.xaml b/BallanceTasEditor/BallanceTasEditor/Frontend/Widgets/BannerBar.xaml new file mode 100644 index 0000000..f41153e --- /dev/null +++ b/BallanceTasEditor/BallanceTasEditor/Frontend/Widgets/BannerBar.xaml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + diff --git a/BallanceTasEditor/BallanceTasEditor/Frontend/Widgets/BannerBar.xaml.cs b/BallanceTasEditor/BallanceTasEditor/Frontend/Widgets/BannerBar.xaml.cs new file mode 100644 index 0000000..3a83433 --- /dev/null +++ b/BallanceTasEditor/BallanceTasEditor/Frontend/Widgets/BannerBar.xaml.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace BallanceTasEditor.Frontend.Widgets { + /// + /// Interaction logic for BannerBar.xaml + /// + public partial class BannerBar : UserControl { + public BannerBar() { + InitializeComponent(); + } + + public string BannerText { + get { return (string)GetValue(BannerTextProperty); } + set { SetValue(BannerTextProperty, value); } + } + + // Using a DependencyProperty as the backing store for BannerText. This enables animation, styling, binding, etc... + public static readonly DependencyProperty BannerTextProperty = + DependencyProperty.Register("BannerText", typeof(string), typeof(BannerBar)); + + public ImageSource BannerIcon { + get { return (ImageSource)GetValue(BannerIconProperty); } + set { SetValue(BannerIconProperty, value); } + } + + // Using a DependencyProperty as the backing store for BannerIcon. This enables animation, styling, binding, etc... + public static readonly DependencyProperty BannerIconProperty = + DependencyProperty.Register("BannerIcon", typeof(ImageSource), typeof(BannerBar)); + + } +}