Initial Commit
This commit is contained in:
26
Befunge/Editor/Controls/CodeTextBox.cs
Normal file
26
Befunge/Editor/Controls/CodeTextBox.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using Befunge.Editor.CharStyles;
|
||||
|
||||
namespace Befunge.Editor.Controls
|
||||
{
|
||||
public class CodeTextBox : RichTextBox
|
||||
{
|
||||
public static readonly DependencyProperty TextProperty = DependencyProperty.Register(
|
||||
nameof(Text), typeof(string), typeof(CodeTextBox), new PropertyMetadata(default(string), OnTextPropertyChanged));
|
||||
|
||||
private static void OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public string Text
|
||||
{
|
||||
get { return (string) GetValue(TextProperty); }
|
||||
set { SetValue(TextProperty, value); }
|
||||
}
|
||||
|
||||
public ICharStyler TextStyler { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user