UI Automation: How to make a property of a custom UserControl visible for...
Hi!I'm doing some research for automated testing at the moment and I ran into a problem when using the UI Automation and the Automation Peers.In a demo application I create a custom UserControl that...
View ArticleHow to collect the misspelled words form the WPF Richtextbox?
I am using WPF in-built Spellcheck option in my RichTextbox. I need to collect the misspelled words which are underlined. Can anyone help me out?Thanks in advance! Antony
View ArticleHow to make my .Net 3.5 application run on .Net framework 4.0 environment
Hi, My application is developed base on .Net framework 3.5, so if i run the app on Win8 or Win8.1 which does not have .Net 3.5 but only have .Net 4.0 or above, i will get a prompt message which said...
View ArticleSecurity of loading XAML Content received from server and loaded to...
Imagine that...I have WPF application and many users use it. I want to show my application users information about upcoming events. Can I disable following insecure behavior?I wrote following code:My...
View ArticleFullTrust and Digitally Signed XBAP viewer still shows the Security Warning...
I have published a XBAP application via Click Once full trust settings and digitally signed the same. I am publishing this XBAP on .NetFramework 4. But still it shows the Application - Security Warning...
View ArticleCombo functionality on datagrid - wpf
I'm unable to get a combo to function as desired on a datagrid (using WPF).A user should be able to select an item from a combo and the underlying database be updated when the user leaves the row. The...
View ArticleQuestion 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 ArticleMy DataGrid gets slower and slower....
Hey, i implemented a DatGrid inside a Tabitem and fill it with class which looks like this:public class DataGrid_ContentClass { public ImageSource _ImageSource { get; set; } public string _FileName {...
View ArticleDrawing on a image control's image.
Hi,I've been checking all of the examples I can find, but I can't find anything that seems to do what I need.I have an image control on my window. It has a bitmap image as the image source. From the...
View ArticleHow to let the user edit a rich text box in windows phone?
I've the following xaml code:<RichTextBox Foreground="black" Background="White"><Paragraph> line 1: abc cde fgh ijk</Paragraph><Paragraph> line 2: abc cde fgh...
View ArticleAssigning a window to HwndSource.Rootvisual throws an...
Hello,we try to host a Window (in fact a class derived from Window) in a HwndSource.When we assign the window object to the RootVisual member we get the System.ExecutionEngineException exception.The...
View ArticleHow to apply style for WPF window look like office 2013
HI I want to create a WPF application with the window style look and feel same as MSOffice2013. I don't want to use windowsStyle="None" and Allowtransparency="True" as WindowsFormsHost will not show if...
View ArticleRounded corners for a textbox dynamically
Hi,How to make rounded corners for textbox dynamically(.cs) in wpf.Thanks,Subbu.
View Articlefacing problem in validating wpf control
himy xaml code is<Label x:Name="lblDeviceName" Content="Device Type Name" Grid.Column="0" Grid.Row="0"/><TextBox x:Name="txtDevicename" Grid.Column="1"...
View ArticleWPF Grid copy with colors and lines
Hi - I am trying to copy the data from a WPF grid and send it in an email. I was able to do so with the clipboard DGConnectionInfo.SelectAllCells(); DGConnectionInfo.ClipboardCopyMode =...
View ArticleHow to find a BindigGroup (by type) in a DataTemplate
Hi,I have some DataTemplates (defined in different xaml files loaded at runtime) and I have to search (and retrieve) all BindingGroups used. the problem is that I need to search them by type because...
View ArticleImage Sized to grid height (proportional)
Im trying to create a WPF UserControl that contains an image docked to the left side, and a 2 column table on the right. I want the control to automatically resize so that it is tall enough to contain...
View ArticleHow to be sure all data bindings are current?
Hello. I have a class that exposes many dependency properties which are being bound to a variety of UI elements. I have several instances of these objects at runtime, and under certain conditions one...
View ArticleWPF rookie: controlling bound DataGrid row color based on (not shown) object...
Hi,I have an ObservableCollection bound to a DataGrid. All object properties, except an id, are bound to datagrid columns. External to the collection i have two id' representing two objects in the...
View ArticleBinding to data source with dynamically created columns in DataGrid
HiLike many others, I have a need for some dynamically created columns in a DataGrid within a WPF 4.5 project. As well as some static columns, new columns can be created or removed via the interface...
View Article