WPF Binding a listbox in XAML
Hi I am banging my head for days now on this, so please, please help.I have a WPF application with a EF6 Model and a ViewModel. this is my ViewModel:using System; using System.Collections.Generic;...
View ArticleSave DataGrid row changes when leaving row
I am using .NET 4 with WPF and the Entity Framwork. I want to have editable rows in a DataGrid representing EF Entities that are saved automatically to the database when the user jumps to another row...
View ArticleHow to allow a user to search in wpf?
I need to create a way for a user to enter an id number, and then anything that matches the id number to appear in a seperate window, i already have the method that must be called in the click event...
View ArticleWPF Ninjas needed! Application details within.
We need Wizards and warriors, of words and wisdom. Come forth, oh mighty techno-scribbler! Pass your knowledge to others! Show us what you know and let others learn from your journey.Soon you may...
View ArticleBinding ColumDefinition Width
I am creating a Windows 8.1 app using https://slideview.codeplex.com in the Windows 10 with help of Visual Studio 2015. I have added grid to the design with 1 row and two column. In the first page...
View ArticleUser control
Hello,How to Access Parent control from user control.I have mainwindow from which i am calling user control.iMainpage object is defined in App.xaml.cs Mainpage mainpage= ((App)App.Current).mainpage;...
View ArticleHow to bind a GridViewColumn's width to a property?
In an MVC WPF project I have a ListVIew that uses a GridView to display items. In order to save column widths I thought that I'd just bind each GridViewColumn's Width member to a property in the Model....
View ArticleWPF mediaElement disappearing after some time
I have a user control with a WPF MediaElement and an Image control. This user control is again used in a few more user control which uses this in two differnt layouts. The application is supposed to...
View ArticleHow to insert one view which “covers” two regions? Prism, WPF, MVVM
I have one view named FooView at ModuleA and two regions at the Shell called BottomRegionand UpperRegion:<Window x:Class="FooBootstrapper.Shell"><DockPanel...
View Article[WPF][DatePicker]
Hi to all,I have a DatePicker that I want to enlarge the ico of the calendar.I haven't found any solution, so I decide to make a button and open the DatePicker by code-behind.Neither find anything on...
View ArticleSelect a row in a Datagrid
I can select a row in my datagrid by clicking on it.I would like to write some code that automatically selects and highlights the first row in my datagrid. How can I do that?Certified Geek
View Articleuse multiple class in wpf
here i use two different class like person and passwordboxassistant in xaml in one application...so how how to use<Window x:Class="ITA.AdminMaster" xmlns:local="clr-namespace:ITA"...
View ArticleHow to change ControlTemplate TextBlock programmatically c#?
Hello!I use togglebutton control and I want change textblock text programmatically.<ToggleButton x:Name="ShowDetailsButton" Margin="1,3,0,3" HorizontalAlignment="Left" Visibility="{Binding...
View ArticleHow to save a Canvas which is in the ItemsControl?
Here is my Canvas:<ItemsControl x:Name="ic" ItemsSource="{Binding NozzleCanvasNBD_}"><ItemsControl.Resources><DataTemplate DataType="{x:Type c:CircleVM}"><Ellipse Stroke="Red"...
View ArticleAnimation freezing
Greetings,I am trying to find a way to keep an animation running while I am doing work behind. This can normally be done with the BackgroundWorker, but some of the work that needs to be done is load a...
View ArticleHow do I return underline as something to be assigned to the TextDecoration...
I'm working on writing a value converter that will either return TextDecorations.Underline depending on what's in a table, or it will not. In other words, either the table says this text block is...
View Articleconvert to c#
Hi All.How to convert to C#Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As Globalization.CultureInfo) As Object Implements IValueConverter.Convert...
View ArticleHow do I pass the name of the field into a value converter?
This is a bit unconventional. I've written a value converter that returns a TextDecorationCollection. My intent was to get that by using thevalue parameter of the Convert() method to be the name of the...
View Article