class property access in parent only
hi, i'm new to c#, i want solve this problem : public class Location { public int X { get; set; } public int Y { get; set; } public Location() : this(0, 0) { } public Location(int x, int y) { X =…
MVVM & Microcontrollers
I am creating an application that can control a micro controller. So the GUI allows me to say things like Define if a particular pin is an input pin or output pin. So there is a combo box with [In, Out] values. Integer (or other) text fields that…
Undrstanding the MVVM pattern
Hello everyone. I want to get some clarification about MVVM a possibly help me with a WPF app I have this class, witch represent a User public int Id { get; set; } private string _Name; public string…
Blank space when system's scale changed
When I dock simple WPF window to right or left side (scale set to 125% or higher) and then return the system scale to original value 100% an ugly blank space appears at the bottom of the window as you can see here: The WPF application is newly…
How to monitor the current status of the printer In WPF?
When I print a document, I have no paper, this time, I want to get finished or paperless status? Thanks
DataGridTemplateComboboxColumn in WPF
Hi all: I'm new in WPF and I'm having a hard time trying to make the Combobox works in a DataGridTemplateColumn. I don't want to use DatagridComboboxColumn because the cells on this column look like a text column, the user has to click on it so the…
WebBrowser -> acces to css when mouse hover of html id style -> get, set, click inside wpf + c#
Hello i need a help, how can i decide the problem with it. I wan to get value from the html elements my id and style while the mouse is moving hover the element --> get, set and do auto click by the elements... so.. First of all i have loaded…
Asp.net Core 2.1 web api deployed successfully but not getting response from my web api url
Can you please guide me why i am not getting response from following link https://otgapi.azurewebsites.net/api/values This url shows https://otgapi.azurewebsites.net/ api deployed successfully.
A question about fades in XAML
Hello all I have a question about XAML. I looked at a lot of examples these last few days trying to figure something out without any success... What I am trying to achieve is this: I created a style for some buttons I will be using. I would like those…
Screen.PrimaryScreen.WorkingArea is not giving full screen?
I am trying to make an Windows form app that will auto scale to full screen. The problem is that I do not want to make it full screen if it is less than 1680x1050. So I tried to use Screen.PrimaryScreen.WorkingArea.Width / Height to get the resolution. …
wpf ,datagrid row has inner datagrid,select cell problem
One datagrid ,each row has one detail datagrid, i want to select cell outter datagrid and inner datagrid same time,but it's failed.when select cell in inner datagrid,the outer datagird cell selected will unselect,how to select cell outter datagrid and…
wpf Viewport3d.GeometryModel3D.LinesCollec
hi. I want to add an ObservableCollection of Lines and ObservableCollection of arcsegment to Viewport3d. the goal is to draw arcs based on the Lines so whenever line.x/line.y updated it automatically updates the arcs, however my question is not…
Flowlayoutpanel control in a child form can not be modified
when the father form has a flowlayoutpanel control, child form can not modify its any attribute though the modifiers of flowlayoutpanel is public. But other controls of father form like button can be modified in child form.
How to create a grid-line document in a WPF Application
Does anybody have a link to a WPF example application that creates a document page with grid lines? Please see below:
wpfCore3.1 binding mouse event to mvvm
is there a way to bind xaml control mouse event to mouse event handler in viewmodel? i'm using wpf core3.1 MS VS2019.
What is the correct MSAL package for a WPF core 3.1 desktop app?
I have a WPF desktop app built on the .NET Core 3.1 framework. I would like to add the ability to acquire a token and call Microsoft Graph API from this desktop app. Microsoft.Identity.Client does not list .NET Core 3.1 as a dependency. Is this the…
WPF samples - how to use the example projects included?
I downloaded the samples from GitHub but apart from getting a Form with some |Layout and Control details, I can notfind any way to try any of the examples. How to load/run any of the examples in the Solution? The only way I can figurte out is to…
cannot set multiple base to custom control error
i'm trying to build a wpf custom control library, want to create some controls that inherited from wpf controls (textBox, label, ...) and i wanted them all to be inherted from a base class and wpf control, here is one of them: public class…
drag the three endpoints of the two lines
I use the mouse to draw two lines, how to drag the three endpoints of the two lines,Similar to the effect below(it is a usercontrol,i want to line or path,not a usercontrol),I want to have two lines, and I can drag their common endpoint
Add new Views and Viewmodels in Caliburn.Micro?
I would like to use Caliburn.Micro in my new MVVM projects. After reading the documentation, I understood that Caliburn.Micro takes care of the connection between views and view models on its own (if of course the naming convention is followed). For…