Different perfomance and SelectedItem of ListBox having the same visual tree
I have created test WPF application with ListBox. I fill it with 100000 file names (string). The goal is to retrieve ListBoxItem object from user's selection by SelectedItem property. However, not is...
View ArticleHow to get value from unknown object where property is known?
Hi. I need to get values from DataGrid without knowing the itemssource BUT I do know DataGridColumns sortmemberPaths.So I would like something like: var row1Col1Value =...
View ArticleHow can I make the grid back ground to be stretch that it can fit to all...
<StackPanel><!-- It's important that this is in the end of the XAML as it needs to be on top of everything else! --><Grid x:Name="InputBox" Visibility="Collapsed"><Grid...
View ArticleUser Control as a Menu to navigate Page WPF
Hi All,In my application I have two frames. I have 3 User Controls which is different menu for users (depends who will log into the application that menu will appear). If for example an employee will...
View ArticleAttaching "KeyCode" DependencyProperty to a Button in wpf using C#
Hello,I have a wpf app in which i am dragging "Buttons" from a customized toolbox(in the app) on to a canvas. On that canvas i am converting the properties of buttons as XMLElement and saving as XML...
View ArticleHow restrict KeyDown event in XAML to ENTER key only?
I wish to simply map the ENTER (RETURN) key to MouseDoubleClick in xaml without any additional code-behind. Is this possible?Gouranga Gupta :-)
View ArticleShadow effect on Border with Text
Hi,I am trying to create an outer shadow around the Border control. The Border has a TextBlock inside it which displays the Welcome message for the current user. I have two problems here, one is that...
View ArticleWhat is the standard for context sensitive help in WPF?
Microsoft Visual Studio (2010) doesn't seem to employ the same help system as standard Microsoft Windows apps (Notepad, Calc etc) or Microsoft Office (2007). It puts a (rather annoying) icon in the...
View ArticleIs MouseDoubleClick event triggering from ScrollBar in wpf ListBox by design?
Can someone please confirm if the MouseDoubleClick event triggering from the ScrollBar in a wpf ListBox is a bug? I'd rather not muddy the code with a precarious workaround if it is. Instead I'll just...
View ArticleHow to see the source code of the .net framework in vs 2012 ?
I want to see the the source code of CombinedGeometry in System.Windows.Media namespace . please help me .
View ArticleHow to Attached a window(not user control) in a grid of main window
I want to attached a window(not user control) in the grid of main window. Basically I want to show a video in a window and this window is set into the grid of main window. How to do this. Please help...
View ArticleWPF MediaElement memory leak
Hi,My application does movies presentations, so ever 10-30 seconds the movie ends and a new movie starts.I'm using the MediaElement, after the execution I call the method MediaElement.Close to close...
View ArticleHow to make a wpf child window follow it's parent
Hi, I've been trying to make a child window follow it's parent, I've bound the child's Top and Left properties to it's parent and that works for resizing of the parent and when the parent is dragged...
View ArticleClose Internet explorer 10 Tab from c#
Hello there guys!I read a lot of topic in the forum about closing an IE tab from c#.i need to close a single IE tab that is the tab that's holding my xbap app.I want to do something like:private void...
View ArticleSaving large WPF canvas into image with better quality...
Hi,I have seen few articales for this problem but i couldn't found what I want.My probem is I have a huge canvas with around 1000 images placed on it in a manner and I want to save this canvas into a...
View ArticleWPF web control use
Dear all,I need to build a multi touch WPF facebook and twitter application. The problem I have is that before a user could post something it neeed to get authenticated with username and password in...
View ArticleHelp inserting image to database please...
Hi I am trying to create a small utensils application for a cooking class... it contains ID, Name, Description, Pic, and PicLocation... Pic is varbinary(MAX) not image, I've read the articles...being...
View Articlecant cut from textbox
hii cant find anybody else with this issuewhen selecting "cut" from the texboxes, it works as if i did "copy"same goes if i do control-xit simply copies instead of cuttinganybody have any idea what...
View ArticleProgress bar not working correctly in Asynchronous call
I have used the progress bar in one window and I have set TRUE IsIndeterminate property. I have used asynchronous call for display the Progress bar window. It has stucks but the background process...
View Article