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
-1 votes
1 answer
49 views

add items in listview control from another class [duplicate]

I'm trying to add items in my listview control calling from another class. I have a form with a listview control and some buttons. When I click on one of the buttons, a usercontrol appears with ...
jan leung's user avatar
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
0 votes
1 answer
51 views

Using XAML Path Icon as a Button Image in WinUI 3

I have a XAML Path Icon as indicated below: <DataTemplate x:Key="Folder"> <Grid> <Path Data="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,...
E. A. Bagby's user avatar
-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
-1 votes
1 answer
86 views

'Button' does not contain a definition for 'onClick'

GameObject newButton = Instantiate(_buttonPrefab, _parentPrefab); Button buttonOnClick = newButton.GetComponent<Button>(); buttonOnClick.onClick.AddListener(Testttttssad); For some reason, ...
Gleb Boiko's user avatar
0 votes
0 answers
22 views

Extend System.Windows.Controls.Button

Is it possible to extend a System.Windows.Controls.Button without creating a custom control? What I want to do is add a DependencyProperty (ButtonStyle) to a standard button where I can reuse the ...
Richard Gale's user avatar
  • 1,898
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
0 answers
28 views

How to implement a button in html to toggle between two different views

I am struggling to implement a button on the client side of an html page that would allow the user toggling between two different layouts invoked through corresponding view components. Here is what I ...
Douar Gwenn's user avatar
0 votes
1 answer
114 views

MudBlazor button is not triggered

My button for AddVerse does not trigger the function AddVerse when I click on it. This is my page: @page "/CommentVerse" @inject IJerusalemBibleService JerusalemBibleService @inject ...
mathdxdx'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
1 answer
58 views

saving functions for a dynamically created button

I want to save the text and the individual button function created by the user during the execution of the program. To do this, I use Properties.Settings.Default and my created ButtonStringCollection ...
mifus arakiev's user avatar
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
1 answer
34 views

change button color on button click in main form and remains that button color even on form that inherited main form

I have two forms. One is Main form and another one is form2 that inherited main form. I change button color on button click event on main form and want that color changed button on form2. The problem ...
Wonder Kyle's user avatar

15 30 50 per page
1
2 3 4 5
224