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

WPF touch screen application develoment

I need to develop a WPF application for touch based terminal which has Windows 7 OS so please provide clarification on following points:-1. Is WPF correct choice for developing this touch app or would...

View Article


wpf to handle touch keyboard in windows 8 desk mode.

i have a wpf app running on surface pro. since there is TextBox control for input requirement in GUI, i would like when it's tapped/focused, the touch keyboard can be automatically lunched and when...

View Article


change image source

Hii am trying to change the source property of a image when the mouse enters the image on a wpf formin the mouseenter event i have the following code    Private Sub Image2_MouseEnter(ByVal sender As...

View Article

output a value from wpf

Is it possible to save a particular value( in my wpf)  into  txt  ?a txt that only contains the int valueand when the value is modified , it will overwrite the txt file 

View Article

How to embed steam data into application resource

Hi,I've added a LibreOffice .ods file to application assembly as an embedded resource and I know how to access and load it during program execution: XmlDocument contentXml = new XmlDocument(); Uri uri...

View Article


Drawing Over Time

I have a lot of points to draw (too much for a given frame), so my idea is to spread the work out over several frames.  For example, draw 1000 points per frame until the drawing is done.  I also want...

View Article

Parameter with RelayCommand

Hi, I need know how to pass parameter with the relaycommand in my application MVVM. Because In my view i have one TabControl with two TabItems, and in my button in the first Tabitem i need change the...

View Article

MVVM - Subscribe to control events in the ViewModel

In a ViewModel, I need to react to the KeyDown event in a listbox in a corresponding View. Normally I use technique as _collectionView =...

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


Raising CanExecuteChanged

Hi I have a question, concerning best pratice of wiring ICommand interfaces, their CanExecuteChanged event and the "RelayCommand" implementation(s) with ViewModels property change events. In the common...

View Article

Command RaiseCanExecuteChanged-Problem

I have a problem with my Commands. I have got a MainViewModel and a DialogViewModel. In the DialogViewModel I defined a Command, which gets executed when a dialog should be shown. I make this command...

View Article

Seperate ViewModel and View without using Code Behind

I am looking at seperating Views from their respecting ViewModels without using any code behind. On obstacle in that endevour is the commanding framework. Currently, I am using the static approach:That...

View Article

MVVM -How to Enable a Button on TextChanged event of a TextBox

I have this scenario:I am using MVVM pattern.I have a view with a Button and TextBoxCode:<TextBox Grid.Row="0" Grid.Column="1" Width="90" Text="{Binding...

View Article


Using MVVM with new Ribbon Control Library

Hi,As new ribbon for wpf http://www.microsoft.com/downloads/details.aspx?FamilyID=2BFC3187-74AA-4154-A670-76EF8BC2A0B4&displaylang=en is officially released, I am looking for a way to use new...

View Article

WPF-MVVM : communication betweent two ViewModels

I'm just learning WPF and MVVM so my question can seem dumb, but I really need an explanation, ideally in vb.net :), how can I update a property in a ViewModel when a property in another ViewModel...

View Article


Memory Leak in MVVM design pattern suggested by Josh Smith at MSDN

  I m able to find memory leak in MVVM design pattern described in Model view view model design patternIn sample application provide by msdn, everytime i open same a view it claims new memory but when...

View Article

Implementation RelayCommand

Hi, How I do Implement the access to my CommandParameter in my RelayCommand? public class RelayCommand : ICommand    {        #region private fields        private readonly Action execute;...

View Article


Relay Command

I had a question, I tried to make a slight modification to implementing RelayCommand (http://msdn.microsoft.com/en-us/magazine/dd419663.aspx and rather than implement as Josh Smith did (via a public...

View Article

MVVM Relay Command

I've just reviewed Josh Smith's ubiquitous ariticle on MVVM for the umpteenth time.  Everytime I read it I keep thinking that the Relay Command is nonsense.  Was wondering what your thoughts...

View Article

MVVM: Why RelayCommand not get update button disable/enable right way?

We have practiced MVVM pattern.We create two ICommand StartCommand and StopCommand public ICommand StartCommand { get { if (_StartCommand == null) { _StartCommand = new RelayCommand( param =>...

View Article
Browsing all 18858 articles
Browse latest View live


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