ListBoxAutomationPeer children not updating
When a new child is added to the list, the list box automation peer still shows the original collection without the new element.I have also tried InvalidatePeer() without any help.Muhammad Siddiqi
View ArticleUsing WindowsFormsHost, but right and bottom edge are cut off in win8
Hi all,I am using WindowsFormsHost to host a winform application, but right and bottom edge of winform with near 50px size are cut off in win8 computer. But running the same problem in win7, it is ok....
View ArticleUIElement.TranslatePoint not giving right coordinates with...
Greetings! I'm creating a small program which contains a TreeView control, and has the ability to edit the text of the TreeViewItems in the control. The TreeViewItems are set up like...
View ArticleHow to change the Microsoft Ribbon to Metro Style (Office 2013 Like)
I have added the MS Ribbon controller to my WPF Application but its look like Office 2010 style. But i want to give the Office 2013 metro style. I added following few lines of codes to my new Style...
View ArticleMultithreading
Im getting an error message when i try this:Task.Factory.StartNew(() => _model.GetItems(node).Select(n => n)) .ContinueWith(t => { if (t.Result != null) { ObservableCollection<ItemValue>...
View ArticleStateChanged Event is not firing
Hello All, I'm working on WPF Application. I've a window with None as WindowStyle. If I'm doing Start + D, the State changed event is not firing, but if the WindowStyle is SingleBorderWindow,the...
View ArticleNot able to capture wpf textblock inside style in uiAutomation text
I have a WPF window which is actually a messagebox window used to display messages. It has a WPF TextBlock and the testing team was able to capture its text using UI-Automation text.Recently I...
View ArticleHow to notify the TabItem switching in c#? (if there are many TabItems)
I have created TabItems in silverlight where each tab display some text. When i change the text then it show asterisk at the Header of TabItem with header name.Now what i want to achieve is : suppose i...
View ArticleHow to change the default time of date time picker from 12:00AM in wpf
<etk:DateTimePicker Name="dtFromSlot" Margin="0,0,5,5" Height="24" Value="{Binding LPSearch.LoadingTimeFrom}">
View ArticleHow to close powerpoint in wpf without save or dont save alerts ?
I am Playing power-point in my wpf window. If i close this powerpoint slideshow by force then its ok but if i press alt+f4 then it is asking for save or dont save.i dont want this alert. how to prevent...
View ArticleAccessing UserControl from MainWindow
Hi all,I would like to ask you, how can I access my usercontrol from MainWindow?For accessing to MainWindow I'm using : Dim mw As MainWindow = DirectCast(Application.Current.MainWindow, MainWindow)I...
View ArticleLoading and Fetching Data from XML file in WPF C# Form
HI All,Does anybody please guide me-How to dynamically Create a database tables in XML File at run time.-How to Insert a data in the XML file through forms in WPF C#-How to load a data from XML file in...
View ArticleDatabase and security strategy
Hello, I will develop two bussines applications. First one will use WPF technology and second one will use ASP.NET technology.1. I need one database for booth applications. I dont no what security...
View ArticleEmbedded a xlsx template into our WPF application, but not keeping format..
So a while back I posted a question on how to embed a xlsx file into our WPF application so that its part of the final application.Original Post HereSo now that we are at the end of the project and...
View ArticleIssue with landscape printing using PrintVisual
I was playing around with Petzold's PrintWithMargins program from chapter 17 in his book "Applications = Code + Markup". The code is available...
View ArticleWPF TechNet Guru Announced for June 2014
The Results are in! And the winners of the TechNet Guru Competition June 2014 have been posted on theWiki Ninjas Blog.Below is a summary, heavily trimmed to fit the size restrictions of forum posting....
View ArticleWPF binding not worked for foreground property in TextBlock
Hi All, I want to set the text color of textblock text with foreground property. http://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.foreground(v=vs.100).aspx So I have...
View ArticleRetaining Focus in a Data Grid Cell if value is not given in that cell
Hi,I am using Component One Data grid in my WPF application.i want to retain focus in current cell if value is not entered and user want to leave cell, i want to keep him in current cell.Setter of...
View ArticleRetaining Focus in a Data Grid Cell if value is not given in that cell
Hi,I am using Component One Data grid in my WPF application.i want to retain focus in current cell if value is not entered and user want to leave cell, i want to keep him in current cell.Setter of...
View ArticleBorder Style change
I have a DockPanel where in VB.NET I'm adding borders to it at runtime. I'm adding a style resource to this border too.Via VB.NET code I want to on the mouse over event change the style and then change...
View Article