wpf

How to add a focus to an editable ComboBox in WPF

I am using an editable ComboBox in wpf but when i try to set focus from C# code, it is only shows selection. but i want to go for edit option (cursor should display for user input). ...

WPF TextBlock text changed notify

Hey guys, I have a screen contain about 15-20 TextBlocks each one bind to a different property, at first all the TextBlocks are empty the text update come from other client . the thing I want to do is to animate flashing text for 3 seconds when ever text change. i used the below storyboard to make that happen: <Setter Property...

wpf mvvm client server application

First of all i must say i am new to wpf and mvvm. I want to develop a client-server application(clients send info to the server and the serer notifies one or more of them..consider something like yahoo messenger(some user changes his status..sends info to the server and the sever notifies his friends and changes to their UI are made) My ...

Master Detail same View binding controls

Hi everyone, say I have a List View with ItemControls. And a Details part that shows the selected Item from List View. Both are in the same xaml page. I tried everything to accomplish it, but what do I miss? <!-- // List --> <ItemsControl ItemsSource="{Binding Path=Model, ElementName=SomeListViewControl, Mode=Default}" SnapsToDevicePix...

What are the good wpf flow chart diagram control packages available?

I am searching for commercial control packages that can draw flow charts, similar to GoXaml and MindScape WPF Flow Diagram. Is there other well established commercial WPF flow chart control packages available on the market which I should consider? ...

how can i animate my wpf control to right to left.

Hi All, I want to move my lable control from right to left in my wpf application. How can i do this using wpf animation or is there any other way to do this. Please help me on this. ...

WPF RowDetailsTemplate width issue

Apologies if this is a dupe, but I can't seem to find a rational solution for what must be a fairly simple issue. <Window x:Class="FeedTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Window.Resources> ...

What is the alternative to MilRelease api from MilCore.dll?

Hi I am trying to port my application from windows Vista to Windows 7. In my WPF application I am showing a splash screen, for which I have used WIC components. I am creating some resources using IWICImagingFactory_CreateDecoderFromStream_Proxy IWICImagingFactory_CreateFormatConverter_Proxy CreateBitmapFlipRotator And then to releas...

WPF UserControl weird binding problem

Hello! Im usign a Ribbon Window and in the "content area beneath" I have a grid in which I will be displaying UserControls. To demonstrate my problem lets take a look at this simple UserControl: <ListView x:Name="lvPersonList"> <ListView.View> <GridView> <GridViewColumn Width="120" Header="Na...

Winforms App hosting a long to load WPF UserControl - UI non-responsive

Hi, I have a WinForm application which contains a WPF user control. The WPF UserControl is quite complex and requires several seconds to draw. Currently my code looks like the following: // Load event of the WinForm App private void ucMainScreen_Load(object sender, EventArgs e) { ganttChartControl = new ucGanttChart(); // WPF Con...

Accessing controls from within commands in WPF

I've got a WPF app who's menu is using the commanding capabilities. Everything is wired up just fine and when I click the buttons in the menu, the commands run. However I'm having trouble getting the button's IsEnabled status to respect the CanExecute part of my commands. One challenge is the commands need to see what you're doing in th...

How to force VS to react on a changing of an attached property in design time?

Imagine, we have a wpf class library with a window1.xaml and a resource dictionary res.xaml defined in it. I know how to use styles that defined in the res.xaml for the controls that defined into the window: <Window x:Class="...Window1"> <Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionari...

WPF Window Position

How I can set the position of the windows in the center of the screen in my XAML? Thank you. ...

WPF TextBox Focus

I am setting focus on a Textbox like this: <DockPanel Margin="0,0,0,0" LastChildFill="True" FocusManager.FocusedElement="{Binding ElementName=messengerTextToSend}"> <ListBox x:Name="messengerLabelParticipants" DockPanel.Dock="Top" Height="79" Margin="0,1,0,0" Padding="0" ...

WPF application fails with "bad image format"

Hi, I have an application build on my x64 computer. It is now build for x86 but on windows XP machines (x86) it fails with the "bad image format". On all Vista and up OS, it runs perfectly on x64 platfomrms. I tracked the problem to my icon. I removed the icon and now it runs fine, anyone got an idea of how on earth this could relate to...

WPF: ContentPresenter changing Foreground unexpectedly depending on where styles are located

Hi, I'm having an issue with the ContentPresenter behaving unexpectedly based on whether the styles are located in the Window.Resources or in a ResourceDictionary. Specifically, I'm setting the Foreground of the default TextBlock to Black, then setting the Foreground value in my default button style to White. If the styles exits on the...

WPF ComboBox Binding breaks when using ControlTemplate

I have a WPF ComboBox that has been working fine until I recently created a ControlTemplate for it to enable me to change the color of the DropDown arrow. The ComboBox still works correctly except the Bound Text value now just shows the name of the Business Object rather than the bound value. I guess that binding like Text="{Binding P...

WPF popwindows open in the upper corner of the screen

Hello, We're creating a WPF application with VS2010 and .Net 4.0. For some reason on one computer (XP sp3) all pop windows display in the upper left corner of the screen. The pop windows I'm talking about are tooltips, menu's, combo box lists etc. What would cause this? Thanks, Brad ...

Displaying a WPF Window by name

Project A contains a WPF Window (Data Entry Form) with a stack panel of commands that launch various reports. The menu is a dynamically built list from a database. What I’m attempting to do is launch the corresponding WPF window based on the CommandText associated with the menu choice. I’d like to create a single function that accept...

CompositeWPF - MVVM - How to change the focus and tabnavigation to an element in view

Using CompositeWPF I have the following setup: <Window x:Name="MainWindow"> <View x:Name="MainView"> <View x:Name="CurrentSelectedView"/> </View> </Window> MainView is a view containing a menu structure. CurrentSelectedView changes depending on the menu selection you make. For this example lets assume the CurrentSelectedView c...