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

How to nicely curve a line with touch

Dear all,I need to build a touch WPF application which have  the following functionnality :I draw different line on screen between different point. There are straight line. Then by using finger I would...

View Article


Can't bring my extensions to work...

HeyI try to extend a Button Control (it's from Telerik, but it should work everywhere...)I want to add a Property called "NormalImage" and "MouseOverImage". So, I did the following in Codebehind:...

View Article


How to hide part of text in a richtextbox or textbox using WPF?

i would like to ask for a a way in wpf of hiding and unhiding some specific lines in a richtextbox or textbox using C# at Runtime and at the same time leave the rest of the lines visible. I would also...

View Article

Arrow keys(left,right) down is not captured from PreviewKeyDown event within...

Hi,I was just trying to capture left arrow and right arrow key movement over the text in wpf textbox. I implemented a wpf attached behaviour for the textbox and bound PreviewKeyDown event.Although,...

View Article

MVVM DialogResult Validation

I implemented a way to use mvvm and dialog result using attached properties. public static bool? GetDialogResult(DependencyObject obj) { return (bool?)obj.GetValue(DialogResultProperty); } public...

View Article


Application like Microsoft Surface collage some clarification

Hy,I would to develop similar application (im at 50% of this) , i  use surface controls but i have notice that my app dont work on touch but only mouse .The original Microsoft work on windows 7 and...

View Article

how to get listview subitems in wpf

hi,    I have a problem in get listview subitem values in wpf..i m using following coding but i got an error please help....private void lvUsers_MouseDoubleClick(object sender, MouseButtonEventArgs e)...

View Article

show combobox in datagrid

Hi.how can i show a combox in a datagrid?For example i have 2 field. field1 is ID and filed 2 is Numbers.for each ID i have more than 1 number.I Want to show  repetitive IDs in a textbox in one record...

View Article


WPF Datepicker functionality

My DatePicker is currently bound to an xml element.  I would like the calendar date to default to the current date when going to select, and would like the text part to automatically update when...

View Article


Shade the area outside of crop view in xaml

Im working on wpf application. I have an image with crop view applied. I have to shade the area which is outside of crop viewer. Any help?

View Article

How can I add XAML stuff in my Styles.xaml?

Hi all of you,My aim is using throught my WPF app the following code but first of all I would like to add in my styles files.How can I do that?Thanks in advance for your comments!!!<Button...

View Article

How to group rows that have all but one columns matching in a .net 4.0...

Hi,It is probably easier to explain the this with an example than describe it in the title... The problem seems to be one other people have encountered, but unfortunately I've spent at least a day...

View Article

Need kind of a spreedsheet grid to display data but which and how

Hallo erveroneI need to display kind of a trainingsplan for athletic sports. This isn't the problem. But it should be possible to report the results of the training for each training session. And these...

View Article


Combobox dropdown no longer appears if app loses focus while dropdown is open

Hi everyone, I'm very new to WPF, and in the course of migrating my app to comply with MVVM, I seem to have introduced some behavior I don't understand at all.I have a combobox bound to an...

View Article

How to Disable Adobe XI Protected Mode at Startup using C# or .Net code?

       I am using controls webbrowser in a component  to host Webbrowsers like google,microsoft,etc in my wpf desktop application and some times we use this webbrowser componet to open PDF...

View Article


Binding Combo Box (that is placed within a custom control) Item Source to a...

I trying to Bind the item source of the combobox contained within a custom control to a binding list collection view anyone help. ThanksPublic Property cvLanguage As BindingListCollectionView Get...

View Article

Touch events not firing

I have been working with WPF's built-in touch events over the past few months without any issues. However, yesterday when I tried to run the exact same program (no code changes) the touch events will...

View Article


c# wpf application on 2 screens in 1 window

Hey everybody,I'd like to run a WPF application with c# on 2 screens. I already found some articles with solutions, but they all create a second window.My question is: Is it possible to have only one...

View Article

Why WebBrowser is not shown in a ViewBox on Windows Phonw 8 ?

I am trying to display a browser in a ViewBox element on a Windows Phone 8 Nokia Lumia.The WebBrowser is displaying when it is alone, but when I put it in a ViewBox element, it does not show.Here is my...

View Article

Multiple selection with ListBox in MVVM

Hi,I know after reading few articles and forum threads that it's impossible to use SelectedItems property of Listbox in xaml with MVVM and binding.  I cam across few articles explaining the workaround...

View Article
Browsing all 18858 articles
Browse latest View live


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