Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
92 views

I would like to change the style of some DataGrid columns / cells (background, font weight, etc.) based on regular expressions. I have more than a few thousand rows and about 20 regular expressions to ...
Ludovic Wagner's user avatar
0 votes
0 answers
52 views

I am designing a set of custom controls in WPF. For GroupBox it is mainly Controls.Border within a Grid. Unfortunately the borders of these visual elements are visible in WPF designer as well as in ...
user avatar
0 votes
1 answer
94 views

I have two XAML/WPF user controls forms. The first one has button event handler that when triggered causes my second form to open. private void AutoSetupPageOneConfirmButton_Click(object sender, ...
George's user avatar
  • 37
1 vote
1 answer
104 views

I am having difficulty finding a way to use a DataTemplate in my ListBox and still be able to use a DisplayMemberPath which is dynamically assigned (please note this is a requirement). I have read ...
Stephen Chipman's user avatar
0 votes
0 answers
76 views

I am using the Material Design Toolkit in a WPF application, and I want to change the background color of the Snackbar based on different severity levels (Info, Warning, Error, Success). Currently, my ...
StupidMonkey's user avatar
0 votes
3 answers
217 views

I'm using a custom FullyObservableCollection class that extends ObservableCollection, where T implements INotifyPropertyChanged. The idea is to have a collection of objects that not only notify ...
user2953417's user avatar
-1 votes
1 answer
106 views

I'm struggling a lot finding a solution to my problem. I can't understand why my view is breaking as soon as I wrap it inside a scrollviewer. The layout idea is the following: <ScrollViewer> ...
Alberto's user avatar
  • 58
0 votes
1 answer
78 views

I'm trying to add DataGrid with the feauture to auto add row in the last one. so if the row is filled by pressing Enter of Tab or clicked away a new Row should be inserted. This code worked 1 time ...
user27828246's user avatar
0 votes
0 answers
33 views

I have a WPF desktop app that has a grid control that floats on the screen. With the code below I resize my grid with a ResizeGrip located on the bottom right corner of the grid. I have attached the 3 ...
g00n3r's user avatar
  • 145
-1 votes
1 answer
98 views

I have a ScrollViewer inside of which there's an ItemsControl element, inside of which I want to display custom views and pass data into them using bindings. The individual items are of ...
mag_zbc's user avatar
  • 7,019
0 votes
1 answer
55 views

I don't understand why an implicit TextBlock-Style is not applied in a DataGrid, unless defined in the App.xaml code. IMO it foiles the rule: the nearer to the possible consumer in the VisualTree, the ...
Felix Liebrecht's user avatar
0 votes
1 answer
76 views

I need my SharedViewModel to be set in design time to display data in my UI as I run the app, I see data on the screen, because OnLoaded runs LoadStuffs LoadStuffs initiates the SharedViewModel and ...
phil's user avatar
  • 60
0 votes
0 answers
108 views

I'm attempting to insert info into an Excel document and save it using EPPlus. Should be a very simple task, but seems it messes up the document. It distorts images, doesn't register numbers properly ...
Ofe's user avatar
  • 1
1 vote
1 answer
96 views

This has been marked as a duplicate of this question, which solves a different problem and does not mention anywhere how to solve the Binding problems I had. They were trying to bind ToolTip to ...
Snidex's user avatar
  • 11
1 vote
1 answer
113 views

I have a WPF application where I have 2 custom UserControl, both have the characteristic that are reusable. The first user control is an FormGroup where exposes a label and a reference to the other ...
mauriziopatino's user avatar
1 vote
0 answers
80 views

I am currently using the WebView2 runtime fixed version. After expanding the package, I found multiple DLL files, including ffmpeg.dll. In the file properties, the file version is displayed as 0.0.0.0,...
Po-Sen's user avatar
  • 637
0 votes
0 answers
98 views

I am currently rewriting my program, updating it to LiveCharts V2 and ran into the problem that I can't get my gauges to update. I am using an ObservableCollection, as advised in the documentation and ...
DefinitivVair0's user avatar
0 votes
0 answers
41 views

I recently started using WPF and I managed to fix most of issues I have, but one I can't fix is, when I set grid horizontal and vertical alignment, it had white bars around and won't fill the ...
Dzoni's user avatar
  • 21
0 votes
1 answer
88 views

I've been playing around with c# and WPF for about 3 weeks now trying to create a plugin to get things done faster in Revit. I've solved most problems by myself, but this one I could really do with ...
whitelined's user avatar
0 votes
0 answers
40 views

I'm using the XAMDataGrid from xmlns:igDP="http://schemas.infragistics.com/xaml/wpf" namespace. Following is my data grid <igDP:XamDataGrid Grid.Row="1" Margin="3 3 6 3&...
Venkatesh Dharavath's user avatar
0 votes
0 answers
52 views

I have a DATAGRID and fill it with a DataTable. The table has columns that contain an ID (ValidationID) on a DataTable PTable with different values that I want to display as a combo box in the ...
FTU's user avatar
  • 3
0 votes
1 answer
84 views

I am trying to import the System.ComponentModel namespace as scm as indicated in this SO answer here. Added the nuget package as below. <Project Sdk="Microsoft.NET.Sdk"> <...
VivekDev's user avatar
  • 26.1k
0 votes
1 answer
54 views

I want a WPF window to cover all monitors. <Window ... WindowStyle="None" ... In app.manifest DPI Awareness is enabled: <application xmlns="urn:schemas-microsoft-com:asm.v3&...
hultqvist's user avatar
  • 18.7k
0 votes
1 answer
52 views

In my legacy wpf application I have to validate ALL the controls inside a tabcontrol, included those contained in the unselected tabs. Thw following style is applied to my TabItem: <Style x:Key=&...
user avatar
0 votes
0 answers
122 views

I am currently working on a big C# application using DotNet8.0 and WPF. The current view has multiple ComboBoxes, each looking similar to this example <ComboBox Name="cboAdapter" Grid....
MaxH's user avatar
  • 75
0 votes
1 answer
70 views

I have a DataGrid within an ItemsControl, like shown below (Representing a collection within a collection). When I place a button within a DataGrid cell, can I bind the command so that 2 parameters ...
mmdn's user avatar
  • 53
1 vote
0 answers
52 views

I have an ItemsControl in my WPF application that displays a list of ToggleButtons. Each ToggleButton represents a file path, and I want only one button to be selected at a time. Clicking a button ...
Dana Yeger's user avatar
0 votes
1 answer
87 views

My markup does not want to change the background of neither the ComboBox nor for the selected ComboBoxItem. It additionally does not change the hover color of ComboBoxItems. How does this make sense? ...
wildREA's user avatar
0 votes
1 answer
101 views

I need to build an application that opens complex windows (windows that take about 1 minute for the UI thread to open them). Then, once they are open and loaded, start generating images of these ...
Ray's user avatar
  • 4,995
2 votes
1 answer
163 views

In a WPF application with .net 8 I'm trying to implement drag and drop from emails dragged from MS Outlook, and save the dragged mail to disk. This is my code: private void OnDrop(object sender, ...
chrx's user avatar
  • 2,608
-1 votes
1 answer
86 views

I have a wcf service published on my windows server. I have a simple method which makes a simple db query in the service : public bool HasActifContract(string accountNumber) { try { ...
Coskun Ozogul's user avatar
0 votes
0 answers
94 views

I am using the DevX WPF GridControl and ComboBoxEdit within a GridColumn's CellTemplate. For each row in the grid, there is a ComboBoxEdit with a selected item. Each ComboBox has its own ItemSource, ...
Bharathi's user avatar
  • 1,338
2 votes
0 answers
106 views

I have a WPF application that listens to copy events and stores clipboard items in a ListView. Each ListViewItem contains a button that executes a command (EditClipboardTextCommand) to open an ...
Dana Yeger's user avatar
1 vote
1 answer
100 views

I'm trying to convert a WPF C# application to use WinUI 3. This is a simplified version of my XAML code: <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"/>...
Gary Riley's user avatar
  • 10.8k
0 votes
1 answer
103 views

Initial data - Text alignment to the Left Creating an event handler and I get the following result, but it's not correct. The correct behavior is shown in the picture, but this is a TextBox. How ...
Kriss_Kross's user avatar
0 votes
0 answers
102 views

I would like to create a WPF class library based on a TreeView to visualize JSON strings. I define a JsonProperty DependencyProperty which I wan't to use to pass the JSON string. I'm able to get the ...
Ludovic Wagner's user avatar
0 votes
1 answer
72 views

Let's say I have a very simple converter for DateTime that I want to display according to some CultureInfo. [ValueConversion(typeof(DateTime), typeof(string))] public class DateTimeToStringConverter : ...
dow's user avatar
  • 599
0 votes
0 answers
98 views

I can't figure out the cause of the problem.: The name "BoolToVisibilityConverter" does not exist in the namespace "clr-namespace:WpfApp1". Although I seem to have specified ...
Anon Sd's user avatar
0 votes
0 answers
41 views

I'm having a DataGrid (WPF). Virtualization is activated: EnableRowVirtualization="True" EnableColumnVirtualization="True" ...
be_mi's user avatar
  • 591
0 votes
1 answer
102 views

In a WPF DataGrid, if I use AutoGenerateColumns and bind it to my collection of class objects, it displays enums as a combobox automatically where I can choose between all options available in the ...
Denis Schaf's user avatar
  • 2,880
0 votes
1 answer
50 views

I have this scenario: <Grid> <Grid.RowDefinitions> <RowDefinition Height="auto"/> <RowDefinition Height="*"/> <RowDefinition ...
Andy Wynn's user avatar
  • 1,303
0 votes
1 answer
49 views

I have a WPF DataGrid and I'm trying to handle a scenario where an item does not exist in my ViewModel. When this happens, I display an error message and attempt to set focus back to the DataGrid cell ...
shiblabi's user avatar
0 votes
0 answers
27 views

I have a DataGrid that is bound to a ObservableCollection of named Views (ViewItem). I have a CellTemplate column that I have a ComboBox inside a DockPanel that I am binding to an ObservableCollection ...
Sean_Page's user avatar
0 votes
0 answers
56 views

Long story short, I have an Avalonia project where I'm using the SimpleRouter library to achieve routing. The code is very similar to the full code example, using a ServiceCollection and I can access ...
Sei's user avatar
  • 13
-2 votes
1 answer
114 views

I have a problem with button's icon size under high resolution and DPI (200%). Under 1920x1080 100% everything is fine: https://i.sstatic.net/fzrDEXa6.png Under 2880x1800 200% the icons are too small: ...
H.Daniel's user avatar
1 vote
1 answer
84 views

So I'm writing a project that mimics Word. The setup is relatively simple: I get a nvarchar(max) from a database. This is to save the rtf content. I convert the rtf when the RichTextBox is loaded. ...
Korosevar's user avatar
0 votes
1 answer
114 views

Scenario: I'm implementing a custom ComboBox in WPF with a filtering feature: The ComboBox contains a Popup with a TextBox for filtering. Below the TextBox, a list displays only the items that match ...
Szabolcs Antal's user avatar
0 votes
0 answers
133 views

I have a very straight forward OpenFileDialog box that is triggered from an event associated with the click event on a button on a WPF form. When I run this simple form in debug mode... <Grid&...
Fred F's user avatar
  • 17
1 vote
2 answers
423 views

I need to perform an async operation when the window is closed (basically, to save all my data). The problem is that the program and the UI thread dies too soon and the task never completes. This is ...
Juan Manzanero Torrico's user avatar
0 votes
0 answers
40 views

Question: I'm working on a WPF application where I need to implement functionality to drag and drop Path elements onto a Canvas. After the element is dropped, it should snap to the nearest NURBS path (...
Houman Farokhi's user avatar

1
5 6
7
8 9
3401