Skip to content

WPF

Silverlight, WPF and XAML programming discussions

This category can be followed from the open social web via the handle wpf@forum.codeproject.com

4.8k Topics 18.9k Posts
  • ERP project

    com
    1
    0 Votes
    1 Posts
    39 Views
    No one has replied
  • App WPF

    csharp question visual-studio wpf help
    2
    0 Votes
    2 Posts
    30 Views
    Richard DeemingR
    Nelson1965 wrote: I would like the windows I open not to appear in the Task Manager The dream of malware authors everywhere! No, you can't hide your application from the task manager. At least not without writing and installing a "rootkit", which will get your application banned with extreme prejudice. Nelson1965 wrote: when I log out to turn off the computer it tells me that there are open windows You don't need to hide your application from the task manager to avoid that. Any normal application will shut down when the user logs out. If you need to do something special when that happens, subscribe to the Application.SessionEnding event[^]. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • "Refresh" Behavior

    help question
    4
    0 Votes
    4 Posts
    37 Views
    realJSOPR
    Did that work? ".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
  • RenderTransform Compilation Error

    wpf css database wcf help
    2
    0 Votes
    2 Posts
    21 Views
    realJSOPR
    Try changing the TargetProperty to just "Angle" instead of "RenderTransform.Angle" - no guarantees, but it might work. ".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
  • binding textblock to tabitem textblocks

    wpf wcf tutorial question
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • [WPF] ComboBox with RichTextBox

    wpf csharp regex architecture tutorial
    2
    0 Votes
    2 Posts
    19 Views
    M
    I have a flat text file of which here is an example line: sample 1 : {Image1} blah {image2} blah. sample 2 : blah {Image1} blah sample 3 : blah blah sample 4 : {Image1} blah (each line may be different) With Image1 and Image2 which represents the name of the image file in the Images of the project.
  • 0 Votes
    2 Posts
    17 Views
    L
    You can save program information in the AppSettings file, see https://learn.microsoft.com/en-us/iis-administration/configuration/appsettings.json[^].
  • select text box lines and remove

    question
    3
    0 Votes
    3 Posts
    27 Views
    G
    I had this code for my old windows form. At the time I didn't pay much attention to it as I had found it on a forum somewhere and I just copied and pasted. The original problem was in Windows forms. After a certain period of time of taking data in the entire program would crash. The code above resolved it, but moving over to WPF I'm finding a lot of things don't work as they should or even have the same methods. I am liking the fact that WPF is a lot more forgiving on certain things though so all good. Thanks
  • Add Handler For Child Control Event

    css wpf wcf
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • 0 Votes
    3 Posts
    29 Views
    K
    I do WPF for a living. I have the Control Development book. In the part about creating custom controls, ALL the xaml from the template is used in the examples. I want to create subclass of a combox box. I don't need the XAML for the button or the textbox, or any other part except for the content site. If you go look at the XAML in the link I provided, I want to replace this: Something like this public class MyComboBox : ComboBox { static MyComboBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(MyComboBox), new FrameworkPropertyMetadata(typeof(MyComboBox))); } // Add DP's \* logic here } and <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ComboBox"> </ControlTemplate> </Setter.Value> </Setter> If I do this XAML, the ENTIRE template is replaced, so I'd have to recreate the textbox, button, etc. What I'm asking is, instead of replacing the ENTIRE TEMPLATE, can I somehow replace just a small piece of that template? 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.
  • Invoke WPF

    csharp wpf help question
    3
    0 Votes
    3 Posts
    27 Views
    G
    This is extremely helpful to know! Thanks!
  • ICommand Wpf form load properties?

    wpf csharp sharepoint architecture question
    6
    0 Votes
    6 Posts
    34 Views
    G
    Thank you much Richard. I think I got it. Thanks again!
  • WrapPanel / ItemsControl Problem

    wpf help csharp css wcf
    4
    0 Votes
    4 Posts
    31 Views
    Richard DeemingR
    Kevin Marois wrote: I removed the ItemsPanel, and there are no binding errors, yet I still see nothing. Which means the problem is nothing to do with the items panel; either it's not binding to the collection, or the collection is empty. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • Replace Expander's Content at Runtime

    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • 0 Votes
    2 Posts
    17 Views
    D
    In your InitializeWebViewAsync method, try creating a CoreWebView2Environment object (you'll need to give it a folder path to use) and passing that to the EnsureCoreWebView2Async method. Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak
  • 0 Votes
    1 Posts
    10 Views
    No one has replied
  • How to snap polygon to another polygon??

    csharp html css wpf tutorial
    2
    0 Votes
    2 Posts
    18 Views
    G
    Hi iamnewguy, I'm actually looking for the same functionnality, I had drag google without any good answers, did you finaly manage to snap your polygons together ? thank you ! ;)
  • DataGrid Built In ViewModel Question

    question
    2
    0 Votes
    2 Posts
    20 Views
    M
    Probably an unwanted comment but why not use a checkbox binding directly to the datasource, less clicks for the user, and no faffing around with combobox and dodgy binding. You could even add the Yes/No based on the checked state. Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
  • When Are All DependencyProperties Set

    help
    2
    0 Votes
    2 Posts
    22 Views
    realJSOPR
    If I understand what you're looking for, I use the control's Loaded event. At that point the control is ready to go and all of the Dependency properties should be set. ".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
  • WPF .Net 6

    csharp wpf question asp-net dotnet
    2
    0 Votes
    2 Posts
    22 Views
    P
    You definitely have using Microsoft.Xaml.Behaviors; in this file? As long as you Nugeted from here[^] that should be all you need. Advanced TypeScript Programming Projects