Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ================================
- Made By MR.Cat#3496 And Some Help From StackOverFlow
- ================================
- using ICSharpCode.AvalonEdit.Highlighting;
- using ICSharpCode.AvalonEdit.Highlighting.Xshd;
- using System.Xml;
- using System.IO;
- ================================
- Syntax
- ================================
- ScriptHolder.TextArea.TextView.LinkTextBackgroundBrush = Brushes.Transparent;
- ScriptHolder.TextArea.TextView.LinkTextForegroundBrush = Brushes.Orange;
- ScriptHolder.TextArea.TextView.LinkTextUnderline = false;
- Stream stream = File.OpenRead("./bin/lua.xshd");
- XmlTextReader reader = new XmlTextReader(stream);
- ScriptHolder.SyntaxHighlighting = HighlightingLoader.Load(reader, HighlightingManager.Instance);
- ================================
- Round Editor / Buttons / Any Thing
- ================================
- <avalonedit:TextEditor.Resources>
- <Style TargetType="{x:Type Border}">
- <Setter Property="CornerRadius" Value="10"/>
- </Style>
- </avalonedit:TextEditor.Resources>
- </avalonedit:TextEditor>
- ================================
- Button Made By WaxHax And Edited By MR.Cat#3496
- ================================
- <Button
- Name="ExecuteBtn"
- Content="Execute"
- FontFamily="Century Gothic"
- Foreground="#FF4A4A4A"
- Background="#FF0F0F0F"
- BorderThickness="2"
- Padding="0"
- Margin="10,404,684,10" BorderBrush="#FF2B2B2B" FontSize="16">
- <Button.Resources>
- <Style TargetType="{x:Type Border}">
- <Setter Property="CornerRadius" Value="7"/>
- </Style>
- </Button.Resources>
- </Button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement