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

Grid inside column header in DataGrid doesn't fill available space

I have a DataGrid in which I want the column headers to be customized.I need to show a Label and optionally a combobox below the Label. All Column Labels should be aligned Top in the Header of the...

View Article


Using Bitmap resources from .resx file in WPF

Briefly: How do you use a System.Drawing.Bitmap as the source of a WPF <Image> object?Expanded explanation: So I plan on making extensive use of Resource files and assemblies (.resx files and...

View Article


BmpBitmapDecoder fails to load image from MemoryStream with...

ImageConverter converter = new ImageConverter(); byte[] byteBmpImage = (byte[])converter.ConvertTo(bmpImage, typeof(byte[])); MemoryStream ms = new MemoryStream(byteBmpImage); BmpBitmapDecoder decoder2...

View Article

Change property binding at runtime by trigger

Hello,I have a combobox (call it ComBo1) and a button/combobox any other control (call it Control) and I need to change binding to another property on Control, when value of binded property of ComBo1...

View Article

Numeric Input Validation

The idea is to validate numeric user input into a textbox.  If the user enters a letter, that last input (the letter) should be deleted.The following is the textbox definition in the xaml file....

View Article


Image may be NSFW.
Clik here to view.

Texture Co-ordinates on a 3D plane, please help!

How can i work out the texture co-ordinates for these positions and triangular indices, i need to make sure the texture goes in the direction as shown and that it does not stretch to the shape of the...

View Article

WPF in Expression Blend and Using C#

I just realized that the traditional use of C# in Expression Blend is completely different because of the existence of WPF. Is it possible to develop the UI in blend and code it in Visual Studio maybe? 

View Article

Saving Value of CheckBox in DataGrid In Database

i Have Create a Checkbox in Datagrid        <DataGrid  IsReadOnly="False"   x:Name="mygrid"  CanUserAddRows="False" HorizontalAlignment="Left" Margin="10,60,0,0" VerticalAlignment="Top" Height="215"...

View Article


Changing Of Checkbox value does not change Binding Column

<CheckBox Width="18"  x:Name="TestCheckBox" IsChecked="{Binding BooleanProperty, Mode=TwoWay}" IsEnabled="True" IsHitTestVisible="True" IsTabStop="True"  />                dc = new...

View Article


How to set the background for ComBox in WPF

Hi All,I want to know how to set the background property for ComBox in WPF. I set the property as below,<ComboBox Background="Yellow"><ComboBoxItem Content="2"/></ComboBox>But it did...

View Article

OleDbAdapter nested select queries

I have the following query which works for me in MSSQL:SELECT*FROM[PRODUCTION].[dbo].[OFFLOADINGDATA]WHERE[DATEROW]NOTIN(SELECTtop((SELECT...

View Article

What are the benifits when remove un-using namespace?

Hi,As you know that there's two type of namespaces1. xaml2. C#'s namespacethese question are straightforward

View Article

Couldn't select ListBox item programmatically

Hi Guys,I'm trying to select the ListBox item pro-grammatically. I'm selecting a particular image from Parent window and sending that image to the child window So i'm sending the `ImageFileViewModel`...

View Article


MVVM ViewModel Property Getters holding up page rendering

Hey guys,Been having this issue for a while now and it is really bugging me and the users are complaining.I have a page with a view model using MVVM.The page is basically a decently sized form with...

View Article

Reactive Extension with TreeListView

Hi,Are there any Examples which can help me with how I can use Reactive extensions with TreeListViewControls in MVVM - I'm new to Reactive extension and any suggestions will be of great help..Thanks,

View Article


BInding Rich Text box to a string property

Dear all,I have in my ViewModel a string property call Description. That string can have normal text string but sometimes can contains some HTML formatting.Actually I have a TextBlock.Text property...

View Article

Parsing XML file using C#

Hi everyone,I have the following XML file that I am trying to parse using C#:<?xml version="1.0" encoding="utf-8"...

View Article


How to apply my java GUI concept to work in WPF....

recently i was working with java . i just move to the C# . after learning some basic concept of java i am interested in to make a Desktop application for which i want to learn about WPF but i don't...

View Article

nesting wpf datagrid inside row details template binding example

Hi Guys,I normally bind my datagrids through the following method:C#: smb1 = new DataTable(); smb1.Columns.Add("DESCRIPTION", typeof(string)); smb1.Columns.Add("DESCRIPTION_STATUS", typeof(string));...

View Article

Using expander and adding effect

HI,We are using expander one below the other and I want to add to it depth effect when it opend but I want that the depth will not change the text effect ,I want the text remain the same...how could I...

View Article
Browsing all 18858 articles
Browse latest View live


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