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

TextBox.LineCount execution and instability

Hi, I think I am facing an unsual probably and maybe someone there can help me out.So, I am developing this interface, I need to use a TextBox for text input. I also need to scale that TextBox...

View Article


Scrollviewer with Datagrid Inside Expander

HiI need to have two expanders with datagrids inside it.The problem I am facing is scroll is not appearing for the datagrids.I tried to put height on datagrid which enables scroll but when I expand it...

View Article


is there a api function to check if a filename is correct

hey,inside my application. a user can enter a filename into a TextBox and i must check, if the Name is correct. So my question, is there a Net or a natural api Method, to check an entered...

View Article

Disable ListBox item in WPF

Hi Guys, I have a simple ListBox laoded in WPF & I want to disable some items. How can i do this?<ListBox Margin="10,55,0,0" x:Name="listBox1" FontSize="18"...

View Article

how to notae signs like ◘ in a string??

how can i notate strings like the shown above???i was trying to Display the Content of following Array char[] InvalidFileNameCharsArray_GV =Path.GetInvalidFileNameChars();First i was getting the...

View Article


Why Image can't rotate forever?

Dim myImageBox As New Image() myImageBox.Name = "myRenderTransformButton" Me.RegisterName(myImageBox.Name, myImageBox) myImageBox.RenderTransformOrigin = New Point(0.5, 0.5)...

View Article

what's the rule of memory consumption if i declare variables?

Hey,what are the rules if i define variables with a Value of null, which will concern the Memory?objecttype var = null;   <--- is this going into the memoryvaluetype var2 = null;  <--- is this...

View Article

DataGrid question: How to access the Current (not the Selected!) row?

I am trying to implement a very simple spreadsheet functionality based on a DataGrid.(1) The user clicks on a cell(2) The user types a value and presses return(3) The current row is scanned and any...

View Article


Image may be NSFW.
Clik here to view.

November on TechNet: Calling All WPF Gurus - Enlighten Us!

"An influential teacher, or popular expert" Oh mighty reader, we need your enlightenment! Only YOU can show us... the TRUE WAY to code! Win the love and adoration of generations to come, by giving...

View Article


WPF UI not being updated INotifyPropertyChanged

Hi All,I am new to WPF, I created a sample project to learn INotifyPropertyChanged interface. But the UI did not update, I didn't known why.Here is my code snippet:XAML:<Window...

View Article

WPF DataGrid: How to discriminate between the 2 calls to event handler...

For some reason, the CurrentCellChanged() event handler is triggered twice:  (a) When the user clicks in a cell. I would like to ignore that one.  (b) When the user has edited the cell content. This is...

View Article

RotateTransform of a line

I have a line and i want to rotate it about the center of the circle. But i want to get the coordinates of  the line which are being moved(the corrdinates of the end of the line which are NOT in the...

View Article

Image may be NSFW.
Clik here to view.

How to do this control with WPF?

Hi all,For a project that we have, at some point, I will have to do a control like the windows explorer navigation control.I must admit I'm pretty new to the WPF (and graphic) world! I read a book on...

View Article


Display specific object properties in a DataGridRow

Hello,In my application, i have 10 properties for a class (Class: Employee). I have a ObservableCollection<Employee> which i am binding to a DataGrid.I want to display only 5 properties from this...

View Article

how to set an EventHandler to null?

heyif im adding some methods to an EventHandler of an ordinary method like:Window.MouseLeftButtonDown += methodA;Window.MouseLeftButtonDown += methodB;If i can not trace inside code, which methods i've...

View Article


Can resolution of depth image be adjusted?

Hi as the title state, can resolution for kinect depth image be adjusted? Say instead of 640 x 480, can it be adjusted to 320x 480Thanks in advance!

View Article

ListBox/Selector change SelectedItem (in multiselection)

Hello,if I have a selector with multiselection enabled (like ListBox), what is the proper way of changing the SelectedItem value without changing the selected items? (i.e. I want one of the already...

View Article


Image may be NSFW.
Clik here to view.

DynamicResource not recognized at design time

Hi,I have no idea why, but all the sudden VS2013 XAML-Designer does not recognize my dynamic resources any more. Just as a side note: Blend for VS2013 does.I have a "GuiCommon" project in my solution,...

View Article

DataGrid: What is the best, current way to perform Cell-by-Cell Refresh?

The requirement of my WPF application is to implement a very simplistic spreadsheet calculation chain, based on a DataGrid.(1) User clicks on a cell, types a new value, presses <Enter>(2) My code...

View Article

Prblem to use Microsoft.Windows.Design assembly reference!

Hii'm creating a sample custom property dialog via this link, but at compile time i'm facing some errors like this :he type or namespace name 'IProvideAttributeTable' could not be found (are you...

View Article
Browsing all 18858 articles
Browse latest View live


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