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

WPF Data Binding Validation Rules

Hello everyone,I'm studying for Windows Application Development exam and there is one thing about data binding validation rules that's bugging me.I have a class Testor with a property that always...

View Article


Image may be NSFW.
Clik here to view.

{usercontrol (wpf)} listbox datasource and data template

dear all i'm create this project with vb.net 2010, and i wish create some listbox data template with usercontrol (wpf).this picture hope just anyone can understand what i want:can anyone give me some...

View Article


how to show load idication while sending email by using MailMessage and smtp

Hi Helpers, While sending message with number of images attached to it its taking too much time and i am unable to show loading indication, So can anybody help me out how to show loading image while...

View Article

DateTimeUpDown custom format

Hi All.Is it possible to specify custom format for DateTimeUpdown control like hhh:mm? If yes, how it to do?Thanks.

View Article

How do I get my listview (datagrid) data from the screen after I have sorted...

I have a listview and a datagrid inside it that displays data on the screen. On the screen I can sort the data columns.I want to be able to click a button and copy the data from the table on screen to...

View Article


Converting Canvas with Background to Image C#/WPF

I have a problem converting a canvas to a bitmap image in a C#/WPF app. Basically I have a canvas and the background of the canvas is a diagram of a piece of machinery. There are several coloured...

View Article

GridViewColumn.CellTemplate does not work for me

What I am doing wrong?<ListView Grid.Row="3" Grid.ColumnSpan="2" ItemsSource="{Binding Data}"><ListView.View><GridView><GridViewColumn Header="Test Name"...

View Article

PasswordBox binding in MVVM and attached property walkaround.

 Hi All,I have a little project where I need to get a password from a user. I did search the forum for the solution and there seem to be just 2 answers.1. It is impossible to bind to Password property...

View Article


How to use WPF SplashScreen class under .NET Framework 4.5 / Windows 8?

Hi, I have a problem using the WPF SplashScreen class under Windows 8: When shutting down the application while the splash screen is about to be displayed, the program crashes sporadically with the...

View Article


Problem with nested markup extensions

View Article

Graphic heavy UI using WPF

We have traditionally used Windows Forms to build very graphical UI applications.   Borderless windows with non-square image backgrounds and then use images for all controls including sliders,...

View Article

How to set initial focus to a textbox with gotfocus method in mvvm arch with...

Hi,I have create a page/window with many images and a few textbox's and buttons. When the app starts up and the page loads, I want to set the initial focus to the first textbox(the default focus is on...

View Article

XAML Trigger or Condition Within Another Trigger

This seems like a strange request, I know.  Why not just use MultiDataTrigger?  Here is the problem:My custom UserControl, based on a CheckBox has a style which makes it look like a wheel (actually...

View Article


Convert String to XML and bind to WPF ListBox.

Hi EveryOneI need to convert a string to XML and bind it to ListBox. How can I do it?string msg =...

View Article

Pass DataContext Down Through Objects in XAML

Hello guys,I am trying to write a custom control and my problem is that the column does not not receive DataContext and therefore cannot do the binding.My custom control looks like this:class...

View Article


WPF+ MVVM: How to Make the WPF Application More Responsive ?

I have been asked a question:  There is big data need to be updated in UI and the big data updating will take a while and the same time users try to type in text in textbox. How to you ensure that user...

View Article

UI

HelloI want this type of UI for my hotel booking application.Can anyone guide me what control(s) should i use?Please help.Deepak Chhirang

View Article


How to Alternate color in ItemsControl without touching the (default/global)...

Hi  there,trying to grasp a fine difference:have a default DataTemplate<DataTemplate DataType="{x:Type local:MyType}">  <Grid> ...here some cool stuff :)......

View Article

(MVVM) - How To Bind to DataContext from ContextMenu within DataTemplate

Hey Everyone,I have a ListBox that contains a bunch of business objects (Models).My heirarchy is like this:Window -> ItemsControl {Groups} --> Group ---> ListBox {People} ----> Person...

View Article

MVVM WPF Datagrid SelectedValue bind by view model ?

Hi,anyone know how to change, the Datagrid SelectedValue By ViewModel.I can change it from the view and trigger onproperty chaged butcannot change it from the viewmodel. I need to select different...

View Article
Browsing all 18858 articles
Browse latest View live


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