Skip to content
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Win Forms, WPF, WinUI 3

    C# question csharp delphi wpf winforms
    3
    0 Votes
    3 Posts
    10 Views
    realJSOPR
    I started programming before OWL existed (my first IDE was Turbo Pascal for CP/M on an Apple //e back in the early 80's). I went through Pascal (OWL), C++ (MFC), and then C# (WinForms, and currently WPF). I refuse to code for WinUI, simply because I have no desire to learn it. It took me a while to accept WPF (and I fought it HARD), but I find it easy to do (easier than WinForms in a lot of ways). I do all of my design work in the XAML editor (you can drag from the Toolbox pane to the XAML to get a new control on the page, and intellisense guides you when you start changing properties in the XAML, so it's not TOO bad). After two years away from desktop apps, I spent the last weekend doing a WPF version (proof of concept) of our web app from work, and the hardest part was making the app allow the user to adjust font size with Ctrl+ and Ctrl- like a web browser (we have to comply with Section 508 by allowing the font in an application to be increased by up to 200%). A few years ago, I wrote a custom message box library that allows the developer to specify text size and custom colors (among other features), and with a little tweaking, my message boxes use the increased font size. ".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
  • Custom Control Style Question

    WPF css database wpf wcf question
    5
    0 Votes
    5 Posts
    6 Views
    K
    Huh? That's even momre confusing In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.
  • 0 Votes
    6 Posts
    9 Views
    L
    ... "and remove". Total disaster. Breaks referential integrity. The only way to "remove" "codes" is to "expire" them with a start and end date. "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
  • 0 Votes
    20 Posts
    16 Views
    A
    [ Castles Plaza Real Estate ](https://castlesplaza.com/)is a prominent real estate agency specializing in luxury properties and premium real estate services.
  • 0 Votes
    6 Posts
    20 Views
    L
    Because we are experienced we must have seen all error messages, and can guess which one the OP is talking about.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Capcut Templates

    Application Lifecycle wpf csharp
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Boring code

    The Lounge graphics help wpf com iot
    6
    0 Votes
    6 Posts
    0 Views
    B
    a future possibly next project is an editor which will require text editing . i was not looking forward to this aspect of the project as transforming pixel positions to text will no doubt require various font dependencies which i barely understand . however i decided to challenge myself to implement an elegant and knowledgeable solution . further as the editor will also display non-displayable characters as Notepad++ does nicely yet more complications result . again i am challenging myself to find an elegant solution to this problem also . this is intended as an improvement of a prior project which handled only the simplest of fonts and characters .
  • 0 Votes
    4 Posts
    0 Views
    B
    something to live for ! :omg: «The mind is not a vessel to be filled but a fire to be kindled» Plutarch
  • 0 Votes
    4 Posts
    6 Views
    L
    You don't need to change the zorder to put it "on top"; you just span the whole grid and then position it the way you want and add it to the (XAML) visual tree last. Or put a canvas behind it for abolute positioning. The button can be placed anywhere relative to the progress "widget" using the same priciples. As for "hit testable", you can "swallow" clicks anytime it simpifies things. (e.Handled = true or false). (If you can "close" the widget, it begs the question: how do you open it. Maybe the button should be on a top or side "command bar": an enable / disable toggle). "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
  • web controls in windows forms

    C# csharp wpf html asp-net winforms
    11
    0 Votes
    11 Posts
    0 Views
    Graeme_GrantG
    I've just seen you post, so sorry for the late reply. The answer is yes, you can. Blazor WASM (Web Assembly) enables you to do just that. I have written an article recently that demonstrates this with WPF, however WinForms can do the same. Here is the article: Blazing.Mvvm - Blazor WASM & Blazor Hybrid using the Community Toolkit[^] - ignore the fact that the article focuses on MVVM. The key thing for you, in the article, is not only proof of concept, but also how you can interact with the Blazor part from within your WinForms app and vice versa. IT is made possible by the BlazorWebView control. Microsoft have an article that shows you how to host Blazor within WinForms: Build a Windows Forms Blazor app | Microsoft Learn[^]. Be aware though, to do this, you need to work with .Net 7.0+, not .Net Framework. However, if you need to move from .Net Framework to .Net, then your app will receive an immediate performance boost due to improvements made to .Net - no legacy support. Graeme "I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
  • 0 Votes
    2 Posts
    0 Views
    N
    Kent Sharkey wrote: Should be about 5 minutes or so Are you sure you are not speaking about frameworks in Javascript? M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • WPF EF Core 6 DP Question

    WPF question csharp asp-net wpf security
    6
    0 Votes
    6 Posts
    6 Views
    Richard DeemingR
    It's a dependency, so I'd be inclined to inject the repo rather than the context. :) NB: Entity Framework supports asynchronous database queries, so it would be better to offer a FindAsync method on the repo, and get rid of the Task.Run call. public class ApplicationSecurity : IApplicationSecurity { private AppSecurityRepository _userRepo { get; } public ApplicationSecurity(AppSecurityRepository userRepo) { ArgumentNullException.ThrowIfNull(nameof(userRepo)); \_userRepo = userRepo; } public async Task LoginAsync(CredentialsEntity credentials) { var user = await \_userRepo.FindAsync(x => x.UserName == credentials.UserName); if (user is null) return null; return Cryptography.VerifyHash(credentials.Password, user.Password, user.Hash) ? user : null; } } NB2: Why does your user entity have both a Password and a Hash property? I'd expect to see a "protected password" property, and possibly a "salt" property, depending on whether the salt is stored as a separate column or combined with the password hash. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • 0 Votes
    5 Posts
    0 Views
    Mircea NeacsuM
    Excuse me for asking, but why would you still be using VS6? Seems to be a 20+ years old product and there have been innumerable versions after that. I seems to remember having used it long time ago but any memory has been lost in the darkness of time. I'm sure you must have a good reason and I'm asking only out of curiosity. Please don't misinterpret it as a critique or something. Mircea
  • 0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    4 Posts
    0 Views
    V
    Some businesses have invested a lot in building business applications that are strong support for their main business processes. It's not always easy to replace the solution which has been invested millions with some new technology even though it might be the new technology have some advantages. Actually, the idea of providing a possibility for developers who are already familiar with XAML (read WPF/Silverlight/UWP/WinUI) and don't have experience with HTML and CSS is good. As it is described in the introduction article XAML for Blazor, which is based on OpenSilver (www.opensilver.net - free opensource framework) is not intension to replace Blazor/Razor pages, but to provide a possibility for choice and XAML to go side by side with Razor.
  • 0 Votes
    2 Posts
    0 Views
    D
    Quote: Windows 365 offers the added advantage of being a cloud-based system managed by Microsoft. "All your base are belong to us" Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver
  • WPF .Net Core Dependany Injection Question

    WPF csharp wpf question asp-net dotnet
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    1 Posts
    3 Views
    No one has replied