WPF Datagrid Cell Text Wrapping

I have a datagrid that has a custom style so I can reuse this format throughout my application. It has a custom column headerstyle, row style, etc. I was able to get the text wrapping to work on the column header and data binds to it correctly. Wh...
more »

2017-11-15 21:11 (1) Answers

WPF ListView/GridView Binding

I am attempting to make a simple VS 2017 Extension that is taking a object and displaying it. I have the data coming back and displaying the json in a text box, so I know the data is coming back correctly. But for some reason the gv is just showing t...
more »

2017-11-13 22:11 (1) Answers

WPF Dynamically Populate UI

How can I populate UI items such as a textblock for example, based on the contents of a datagrid? For example, if i had a datagrid with a varying number of columns each with a specific header. Would it be possible to create a new textblock for each ...
more »

2017-11-13 12:11 (1) Answers

Using an image from content in a Template

I'm not sure how to best accomplish this: I have a template for a button, in which I would like to use an image, which will be different depending on the different instances of that button's template. The code: <Style TargetType="Button" x:Key=...
more »

2017-11-12 16:11 (1) Answers

Binding DataGrid Cells to an Indexed Property

I have created an indexed property in a class, and I need to set bindings for each cell of a DataGridTemplateColumn in a DataGrid (each cell to its corresponding item of the indexed property). It is for a work-schedule generating application. Each c...
more »

2017-11-08 20:11 (1) Answers

Mode=TwoWay return Null

After a lot of hours I finally found what is the problem that cause the bug. Before to show the code that present the problem I need to explain the situation. Binding and properties structure In my application there is a ComboBox that bind as ItemS...
more »

2017-11-08 13:11 (1) Answers

Progressbar progress during long task

It's my first post here, so I hope I'm doing everything correct. I'm using the .NET Framework 4 Client Profile. I want to load data from a .doc file into my program and work with this information. This can take a lot of time since I need to run thr...
more »

2017-11-07 15:11 (2) Answers

XAML equivalent to object-position from CSS

I'm working on a WPF app which displays a list of items and each one has a small image associated with it. From the API I receive the image url and a focus point represented by two numbers between 0-1. The web app just multiplies those numbers with 1...
more »

2017-11-07 14:11 (1) Answers

Data Binding in MVVM WPF - devexpress

I'm looking for errors in my code. The sql query returns over 200 items, but does not see any. I have this FiltryView.xaml <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.m...
more »

2017-11-06 15:11 (2) Answers

Can't change Button's background image

I have a problem with button control. When I hover over it, the button's image is missing. However, when mouse leaves it, the image comes back. I want to preserve the image when mouse over is true. this is when mouse is over this is normal status...
more »

2017-11-05 08:11 (1) Answers

XAML not refreshing in Visual Studio

I have an issue with my XAML window in Visual Studio 2017, however the issue is only happening in one of my two projects. I have a <grid> in both projects and I had many rows in said grid, so in an effort to clean up my code I found https://ra...
more »

2017-11-03 20:11 (1) Answers

How to get the rendered size of a visual in WPF?

I have a situation where I need to get the rendered size of a visual element on WPF. I mean, I need to get the space that something consumes on the visual space, like a Button with a DropShadowEffect applied and not just the values of ActualWidth an...
more »

2017-11-02 17:11 (1) Answers

WPF Change focused TextBox background color

Note: I'm using MahApps.Metro. So what I wanted is to create a global style which affects all TextBoxes in the application. Style should on Focus (whether it's a mouse, keyboard, whatever) change the background of the focused TextBox. My problem is...
more »

2017-11-02 12:11 (1) Answers

Change Color of a selected Row in a Listview

I want to change the Color of a Listview Row in XAML when I: Have the Cursor over it Have the Row selected I tried many different Solutions I found here in the Forum and also on other websides, but I never found a solution that really changed any...
more »

2017-10-31 21:10 (1) Answers

XAML template Datatrigger foreground not changing

I'm trying to style a button that will have the fill color change when the foreground color is changed. However, the dataTrigger I'm using is not going through. After hours of search, I've understand that the local color override the style but I can...
more »

2017-10-28 04:10 (1) Answers