Quantcast
Browsing all 18858 articles
Browse latest View live

Model classes in WPF MVVM pattern

Hi,I am a bit confused after reading similar threads here in addition to Microsoft Prism guidelines on MVVM section.  I do understand the interaction between View and ViewModel classes, but my...

View Article


How to default print preference to A5 when printing flowdocument

Hello,I'm having a problem. I need my printer to default to A5 print out without altering the print preferences but by doing it through code.here is my print Code: System.Windows.Controls.PrintDialog...

View Article


Async warnings

What's the idea that compiler gives warnings about asyncs: public async void AddButton() { int found = -1; ... Task<int> findName = CheckNameAsync(FirstName, LastName);<other stuff> found =...

View Article

Binding to an image

Hello All,I have the following setup in my code behind: Binding myImageBinding = new Binding("Status"); myImageBinding.Source = viewModel; myImageBinding.Converter = new...

View Article

How loop through Databound DataTemplated ListBoxItems that are NOT Selected...

I can loop through selected items using "SelectedItems.Count" & "SelectedItems(i)". I can loop through all items using "Items.Count" & "Items(i)". How is one supposed to loop through non...

View Article


Sample projects for MVVM Light

Hi,I've created a project in VS 2012 with MVVM Light(4.5) template.  It comes with few classes and folders.  I was wondering if there are any sample codes or examples on how to customise it for basic...

View Article

MultiColumn ComboBox...

I'm trying to build a MultiColumn ComboBox. I followed this example:http://zamjad.wordpress.com/2012/08/15/multi-columns-combo-box/However, I have two problems...1. It does not show two or three...

View Article

Custom UIElementCollection inside Panel

Hi,I am trying to write my custom collection of UIElements inside my custom Panel that shall only add or remove UIElements without any additional logic like probably the standard microsoft...

View Article


Vscroll in tabcontrol

hi all I have tabpage I want add vertical scroll in it but I my code didn't successful tabpage.VerticalScroll.Visible = True tabpage.VerticalScroll.Enabled = True tabpage.AutoScroll = True•is there...

View Article


Switching among opened window in WPF on pressing 'Alt + Ctrl' key

Hello All,I am stuck with a below problem, I would be very thankful to any genius person who can provide me the solution of this problem.Problem : In my WPF application I can open 3-4 window(XAML file)...

View Article

Why does my bound listbox not update when a new item is added to my collection?

I have a listbox that is bound to an observablecollection that is not getting updated if I add an item to the observable collection through a new form. The list is a list of users invited to a current...

View Article

WPF Image Bind Dynamically

Hi,Please ANS: How to bind multiple image by browsing and store its path in Datagrid

View Article

Adding slider control to Datagirdview in wpf 4.0

HI, I am  working on WPF project where i Have to Silder control in datagridview in row using Windows Host ?so please provide solution 

View Article


How to create a custom Template for a RangeSlider usercontrol

I followed this article   Creating a Range Slider in WPF  to create a great Range Slider using XAML and a bit of code behind.  I am using this user control within my project.   But I want to create a...

View Article

Image may be NSFW.
Clik here to view.

How to update or upgrade PresentationDesignDeveloper.dll and...

Hi, My wpf browser (hosted) application was developed using earlier versions on .net and WPF that used these 2 dlls referenced from a folder and copy local is set True. 1....

View Article


WPF Toolkit Chart Can't Add Series From Code-Behind

I have the Feb. 2010 version of WPF Toolkit installed.  I need to be able to dynamically add LineSeries to a chart.  The following code SHOULD work:Imports...

View Article

DataGridRow Background Color is not responding to DatagridComboBoxColumn Value

Hi friends,The following code expect the DataGridRow background to be changed based on the value of DataGridComboBoxColumn Serviceability. but it is not happening for ComboBox Columns but same is...

View Article


How to animate vertically scrolling dynamic text array?

I have an "array" of text which dynamically grows as data comes into the application, and I would like to be able to scroll (programmatically, not via direct user input) that array vertically, as well...

View Article

Is it possible to bind a notification property to another non-UI property?

Is it possible to use the WPF binding mechanism in such a fashion so as to bind a notification property so that a non-UI object will be notified when the property changes? If so, how?Richard Lewis Haggard

View Article

Image may be NSFW.
Clik here to view.

Positioning of a container with height using Margin WPF

I am using a webbrowser control to show a html on a awesomium webbrowser ocntrol and structre of window is like this<Grid HorizontalAlignment="Center" VerticalAlignment="Center"><my:WebControl...

View Article
Browsing all 18858 articles
Browse latest View live


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