Questions tagged [wpf]

Ask Question

Windows Presentation Foundation, or WPF, is a subsystem for rendering user interfaces in Windows-based applications.

165,789 questions

0votes0answers11views

Disable tooltip on a textbox when a INotifyDataErrorInfo validation fails

I have added a tooltip on a textbox and want to disable it on a failed validation of the content of the textbox View.xaml <TextBox Grid.Row="2" Grid.Column="... user avatar SeleCoder

  • 81
0votes0answers10views

XAML - Have button size fit to grid instead of width of text

I am using a button style in a UserControl. Whenever I use HorizontalAlignment, HorizontalContentAlignment, or Padding the width of the button will auto submit its width to the width of the text ... user avatar Matt Finder

  • 13
0votes0answers14views

WPF show all opened pages in frame using ItemsControl

I'm creating application that has two buttons and a frame. When you press the first button, Page1 is displaying in the frame using: Page1 pg1 = new Page1(); frame1.NavigationService.Navigate(pg1); ... user avatar bbz

  • 1
1vote0answers8views

Cannot create an instance of UserControl in design view, works in Release mode and at runtime

I have a user control LoadingIndicatorControl which is displayed in various other controls when loading is happened. This user control is very simple and looks like this: <StackPanel ... user avatar WSC

  • 841
0votes0answers19views

WPF RenderTargetBitmap returns a black image

I have to "export" a UserControl as an image, I've tried to use RenderTargetBitmap, but this outputs a black image. I tried online solution, but I seem to be missing something. Here is my ... user avatar CiucaS

  • 1,877
-2votes0answers19views

VS2022 - WPF UI not updating when XAML is changed

I've never had this problem in the past; however, after upgrading to Visual Studio 2022 my UI updates inconsistently and more often not at all. I find that the only method to ensure an update is ... user avatar pccoder

  • 7
-2votes1answer24views

Undocking a control in WPF

I can currently dock a child control using the following line quite easily: DockPanel.SetDock(group, Dock.Top); (or any of the other three choices) The problem I have is this: I'm trying to provide ... user avatar Patrick

  • 523
0votes0answers24views

C# WPF Image on Button cut off

I Created a style for my Buttons: <Style TargetType="Button"> <Setter Property="Height" Value="20"></Setter> <Setter Property="Width&... user avatar Martin Bartolomé

  • 182
0votes1answer16views

Why does the ToolBar Command "ToggleBold" has no function in an Regular TextBox?

So Ive got an ToolBar and wanted to Bold my Text, with an RichTextBox its working but not with an normal regular TextBox. Could someone tell me why only RichTextBox is working and not the normal one? ... user avatar Dr.rektalius

  • 13
0votes0answers30views

c# WPF MVVM Set View Property From ViewModel

I want to create a simple Control to enter Text. For this Control i want to create a Property. This Property should be bind to the ViewModel. I Created a Model for an Folder: public class FolderModel :... user avatar Martin Bartolomé

  • 182
-1votes0answers17views

Wpf data binding to two views?

I have aview model that is bound to datagrid and text boxes. The text boxes are for editing and the datagrid for display. Both controls are bound to a single view model. The view model extracts data ... user avatar Addisu Mesele

  • 34
-1votes2answers23views

Create WPF TreeView from array

I am struggling with this and hope someone can help me solving. I have an array of string that are directories. This is an example of my array: c:\temp\freigabe c:\temp\ftptest c:\temp\ftptest\testen ... user avatar MUnna

  • 19
0votes1answer23views

X:Static doesn't work in TextBlock. (WPF)

I just started learning WPF, and a problem arose. X:Static does not display the value from the .resx file, just writes the line itself. There are no errors in the console. <TextBlock ... user avatar CarryLove

  • 13
0votes0answers21views

How can I make an Placeholder/Watermark to my Richtextbox Element?

For an Placeholder/Watermark in an TextBox I use this Style get that to work: <Style x:Key="placeHolder" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type ... user avatar Dr.rektalius

  • 13
0votes1answer29views

How can I increase the FontSize of a text with an ComboBox, but just the selected part of the Text?

So Ive got an RichTextbox in which I write Text, that Text I want to increase with the Selected FontSize from an ComboBox. So Far Ive got this: viewModel: public class ViewModel : ... user avatar Dr.rektalius

  • 13

153050per page

1 2 3 4 511053

You Might Also Like