RV
RV
CC#
Created by RV on 10/16/2024 in #help
WPF RichTextBox is very slow
I want to make a syntax highlighter with WPF. I chose to use RichTextBox but when trying to paste about 50,000 lines into WPF richtextbox, it takes about 10 minutes to complete as in this video. I compared with textbox on winform and wpf, and compared richtextbox on winform is faster. I also did syntax highlighter with update onscroll (not in rich text box) as at the end of the video and it can display faster. But when scrolling, over time the grid becomes have many objects (TextBlock) and becomes slow. How can I do syntax highlighter in WPF efficiently and quickly?
7 replies
CC#
Created by RV on 10/16/2024 in #help
WPF RichTextBox is very slow
7 replies
CC#
Created by RV on 10/3/2024 in #help
✅ Callable Class
i was talk about callable class, this code just sample.
31 replies
CC#
Created by RV on 10/3/2024 in #help
✅ Callable Class
Yeah, without dynamic object.
31 replies
CC#
Created by RV on 8/20/2024 in #help
EF Stupid, Why I get this error
Because this is server database that has grather than 1 million rows. And the database is using open edge, but version of 2013 so it take long when query million of data and thousand of tables.
17 replies
CC#
Created by RV on 8/20/2024 in #help
EF Stupid, Why I get this error
QueryTask is a method i made which all connection will register in array and can be cancel by administrator depends on user.
17 replies
CC#
Created by RV on 8/3/2024 in #help
Executing an App Without Admin Previleges
4 replies
CC#
Created by RV on 8/3/2024 in #help
Executing an App Without Admin Previleges
Then i want to make Windows Service that run on SYSTEM, then how can my app service execute an application as Administrator user?
4 replies
CC#
Created by RV on 4/20/2024 in #help
Inheritance Cast
No description
5 replies
CC#
Created by RV on 11/4/2023 in #help
❔ How to check Validation Error programically C# in MVVM?
@RedBear
11 replies
CC#
Created by RV on 11/4/2023 in #help
❔ How to check Validation Error programically C# in MVVM?
No description
11 replies
CC#
Created by RV on 11/4/2023 in #help
❔ How to check Validation Error programically C# in MVVM?
AddCategoryVM.cs
public class AddCategoryVM : PopupModelBase
{
public AddCategoryVM() : base()
{
}

private string _categoryName;

public string CategoryName
{
get
{
return _categoryName;
}
set
{
ClearErrors();
var result = new TextNotEmptyValidation() { FieldName = "Nama Kategori", CustomErrorMessage = ValidationMessages.RequiredError }.Validate(value, CultureInfo.CurrentCulture);
if (!result.IsValid) AddError(result.ErrorContent as string);
_categoryName = value;
OnPropertyChanged();
}
}
}
public class AddCategoryVM : PopupModelBase
{
public AddCategoryVM() : base()
{
}

private string _categoryName;

public string CategoryName
{
get
{
return _categoryName;
}
set
{
ClearErrors();
var result = new TextNotEmptyValidation() { FieldName = "Nama Kategori", CustomErrorMessage = ValidationMessages.RequiredError }.Validate(value, CultureInfo.CurrentCulture);
if (!result.IsValid) AddError(result.ErrorContent as string);
_categoryName = value;
OnPropertyChanged();
}
}
}
11 replies
CC#
Created by RV on 11/4/2023 in #help
❔ How to check Validation Error programically C# in MVVM?
Here is my code
11 replies
CC#
Created by RV on 11/4/2023 in #help
❔ How to check Validation Error programically C# in MVVM?
No description
11 replies
CC#
Created by RV on 11/3/2023 in #help
❔ Validation Error auto resize parent
No description
4 replies
CC#
Created by RV on 11/3/2023 in #help
❔ Validation Error auto resize parent
4 replies
CC#
Created by RV on 10/25/2023 in #help
❔ PopupModal dialog not fadeout or fadein
4 replies
CC#
Created by RV on 10/25/2023 in #help
❔ PopupModal dialog not fadeout or fadein
No one help me. I coding it manually. 😐
4 replies