wpf

XBAP partial trust and Microsoft Office

I need to open a MS word document on the disk from a XBAP in partial trust. Is this possibly at all? I have the word doc on the server. Just getting it on the local disk is that possibly. Would a work around be to have some HTML link or web page in the XBAP, s the user could right click and save as. ...

Correct way to create a menu with shortcuts in WPF

What is the correct/best way to create a menu with hotkey shortcuts? I simply want a File menu like Visual Studio's that has New, Open, Save, Save All, Exit, and a few other standard shortcuts. It seems that InputGestureText displays the appropriate text, but since it's called "Text" and doesn't seem to trigger events, I'm going to a...

Dynamic menu items in WPF

Is there a way to create a section on a menu for a list of menu items to be populated by something like an ObservableCollection? I'd like to replicate the Window functionality in Visual Studio, where the open document tabs are listed in a numbered list, limited to the first 10. ...

How to make WPF Listview works same as Photoshop layer

As we can see in Photoshop layer window (or other image editting tool also), it has several features: groups with folder-like header (collapse/expandable) ungroupped item (no header) sort "manually" by dragging. In case of No 1, I made groupped item with expander control. (ref) In case of No 3, Sort manually can be solved with this...

vitual keyboard not working on microsoft surface but in the simulator

Hi, I did an application for the Microsoft Surface and the virtual Keyboard that appears when I focus the SurfaceTextBox did not appear when I tested it on a real Microsoft Surface yesterday. On the simulator it works fine and without any problems. What could the problem be? ...

How to print directly, without Print Dialog in WPF?

I just want to know how I can print a flow document without showing Print Dialog in WPF. Thanks for help... ...

How to connect to the process

I have WPF Application. My Application consist of 2 exe files: Notifier.exe and MainApp.exe. Notifier is system tray popup application which check the remote server in equal intervals and get the list of current documents of user. When user click on one of the documents in list in Notification popup I open MainApp.exe and show required d...

EventSetter - error XAML in Visual Studio designer

Hi! I've done my TreeView all with XAML but now I'd like to manage an event with code-behind. The HierarchicalDataTemplate contains an Image. I need to capture the events MouseEnter / MouseLeave on the Image. I've tried in this way: <Image x:Name="imgArticolo" Source="{Binding imgArt}"> <Image.Style> <Style TargetType="{x...

Auto clip and append dots in WPF label

How can I auto clip text and append dots on a label if the current text doesn't fits to its width in WPF? e.g. ...

Binding problem in C# wpf

I have a problem whit binding in wpf i have a textbox where i can do some input, then i try to bind the textinput to a custom usercontrol. This work for the usercontrol within RowDetailsTemplate but not in the CellTemplate. For each object in the CellTemplate i get this error output: System.Windows.Data Error: 4 : Cannot find source fo...

connecting to multiple resources

I would like to know if there is a way to connect to multiple resources: Specifically I have the following problem abstact class BaseClass { ObservableCollection<BaseClass>; } class GrandSonClass:BaseClass{} class SonClass:BaseClass{} class FatherClass:BaseClass { CollectionViewSource col = new CollectionViewSource ; col.Sourc...

WPF Image Viewer sample applications

Hello all, I am new to WPF and just started learning WPF. I am looking for WPF Image viewer sample applications with brightness/Contrast, Zoom, Rotate, etc.. If you come accross such application please post the link. Thank you, Harsha T ...

ScaleTransform transforms non-linearly

I am using scale transform to allow a user to resize a control. What happens though is that when you start to move the mouse the control jumps to a new size, and then scales oddly. The further you move your mouse from the starting location the larger the increase in size becomes. I expect its the way I calculate the scale to be applie...

Cant add events for controls in WPF IronPython VS2010

I installed VS2010 and IronPython tools. When I start a VB.NET WPFProject everything works fine. But when I start a WPF IronPython project, it creates a button by default which fills all the window, and when you try to add an event to that control or another control dragged from the toolbox, you just cant do it. You double click on them,...

wpf toolkit (Feb 2010) datagrid with MVVM - style reveals name of view model on 'spare column'

Hi, I've just updated my app with the latest WPF toolkit and I've now got an issue with my styling. When I bind some data with, for example, two columns to the grid, the header in the spare area at the right shows the name of the ViewModel. So if I bind an IEnumerable with two columns the Grid Header looks like Column1, Column1, [Nam...

Windows Presentation Foundation Font Cache is stopping my Application?

My Wpf program getting stuck after running for a long period of time. When i delete the Fontcache*.dat from my system then it works fine? Any help greatly appreciated ...

WPF Image Button formatting

If I create a button with an image inside, it gets blown up to much larger size than the image. If i try to constrain the size of image, and container button, the image gets cut off: <Button Background="Transparent" Width="18" Height="18" Margin="0,0,0,0" Padding="0,0,0,0" BorderBrush="{x:Null}"> <Image Width="16" Height="16" /> <...

Wpf Volumetric effect ?

I would like to know if WPF support 3D Volumetric Effects like "spotlight (sort of smoke effect like in nightclub)" Typically, I would like to set a brush (sort of mask or filter : color + shape ) and see "light ray" from light source to any obstacle.. i'm not sure wpf can handle that, if it doesn't what's the best software to do that...

How to use App.Xaml's ResourseDictionaries with own entry point

Hello friends. I created some logic for singleInstance application and I must to use my own entry point (not App.xaml) for Application. I have some styles in App.xaml which now is not working. How can I use this ResourceDictionaries from my App.xaml for entire project in my situation? My class for manage Application Startup public c...

Does Nhibernate support Sybase?

I'm about to start on a new WPF application with a Sybase datastore. The team has experience with Nhibernate, but we are not really sure how well it supports Sybase and if there are some major pitfalls we should look out for. If yes, how about Fluent nhibernate? If not, do you know any other ORM products that we could use for Sybase i...