wpf-controls Questions

5

About a few days ago, we ran our WPF application, some of us(in several developer's computers) found very a lot controls has dashed border when they got focused, such as below: The outer control...
Buettner asked 16/9, 2013 at 10:39

1

Solved

I have a grid whose width is set to 250. The Width of the Window is 600. The Left and Right margins of the grid are set to 50 and 400. So the rendered grid width is reduced to 600-(50+400) = 150. I...
Foreside asked 5/3, 2024 at 15:4

6

Solved

I have a WPF Control. I need to have in background a cross, like this: After that, I'd be able to add other controls over my "crossed" background: How should I draw the cross, knowing that whe...
Ecclesiastes asked 13/4, 2012 at 17:16

5

I'm putting together a WPF application that will allow users to view PowerPoint files through the WebBrowser control, once the files have been saved as either .MHT or .HTML. The problem is that the...
Jervis asked 2/6, 2009 at 16:17

5

Solved

I need to set a table from a database to be the DataSource of a GridGrid in WPF. In Windows Forms the property is called DataSource but in WPF no such property exists, so how can i do it?
Whitleywhitlock asked 22/3, 2011 at 22:5

6

Solved

How to raise / handle the SelectionChanged event of WPF's ComboBox using the MVVM pattern? Explain in detail please I am new to WPF. What I want, is to do some operations when the ComboBox item se...
Intubate asked 29/12, 2011 at 9:53

7

Solved

have a TextBox item (MyTextBox) on a TabItem control. I have code that looks as follows: MyTextBox.Focus(); Keyboard.Focus(MyTextBox); When I run this code through the debugger I see the followi...
Draughts asked 1/2, 2011 at 21:26

2

Solved

Difference between Calendar & Date Picker control in WPF? Is there any criteria of choosing the either of them?
Chapter asked 19/7, 2012 at 21:29

7

Solved

What is the best way to transparently inject dependencies (using IOC container) to user controls in WPF? I assume that user controls are part of XAML for the window or other user controls. Also I ...
Pretorius asked 9/3, 2010 at 12:16

12

Solved

I am using DataGrids in XAML (not Silverlight) with resizable columns, the DataGrid will expand if the user resizes the screen. Currently if the widths of all the DataGrid columns are less than th...
Outpouring asked 17/2, 2011 at 12:27

3

Solved

How can I make a WPF textbox cut, copy and paste restricted?
Mcbroom asked 2/6, 2009 at 6:24

7

Solved

Even a 3rd party one will do. Thanks
Paleontology asked 3/2, 2009 at 19:22

6

Solved

I was looking for the solution on the internet but was not able to find it within my sample. I need to add a separator between Context menu item that are generated from code behind. I tried to add ...
Sural asked 28/1, 2011 at 1:3

9

Solved

How do you display the current date and time in a label in c#
Peephole asked 7/12, 2010 at 19:13

3

Solved

I have just started with WPF and need specific feature for a checkbox: I want to change the shape from a box to a ellipse. Futher more there should be a color change (green = true, red = false) ...
Organization asked 3/12, 2012 at 13:33

7

Solved

is it possible to wrap content in a StackPanel? I know that we can make use of a WrapPanel instead. But for code modifying reasons, I must make use of a StackPanel. So, is there a way to make th...
Claudication asked 13/4, 2012 at 18:35

4

Solved

What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?
Peltast asked 20/5, 2009 at 8:10

2

Solved

I'm creating my own checkbox style. I have found the code on the internet I like and I'm not so confident in WPF drawing. I need to make these corners rounded. How to make these corners soft? &lt...
Apheliotropic asked 13/10, 2016 at 11:15

6

Solved

Creating a relatively simple data entry form, and just want to separate certain sections with a horizontal line (not unlike an HR tag in HTML) that stretches the full length of the form. I have tr...
Pastry asked 22/2, 2010 at 23:4

4

Solved

I'm trying to bind a large collection to a ComboBox and I faced performance problems when opening ComboBox's popup. I searched internet and found that using VirtualizingStackPanel as a items panel ...
Takamatsu asked 20/11, 2011 at 1:1

2

Solved

Is there a way to display the error contents in a TextBlock below the control similar to how the following sets the Tooltip to contain the error text? <Style x:Key="textBoxInError" TargetType=...
Sergeant asked 29/7, 2010 at 12:46

3

Solved

I created two custom controls that are exactly the same except that they are of two different types. ControlOne public class ControlOne : TextEdit { public static readonly DependencyProperty A...
Dandle asked 8/4, 2016 at 15:23

17

Solved

I need to create a rounded corner glossy button in WPF. Can anyone please explain me what steps are needed?
Sybarite asked 19/7, 2011 at 10:22

7

Solved

I am trying to modify my simple control so that the text box does not grow as the user types in long text. I took a look at some solutions posted here at Stackoverflow that suggest using a Grid and...
Glorious asked 15/9, 2010 at 18:59

11

Solved

I would like to make my application such that it can maximize to full screen means it hide the windows task bar and the title bar as well. And it should triggered by a button. I am trying to devel...
Finicking asked 26/8, 2014 at 6:28

© 2022 - 2025 — McMap. All rights reserved.