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…
WPF DataGridCheckBoxColumn Control question
Hello, I need modify DataGridCheckBoxColumn Control inside checkbox size, but i don't find a way to modify it, Who can tell me ? Thanks
BLE 4.2 connection dropping packets while using external dongles
Hi, Running into a packet drop issue when trying to stream data from a medical device to a hp desktop (WPF app) commonly used in hospitals and clinics. The application is using BluetoothLEDevice PairAsync to pair with the device and the device requires…
WPF Treeview Binding
Hi Experts, I would like to populate WPF Treeview with Directory and subdirectories. For that I followed this https://social.msdn.microsoft.com/Forums/vstudio/en-US/bdc74177-0db3-4e9d-9a08-96406eb981a8/wpf-treeview-with-checkboxes?forum=wpf link. My…
What is the correct package to create an HTTP client in a WPF Core3 desktop app?
I have a WPF desktop app using Microsoft.WnidowsDesktop.App.WPF and Microsoft.NETCore.App v3.1. I would like to add an HTTP client for simple GET/POST... What is the correct package to add an HTTP client so I can accomplish WPF-REST Web API…
How to speed up a WPF DataGrid bound to an ObservableCollection?
The application is WPF/MVVM. A DataGrid's ItemSource is bound to an ObservableCollection<LogItem> where LogItem is a plain class of 5 strings and one enumerated value, none of which support the INotifyPropertyChanged interface. The problem is that…
WPF: When is data binding applied?
Hallo, i stuck at a behaviour i can't explain nor find any help in the documentation or various forums. The following code is needed to explain my problem/ to ask my question. A simple WPF (VB.Net) app that has an combo box (BindingBox) that binds to…
events in custom control in wpf
I've made this user control and it works well, I'm trying to covert it to a Custom Control, but I can't hook up my handler to those 3 events. any help will be appreciated. <Canvas x:Class="SMFU.UserControls.Public.MovableChildCanvas" …
Clarify INotifyCollectionChanged
I have a TreeView bound to an ObservableCollection with a ViewModel. The TreeView includes folder-like elements that will have child items. Most times opening the app we won't need to view those child items so I'm not filling them in when the app opens,…
Memory leak. Class with finalizer
Created a minimal reproducing application. Reproducing conditions: Visual Studio 2017 WPF application Launch the application under the debugger WPF window code (class with finalizer, very busy WPF main thread): code: using…
WPF custom data grid with button
In WPF xaml, I would like to make a custom data grid with button in cell. I want to create button(Say "Add" button) in the last cell of each row as shown in below pic. While pressing "add" button some operation will happen…
WPF BindingGroup Validation
I am using a StackPanel to host several TextBoxes that have validation rules attached. I also have a StackPanel.BindingGroup validation as follows: <StackPanel.BindingGroup> <BindingGroup Name="ValidateAllFields"…
Cross Origin Requests not working in Web Browser control - C# - WPF
Hi, I have a Web Browser control in my WPF application and its source is set to an URL that will load few icons and images from different domain than the Origin. All cross domain requests are not working. How can I enable cross domain requests in Web…
How to display 3 single channel array in wpf?
I have 3 IntPtr Pointers of Red, Green, and Blue channels. I need to display these pointers as an RGB image. I know the width and height of the image. If I convert it as a single pointer it takes processing cost. Here is my Conversion Code, public…
Custom Control edit template cause compilation failure in Visual Studio 2019 (version 16.7 Preview 2)
In Visual Studio 2019 version 16.7 Preview 2, while try to edit the template of my custom control using Edit Template option in designer which causes compilation failure due to empty properties fields generated. Please find the code genereate details. …
TextBlock Right TextAligment Doesn't work inside a ScrollViewer
Hi, Im coding in XAML. Im trying to create a TextBlock inside a ScrollViewer with a Right Textaligment. but no matter what I put, when the text exceeds the width of the TextBlock, It always shows the text from the left to the right. Here is a piece…
WPF, XAML, Combobox: Cannot find source for binding with reference
I have some comboboxes that use the same possible input values. Hence I tried to create a style and then set the style on my combo boxes. However, I am getting the error System.Windows.Data Error: 4 : Cannot find source for binding with reference…
ColumnSpan in Grid is not working properly when MaxWidth is 0 in VisualStudio 2019 (Version - 16.4.5)
In my project created in VisualStudio 2019 with version 16.4.5, I have some columndefintions in grid and also uses columnspanning. But when I set maxwidth as 0 for some definition, the columndefinitions are not spanned to full width properly. Code…