wpf

Host WPF Application online with Databinding

Hi All, 3 months ago i developed a WPF Application offline,and now i need to host this Application online. This app gets the function to Add,Edit,Delete,Search (and so on ...) records in the database so it use a Databinding and now i need to host it online so the client can connect on the web to insert or update the data . Can you sugges...

What is the best approach for WPF Multi Threading.

Hello EveryOne, I am using WPF Standalon application and at the login time we are loading complete Chart of Account List. so it will take a time so we were use the thread like ThreadStart dataDownloadThread1 = delegate { Dispatcher.BeginInvoke(DispatcherPriority.Send, (EventHandler) ...

Problem With ALT+SHIFT chaging language after "Using global keyboard hook (WH_KEYBOARD_LL) in WPF / C#."

Sorry for my weak English What I'm trying to do is to add the feature of press shortcut key to toggle show/hide program I've been searching how to do that and find http://stackoverflow.com/questions/1639331/using-global-keyboard-hook-wh-keyboard-ll-in-wpf-c --> http://gist.github.com/471698 which help me out. (Thank You everyone in the...

BeginInvoke using a Function?

Hi all, This sub works fine: Private Sub UpdateInfo(ByVal text As String, ByVal timeStamp As DateTime) If Me.lstStatus.Dispatcher.Thread Is System.Threading.Thread.CurrentThread Then ' Do stuff with Else Me.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Send, New Action(Of String, DateTime)(...

Windows Service Versus Winforms / WPF desktop app

I’m currently writing a windows service that’s sole purpose in life is to poll a database and, based on the resulting information, update some other data. I wrote this as a windows service because it seemed an ideal platform. I don’t need any user interaction. However, while developing it, I’ve noticed one or two issues that make deve...

How do I only allow dragging in a circular path?

Is it possible to restrict the drag source to only move within the boundaries of a circular path when dragging it? ...

Does this violate the Liskov substitution principle, and if so, what do I do about it?

Use case: I'm using data templates to match a View to a ViewModel. Data templates work by inspecting the most derived type of the concrete type provided, and they don't look at what interfaces it provides, so I have to do this without interfaces. I'm simplifying the example here and leaving out NotifyPropertyChanged, etc., but in the r...

WPF: Getting of controls collection with setted Dependency Property

I have dependency property in my UserControl "Menu": internal static readonly DependencyProperty ActionProperty = DependencyProperty.RegisterAttached( "Action", typeof(LetterAction), typeof(Menu), new FrameworkPropertyMetadata(LetterAction.None, ActionChanged)); I set this property into control: <my:Ribbo...

wpf media element fast forward

Hi I am using media element to play the movie.My current fast forward and fast rewind logic is as below. MediaElement.position = MediaElement.position + TimeSpan.FromSeconds(10);(for fast forward) MediaElement.position = MediaElement.position - TimeSpan.FromSeconds(10);(for fast rewind) During fast forward when the movie is over, Medi...

Show some formatted text in WPF which the user can copy to word

I want to show some formatted text in a client WPF application which the user can select and copy to word. It needs to be easily created by the app, and the biggest formatting thing inside is a table where some cells are right-aligned. What is best to use here? A richtext control is hard to fill (I think) and html is not easy to show, ...

Logout Issues with WPF and Client Application Services

I have recently been prototyping an application using WPF and Client Application Services. I am trying to use all three features of the Client Application Services : Forms Authenticiation, Role Security, and Client Profile. I have managed to get everything working, but I feel like my solution is a kludge and want a better way. For the...

WPF Combobox Items Vanishing/Reappearing from dropdown

I have an itemtemplate for a listbox, that is bounds to objects in a list. The properties of each of the objects in this list is bool, List< string >, string, string. Bool is mapped to the checkbox, the List< string > feeds the dropdown on each of the rows, and the remaining two strings are mapped to each of the textboxes. All fine - ...

Simulating perspective by rotating an image filled rectangle using 2D transforms

Consider a WPF Rectangle filled with some ImageBrush. Now consider an arbitrary axis through rectangle center. I want to apply a 3D-like rotation around the axis employing only 2D transformations. Basically, I want to achieve perspective with "closer" edge of rectangle to appear larger than the "far" edge which should be visually smaller...

Why Do my WPF TreeView Items Look Like This?

In learning WPF, I (perhaps unwisely) chose to display my XML data (wisely parsed with LINQ) in a TreeView. But when I load it into a TreeView, it looks like this: The XAML is as follows: <TreeView Name="StoryTree"> <TreeViewItem Name="TreeGeneral" Header="General"/> <TreeViewItem Name="TreeCharacters" Header="Characters" /> ...

XAML datasource

HI:is any difference on these statements (performance or any other issues) are they both allright? having a datagrid datasource the PhoneNumbers is a collection DataSource="datasource.PhoneNumbers" or DataSource="{Binding Path=PhoneNumbers}" thanks for your help ...

WPF Page Navigation

Sorry if this is a really dumb question!!! I have two WPF Windows (page1 and page2). there is a button on page1 which has an onclick event to do something. i then want it to open page2 . There will also be a close button on page2 to close that window and reopen page1. The only way i could see to do it was by opening a new window h...

RibbonComboBox selected gallery item reverts to old value on mouse leave

Hello, i have replaced WPF ribbons to the newest library, the combobox selection changed triggers reload of datagrid. I have problem with the RibbonComboBox. If i leave with mousecursor out of the selected item, the selected item is reverted to the old item. if i keep cursor on the selected item until the datagrid reload is finished, ...

Best Approch for Generic Authentication Framework

Hi We have got multiple application that uses different way of authetication to authenticate user. Almost all application are developed in WPF but there are few application which are developed in ASP.NET and Silverlight. Our ultimate goal is that every application that we had developed already and those we develop in future will use a ...

ContextMenu for DataGrid

Hi, I have the following context menu for rows of the Data Grid. <ContextMenu x:Key="cm_rowMenu"> <!--ContextMenu For Row--> <MenuItem Header="Edit Info." Click="mnuEditInfo_Click" /> <MenuItem Header="Delete" Click="mnuDelete...

Gui Automation, Install/Uninstall software automatically

Hi, Can anyone please tell me about any open source software which will install and uninstall software automatically without taking input from user for installation steps. Any related material will be highly appreciated. ...