Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

Styling and Templating Best Practice

Team,<o:p></o:p>I am developing a WPF application and i have a requirement to design a UI that would facilitate the User to define BackColor/FontColor/Border Color/FontSize of editable...

View Article


Image may be NSFW.
Clik here to view.

Small wpf problem (with checkboxe's)

Hello. I want to create a dynamic query using some checkbox in my WPF app. I have 3 categories and I want to achieve something like that: when one of the checkbox is checked I can not check other one...

View Article


What might cause extra white space in a stackpanel?

I have a stackpanel with four buttons. There is a lot of white space on the bottom and the top and the margins are set to 0. What would be causing the extra white space? It's below a datagrid. I just...

View Article

WPF -> Activator.CreateInstance -> Resource not found

Hello,I'm working on the WPF Designer component in Sharp Develop! There we use Activator.CreateInstance to create a Instance of a Control. This now does not work, because the Control does not find some...

View Article

Is there a easy way to make the list box items animate one after other ?

I have a button and list box which I have binded it to an observable collection object. I have also defined an item template for the list box where I used a color animation. When i click the button I...

View Article


Why does not DataGrid show values if there are a point “.” or “/” in header...

I've found really strange behavior in DataGrid. I cannot figured out why it happens, but DataGriddoes not show values if there are a point "." or "/" in header of column.XAML:<Window...

View Article

CollectionViewSource Filter Not supported

I am trying to make a search textbox which will update a combobox with only the values that the user types in the search box.The combobox has a binding to a Microsoft access database.I have tried...

View Article

Specifying the Scroll Viewer Style

Hi, I just want to have different ScrollViewer Styles for different controls.  (Ex. one style for listbox, and another style for another listbox.) My question is, how to give the style for the...

View Article


Grid needs to be resized

Grid needs to be resized when the Visibility is set to Hidden. 

View Article


Image may be NSFW.
Clik here to view.

Load data to DataGrid when there are just 5 rows to see

I have a DataGrid bound to EmployeeDataTable property. Let’s consider that count of rows of EmployeeDataTable is 50 . That is, DataGrid has 50 rows.private DataTable employeeDataTable; public DataTable...

View Article

Achieve Scroll in Touch Screen when it's children are Touch Sensitive

Hi, I am having a treeview, where the the ItemTemplate is having a grid with mousedown and touchdown events. Now the problem is, while swiping on the treeview in the touch screen, the treeview is not...

View Article

Assigning Values to DP's CLR Prop is not firing associated VM Prop's Setter

Hi,I am having a user control, in which the user can select multiple values, and the selected values got pushed to the associated VM Prop.I am sure that, I have not set binding to the DP programmatic....

View Article

animating combobox popup

Hi,i am trying to animate the popup of a combobox with this controltemplate :<Popup x:Name="PART_Popup" AllowsTransparency="True" Grid.ColumnSpan="2" RenderTransformOrigin="0.5,0.5" IsOpen="{Binding...

View Article


Capturing ESC key event in wpf window called from windows form

I am calling a WPF application from my windows form application and I want to close that wpf window when pressing ESC key.I have tried using key down event but ESC key alone is not triggering the key...

View Article

Group two Viewport2dVisual3D into one single 3D object?

Hi I have two Viewport2DVisual3D objects and i want to group them inside a 3D object so i can apply transform on this group. How can i do that?

View Article


MediaElement.NaturalDuration stay to automatic

Hello,I currently have a problem with my WPF app and a MediaElement.I read a .mp3 from url (server) and it wors, but if I do not click on several occasions on the play and pause buttons the...

View Article

WPF Webbrowser failed Ajax-Call in TFS WebAccess

I am currently developing an application that analyzes TFS workitems utilizing the TFS API in C#. In order to review and edit WorkItems I create from code, I want to use the WPF Webbrowser control to...

View Article


WPF c# code prints in two columns how do i make this code for a normal page.

public static int SaveAsXps(string fileName) { object doc; FileInfo fileInfo = new FileInfo(fileName); using (FileStream file = fileInfo.OpenRead()) { System.Windows.Markup.ParserContext context = new...

View Article

Image may be NSFW.
Clik here to view.

How to achieve a 'wrapping' DataGrid effect?

I have information that is best displayed in a tabular format or rows and columns. However, the data itself has a fair number of rows but only a few columns. Due to constraints in the layout the result...

View Article

WPF mediaElement disappearing after some time

I have a user control with a WPF MediaElement and an Image control. This user control is again used in a few more user control which uses this in two differnt layouts. The application is supposed to...

View Article
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>