private void InitializeComponent() { IHighlightingDefinition customHighlighting; using ( XmlReader reader = new XmlTextReader(PathUtility.GetFullPath("Static", "TSL-Syntax.xshd"))) { customHighlighting = HighlightingLoader.Load(reader, HighlightingManager.Instance); } HighlightingManager.Instance.RegisterHighlighting( "Custom Highlighting", new[] { ".cool" }, customHighlighting); SyntaxHighlighting = customHighlighting; //this.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("C#"); // FontSize = 18; //completionWindow.ShowActivated = true; Options.HighlightCurrentLine = true; //this.Options.ShowColumnRuler = true; ShowLineNumbers = true; // this.MouseWheel += ExperimentalCodeEditor_MouseWheel; TextArea.KeyUp += TextArea_KeyUp; TextArea.KeyDown += TextArea_KeyDown; TextArea.PreviewMouseWheel += ExperimentalCodeEditor_MouseWheel; TextArea.IndentationStrategy = new CSharpIndentationStrategy(Options); #if USE_FOLDING foldingStrategy = new BraceFoldingStrategy(); foldingManager = FoldingManager.Install(TextArea); var foldingUpdateTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(5) }; foldingUpdateTimer.Tick += delegate { UpdateFoldings(); }; foldingUpdateTimer.Start(); #endif #if !NEW_AUTOCOMPLETE TextArea.TextEntering += OnTextEntering; TextArea.TextEntered += OnTextEntered; var ctrlSpace = new RoutedCommand(); ctrlSpace.InputGestures.Add(new KeyGesture(Key.Space, ModifierKeys.Control)); var cb = new CommandBinding(ctrlSpace, OnCtrlSpaceCommand); CommandBindings.Add(cb); #endif searchPanel = SearchPanel.Install(TextArea); // searchPanel. }
public LocalizationSettingWindow(Dictionary <string, XmlObjectsListWrapper> loadedListWrappers) { InitializeComponent(); Closing += new CancelEventHandler(LocalizatonSettingWindow_Closing); SetupExceptionHandling(); AddTooltips(); StartingMod = Properties.Settings.Default.ModTagSetting; WindowTitle = StartingMod.ToString(); this.Title = GetTitleForWindow(); this.LoadedListWrappers = loadedListWrappers; string pathToModLocalizationFile = XmlFileManager.ModConfigOutputPath + LocalizationFileObject.LOCALIZATION_FILE_NAME; ModLocalizationGridUserControl = new LocalizationGridUserControl(pathToModLocalizationFile); GridAsCSVAfterUpdate = ModLocalizationGridUserControl.Maingrid.GridAsCSV(); List <string> allCustomTagDirectories = XmlFileManager.GetCustomModFoldersInOutput(); foreach (string nextModTag in allCustomTagDirectories) { ModSelectionComboBox.AddUniqueValueTo(nextModTag); } ModSelectionComboBox.SelectedItem = Properties.Settings.Default.ModTagSetting; ModSelectionComboBox.LostFocus += ModSelectionComboBox_LostFocus; ModSelectionComboBox.PreviewKeyDown += ModSelectionComboBox_PreviewKeyDown; ModLocalizationScrollViewer.Content = ModLocalizationGridUserControl; string pathToGameLocalizationFile = XmlFileManager.LoadedFilesPath + LocalizationFileObject.LOCALIZATION_FILE_NAME; GameLocalizationFile = new LocalizationFileObject(pathToGameLocalizationFile); TextEditorOptions newOptions = new TextEditorOptions { EnableRectangularSelection = true, EnableTextDragDrop = true, HighlightCurrentLine = true, ShowTabs = true }; LocalizationPreviewBox.ShowLineNumbers = true; LocalizationPreviewBox.TextArea.Options = newOptions; LocalizationPreviewBox.Text = ModLocalizationGridUserControl.Maingrid.GridAsCSV(); LocalizationPreviewBox.LostFocus += LocalizationPreviewBox_LostFocus; SearchPanel.Install(LocalizationPreviewBox); ModLocalizationScrollViewer.GotFocus += Maingrid_GotOrLostFocus; ModLocalizationScrollViewer.LostFocus += Maingrid_GotOrLostFocus; SortedSet <string> gameFileKeysSorted = GameLocalizationFile.HeaderKeyToCommonValuesMap.GetValueOrDefault(GameLocalizationFile.KeyColumn); List <string> gameFileKeys = new List <string>(gameFileKeysSorted); GameKeySelectionComboBox.SetComboBox(gameFileKeys); GameKeySelectionComboBox.IsEditable = true; GameKeySelectionComboBox.DropDownClosed += GameKeySelectionComboBox_DropDownClosed; GameKeySelectionComboBox.PreviewKeyDown += GameKeySelectionComboBox_PreviewKeyDown; SetBackgroundColor(); }
public DecompilerTextView() { HighlightingManager.Instance.RegisterHighlighting( "ILAsm", new string[] { ".il" }, delegate { using (Stream s = typeof(DecompilerTextView).Assembly.GetManifestResourceStream(typeof(DecompilerTextView), "ILAsm-Mode.xshd")) { using (XmlTextReader reader = new XmlTextReader(s)) { return HighlightingLoader.Load(reader, HighlightingManager.Instance); } } }); HighlightingManager.Instance.RegisterHighlighting( "C#", new string[] { ".cs" }, delegate { using (Stream s = typeof(DecompilerTextView).Assembly.GetManifestResourceStream(typeof(DecompilerTextView), "CSharp-Mode.xshd")) { using (XmlTextReader reader = new XmlTextReader(s)) { return HighlightingLoader.Load(reader, HighlightingManager.Instance); } } }); InitializeComponent(); this.referenceElementGenerator = new ReferenceElementGenerator(this.JumpToReference, this.IsLink); textEditor.TextArea.TextView.ElementGenerators.Add(referenceElementGenerator); this.uiElementGenerator = new UIElementGenerator(); textEditor.TextArea.TextView.ElementGenerators.Add(uiElementGenerator); textEditor.Options.RequireControlModifierForHyperlinkClick = false; textEditor.TextArea.TextView.MouseHover += TextViewMouseHover; textEditor.TextArea.TextView.MouseHoverStopped += TextViewMouseHoverStopped; textEditor.TextArea.PreviewMouseDown += TextAreaMouseDown; textEditor.TextArea.PreviewMouseUp += TextAreaMouseUp; textEditor.SetBinding(Control.FontFamilyProperty, new Binding { Source = DisplaySettingsPanel.CurrentDisplaySettings, Path = new PropertyPath("SelectedFont") }); textEditor.SetBinding(Control.FontSizeProperty, new Binding { Source = DisplaySettingsPanel.CurrentDisplaySettings, Path = new PropertyPath("SelectedFontSize") }); textEditor.SetBinding(TextEditor.WordWrapProperty, new Binding { Source = DisplaySettingsPanel.CurrentDisplaySettings, Path = new PropertyPath("EnableWordWrap") }); // disable Tab editing command (useless for read-only editor); allow using tab for focus navigation instead RemoveEditCommand(EditingCommands.TabForward); RemoveEditCommand(EditingCommands.TabBackward); textMarkerService = new TextMarkerService(textEditor.TextArea.TextView); textEditor.TextArea.TextView.BackgroundRenderers.Add(textMarkerService); textEditor.TextArea.TextView.LineTransformers.Add(textMarkerService); textEditor.ShowLineNumbers = true; DisplaySettingsPanel.CurrentDisplaySettings.PropertyChanged += CurrentDisplaySettings_PropertyChanged; // SearchPanel SearchPanel.Install(textEditor.TextArea) .RegisterCommands(Application.Current.MainWindow.CommandBindings); ShowLineMargin(); // add marker service & margin textEditor.TextArea.TextView.BackgroundRenderers.Add(textMarkerService); textEditor.TextArea.TextView.LineTransformers.Add(textMarkerService); }
/* ----------------------------------------------------------------- */ /// /// SearchPanel_Resize /// /// <summary> /// ReplacePanel のリサイズ時に実行されるハンドラです。 /// </summary> /// /* ----------------------------------------------------------------- */ private void SearchPanel_Resize(object sender, EventArgs e) { SearchPanel.SuspendLayout(); var width = SearchPanel.Width - SearchPanel.Padding.Right; SetWidth(ButtonsPanel, width); SetWidth(ConditionPanel, width); SearchPanel.ResumeLayout(); }
public JsonViewerWindow() { InitializeComponent(); TextBox.SyntaxHighlighting = ICSharpCode.AvalonEdit.Highlighting.HighlightingManager.Instance.GetDefinition("Json"); FoldingManager = FoldingManager.Install(TextBox.TextArea); FoldingStrategy.UpdateFoldings(FoldingManager, TextBox.Document); SearchPanel = SearchPanel.Install(TextBox.TextArea); }
public CodeEditor() { if (!WafConfiguration.IsInDesignMode) { adhocWorkspace = new AdhocWorkspace(); TextArea.TextView.LineTransformers.Insert(0, new CodeHighlightingColorizer(adhocWorkspace, () => semanticModel)); } SearchPanel.Install(TextArea); }
public NetlistResultView() { InitializeComponent(); SearchPanel.Install(txtNetlist); Dispatcher.InvokeAsync(() => { txtNetlist.Text = (DataContext as NetlistResultWindowViewModel).Netlist; }); }
private void InstallSearchPanel() { if (_partTextEditor == null || _searchPanel != null) { return; } _searchPanel = SearchPanel.Install(_partTextEditor.TextArea); }
public ScriptingWindow(IContextFactory contextFactory, IScriptRunner scriptRunner, DataContainer data) { InitializeComponent(); SearchPanel.Install(TextEditor); ViewModel = new ScriptingViewModel(contextFactory, scriptRunner, data, DialogCoordinator.Instance); DataContext = ViewModel; }
public static UISearchBox CreateUISearch(SearchPanel panel) { UIComponent parent = panel.component; UISearchBox searchBox = parent.AddUIComponent<UISearchBox>(); searchBox.m_targetPanel = panel; return searchBox; }
public void Detach() { if (panel != null) { panel.SearchOptionsChanged -= SearchOptionsChanged; panel.Uninstall(); panel = null; } }
private void SetupEditor() { text.ShowLineNumbers = true; SearchPanel.Install(text); foldingManager = FoldingManager.Install(text.TextArea); foldingStrategy = new XmlFoldingStrategy(); }
private void SelectSubListChanged(object sender, EventArgs e) { if (SelectProperties.SelectedIndex > 0) { SelectionPanel.Visible = true; if (SelectionPanel.Criteria.Count == 0) { SelectionPanel.AddNew(); } } else { SelectionPanel.Visible = false; SelectionPanel.Clear(); } Type selectedType = SelectProperties.GetLowestPropertyType(); if (selectedType.IsGenericType) { selectedType = selectedType.GetGenericArguments()[0]; } SearchPanel.Clear(); SearchPanel.CriteriaType = selectedType; SearchPanel.AddNew(); OrderByPanel.Clear(); OrderByPanel.CriteriaType = selectedType; OrderByPanel.AddNew(); PanelResized(this, null); if (SelectProperties.SelectedIndex > 0) { if (selectedType == typeof(Site) || selectedType == typeof(Battle)) { btnMapResults.Visible = true; } else { btnMapResults.Visible = false; } } else if (SelectProperties.ParentType == typeof(Site) || SelectProperties.ParentType == typeof(Battle)) { btnMapResults.Visible = true; } else { btnMapResults.Visible = false; } //if (SelectProperties.SelectedIndex != 0) // lblSearchCriteria.Text = "Search " + SelectProperties.Text + " Where:"; //else // lblSearchCriteria.Text = "Search " + SelectList.Text + " Where:"; }
public void PresentAnimated(int workingFamilyId, bool browsingPeople, FamilyInfoViewController.OnBrowsePeopleCompleteDelegate onComplete) { KeyboardAdjustManager.Activate( ); WorkingFamilyId = workingFamilyId; OnCompleteDelegate = onComplete; // default to false RemoveFromOtherFamilies = false; // always begin at the SearchPanel SearchPanel.GetRootView( ).Layer.Position = CGPoint.Empty; PeoplePanel.GetRootView( ).Layer.Position = new CGPoint(MainPanel.Bounds.Width, 0); // use the provided bool to set the correct panel visible PeoplePanel.GetRootView( ).Hidden = !browsingPeople; ActivePanel = SearchPanel; View.Hidden = false; // animate the background to dark BackgroundPanel.Layer.Opacity = 0; SimpleAnimator_Float alphaAnim = new SimpleAnimator_Float(BackgroundPanel.Layer.Opacity, Settings.DarkenOpacity, .33f, delegate(float percent, object value) { BackgroundPanel.Layer.Opacity = (float)value; }, null); alphaAnim.Start(SimpleAnimator.Style.CurveEaseOut); // animate in the main panel MainPanel.Layer.Position = new CoreGraphics.CGPoint((View.Bounds.Width - MainPanel.Bounds.Width) / 2, View.Bounds.Height); // animate UP the main panel nfloat visibleHeight = Parent.GetVisibleHeight( ); PointF endPos = new PointF((float)(View.Bounds.Width - MainPanel.Bounds.Width) / 2, (float)(visibleHeight - MainPanel.Bounds.Height) / 2); SimpleAnimator_PointF posAnim = new SimpleAnimator_PointF(MainPanel.Layer.Position.ToPointF( ), endPos, .33f, delegate(float percent, object value) { MainPanel.Layer.Position = (PointF)value; }, delegate { SearchPanel.PerformSearch( ); }); posAnim.Start(SimpleAnimator.Style.CurveEaseOut); }
public void ReOpenSearchPanel() { if (searchPanel == null) { searchPanel = SearchPanel.Install(this); } searchPanel.SearchPattern = _highlightedString; searchPanel.UseRegex = _useRegex; searchPanel.Open(); }
public MainWindow() { InitializeComponent(); this.WindowState = WindowState.Maximized; Loaded += MyWindow_Loaded; Closing += new CancelEventHandler(MainWindow_Closing); SetupExceptionHandling(); this.XmlOutputBox.ShowLineNumbers = true; SearchPanel.Install(XmlOutputBox); }
public override void Detach() { base.Detach(); if (panel != null) { panel.SearchOptionsChanged -= SearchOptionsChanged; panel.Uninstall(); panel = null; } }
public void Attach(ITextEditor editor) { TextArea textArea = editor.GetService(typeof(TextArea)) as TextArea; if (textArea != null) { panel = SearchPanel.Install(textArea); panel.SearchOptionsChanged += SearchOptionsChanged; } }
private void DeleteConfirmDialog_Confirmed(object data) { var key = data as ServerEntityKey; Model.PartitionArchive pa = Model.PartitionArchive.Load(key); _controller.Delete(pa); SearchPanel.Refresh(); }
protected override void OnLoad(EventArgs e) { SearchPanel.ServerPartition = ServerPartitionSelector.SelectedPartition; base.OnLoad(e); if (!Page.IsPostBack) { SearchPanel.Refresh(); } }
protected override void OnAttached() { base.OnAttached(); if (AssociatedObject != null) { AssociatedObject.TextChanged += AssociatedObjectOnTextChanged; //AssociatedObject.DataContextChanged += DataContextChanged; SearchPanel.Install(AssociatedObject); } }
private void SearchButton_Click(object sender, RoutedEventArgs e) { #pragma warning disable 618 SearchPanel sPanel = new SearchPanel(); if (SqlTextBox != null) { sPanel.Attach(SqlTextBox.TextArea); } #pragma warning restore 618 }
public CssWindow() { InitializeComponent(); CssTextEditor.Options.EnableHyperlinks = false; CssTextEditor.Options.EnableEmailHyperlinks = false; //setip ctrl-f to single page code find runtimePanel = SearchPanel.Install(CssTextEditor); }
public TextViewerControl() { InitializeComponent(); var textArea = textEditor.TextArea; SearchPanel.Install(textArea); foldingManager = FoldingManager.Install(textEditor.TextArea); textArea.MouseRightButtonDown += TextAreaMouseRightButtonDown; DataObject.AddSettingDataHandler(textArea, OnSettingData); var textView = textArea.TextView; textView.Options.HighlightCurrentLine = true; textView.Options.EnableEmailHyperlinks = false; textView.Options.EnableHyperlinks = false; textEditor.IsReadOnly = true; if (SettingsService.UseDarkTheme) { textEditor.Background = ThemeManager.BackgroundBrush; textEditor.Foreground = ThemeManager.ControlTextBrush; textView.CurrentLineBackground = (Brush) new BrushConverter().ConvertFromString("#505050"); textArea.SelectionBrush = (Brush) new BrushConverter().ConvertFromString("#264F78"); textArea.SelectionForeground = (Brush) new BrushConverter().ConvertFromString("#C8C8C8"); var foldingMargin = textArea.LeftMargins.OfType <FoldingMargin>().First(); foldingMargin.FoldingMarkerBackgroundBrush = ThemeManager.BackgroundBrush; foldingMargin.FoldingMarkerBrush = ThemeManager.ControlTextBrush; foldingMargin.SelectedFoldingMarkerBackgroundBrush = ThemeManager.BackgroundBrush; foldingMargin.SelectedFoldingMarkerBrush = ThemeManager.ControlTextBrush; } else { textView.CurrentLineBackground = new SolidColorBrush(Color.FromRgb(224, 224, 224)); textView.CurrentLineBorder = new Pen(Brushes.Transparent, 0); } textEditor.ApplyTemplate(); var scrollViewer = textEditor.FindVisualChild <ScrollViewer>(); if (scrollViewer != null) { textEditor.PreviewMouseWheel += (s, e) => { if (Keyboard.Modifiers == ModifierKeys.Shift) { scrollViewer.ScrollToHorizontalOffset(scrollViewer.HorizontalOffset - e.Delta); e.Handled = true; } }; } }
public ScriptEditor(EngineDescription buildInfo, IScriptFile scriptFile, IStreamManager streamManager, ICacheFile casheFile, Endian endian) { _endian = endian; _buildInfo = buildInfo; _opcodes = _buildInfo.ScriptInfo; _scriptFile = scriptFile; _streamManager = streamManager; _cashefile = casheFile; // If a game contains hsdt tags, it uses a newer Blam Script syntax. Currently the compiler only supports the old syntax. _hasNewSyntax = _buildInfo.Layouts.HasLayout("hsdt"); InitializeComponent(); // Disable user input. Enable it again when all background tasks have been completed. txtScript.IsReadOnly = true; // Enable code completion only if the compiler supports this game. if (!_hasNewSyntax) { txtScript.TextArea.GotFocus += EditorGotFocus; txtScript.TextArea.LostFocus += EditorLostFocus; txtScript.TextArea.TextEntering += EditorTextEntering; txtScript.TextArea.TextEntered += EditorTextEntered; txtScript.TextArea.Document.Changed += EditorTextChanged; } App.AssemblyStorage.AssemblySettings.PropertyChanged += Settings_SettingsChanged; SetHighlightColor(); SearchPanel srch = SearchPanel.Install(txtScript); var bconv = new System.Windows.Media.BrushConverter(); var srchbrsh = (System.Windows.Media.Brush)bconv.ConvertFromString("#40F0F0F0"); srch.MarkerBrush = srchbrsh; txtScript.SyntaxHighlighting = LoadSyntaxHighlighting(); // With syntax highlighting and HTML formatting, copying text takes ages. Disable the HTML formatting for copied text. DataObject.AddSettingDataHandler(txtScript, onTextViewSettingDataHandler); _progress = new Progress <int>(i => { progressBar.Value = i; }); itemShowInformation.IsChecked = App.AssemblyStorage.AssemblySettings.ShowScriptInfo; itemDebugData.IsChecked = App.AssemblyStorage.AssemblySettings.OutputCompilerDebugData; // Enable compilation only for supported games. if (_buildInfo.Name.Contains("Reach") || _buildInfo.Name.Contains("Halo 3") && _buildInfo.HeaderSize != 0x800 && !_buildInfo.Name.Contains("ODST")) { compileButton.Visibility = Visibility.Visible; progressReporter.Visibility = Visibility.Visible; } }
private void TeamsForm_SizeChanged(object sender, EventArgs e) { if ((this.Height > 640)) // Maximized { // Panels RightBackPanel.Size = new Size(118, 0); SearchPanel.Show(); PartionPanel.Hide(); MemberGrid.Show(); if (Person == "Admin") { TeamGrid.Dock = DockStyle.Left; // Make TeamGrid Dock Left PartionPanel.Show(); UpdateIconButton.Hide(); DeleteIconButton.Location = new Point(11, 62); } else if (ButtonPressed == 0) // Show all Teams Head/Non-Head Member { RightPanel.Hide(); } else if (ButtonPressed == 1) { if (Person == "Head") // Show My Team of Head-Member { RightPanel.Show(); UpdateIconButton.Hide(); DeleteIconButton.Location = new Point(11, 62); } else // Show My Team of Non-Head-Member { RightPanel.Hide(); } } } else // Restored { // Panels RightBackPanel.Size = new Size(136, 0); PartionPanel.Hide(); SearchPanel.Hide(); MemberGrid.Hide(); TeamGrid.Dock = DockStyle.Fill; // Make TeamGrid Dock Fill so it occupy all remaining form if (Person == "Admin") // Admin Case { UpdateIconButton.Show(); DeleteIconButton.Location = new Point(11, 104); } else // All other Possible Cases { RightPanel.Hide(); } } }
private void Grid_Initialized(object sender, EventArgs e) { CodeTextEditor.SyntaxHighlighting = HighlightingLoader.Load( new XmlTextReader(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Python.Dark.xshd")), HighlightingManager.Instance); IEnumerable <Type> namespaces = Assembly.GetExecutingAssembly().GetTypes().Where(t => t.Namespace != null && t.IsPublic && t.IsClass && t.Namespace.EndsWith("Macros.Commands")); _completionData = new List <PythonCompletionData>(); foreach (Type type in namespaces) { MethodInfo[] methods = type.GetMethods(BindingFlags.Public | BindingFlags.Static); foreach (MethodInfo methodInfo in methods) { CommandsDisplayAttribute attr = methodInfo.GetCustomAttribute <CommandsDisplayAttribute>(); if (attr == null) { continue; } string fullName = $"{methodInfo.Name}("; bool first = true; foreach (ParameterInfo parameterInfo in methodInfo.GetParameters()) { if (first) { first = false; } else { fullName += ", "; } bool optional = parameterInfo.RawDefaultValue == null || parameterInfo.RawDefaultValue.GetType() != typeof(DBNull); fullName += $"{( optional ? "[" : "" )}{parameterInfo.ParameterType.Name} {parameterInfo.Name}{( optional ? "]" : "" )}"; } fullName += $"):{methodInfo.ReturnType.Name}"; _completionData.Add(new PythonCompletionData(methodInfo.Name, fullName, attr.Description, attr.InsertText)); } } CodeTextEditor.TextArea.TextEntered += OnTextEntered; SearchPanel.Install(CodeTextEditor); }
/// <summary> /// Lädt die Syntax Highlighter Einstellungen des TextEditors. /// </summary> private void LoadJsonSyntaxHighlighter() { using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("WpfSample.Resources.json_syntax.xshd")) { using (var reader = new XmlTextReader(stream)) { WfseTextEditor.SyntaxHighlighting = HighlightingLoader.Load(reader, HighlightingManager.Instance); SearchPanel.Install(WfseTextEditor); } } }
public FindAndReplaceWindow(TextArea textarea) { InitializeComponent(); Finder = SearchPanel.Install(textarea); TextArea = textarea; Finder.Open(); Finder.Visibility = Visibility.Hidden; //Finder.MarkerBrush = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0)); }
public Form1() { InitializeComponent(); m_srchPanel = new SearchPanel(cnnStr, false); m_srchPanel.OnSelectTitle += (s, e) => { Debug.WriteLine("titleId {0}", e); }; this.Controls.Add(m_srchPanel.m_tblLayout); this.AcceptButton = m_srchPanel.m_acceptBtn; }
public void CheckSearchFunction() { var homePage = new HomePage(_driver); homePage.GoToPage(); homePage.WriteSearchQuery(searchVariable); var isSearchResultExist = SearchPanel.IsNotZeroResults(_driver) && !SearchPanel.IsNoResults(_driver); Assert.IsTrue(isSearchResultExist); }
public SearchPanelAdorner(TextArea textArea, SearchPanel panel) : base(textArea) { this.panel = panel; AddVisualChild(panel); }
/// <summary> /// Creates a SearchPanel and installs it to the TextArea. /// </summary> public static SearchPanel Install(TextArea textArea) { if (textArea == null) throw new ArgumentNullException("textArea"); #pragma warning disable 618 SearchPanel panel = new SearchPanel(); panel.AttachInternal(textArea); panel.handler = new SearchInputHandler(textArea);//new SearchInputHandler(textArea, panel); textArea.DefaultInputHandler.NestedInputHandlers.Add(panel.handler); return panel; }
public void SetTargetPanel(SearchPanel target) { m_targetPanel = target; target.component.AttachUIComponent(this.gameObject); }
/// <summary> /// Panel mit Suche hinzufügen /// </summary> /// <param name="searchFunction"></param> public void addSearchPanel(Action<string> searchFunction) { searchPanel = new SearchPanel(searchFunction); dpToolbarPanel.Children.Add(searchPanel.panel); }
public SearchPanelAdorner(TextArea textArea, SearchPanel panel) : base(textArea) { _panel = panel; //_panel.HorizontalAlignment = HorizontalAlignment.Right; //_panel.VerticalAlignment = VerticalAlignment.Top; AddVisualChild(panel); }