Good afternoon,
does anyone know of a good xhtml to xaml converter library / functionality? All the ones I've found are far from complete, are missing elements of the base xhtml namespace (e.g. tables etc) and what I need is to display valid xhtml in an wpf flowdocument.
Any ideas / suggestions?
Cheers & thanks
-Jörg
...
I want to relocate some controls from one part in the visual tree to another.
can I do this?
and direction or hint on how to?
...
I have a WPF TabControl that has a couple of buttons in the TabItem header.
I want the selected tab to change when a headered button is clicked. Here
is a code snippet:
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<TabControl>
...
so I have attached a context menu (right-click menu) to a wpf listview.
unfortunately, when you right-click it brings up both the menu and selects whatever item you are over. Is there a way to shut off this right-click select behavior while still allowing the context menu?
...
Is there a super quick way to bind to the inverse of a boolean property? Something like this:
<TextBox Text="Some Text" IsEnabled="{Binding !EnableTextBox}" />
I know I can use a DataTrigger, but I was hoping for a nice shorthand.
...
For some reason I am not able to use the TextFlow element in WPF. Is this element/control even available?
I am using VS 2008.
...
I'm looking to have the foreground of the text of a TabItem change whenever the tab becomes active. I was using the following, which was working fine until I changed the type of content being displayed in the tab:
<TabControl Style="{DynamicResource SidebarTabControl}">
<TabItem Header="TabItem" Style="{DynamicResource SidebarTab}" ...
I am using a DataGrid in Expression Blend but I just need to show only the registries and hide the ColumnHeader.
How do I do that?
...
I'm looking for opinion on using Canvas vs. Grid panels in WPF.
I need to make classic input forms that have basically grid layouts, some may have small datagrids inside, groupboxes, but all aligned in grid layout. I’m struggling whether to use Grid or Canvas panel for all my forms. Grid is giving me good structure; I can maintain alignm...
I have been trying to find some resource on this topic for a while now but to no avail so what is the best way to construct a WPF UI for LOB (Line of Business) applications? specifically Customers, Orders, Products, etc.. I have seen many single window WPF application examples that don't need to be anything else but a single window and i...
I'm using multiple ResourceDictionarys to enable skinning in my WPF application. I have a button that's using WPF Toolkit's VisualStateManager to animate state changes. Great!
Now, when the button is pressed, the style changes by loading a different ResourceDictionary. Now the problem comes when the button's Storyboard for transitioning...
I'm using a WPF InkCanvas control to capture signatures in a Tablet PC application.
One of my requirements is to validate whether or not the application has really been "signed". Right now I'm doing this by checking the Strokes collection of the InkCanvas - if there are 0 strokes, then I know the user has not "signed".
However, if th...
I'm looking for a tutorial that explains creating custom usercontrols in WPF.
I want to have one control that combines a textblock, a textbox, and a button that launches a common fileopen dialog. I have the layout done and everything wired up. It's works but it's three independent controls. Hopefully there is a tutorial out there that e...
I have to make an application that runs on both Windows (XP/Vista) and Windows Mobile. The graphics interface must be scalable (for different resolutions) and the controls must be custom (like the ones usually found on music apps).
SVG was my instant choice but the lack of support on Windows Mobile pretty much kill my time budget. I've t...
The thing is that I have a GridViewColumn (In WPF) and I want to do my own implementation of text wrapping (which it doesn't have it itself, even though when you double click between columns they do wrap the text...). Anyway, all the columns have a template with a label in it, so I need to get all those rows, get the labels, measure whic...
In WPF, I know I can use ListView.ScrollIntoView to scroll a particular item into view, but it will always do the least amount of scrolling so that the item is shown.
How can I make it scroll so that the item I want to show is scrolled to the top of the ListView?
I've thought about calling ScrollIntoView twice, once for the item I wan...
Context:
There's an application where you draw things on canvas. Where user clicks there's a black dot, for example. But handling that events raised by canvas in event handlers in main window code is just ugly for me. So I wrote a class which methods mirror canvas mouse events and I call those methods inside event handler.
public part...
To begin i read all resources from xml in my MergedDictionaries
and now I like "select" any Resources as Current.Resources
PSEUDOCODE:
Application.Current.Resources = Resources.From.MergedDictionaries.Selected(themeId.Path);
Any Idea?
...
I have a reusable usercontrol that uses a few commands and corresponding keyboard gestures,
(specifically Escape and Ctrl+1...Ctrl+9)
Now as I use this usercontrol in multiple locations I'd like to define the input gestures in the usercontrol, which works fine as long as the focus is within the usercontrol. However, I'd need it to work ...
How can the handler method of a WPF menu item determine which item in a ListView was clicked on?
Edit:
The menu is a context menu which has been set for the ListView. The problem is to find which ListView item has been clicked on when the context menu item is selected.
...