Advertisement
ScriptingCat

Buttons/ Code

Oct 23rd, 2022 (edited)
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.76 KB | Source Code | 0 0
  1. ================================
  2. Made By MR.Cat#3496 And Some Help From StackOverFlow
  3. ================================
  4.  
  5. using ICSharpCode.AvalonEdit.Highlighting;
  6. using ICSharpCode.AvalonEdit.Highlighting.Xshd;
  7. using System.Xml;
  8. using System.IO;
  9.  
  10. ================================
  11. Syntax
  12. ================================
  13.  
  14. ScriptHolder.TextArea.TextView.LinkTextBackgroundBrush = Brushes.Transparent;
  15. ScriptHolder.TextArea.TextView.LinkTextForegroundBrush = Brushes.Orange;
  16. ScriptHolder.TextArea.TextView.LinkTextUnderline = false;
  17. Stream stream = File.OpenRead("./bin/lua.xshd");
  18. XmlTextReader reader = new XmlTextReader(stream);
  19. ScriptHolder.SyntaxHighlighting = HighlightingLoader.Load(reader, HighlightingManager.Instance);
  20.  
  21.  
  22. ================================
  23. Round Editor / Buttons / Any Thing
  24. ================================
  25.  
  26. <avalonedit:TextEditor.Resources>
  27.                 <Style TargetType="{x:Type Border}">
  28.                     <Setter Property="CornerRadius" Value="10"/>
  29.                 </Style>
  30.             </avalonedit:TextEditor.Resources>
  31. </avalonedit:TextEditor>
  32.  
  33. ================================
  34. Button Made By WaxHax And Edited By MR.Cat#3496
  35. ================================
  36.  
  37. <Button  
  38.               Name="ExecuteBtn"
  39.               Content="Execute"
  40.               FontFamily="Century Gothic"
  41.               Foreground="#FF4A4A4A"
  42.               Background="#FF0F0F0F"
  43.               BorderThickness="2"
  44.               Padding="0"
  45.               Margin="10,404,684,10" BorderBrush="#FF2B2B2B" FontSize="16">
  46.  
  47.             <Button.Resources>
  48.                 <Style TargetType="{x:Type Border}">
  49.                     <Setter Property="CornerRadius" Value="7"/>
  50.                 </Style>
  51.             </Button.Resources>
  52.  
  53.         </Button>
Tags: C# wpf xaml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement