Get the Selected item in w WrapPanel
How do I get the currently selected item or the index of the currently selected item in a wrappanel?This seems like a logical thing to be trying to do. Shane
View Articlelistbox with wrappanel layout question
I'm still having difficulties understanding how the layout of a ListBox with a WrapPanel works, or is supposed to work. Here's a tiny example:<Window x:Class="ListBoxWidth.Window1"...
View ArticleHow to interchange items in grid view and how to get index of item where...
I have a grid view canDrag and candrop are True and canReorder is FalseNow i want to drag one item from gridview and drop it over another item in same gridview.At that instance dragged item get placed...
View ArticleBack and Forward Navigation in wpf csharp Application
I am a beginner in wpf Csharp. I developed an application with several menus and each menu is linked to a Usercontrol. I would like to make two buttons in my application which will functions as...
View ArticleBinding DataGrid to a List object Using Visual Studio
Hi There,Should be very simple thing I just cannot get it right. I have following class:public class NameC { public string FirstName {get; set; } public string LastName {get; set;} }public class...
View ArticleHow to convert stream to bitmapsource and how to convert bitmapimage to...
I want to convert stream to bitmapsource and i also want to convert bitmap image to bitmapsource. i need it urgently plzz help me out. I don't want to use " Uri " for converting to bitmapsource.
View ArticleHow to bind several data (more then 7300) to datagrid
Hello,I am trying to bind to datagrid several data. I created an observablecollection, i stocked data into this collection and then i binded this collection to my datagrid. In xaml file i declared my...
View ArticlePreload the TabItems of a databound TabControl
Hi,I have a TabControl whose ItemsSource is bound to an OberservableCollection. By default the TabControl loads the content a newly selected TabItem when the user selects that item. As the DataTemplate...
View ArticleList of Windows Owned by Second UI Thread
Hello:I have two UI threads. I can get a list of UI threads for the first (main) UI thread; however, I am unable to retrieve a list of windows owned by the second UI thread. Is this possible?For...
View ArticleMaster-detail in a single GridView?
Hi, I am looking for sample.Thanks for provide any sample or link related toPrimary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF/SilverLight projects.
View ArticleWPF 2010 - How To Stop a Window Called From WPF MenuItem From Displaying Twice
Hi.I am trying to call a XMAL Window from a selection in my WPF MenuItem. I do so with a sub that has a "WINDOWNAME.ShowDialog()" statement. So far, each time I do, the Window I call displays twice...
View Article.Play()
I'm trying to have a clip to play on my .xaml.cs code and when i run my WPF application, it doesn't playMy command line is animation_wmv.Play();I want the clip to play automatically. Please assist
View ArticleYou must set the resource Key or Binding properties
Hi ya,I am getting lots of values from a couple of resource files both english or spanish. I don't really know whether is a good method or not for translate a big application, suppose it's better than...
View ArticleURI with Relative Path does not working
hi,First line with Absolute works perfect but the second one althought don't fail I cannot see any image in my Image control:Code-behind: Try imatge = New BitmapImage(New...
View ArticleWPF MVVM how to call "CanExecute" from the Model?
I've run across a problem while developing my first application that has me a bit stumped. On my viewModel, I have a standard ICommand which is bound to a button on my View. The button is intended to...
View ArticleAutogeneration of Event handlers after paste
Hi fellas,is there any trick for that IDE creates automatically every Event Handler?For example, copying these XAML snippet from one XAML page to another. It is compulsory on purpose go to "Navigate to...
View ArticleArgument Exception in TimeSpan internally in Dispatcher
HiWe are building a rather large application platform using WPF and are running into a very strange exception which causes our application to crash. We have no definitive way to reproduce it and cannot...
View ArticleCustom ComboBox question
HelloIm relative new to WPF. Im trying to implement a custom ComboBox, a base class for ComboBoxes which display enum-members. Derived classes should easily be able to set the text which represents the...
View ArticleC# And Live radio streaming
Hello,i need to play a live radio from a link as this "http://radio.mosaiquefm.net:8000/mosalive"I thoughtto use VLC API but i think that isfrowned upon...so i want to use MediaElement but i have...
View Articlehow to set the "My Documents" as initial directory for...
Hello! I have several Open File dialogs and a Save File dialog in my app. For the Save File dialog, I wanted to make the "My Documents" as the initial directory. How do I do that? I use the...
View Article