Skip to main content

All Questions

Tagged with
1 vote
1 answer
47 views

How to hide the gridlines when pressing a button in WPF C#? [duplicate]

I have been working on some projects and I can't seem to find a way to hide gridlines that appear when you press a button like in the image below is there a way that will hide the gridlines? I don't ...
NeoGenesis521's user avatar
0 votes
1 answer
58 views

Create a CheckBox with appearance of Button

I am trying to create a Checkbox with appearance of button. When i set he content of ToggleButton it changes the Checkbox text, but when i change IsChecked it is not getting updated in checkbox. How ...
renji's user avatar
  • 59
0 votes
0 answers
44 views

How to alter WPF button color from the Code not user input (click) [closed]

I have a WPF application that allows users to pick a test to run. We have 3 tests called Test1, Test2 and Test3. All these tests inherit a model called TestModel. TestMoel contains common properties ...
varun's user avatar
  • 1
1 vote
1 answer
46 views

How to set some value to a parent control template property by clicking on button inside this template?

I want to implement some custom Search TextBox with a loop icon and placeholder. So I created a custom Control Template where there is TextBlock for the loop icon (I used some symbols from specific ...
5ORBEX's user avatar
  • 129
-1 votes
0 answers
39 views

WPF UI class button which provides anchor points

I have to draw several arrows between buttons and the UI shall be able to recalculate its position during resizing. For this I built a custom shape class which is able to draw an arrow between two ...
Daimonion's user avatar
  • 124
0 votes
1 answer
39 views

Why does my WPF button not show the text when I apply a template to it?

I'm trying to learn WPF from an old book (Beginning Visual C# 2010). I've tried to replicate the example that they provided (and it does look horrid), but for some reason, the text does not display on ...
Colin Middleton's user avatar
0 votes
1 answer
50 views

Why doesn't my WPF Grid inside a Button's DataTemplate stretch correctly?

I have a WPF ItemsControl that generates buttons. These buttons have two sides one for the name of the item, the other for the prices thereof. My issue is the fact that the Grid columns (see code ...
Joseph Saunders's user avatar
0 votes
0 answers
35 views

Hexagon button content does not show in XAML

I have created a button with a hexagonal shape. The hexagonal style is defined in a dictionary and is implemented correctly. However, the issue I am facing is that the button text is not showing ...
Javanto's user avatar
  • 25
0 votes
1 answer
72 views

Disable "Print" button in "DocumentViewer"

I would like to disable the button in question. My code is: <DocumentViewer x:Name="viewerDocument" Document="{Binding GeneratedDocument}" /> and the ...
Fabrizio Ciavatta's user avatar
0 votes
2 answers
64 views

Add hover effect on dynamically created button in WPF c#

I am still new to Windows App development. I'm trying to create a button dynamically, and I don't know how to remove the default background color on hover and add a custom background color instead. In ...
KANAYO AUGUSTIN UG's user avatar
0 votes
0 answers
21 views

When the button is disabled, its transparent feature disappears WPF [duplicate]

I have button in the grid on wpf project. It will be enabled or disabled depending on the situations. I set the background property of the button to transparent. This button has also an icon. I set ...
Gokhan's user avatar
  • 479
0 votes
0 answers
58 views

WPF - How to set Bound property directly in the XAML file, with preset fixed values?

I would like to know if it is possible to set a BOUND int variable/property in the XAML, giving it a fixed value written directly in the XAML file, in a control that behaves like a button: click from ...
user22527635's user avatar
-1 votes
1 answer
57 views

When I hover over 1 button, I want the opacity of a different button to change in WPF

I want to hover over 1 button, and then the opacity of a different button changes slowly (fades out), using animation in WPF (C#), in the XAML code. The button I want to change has the x:Name=”...
Oliver Hill's user avatar
-1 votes
2 answers
69 views

How do I make the content in a button move position in WPF, when I hover over the button?

When I hover over a button in WPF (C#), I want the text in the button to move upwards to a different position, from the center to the top of the button, as an animation. I currently have this XAML ...
Oliver Hill's user avatar
0 votes
0 answers
143 views

WPF image in button does not appear at runtime but yes in Visual Studio [duplicate]

I am trying to add an image to a button. This is the xaml snippet of the button: <Button Grid.Column="3"> <StackPanel> <Image Source="/images/MonkeyFlow-Logo-...
angelrps's user avatar

15 30 50 per page
1
2 3 4 5
96