How to preserve end whitespace in a TextBlock Text property?
When I put a whitespace at the end of a text block, it is removed automatically<StackPanel Orientation="Horizontal"><TextBlock>Hello </TextBlock><TextBlock Text="Mister...
View ArticleWPF Binding Datagrids to Look Up Tables from Entity Framework
Hi All,I'm stuck, and have been through many tutorials and forums but i'm unable to solve my problem. i really appreciate any help i can get since i've been stuck for so long. My problem is related to...
View ArticleWPF Interactive Map with Surface SDK & ShowMessageCommands Routed
I'm trying to create an interactive map where the user taps on a space/building/area and Scatterview Items open up. So far I have the basic functionality working, but now I want these scatterview items...
View ArticleWPF and String.Format() method
Hi Guys,I am implementing a Point of Sale system UI. I have textblock and a uniformgrid fill with buttons. in the button's click event, I have some code. Here is the code:<TextBlock...
View ArticleCreate hotkey that is active without focus on user control
I performed a search but didn't find a question that quite matches the scenario I'm running into. What is attempted to be accomplished is the ability to have a hotkey (shortcut key combination) that is...
View ArticleHow do I avoid adding empty listbox items?
I have a textbox that takes user input, the input is added to a listbox, how do I set it so that the user can't add an empty string to the listbox?<TextBox x:Name="txtNewCategory" Grid.Row="1"...
View ArticleExecuting code upon app close
Hi,I'm currently using a Navigation Window as a "container" to navigate the various pages of my app. Upon the application closing, I would like to execute some code before it completes exit. This code...
View Articlesending data from one window textbox's text to another window having textbox...
can you please suggest me any good example of passing the textbox value of one window to another windows textbox in MVVM structure..
View ArticleHow to turn off an image in WPF?
hi fellas, I mean, how to show it in grey?<Image Margin="435,3,150,267" MouseMove="Image_MouseMove" Source="/Imagenes/onoff.png" Stretch="Fill" Grid.Column="4"/>I want to show this image turned...
View ArticleDirect2D D3DImage and remote desktop with .net 4.5
In .Net 4.0 there was a warning for the D3DImage class saying that it would not render when in a remote desktop sessions. With .net 4.5 this warning has been removed. Does this mean the D3DImage...
View ArticleArgumentException with an AttachedProperty in XAML
Hi all together!I have a problem with an AttachedProperty in XAML that throws an exception in the designer. Because of not being able to change the design because of that I really want to get rid of...
View ArticleBinding Combo Box (that is placed within a custom control) Item Source to a...
I trying to Bind the item source of the combobox contained within a custom control to a binding list collection view anyone help. ThanksPublic Property cvLanguage As BindingListCollectionView Get...
View ArticleSaving data in VB.NET OBJECTS (OOP) WPF
I am Developing an WPF application That can communicate by radio with instruments frecuencie. I have one DLL library. My tutor Told Me That I shoulds create objects Where I can store the data from the...
View ArticleViewBox Resolution Problem
Hi: I´m developing a WPF application and I need that it fits to any screen resolution. I´m using the ViewBox control with Stretch property in Uniform mode. Also, the screens have several DockPanel...
View ArticleWPF Web Browser Control Multi-Touch Support
We are building a WPF application for Windows 8, which acts as a wrapper for a web application. We used a Web Browser Control and used the Registry Editor to switch the rendering engine to IE10....
View ArticleVirtualizingPanel background scrolling
I'm trying to create a view that looks like a bookshelf with items sitting on the shelf with virtualization. I was able to achieve this by adding acustom VirtualizingPanel class to my ListView. My...
View ArticleAdding array List into a Grid
Hi: I have a project in WPF C#. In my code, I am creating a new object(string object) from a loop and adding that string object in a List. Now in my XAML code I have added a Grid(myGrid). How Can I...
View ArticleHow to create a button to snapshot the WPF SCREEN and save in a folder ?
Hi all ... Anyone know how to create a button i snap shot the whole WPF Screen ?Thanks
View ArticleHow notify the View to create a runtime control
Hi,I'm a quite new in WPF...My application reads data from an external device. When data is ready I have to add a TabItem to a TabControl and, inside it, create a control which reads its xaml file at...
View ArticleUsing own icons/images in WPF Messagebox?
hi ya,how can I use my own resources on MessageBox? does anyone have some sample of that?thanks for your hintsPrimary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF and...
View Article