WPF Window size limitation
There seems to be some limit to the size of a WPF window and the monitor resolution I’d like to understand. My application creates a window 4320 x 7680. The computer has a graphics adapter with (4) outputs connected to (4) very large 4K LCD monitors in…
Toolbar wpf
Hi. How do I remove the default separator of the toolbar in WPF? Thank you.
Draw a Arrow WPF
Hi. How to use the Line object to draw an arrow?
Placeholder textbox wpf
Is there a property, tag or element that allows adding placeholders to textboxes in WPF? Thank you.
How to let my WPF app respond to default app mode
There is "choose your default app mode" in Win10 setting with two options, "Light" and "Dark". I know an UWP app automatically respond to the setting and change its appearance automatically. Now the Win32 common file open…
get the shape after applying geometry
hi i have applied a render tranform to a System.Windows.Shapes.Line and i don't know how to get line X1, Y1, X2, Y2 after transform. any help will be appreciated, thanks in advance.
What technologies should be used for a desktop application on remote buildings?
I am used to .net development. I plan to make a WPF application, with an SQL database, ideally with a small public web part and a part in Xamarin. It must therefore be able to transit via the Internet while remaining private, but not always. Take a…
Converting EMF to PNG preserves/displaying Excel cell with No Color data
Hi, We have NT EMF virtual printer, We have Excel sheet (contains each cell data with no color) show that no color cell will not be printed. When we print that Excel sheet to our virtual printer, it will print EMF data to or WPF application. …
How to specify using the default style in XAML?
The basic problem is that a WPF application I'm working on makes extensive use of Material Design. The problem I'm running into is that it appears that the DatePicker style makes it very difficult to apply a converter to get its output to look like…
[WPF] Soft Keyboard Shows, Then Hides, in Popup Window
My WPF application is targeting .NET Core 3.1. It runs on Win10 laptops and Surface Pro tablets (in tablet mode). The tablet is running Win10 Update 1909. The app has a popup window for the user to enter a Username and Password. When the user taps on…
binding to abstraction collection of abstraction class
hi , i have : public class Tangent { public IPoint2d StartPoint {get; set;} ... } ... public IList<ITangent> Tangents = new ObservableCollection<ITangent>(); Tangents.Add(new Tangent(new Point2d())); ... <ListBox …
WPF Foreground Color in a DataGrid, Change via Code (C#)?
Hi, I need to Change a Foreground Color in a DataGrid Line, here ist the XAML Code from the Line in the DataGrid: <DataGridTemplateColumn Header="Nr " Width="38" CanUserSort="True"…
WPF DataGrid column header mouse events
I have following events with subscriptions in the class, derived from DataGrid: private void SubscribeHeaders(DependencyObject sender = null) { sender = sender ?? this; for (int childIndex = 0; childIndex <…
wpf custom control property of type class
hi i'm trying to create a custom control with a public property Boundary of type MovingBoundary(as below), but when i'm trying to use my custom control in a xaml i cant't initialize Boundary property. <custom:MyCustomControl …
WPF ViewModel DataContext between UserControl Windows
Hi, have anyone a small sample for me like this: Master Window Sub Window In the Sub Window is a UserControl Window How can i send data via datacontext from the Master Window to the UserControl Window? I can set the first data easy from…
How know WPF DataGrid ItemsSource bind finish
Datagrid control ItemsSource Attribute bind List, but , I donot know When is the data loaded ?
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…