Skip to main content

All Questions

Tagged with
0 votes
0 answers
22 views

Dependent attribute value changes are invalid

I have a CustomControl SearchDefalut There's an IsShowPopup to display Popuo, Property public bool IsShowPopup { get { return (bool)GetValue(IsShowPopupProperty); } ...
user25272107's user avatar
0 votes
0 answers
24 views

WPF .net core 6 Image control does not work in .net core 6 [duplicate]

I created a new WPF C# desktop application in VS 2022 using .net core 6. For some reason the image shows in the designer but when the application is running it does not show. If I create a WPF C# ...
Gabriel Worley's user avatar
0 votes
1 answer
57 views

WPF C# GroupBox Control

I currently need to get the content information within the textbox(s) with a groupbox, these textbox(s) have same first five characters. I'm pretty new at WPF C# and have read a few posts about the ...
cmgossettattnet's user avatar
0 votes
1 answer
70 views

WPF binding to ElementName in DataTemplate works but in Style Setter not

Can anyone tell me why this code: <Window.Resources> <DataTemplate x:Key="Content_Test1"> <StackPanel Orientation="Horizontal"> ...
Yarogleck's user avatar
0 votes
1 answer
86 views

Combobox color changes are not displayed in wpf designer

When I set the background color of the combobox or the border, the changes are not shown in the designer, but at runtime it is displayed correctly .Changes are not shown from the code or properties ...
joseph l's user avatar
-2 votes
1 answer
66 views

How can I refer to another control in a XAML? [duplicate]

I'm working in a C# WPF application, based on XAML files. I have a label, called "Label_Productnaam". I would like to create another control (a ComboBox), having the same height. Therefore I'...
Dominique's user avatar
  • 17.1k
1 vote
1 answer
430 views

Is it possible to add Avalonia controls to a Microsoft WPF application?

And if it is possible, how can it be organized? I tried adding the control package as described on the site, but it didn't work. Do Avalonia controls only work in Avalonia templates or they can be ...
Edward's user avatar
  • 23
0 votes
0 answers
133 views

WPF Button Effect Properties - How to Change Visual Effects

I'm fairly new to WPF and could use some pointers. I'm writing an application using VMMV. I have a series of 'Action' buttons (Refresh, Edit, Add, Save, Remove, etc.) contained in a Expander and I'm ...
Scott's user avatar
  • 1
-1 votes
2 answers
104 views

Automatic resizing of only the font of a wpf control

I've got a grid layout that looks like this: . This is its code: <Grid> <Grid.RowDefinitions> <RowDefinition Height="2.5*"/> <RowDefinition/> ...
Ivan Gyulev's user avatar
1 vote
3 answers
223 views

Custom Popup control not closing

I'm trying to create a custom dropdown control that acts like a ComboBox, such that the Popup opens when you click mouse down (not up), and closes when you click outside of the control. The problem is ...
user avatar
0 votes
1 answer
176 views

WPF. Why doesn't TextBox.TextInput trigger my event?

I assign the event using: numTextBox.TextInput += NumTextBox_TextInput; And handle it with this method: private void NumTextBox_TextInput(object sender, System.Windows.Input.TextCompositionEventArgs ...
llamaCaraDara's user avatar
0 votes
1 answer
155 views

How to align controls in WPF custom user controls?

So I programmed a WPF custom user control like this: XAML: <UserControl x:Class="PEINC.LableWithText" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation&...
Gener4tor's user avatar
  • 358
0 votes
1 answer
514 views

Customizing a WPF button control style with geometry path

I am having difficulties to wrap my head around using Shapes.Path geometry data as content for a button. The style concept is: content inflates when the mouse enters and deflates when leaving. This ...
benJima's user avatar
  • 109
0 votes
1 answer
269 views

Changing property IsIndeterminate on MaterialDesign button in WPF

I'm using a material design button in WPF and I'm not quite sure how to control the property IsIndeterminate from within C# code as the below does not work, like it usually does with "standard&...
Pawel's user avatar
  • 151
0 votes
0 answers
35 views

Controls from external library not appearing in Telerik project

I'm working on a project that uses Telerik WPF controls (in so called NoXaml mode) and I have a library with controls I would like to use. These are simple WPF UserControls without even any template ...
P.W.'s user avatar
  • 677

15 30 50 per page
1
2 3 4 5
67