Justdie
Justdie
CC#
Created by Justdie on 1/2/2024 in #help
Properly start threads with function arguments
I was using gtk3 because it suits my needs the best for linux specificaly, but i found out i could use async and it works pretty great, it was just a test project to make a ui for a timer but its pretty neat
3 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
Well thanks
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
Good
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
Ah i see
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
dear mother of god what is this you sent me, HELL NAW
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
i prob have too much using
c#
using System;
using System.Reflection;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Input;
using Avalonia.Markup.Xaml;
using Avalonia.Media;
using DynamicData.Binding;

namespace myapp.Views;
public partial class MainView : UserControl
{
public MainView()
{
InitializeComponent();
TextBoxPart.WhenValueChanged(textBox => textBox.Text).Subscribe(text => OnTextChangeHasChanged(TextBoxPart, TextBoxPart.Text));

}

}
c#
using System;
using System.Reflection;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Input;
using Avalonia.Markup.Xaml;
using Avalonia.Media;
using DynamicData.Binding;

namespace myapp.Views;
public partial class MainView : UserControl
{
public MainView()
{
InitializeComponent();
TextBoxPart.WhenValueChanged(textBox => textBox.Text).Subscribe(text => OnTextChangeHasChanged(TextBoxPart, TextBoxPart.Text));

}

}
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
Cannot resolve symbol 'OnTextChangeHasChanged' btw
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
trinna make highliting for smt
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
exactly
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
Got it, but i am still curious about a method to color specific text only
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
I mean sure but all i really want is to give colors to certain words
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
Prob a bad copy past from SO
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
I have no idea how it got there
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
Good question for the OnPointerEnter
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
so if its terrible pelase don't freak out, i don't know the in and outs yet
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
Well here's the buttons and textbox from my thing but beware, i am still testing i just began to use it and i just began to use c# this is just testing
<Button Grid.Row="1" Grid.Column="0" Click="OnButtonClick" Content="{Binding ButtonText}" Height="100" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Button>
<Button Grid.Row="1" Grid.Column="1" Content="Execute" Height="100" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Button>
<Button Grid.Row="1" Grid.Column="2" Height="100" Content="nice" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Button>
<Button Grid.Row="1" Grid.Column="3" Height="100" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Content="cool"></Button>
<TextBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" AcceptsReturn="True" TextWrapping="Wrap" x:Name="LuaSpace" TextChanged="OnTextChangeHasChanged"/>
<Button Grid.Row="1" Grid.Column="0" Click="OnButtonClick" Content="{Binding ButtonText}" Height="100" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Button>
<Button Grid.Row="1" Grid.Column="1" Content="Execute" Height="100" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Button>
<Button Grid.Row="1" Grid.Column="2" Height="100" Content="nice" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Button>
<Button Grid.Row="1" Grid.Column="3" Height="100" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Content="cool"></Button>
<TextBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" AcceptsReturn="True" TextWrapping="Wrap" x:Name="LuaSpace" TextChanged="OnTextChangeHasChanged"/>
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
It is
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
Well wdym, you gon re-write it for me?
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
is it better or worst?
47 replies
CC#
Created by Justdie on 11/4/2023 in #help
❔ AvaloniaUI detect when TextBox's content is changed
I am trying to color text but only certain keywods, i kown i can color words with the avalonia but it doesn't seem to be able to highlight only some of them
47 replies