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

facing problem in binding image path in textbox through mvvm

hi , i am new to mvvm i try to bind image using mvvm but fail to do so my xaml<TextBox x:Name="Ecgimagepath" Text="{Binding ImagePath, UpdateSourceTrigger=PropertyChanged}" Grid.Row="4"...

View Article


How do I get the error template to show up on the right side of the control?

I'm implementing an error template for validation, in VS 2012. This page on Validation.ErrorTemplate Attached Property is quite helpful. However, when using it I've found that it will put the "!" to...

View Article


Binding xml data to nested listview wpf

I have xml...

View Article

How to inherit a view from a (non-xaml) UserControl that uses generics?

Can someone tell me what I'm doing wrong while attempting to apply both subclassing and generics to a XAML UserControl? I can successfully subclass a XAML UserControl but when generics gets added in...

View Article

How to find Unique error exception identifier

Hello there,  I've been struggling for a wile with the managing of error codes in the application i wrote.because i cant find the "code" that is the unique key for a single exception.I thought it was...

View Article


Namespace collision in the .NET code generated from XAML file

Below I describe how to reproduce an error I'm receiving.  It behaves the same in VS 2010, 2012, and 2013.Steps to reproduce the error:1. Create a solution.2. Create a C# class library called Common,...

View Article

Image may be NSFW.
Clik here to view.

How to set datatable items into wpf datagrid cells ?

Hi,   In my application i have one datagrid with binding fields like below screenshot.and i have one datatable  with data from database.now i want to bind above 2 datatable items to datagrid into a...

View Article

WPF and MVVM with login authentication

Hi, I'm pretty new to WPF and wanted to find out the best way to authenticate an user with the username/password stored in a Sql server database . I'm using MVVM framework and from what I read it was...

View Article


Edit control in run time .

Do you have any idea how I can edit windows in run  time for example :Add text  box and lable to windows   in run time ?pop

View Article


WPF-DataGrid- Press Enter key, go to next line

I want to implement this for DataGrid in WPF, not DataGridView, such that whenever an Enter key is pressed, it would go to the next line, is it possible? I see similar solution in...

View Article

C# : How to identify the the text alignment is horizontal or Vertical in...

Hello,I have come across scenario wherein I have to identify the text alignment in excel cell is Horizontally align( left,right,center) or Vertically Align (bottom,top center). Please let  me know how...

View Article

WPF create custom controls at runtime

Hello,In my application, i want to allow user to create custom controls using basic shapes like line, ellipse, rectangle, triangle. So user can select a basic shape just drag and drop in the canvas and...

View Article

How can i fill a list from an array in c# !?

Hi,I will fill a Combobox withs this list:List<string> CBWandelAusgTextls = new List<string>(); from this Array: public VBAngebote.VBAngeboteClass.WandelEingTextTabelle[]...

View Article


How to change DIU width/height of a png image

Hi,I have a png image of 1275 X 1650 resolution and 32 bit depth, but when it is loaded in BitMapImage its Width & height are returned to a very low value 408 X 528. I have a similar png image of...

View Article

Question about sorting Detail table

Someone posted almost the exact same question here.  I attempted to use that answer in my situation but am not sure how to form the syntax.  I'm using WPF and EF.I, too, have a master/detail situation...

View Article


how to set interval for chart axis without disable style of independent axis...

I have added rotation to x axis of chart lineSeria = new LineSeries();var xLabel = new Style(typeof(AxisLabel));                var rotation = new Setter(AxisLabel.RenderTransformProperty, new...

View Article

Populate App with External PDF Files

I'm fairly new to Visual Studio and do have a few Windows Forms apps under my belt. I'm moving on to doing a WPF Application now and am hitting a wall. My goal is to make an interactive catalog for our...

View Article


wpf to handle touch keyboard in windows 8 desk mode

I have tried to show touch keyboard using IInputPanelConfiguration interface.http://msdn.microsoft.com/ja-jp/library/windows/desktop/jj126267(v=vs.85).aspx  It worked on MFC project. but it not work...

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

Rendering lots of bitmaps

Hi I'm moving a small isometric level editor over from WF to WPF, and in my WF editor I use to render the 'world' view to a off-screen bitmap, then render that bitmap to a panel with additional UI over...

View Article
Browsing all 18858 articles
Browse latest View live