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

insert XML snippet to XAML file.

Hi All.I created XML snippet and would like to insert to XAML file. But when I try:1.) To insert snippets using the IntelliSense menu. In select Edit menu, point to IntelliSense,and then try to select...

View Article


Reusing StoryBoard to Move TextBlock

I have been looking for a way in order to animate an object more than once with the same animation. I have a textblock that I want to move down the y-axis by a certain amount and I want it to hold...

View Article


Convert UserControl to image or PDF in WPF

I have more than ten UserControl build on MainWindow in a project. I want to convert all UserControls to image or PDF by a button. Do you any idea to help me? Thank you very much

View Article

Collisions of 2 ellipse and their direction of motion after collision

i am doing a project which requires collision of two ellipse. I am using ellipse in canvas. i am new to games that is why i need help. I know how to move ellipse in canvas and collision with boundaries...

View Article

Best library / package for 2D / 3D chart / Graph?

Which package is better at manipulating (zooming / panning / mouse dragging to turn around) the 2D / 3D graph / chart? free or comercial both OK.

View Article


AutoCompleteBox SelectedItem changes after dropdown closes

Hi everyone!I have simple class Person:public class Person { public string Surname { get; set; } public string Name { get; set; } public string FathersName { get; set; } public Person(string surname,...

View Article

Image may be NSFW.
Clik here to view.

Question about binding entity to WPF form

I'm attempting to bind a lookup table to a grid on a WPF form, using this as a guide.  The form displays with column headings but no data.  However there are 73 rows of blank data.  There should be 73...

View Article

how to change xaml content dynamically using c# with dynamic attrubutes?

i have a code:Xaml:<TextBlock x:Name="MondayTest" /><TextBlock x:Name="TuesdayTest" />               c#string todayDay = System.DateTime.Today.DayOfWeek.ToString(); switch (todayDay){ case...

View Article


XAML Resource Error - The resource "x" could not be resolved.

Hi all,I have small issue, I have created a resource file that basicly define which control in my application should provide Validation.ErrorTemplate.The error template is actually in another library...

View Article


Exposing collection with custom class in user control

Hi,I wrote a user control to show some images, and it uses a listbox with uniform grid. The user can add this images dragging a single BitmapSource on a listbox or can initialize the user control (the...

View Article

IDataErrorInfo is not retriggered by INotifyPropertyChanged

I have a view model with a DependencyProperty called SelectionValue that is data bound to the SelectedItem property on a ComboBox on my view. I have also implemented IDataErrorInfo on the view model to...

View Article

Window Background Transperent

HI,I have a textbox. if click on textbox popup will appear with close button. After clicking textbox the window background should be transperent except the textbox and popup. if close the popup the...

View Article

warning error on EF.Utility.CS.ttinclude when adding Data Source

Hi,Not sure if this applies to WPF or more to ADO.Net.I am using Visual Studio Express 2012 to create WPF application.  I am trying to add a Data Source from the database which is on a network. I have...

View Article


TextBlock ignores style - why?

Check the following project: https://skydrive.live.com/redir?resid=8B169EF451FFD9FE!932&authkey=!AMGIZf2Ou78Vr6k&ithint=file%2c.zip TL;DR there's a TextBlock placed in a Popup through a...

View Article

change text in datagrid

i have data grid that binding to a list.AutoGenerateColumns="False"one DataGridTextColumn is set bind to bollean var.the text is False or True.how do i change it to "Yes"/"NO" or to picture?if its...

View Article


WPF ProgressBar questions

Two questions: 1) Although the Value of the ProgressBar is 0, set both in the XAML and also in code, the progress bar shows progress when it should show none. I print out the Value on the screen and it...

View Article

Image may be NSFW.
Clik here to view.

wpf restart application issue

HI,I have drop-down control in WPF application. When I change my drop-down value, it's asking me to restart your application. below is code which will be executed if I hit OK to restart.if (result ==...

View Article


how to divide width of tab item equally in two parts according to the size of...

hihow to divide width of tab item equally in two parts according to the size of window(uncertain) in wpf there are two tabs in my window i want the width of both the tab should be same...

View Article

wpf ef generated code - using INotifyPropertyChanged question

Code used to bind a datagrid on a form was automatically generated when setting up the entity framework.  The issue I'm having is that if the user edits a cell, then immediately closes the form, the...

View Article

Storyboard Animation in Expression Blend and Code Behind

Hey!I have a specific problem concerning storyboard animations in Expression Blend and Visual Studio. I already searched through the web for solutions, but since I am still a beginner, I find it hard...

View Article
Browsing all 18858 articles
Browse latest View live


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