« first day (2387 days earlier)      last day (1762 days later) » 

11:00
Hi all
11:40
Hi Alex :-)
Hi Xaml
How are you?
0
Q: C# WPF Telerik RadRichTextBox typing performance issue

user3239349I have a typing performance issue with WPF Telerik RadRichTextBox. It has some lag, not very much, but if you type fast you can feel it. Is there any property or some other way of fixing these performance issues?

11:56
Doing all right, thanks. How are you, Xaml?
12:37
Good Morning :)
I have code like below :
 public static IPainter CreateCheapestSelector(IEnumerable<ProportionalPainter> painters)
        {
            return new CompositePainter<ProportionalPainter>(painters,
                (sqMeters, sequence) => new Painters(sequence).GetAvailable().GetCheapestOne(sqMeters));
        }
 public CompositePainter(IEnumerable<TPainter> painters,
                                Func<double, IEnumerable<TPainter>, IPainter> reduce)
            : this(painters)
        {
            this.Reduce = reduce;
        }
Now when calling CompositePainter ,I dont understand where IPainter is passed
For Func delegates,there are 3 parameters but while calling Func delegates only 2 parameters are passed i guess
But there is no error
I am bit confused
Does intellisense make it more obvious, when you hover over things?
(sqMeters, sequence) : caters to double, IEnumerable<TPainter>
but IPainter object is not passed
13:00
I don't think that's the ctor it's using
It's using a ctor that allows for a <T>
do a go to definition on it to find out
@ILoveStackoverflow ^
C# does not allow ctors to infer type, so there must be another ctor that is the one actually be used.
13:47
Reading about FindAsync vs SingleOrDefaultAsync. The former is preferable to the latter for simple finds: stackoverflow.com/a/54819842/177416
But if you want to Include other entities, then FindAsync is no longer appropriate.
14:02
Has anyone here used Hangfire for creating "services"?
Nothing urgent, just curious
Used it for background jobs, but not services
Guessing it's for long-running jobs and not a true service
For easier Win service dev, Topshelf looks to be the tool
14:37
@ILoveStackoverflow IPainter is the return type - Func generics always have the return type as the last type argument. reduce must be a function which returns an IPainter
If you need a three-argument closure that returns nothing, you want Action<T1,T2,T3>. Func goes as Func<T1,T2,TReturn> - or, if you need, Func<T1,T2,T3,TReturn> (I think up to 8 args)
Oh, I'm wrong. The framework docs list up to 16 args
14:52
and nothing stops you from composing Func args within Func args.. so you can basically compose unlimited number of args
 
3 hours later…
17:38
Happy Friday all
Happy Friday, biggi
my mouse wheel died so now I need a new one :(
Huh looks neato.
I use an Anker verticle mouse at work. It's on its last leg too...might have to get one.
my wife uses one of those
Cool mouse
17:48
I like the forward/back being above and below the thumb
instead of both on top
Bradley: I think this one looks pretty cool too amazon.com/…
You can setup macros to the different weighted clicks
Looks cool. I really like the ergonomic ones though
can't handle a flat/small mouse anymore
It depends what I"m doing. If I'm playing CS:GO, then I'm not using my vertical mouse haha.
Any recommended keyboards for folks with arthritis in fingers from typing?
hey guys, how do you handle queries to database from a WPF app (my app connects to a web api not to the database directly)
I have pagination working correctly, I used a basic json object to send and receive pagination values to a dedicated controller ...should I do the same for queries (like sort, find keyword etc)
17:56
I don't know about arthritis relief but I love my Microsoft Sculpt Ergonomic
really helps the wrists
ero: I've noticed that my wrists and fingers stress less with the more chiclet style keys vs full size keys....might just be me though
I'd look at something like this maybe? allthingsergo.com/microsoft-sculpt-ergo-keyboard-review
That's exactly what Bradley put haha
I think that was for alex :)
@Alex this leapmotion.com
Yes it was sorry haha
Need more caffeine :)
Seems like room has been quiet the past few days :(
18:26
@erotavlas Interesting
@franssu You've been away too long :0
18:38
:)
how are you doing
18:52
Doing all right. How are you?
19:12
Remember asking the friends here a while back if they knew what happened to franssu
@Alex Budget an issue?
if not, I'd look at ergodox-ez.com
though kinesis-ergo.com/shop/freestyle-pro is also nice and a bit cheaper (still expensive)
I'm a big fan of mechanical keyboards, too - so getting split keyboards with mech keys makes a huge difference IMO
Thanks, Reed. Probably buy it for myself
Wrists are fine. Did years of keyboard shortcuts with my left index finger
Now paying the price
ergodox is pretty awesome - but it's like $350ish
I'm fine :)
hey @ReedCopsey :)
Hello :)
19:22
I'm playing with the SAFE stack :D
Was a touch typist. Could do 55+ word/min.
Now avoiding left index
Good to have you back, franssu
I recently bought a microscoft sculpt keyboard
hard to go back to flat keyboards
also recently bound ctrl to the capslock key, changed my life :)
19:47
@biggi_ Thanks, biggi
They're rolling out Teams here. Still prefer Slack
20:16
We have nothing as we have really 2 people that do our product development and we sit right next to each other. Then we have our IT guys that do internal stuff and they all sit next to each other haha.
So we just yell across cubes.
 
2 hours later…
22:20
(and Henri - we practice MVVM here, and try hard to keep the viewmodel concerns where they belong -- in the viewmodel, not the codebehind)
Context:
in C#, 3 mins ago, by Lynn Crumbling
@Henri I'd make a gist. Post the link to the gist in: https://chat.stackoverflow.com/rooms/18165/wpf
Nearly all of us are work for the day, and indeed the week. Most of us are either Europe or US-based. We'll be back during the workday on Monday.
But please take the time to make a gist, and have it only contain relevant code for the problem you're having.
Then paste only the link to the gist here, as opposed to a full code dump.
Also, check out samples at: gitlab.com/so-wpf/samples
I'm out - have a great night.
I'm working late tonight, so I may be able to answer something, but if not, check back Monday - odds are there'll be an answer or two
Lynn - have a great weekend!
Ah, there ya go. Zarenor - til next week ....
thanks a lot you guys. this room will be EXTREMELY useful. I'm loving WPF due to its power, but its just as complex
22:36
Yeah, it's incredibly complex. But that complexity allows for a whole lot of power
As I'm sure you're realizing.
yea.. let me do something... I'll be back with a couple questions
22:54
@Zarenor well, I'm trying to write custom controls to represent some models. eg.: I have 3 concrete types, they are MouseAction, KeyboardAction and ScriptAction. They all inherit from the Action interface and have different attributes/members. There will be 2 windows, where one you can create actions (one of the above) and the other youll be able to create ActionExecutors. The last contains an Action attribute and a boolean (to determine whether the action should be enabled or not)
so my guess is: shouldnt I create controls, so that they can be reused in both scenarios?
and the main question is: how to do that? lol

« first day (2387 days earlier)      last day (1762 days later) »