WPF rendering a Viewport3D to RenterTargetBitmap changes RGB values
I'm trying to render a Viewport3D with textured triangles to a RenderTargerBitmap. But the colors in the bitmap are different than in the viewport: Right side: an actual in-app Viewport3D. Left side: the RenderTargetBitmap shown in a…
WPF MVVM how to show data from many tables in one view
Hi, I think this is very common scenario when you have relational database and classes witch represent each table as class (as is model) public class Role : AppEntityBase { public int RoleId { get; set; } public string…
WPF MVVM relational database with foreign keys sample
Hi what is the best practice to work with foreign keys? How to design object class? Should I use valueConverter to switch between RoleId to RoleName
Access IValueConverter From ResourceDictionary
I have Canvas that is icon: Dictionary1.xaml: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" …
Accessing string in ViewModel from IValueConverter
I am trying to create a converter that will take string property from ViewModel, compare it to time passed (time is inputted to TextBox HoursLimitProp in a format 07:30) and then change Label color accordingly. I know this is bad idea to do this way…
How to display 3mf model in ViewPort loaded from file?
Hello, I am currently designing a WPF app. I have a requirement to display 3mf models on ViewPort 3D. I currently stream the 3mf's xml file and display only vertex and triangles. I am trying to migrate UWP apis to use Windows.Graphics.Printing3D. Is…
Wpf: how to equally distribute the available height among 2 expander controls in grid without any gray area
I have a Floating SplitPane, in which there are 3 expanders. The first expander has max of 3 rows of controls (label and textboxes) to display and needs to be displayed without a scroll. And second and third expanders have one DataGrid each and the…
I can't get my custom click event to work.
Hello. I have this class written. public class MyButtonSimple : Button { // Create a custom routed event by first registering a RoutedEventID // This event uses the bubbling routing strategy public static readonly RoutedEvent TapEvent =…
WPF Datagrid: Checkbox and Button stackpanel
Hello, I coded in xaml.cs my datagrid with a single column of checkbox and button using factory and stackpanel. Right now I want to detect what column and row they are and if the checkbox ischecked = true. My column headers on datagrid are dynamic based…