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

Adding to a collection / binding

I realise this question perhaps crosses both WPF and EF but thought I would start here. I have an Applicant class which has the following collection of contacts     public virtual...

View Article


LinearGradientBrush on some W10 devices problem

Hello,I would like to ask whether there is anyone else who ran into similar issue as we did during migration of our W8 application to W10. Out of several other issues that we ran to this one remains to...

View Article


SQL Server images

Hello,Im a newbie at this. I have a dedicated server with a public IP. Its running sql server 2005 but Im having a challenge.I am storing images and documents and the server database is getting big. is...

View Article

BINDING THE MAXIMUM LENGTH PROPERTY VALIDATION OF PASSWORDBOX IN WPF

HII,I WANT TO SET BINDING WITH PASSWORDBOX FOR MAXIMUM LENGTH VALIDATIONXAML:<PasswordBox x:Name="Pwd" HorizontalAlignment="Left" Style="{StaticResource VallidationTemplate}"...

View Article

Binding with Dependency Prop Is not working properly

Hi, My Idea, is when i have selected a border, i have to highlight it, by some BG color. I have went for the DP and binding for this.  When I am selecting a border,I will set a prop to true, and this...

View Article


Valdation of selected item in a treeview

I have a TreeView control in which the selected item is mandatory. I am developping a MVVM application and everything is done with binding.I need to set Valition errors handling to get the same visual...

View Article

wpf textblock editor

I would like a light weight editor for a textblock.

View Article

Why the ContentDialog.ShowAsync() flickers?

In wp 8.1, I used ContentDialog.ShowAsync() to switch from current ContentDialog to another, and it flickers. It is like this, there are two ContentDialog A and B, when I try to switch from A to B, B...

View Article


Introductory Behavior Question

So as I program my wpf application in MVVM, I have of course finally come upon the case where I would like to register for an UIElement's event following the MVVM pattern.  And so I have managed to...

View Article


Setting Itemsource in a class

In the ViewModel there is a property:  public ObservableCollection<ViewDataItem> ItemAData.There is a DataGrid in the view. This Grid loads when i enter new data or edit the current data. void...

View Article

Change Visibility of Control With Button Click (C#)

I have a number of Rectangles I'd like to control with a button, and I can't find out how to reference the Rectangle in the button_click event handler.I'm considering doing this a couple ways, either...

View Article

How to add children to a canvas dynamically in mvvm?

I have the following Canvas:<Canvas x:Name="NozzleCanvasNBD_" Width="{Binding NozzleCanvasNBDWidth}" Height="{Binding NozzleCanvasNBDHeight}"><TextBlock Text="0" x:Name="zeroDegreeCanvasBD"...

View Article

ID to Textbox

Hi, do we have an ID property to Textbox, that is existing within one Grid, on one .xaml page?Many Thanks & Best Regards, Hua Min

View Article


How to get the height of a TableCell ?

I need to get the height of the System.Windows.Documents.TableCell. I have searched some methods like below:Rect rectangleInFirstBlockLine =...

View Article

Difference between Listview with a gridview and Just grid view in wpf?

I want to choose between gridview and listview so. please suggests the difference between the two and which one is better.

View Article


BitmapImage with File lock or out of memory

Hi there,I'm having a problem that I can fix one issue only at a time instead of both as  below: (a) File lock (b) out of memoryI have a piece of code here which gets the ImageSource public static...

View Article

Get Treeview top item selection mvvm

This is my Treeview, I am able to get selected item for "TaskName" with an Interaction.Behaviours.What also like to get is when user clicks the top items in the tree. ("ProjectName")   <TreeView...

View Article


DataGrid with Alternating RowBackground

I have a datagrid, just a single column for now, with alternating row colors, alternationcount=2. The alternating row colors work, by styling, shown below.  But, the alternating row colors don't...

View Article

ToolTip for DataGrid works only once

<Grid Background="Transparent" Margin="0,22,0,23" Height="250"><DataGrid x:Name="ViewDataGrid" ItemsSource="{Binding ItemData, Mode=TwoWay}" Margin="0,0,0,10" RowStyle="{StaticResource...

View Article

XPSDocumentWriter WriteAsync doesn't save the FixedDocument to a xps file

I have the following function to save a report to a xps file:                                                    public XpsDocumentWriter Save(string fileName, Action<string> onSaveCompletion,...

View Article
Browsing all 18858 articles
Browse latest View live


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