wpf

Application Status Bar Updates

I have a WPF line of business application. When a click a menu item I want to update the status bar with the status before the code is executed and after. For example, on clicking the button to navigate from View A to View B the status would update to "Navigating to View A...", the view would change and then the status would be updated t...

WPF tooltip displayed on top of other window?

Sometimes (I didn't figure the exact scenario), WPF tooltips are displayed on top of other windows, even when the app window is completely hidden. Clicking on the other window doesn't make it disappear. Is anyone familiar with this? Regards, Yaakov ...

Master/Detail UI Best Practices?

Hi, We have a WPF app that has a master/detail window, both being WPF Datagrids. When you select a row in the upper datagrid, the details are shown in the lower datagrid. I was wondering if there are any best practices from a UI perspective on how to deal with things such as: When the window first opens, no datarow is selected in the ...

GradientStop Color Binding on DependencyProperty

Below, I Have these Resource i want to make binding on the third GradientStop to MyColor ,MyColor is DependencyProperty but in not working if i remove binding and put static Color "#ff000000" it is Working can some body help me??? <Grid.Resources> <LinearGradientBrush x:Key="MyBrush" EndPoint="0, 1" StartPoint="0, 0"> ...

wpf - how can I create a dependency between expander inside datagrid and one of datagridrow properties

This is a general question. And may not be specific to datagrids. How can i related 2 properties or 2 different UI Elements/controls Like Each datagridRow has an Expander and i want the IsExpanded property to be dependent on datagridrow selected event . Thank you ...

WPF Pass MenuItem selected as MethodParameter to ObjectDataProvider

I am trying to pass Selected MenuItem's Text/Header string as the MethodParameter to my ObjectDataProvider. I have seen examples like these on the internet but haven't been able to adapt it to the Menu Control specifically. I am new to WPF and need some help accomplish this. Any help would be greatly appreciated. Below is the code snipp...

Console or Graphical Game Design?

I am starting to get into programming as a hobby, I had several classes in JAVA/C# at school and would like to get into game programming. Honestly, this is just for myself. I am not looking to fast track the next A+ game, just something I can work on during my downtime at work. I have already decided on C# using SharpDevelop at work and ...

Problems with 3D WPF

Hi, I started to learn some 3D in WPF today and I copied some simple examples (planes) into my XAML, and they all worked. However, when I adjusted the camera's and the plane's coordinates to meet my needs, I always see nothing. I do not know what I am doing wrong, and I also already sketched the (really simple) 3D scene to verify my da...

WPF rendering problem with HWND children in the way

I suppose it is safe to say that WPF renders its contents as a window background. There are no child windows in a traditional HWND sense. So, when one introduces something HWND based in a WPF app, like a WebBrowser, things start to go wrong way it terms of visual appearance. Consider a Window having a Grid with two children, WebBrowser ...

Which ui framework to select

In a windows/.net environment I currently use castle monorails with jquery to provide an administrative interface to an e-commerce application. This application works nicely, but has no real concept of ui composition. Up to now this has not been a problem, because the ui was targeted to a single user base, and a single domain object. Th...

Export Hierarchical RadGridView to Csv

I have a hierarchical telerik RadGridView in my WPF application. I want to export this grid to Csv format. Whenever I try to do this, only the records in the master table are displayed in the csv file. I want the hierarchical structure to be displayed in the Csv format. Can anyone help me with this? In case my query is not clear, please ...

Expanding child records above, rather than below, the parent in a TreeView or grouped XamDataGrid

I have an Infragistics XamDataGrid showing records grouped by department. When I click on an expansion indicator next to a department name, the grid shows me all records with that department as a subgrid BELOW the group name. I would like to display the subgrid ABOVE the group name. I realize this may involve some pretty serious re-temp...

Telerik WPF RibbonBar populated via DataBinding

I have and object model, a UserProfile, that contains many ServiceProfile, each containing many CommandProfile. I have bound this model with Telerik WPF OutlookBar: <telerikNavigation:RadOutlookBar ItemsSource="{Binding ServiceProfiles}" Background="{Binding Color}"> ...

WPF: Cannot set items of a read-only collection in XAML

The scenario is really simple. I have a read-only collection property of my custom control, and I want set the items of the collection in XAML. Like this: <l:CustomControl> <l:CustomControl.ControlItems> <l:CustomItem /> <l:CustomItem /> </l:CustomControl.ControlItems> </l:CustomControl> The ControlItems property has in...

Why does the Image element give me a design-time error with "add as link"ed images?

I need to display an image, which I've done without problems before, but today I decided to be tricky and use "add as link" instead. Well, now I get: The file Images/hello.png is not part of the project or its 'Build Action' property is not set to 'Resource'. Wait... its Build Action is set to Resource. I've seen a Silverlight soluti...

"Namespace Manager or XsltContext needed" when {Binding XPath=ns:Foo}

I'm binding DataTemplates to an XmlDataProvider. Since the XML data in question makes use of namespaces, I've also attached an XmlNamespaceManager to the XmlDataProvider and mapped a prefix to it. When Binding to an XPath fresh off the root of the XmlDataProvider, the namespace prefix is understood just fine and I get results. However,...

Context Menu for textbox

Hi All, What exactly I want to do is that there are 2 tables,ie, user and userprofile and both of them have almost identical fields. I shall take example of the email field. There is a textbox and the User table email field value is displayed in it. What I want to do is, have a context menu such that when the user right clicks on the...

WPF: How to properly override the methods when creating custom control

Hi, I am creating a custom control Toolbox that is derived from ItemsControl. This toolbox is supposed to be filled with icons coming from the database. The definition looks like this: public class Toolbox : ItemsControl { protected override DependencyObject GetContainerForItemOverride() { return new Toolbo...

WPF application crash after ClickOnce publish

Hi, I have a problem with ClickOnce publishing of a WPF application. If the application is built (debug or release), it is running correctly. Application published by ClickOnce crashes. I tried to change Target Platform. Sometimes this change helps to solve problems, but not every time (1 of 20 cases). I have Visual Studio 2008 and...

Distortion when resizing/scaling WPF Image

I have a program that displays an image, and the user can resize the image in the window (e.g. by rolling the mouse wheel). I scale the image using a RenderTransform, like this: <Image x:Name="CurrentImage"> <Image.RenderTransform> <TransformGroup> <TranslateTransform x:Name="Translate" X="0" Y="0"/> ...