Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

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 Article


Save 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 Article


How 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 Article

Image may be NSFW.
Clik here to view.

WPF 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 Article

Binding 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 Article


User 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 Article

How 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 Article

WPF 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 Article


How 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 Article

Select 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 Article

use 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 Article

How 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 Article


How 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 Article

Animation 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 Article


wpf textblock editor

I would like a light weight editor for a textblock.

View Article

Drawing a caret

I need to implement a caret. Any examples available?

View Article


How 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 Article

convert 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 Article

How 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
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>