886 questions
-2
votes
1
answer
94
views
WPF Rotating icon datatrigger
I would rotate my icon using a datatrigger:
<Canvas ClipToBounds="True" Margin="0,0,0,0" Width="27" Height="27" HorizontalAlignment="Center">
...
0
votes
1
answer
51
views
How do I make two asymmetrically linked CheckBoxes in XAML?
I have two CheckBoxes in XAML. When the first one is unchecked, I want the second one to be unchecked. But when the first one is checked, I don't want anything to happen with the second one. I also ...
0
votes
2
answers
146
views
.NET MAUI Way to reuse constantly reused XAML Triggers?
Pretty new to MAUI dev. I have a situation in my MAUI app, where I need to change the text color of MANY labels based on a bool. So if the bool is true I want many of the labels to switch from white ...
0
votes
1
answer
71
views
Why is DataTrigger working with an incorrect DataContext?
My project looks like this:
TaskClass.cs:
namespace Library.TaskClassDirectory;
public sealed class TaskClass : INotifyPropertyChanged
{
public TaskClass(
TimeSpan plannedLaborCost,
...
-1
votes
2
answers
89
views
Why does DataTrigger only work for the last element in a listbox?
I'm trying to find an answer to this question (listbox items showing either a checkbox or a radio button depending on a view model property), I came across a very weird behavior.
If I use DataTrigger ...
0
votes
1
answer
37
views
ImageBrush roration datatrigger
I need to begin a loop rotation on my ImageBrush, which is a style of an Ellipse control:
<Ellipse x:Name="ellStatus" Width="14" Height="14" Stroke="#000000" ...
0
votes
1
answer
365
views
PowerShell WPF TreeView with Dynamic Images
I am working on a project where I have a PowerShell driven UI that has a Treeview list with one selection. I have that code working just fine following this blog PowerShell WPF - Customize TreeView ...
1
vote
2
answers
61
views
Style DataGridCell background depending on selected row values in a WPF MVVM DataGrid bound to a DataTable
I'm trying to write an application that is collecting settings from a remote endpoint and compares them in a DataGrid. These units can have different number of settings depending on which software ...
0
votes
1
answer
2k
views
ADF Tumbling Window Trigger
I need help clarifying some concepts about trigger to pipeline relationship.
So, I created a test pipeline where by activity name it is clear what it does
Sets the time now to @utcnow()
Start time - ...
0
votes
1
answer
1k
views
WPF/C# MaterialDesignInXAML, How to change badged button packicon content with datatrigger binding
Please help me with changing the PackIcon in badged button nested in DataGrid.Columns.
I have a DataGrid, which has one column filled with material design badged objects with button contents set as ...
0
votes
0
answers
234
views
Convet XAML to VB.NET
I am trying to convert XAML to equivalent VB.Net code. I am unable to figure out how to add Combobox to DataTrigger.
<Style x:Key="SystemFieldsCellValuePresenter" TargetType="...
-2
votes
1
answer
155
views
How to Execute a Storyboard of the events of any control in xaml in WPF?
I'm using C# WPF and have a Animation Style for the Border that is inside of a Grid that raise on MouseEnter event
<Style x:Key="Atash" TargetType="Border">
<...
1
vote
1
answer
153
views
Dependency property for ItemsSource column to set DataTrigger condition
How would I properly bound to ItemsSource column via Dependency property of control (Datagrid), in order to set It's DataTrigger working?
My goal that works without dependency property:
<Style ...
0
votes
1
answer
122
views
C# WPF - Create a generic style trigger for multiple checkboxes defined within separate grids
I have 40+ checkboxes that are each within a separate grid on a view. The purpose for this is so I can easily set the background of the grid to yellow based on a certain condition. The snippet of code ...
0
votes
1
answer
229
views
Create simple datatrigger for datagrid programmatically with C#
I'm trying to do a simple example of a datatrigger programmatically in C# and don't get how it works. The datatrigger in XAML would work but I need it in C#.
The rows in the datagrid should change ...
1
vote
1
answer
300
views
WPF Datatrigger should fire only once
I have a simple application: There's a DataGrid, and every time the user adds a new row and finished editing, the row turns yellow. In the background a thread tries to save the data and if this worked,...
-1
votes
1
answer
581
views
C# WPF UI is not updated by datatrigger when I change a property in the listview item
I want to make a chess game in WPF, I decided to use listview to display my fields. I have a class named Field with properties. I have a list containing 64 fields and i changed to style of my listview ...
-1
votes
1
answer
62
views
WPF Switching path property with enum then animation fail when started
I would like to make a custom button control which can be change with an enum property that assigned on main call.
So i have implemented additionally an animation activation to this switchable button ...
-1
votes
1
answer
534
views
XAML Datagrid set rowStyle if Value greater than
I've got a Datagrid with 3 columns.
Now i want to change the highlight of the row conditionally.
like: if the value in column 2 is greater than XX change row color to Red.
I've already tried something,...
0
votes
0
answers
331
views
How to show/hide Rectangles on TabItem selection depending on a Tab Control ViewModel in WPF?
I have a WPF application where I need to use Tab Control. In my Tab Control I have total three tab items.
Here my MainWindow.xaml code :
<Grid>
<Grid.RowDefinitions>
&...
1
vote
1
answer
486
views
Collapse an WPF button if and only if this is in the last ListViewItem (row) from the ListView
In a WPF ListView I have 3 columns (GridViewColumns). The first column is auto-incremental (1, 2, 3, and so on). The second one is simply a string and the last column contains 3 buttons, delete, move ...
0
votes
1
answer
1k
views
Data trigger check value of dynamic resource
I have a WPF application and the content of should be displayed in German and English. Therefore, I created two seperate resource dictionaries which contain string snippets in each language. It is ...
0
votes
2
answers
557
views
Problem with ListBox and DataTrigger for Chip
I have a problem with ListBoxItem and DataTrigger.
I want to change the Background color of my Chip item when the chip item is clicked with the mouse.
I think the problem is in this line of code
<...
1
vote
0
answers
272
views
WPF XAML DataGrid - update the value of one column based on that of another
I have a DataGrid which features a CombBox column and an Item column. The drop down is a CollectionView with "START" and "NONE" in. If "START" is selected then a command ...
0
votes
1
answer
410
views
How can I change the DataGrid Foreground color based on user input?
I have a DataGrid. There are 12 columns in the DataGrid. Each of these columns represents byte values between 0-255. I want to colorize them depending on the ranges that the user enters.
I don't know ...