wpf

How to dock ListView on a StackPanel?

<StackPanel Grid.Row="0" Height="Auto" Width="Auto"> <Label Name="Label1" BorderThickness="2,2,2,2" BorderBrush="Gray" HorizontalContentAlignment="Center" Width="Auto" Height="28">Window1</Label> <ListView BorderThickness="2,0,2,0" BorderBrush="Gray" Height="Auto" Width="Auto"> ...

How simply put values from DataTable to DevExpress comboBoxEdit Items

Hello, does anyone can say, how to simply put values from DataTable to DevExpress comboBoxEdit Items. In WinForms it was simply like that: dtCat = SqlHelper.GetTable("base_UserCategory_Select", new string[] {}); DataRow dr = dtCat.NewRow(); dr["UserCategoryID"] = 0; dr["CategoryName"] = "< All >"; dr["IsSystem"] = "Fa...

Rich look and feel in WPF

I am searching for good samples for WPF that gives rich look and feel in WPF. Like for example a fancy TreeView Control with icons ..or Outllok like layout... Samples that shows the real power of WPF in terms of rich look and feel.. ...

add data to column series in wpf C#

Hello, I want to create a ColumnSeries Bar Chart in WPF using C#. I shall extract the data from the database and want to bind it to the bar chart. The data extracted will contain two values. First is parameter name(string) and the other is its value(double). Which type of collection shall i use? and how to do the binding? Thanks in adva...

Can I deploy XBAP without signing in full trust???

Can I deploy an XBAP without signing in full trust? ...

WPF: How do i create a background that repeats horizontally without scalling?

I would like to create a background for my window which is an image that i want repeated horizontally. So far I've tried with the ImageBrush, but this option repeats the image horizonally and vertically. Also, i don't want it to scale when user resize the window, as it makes the image look funny. any ideas? ...

how to define SystemParameters.FocusVisualStyleKey as null for the application level in WPF ?

Hi, How can i define SystemParameters.FocusVisual style to null for the whole application. that is on window level. Please help. Thanks, ...

How can I change styles of XAML file using Data Binding?

I'm binding a collection of objects to a listbox in WPF, for simplicity we'll say the object i'm binding has 3 propertys: Name, URL, IsBold. What I want to do, is have it displayed different if the IsBold is set to true, again as an example I want to set the TextBlock that Name appears in, to be bold. Is something like this even possib...

WPF - Text box that grows vertically to accomodate all text

The problem: I am not getting a textbox setting that will have a horizontally wordwrap and vertically auto grow functionality. I ...

passing selectedItem as CommandParameter from DataGrid WPF

Hi, I have a Datagrid, which i have a Hyperlink column as When user ...

Where do you put global variables in a WPF application?

In PHP web programming, I always made a singleton Output object in which I could put global information that had to be available from any line of code. So in WPF applications, I create the following class to perform the same function, e.g. the variable ReturnToPageIdCode returns the page to which another page is supposed to return to af...

WPF datagrid empty row at bottom

I bind my datagrid using //fill datagrid public DataTable GameData { get { DataSet ds = new DataSet(); FileStream fs = new FileStream(IMDB.WebPage.Class.Config.XMLPath, FileMode.Open, FileAccess.Read); StreamReader reader = new StreamReader(fs, Encoding.Default); ...

Triggering animation inside a control

I am doing some transition animation using WPF and Blend 3. I have two outer usercontrols which is what I want the transition effect to happen on. Using Blend I can make this effect. The problem is however, that I dont know how to trigger this animation inside one of those usercontrols. The storyboard is only in scope for the window hold...

WPF Datagrid refresh data

I use the following code to bind an arraylist to a datagrid //fill datagrid public DataTable configData { get { DataSet dsTemp = new DataSet(); DataTable Tables = new DataTable(); dsTemp.Tables.Add(Tables); dsTemp.Tables[0].Columns.Add("val", System.Type.GetType( ...

Using GraphViz in a WPF application

I want to use GraphViz in my WPF application without installing Graphviz. Does AT&T (or somebody else) distribute such a DLL? Thanks, Kemal ...

WPF Popup focus in data grid

Hello, I'm creating a custom UserControl to be used inside a DataGrid editing template. It looks like this: <UserControl x:Class="HR.Controls.UserPicker" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:tk="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:x="http://schemas.microsoft.com/winfx/2006/...

DataTrigger does not work as expected

I have a combobox bound to a ViewModel property called "Property". "Property" is a TypeDescriptor. When user changes value in combobox the "Property" is updated. On the UI i would like to either hide or make visible different controls: textbox, combobox, date picker etc. Problem is datatrigger is not working as expected. <Style x:Ke...

Debug Techniques: Visual Studio 2008 Process fatal crash after debug of WPF application.

I have a relatively large C#/WPF Visual Studio 2008 solution that I am trying to test and synchronize across 2 developer's computers. On my computer, I am able to build and debug (run) the project successfully without errors. On the second computer, I am able to build the solution without any errors. When I attempt to run the solution,...

Check if a packed resource exists in WPF

Is there a way to check in code if a resource exists at an Uri such as: "pack://application:,,,/MyResource.jpg" ...

wpf error validation when binding is not two-way

Hi Guys I have a read only control that displays a calculation from other information in a datagrid. The binding it has works as far as displaying updated data as cell entries are made. I do need to show visually when the calculation is above a given threshold. It is a read-only control (label, actually) though. How can I go about doin...