I have a FlowDocument that varies in height due to an ItemsControl in a BlockUIContainer. In some cases, the ItemsControl extends beyond the page height. Is there a way to scale the FlowDocument to fit a page (8.5" X 11") right before printing if needed?
As of right now, the FlowDocument is named 'doc' and the method for printing I am u...
Hi,
I am using a WPF Popup, but it popups up above every single window on my desktop, even when my application is minimized. How can I make it stay only on the window it originated? The same thing happens when my window is behind other windows: the popup displays above them all.
"There must be something can be done!"
Thanks.
...
I have a listbox that displays a list of WPF controls.
My problem is that the vertical scrollbar is show but is disabled even when there are enough items that the listbox should be scrollable.
One other possibly relevant fact is that this is contained in an Integration.ElementHost.
WPF noobie, Jim
Here is the XAML for the listbox:
/...
I have a graphic made dynamically with a polyline object. It produces something interesting but I would like to keep only the last 10 coordonates and once we have reach the 10th position, every coordinate would move to the left by X pixel and the new value will be added at the end.
In the Add function of my drawing class I tried this ki...
This should have a simple solution, but I can't seem to find it.
I want to do something like the following, where I have a data binding with a string format. The field is a text field, and I'd like to display it with a suffix (but not change the underlying data).
<Label Name="field" Content="{Binding obj.field, StringFormat=\{0\} suff...
Hi,
I am working on a project built in WPF, which includes an embedded WebBrowser. The Browser that comes with WPF did not meet our needs, so we are using a WinForms WebBrowser in a WindowsFormsHost element.
This all works fine, except the application is to be used on a touch screen, and the users are having a hard time using the tiny ...
I'm looking to accept digits and the decimal point, but no sign.
I've looked at samples using the NumericUpDown control for WinForms, and this sample of a NumericUpDown custom control from Microsoft. But so far it seems like NumericUpDown (supported by WPF or not) is not going to provide the functionality that I want. The way my app i...
I'd like to create a Photosynth like experience that allows a user to navigate around a virtual environment from a collection of many pictures. For this project I'm limited to using WPF / .NET to create the application. Ideally I'd like a Photosynth component that I could drop in my application - is anything like that available?
...
Dear All
Does anybody invent a workable converter program that can convert XHTML file to FlowDocument xml file?
I need this because my XHTML document have nested tag and it make my converter xslt thrown exceptions.
any ideas?
I appericate all replys and your times.
Best regards
-Ariso
...
Hi, i have a WPF application that sits on top of all other windows. 99% of the time it works perfectly however if i dial into my computer from another location using remote desktop and then close the connection and go back to the original computer, my application is not visible. checking the running processes i can see that it is still r...
I am converting Html to Xaml(FlowDocument to be exact) and use XamlReader to parse the newly created FlowDocument. I then insert my new FlowDocument into the RichTextBox, but none of my Application level Styles get applied to the FLowDocument elements such as the Hyperlinks.
An example of one of my styles:
<Style TargetType="{x:Type...
I just converted all my settings from AppSettings to ConfigurationSections. It definitely cleaned things up, but I'm having difficulties with the preferences window. I want to use bindings in my WPF window.
Should I store each of the ConfigurationSections in a dependency property and bind to the ConfigurationSection's properties?
Sh...
Hi ,
I have a XamDataGrid(WPF Infragistics control) which is bound to an observable collection. This observable collection is getting data from a database.
The working of XamDataGrid is like this.
If no data from the database is returned (or initial opening of the window), the gridview will display 10 empty rows.
If data is loaded, ...
I am attempting to write a simple WPF learning project which creates a set of buttons inside a resizeable main window. There is to be one Button per entry in a collection, and the contents of that collection may vary during run-time. I want the buttons to fill the entire window (e.g. 1 button @ 100% width, 2 buttons @ 50% width, 3 butt...
I would love to use this, but cannot for the life of me figure out how to bind items to it.
I would like to see a simple example, something like
Shell.xaml
<Controls:AnimatedTabControl
x:Name="TestTab"
SelectedIndex="0"
VerticalAlignment="Stretch"
cal:RegionManager.RegionName="{x:Static inf:RegionNames.TestRegion}"
...
I am looking for a good, clean way to enable copying of text from a richtextbox displaying emoticons. Think of skype, where you can select a chat and it will copy the emoticon images and convert them to their textual representations (smiley image to :) etc). I am using the MVVM pattern.
...
In flash10 I can easly rotate an image around its center in 3D space.
The flash10 example I have is at http://jsc.sourceforge.net/examples/web/MatrixStuffExample/Application.htm
I want to port this example to WPF.
Is there an example how to do such 3D transformation in WPF within C# without XAML?
In silverlight 3 you'd be using Matr...
Hi,
I have a popup Gui with command binding,
<Grid x:Name="popup" Visibility="Hidden" DataContext="{Binding Path=PopupMsg}" >
<TextBlock x:Name="tbMessage" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="20,70,10,0"
Text="{Binding Path=Message}" FontSize="16"/>
...
I have a WPF UI , On click of a button I am starting threads .
I want to read few txtbox values on the UI from the thread and want to update a textbox on the UI with the status of the thread
I am trying to pass the handle of the UI to the thread and get the window back from the handle ( as we do in MFC) and updat the UI.
I am able to ...
Hi!
I have set up a small test database to get familiar with SQL CE. My code looks like this:
Test db;
public Window1()
{
InitializeComponent();
db = new Test("Data Source=test.sdf;");
if (!db.DatabaseExists())
db.CreateDatabase();
this.List.ItemsSource = db.List;
}
p...