I'm wanting to export a 3D scene from a Viewport3D to a bitmap.
The obvious way to do this would be to use RenderTargetBitmap -- however when I this the quality of the exported bitmap is significantly lower than the on-screen image. Looking around on the internet, it seems that RenderTargetBitmap doesn't take advantage of hardware rende...
I have a sub control embedded inside my main control, it allows the user to edit an address. Because this is reused all over the place (sometimes in multiple places on one control) I bind it like so
<Controls:EditAddressUserControl DataContext="{Binding Path=HomeAddress}"/>
<Controls:EditAddressUserControl DataContext="{Binding Path=Wo...
I am going crazy here! What am I missing and why it is not styling anything:
<Style x:Key="textBoxStyle" TargetType="{x:Type TextBox}">
<Style.Triggers>
<Trigger Property="IsFocused" Value="True">
<Setter Property="Background" Value="Red" />
</Trigger>
...
Hello
I need to create a desktop lob interface presentation where a user has crud capabilities on items in a list, which is why I am thinking of using the wpf datagrid control.
Does anyone know of a widely available program that has an inspiring interface? I am just drawing a blank right now - I can't even think of an MS office list ba...
Hi,
I am trying to make the column header of my WPF Datagrid to be transparent.
I am able to set it to a color without problem, but I can't have it transparent. Here is what I tried:
<Style x:Key="DatagridColumnHeaderStyle" TargetType="{x:Type tk:DataGridColumnHeader}">
<Setter Property="Background" Value="Transparent" />
<Sette...
I have an expander control with it's IsExpanded property bound to a bool in the mvvm model. The binding works fine until you dont touch the expander. Once you click the arrow in the expander to expand, the binding stops working. Setting the bool ShowPreview to false in the model doesn't collapse the expander.
<Expander Name="pExpander"...
I have a ListView (with a GridView) bound to a collection of items. This is pretty standard stuff. The collection is an ObservableCollection.
Now let's say I change some property of an item in the collection. How do I tell the ListView about this? The list is tens of thousands of lines long, so I need to be able to tell it not to reload...
I have heard a lot about two-way bindings in WPF, but I'm not entirely clear on how to accomplish it or what it actually means.
I have a ListView with a bunch of items in it. When the user selects a new item, a TextBox in the application will change its text to display some property of the selected item.
But when the user changes the t...
How can I setup events that happen after a certain period of time. Like saving changes every 30 seconds?
...
How can I take advantage of the Windows 7 features like Aero Glass, Jump Lists, ect. And minor changes like the icon on the jump list, the color of the jump list. Any good articles?
...
Hi,
I have a WPF page used as an input form which contains a number of controls on one side, and a flow document reader on the other.
I want to set the content of this document reader to a specific part of a flow document which is loaded when the form is loaded, (via a loaded event).
I have found an article explaining how to do this,...
Hi,
I want to create a Resource Library of Drawing Brushes.
The Idea is create a base drawing brush and change the color throw a dependency propertie and use the new drawing brush in xaml. (i don´t create a new drawing. the drawing is same but the colors changed)
I can do throw this:
DrawingBrush drwBrush = Mystyles[myDrawing] as Draw...
I'm trying to save and restore the position of the document within a FlowDocumentReader to create a bookmark feature. There doesn't appear to be any seeking or search feature build in that is publicly accessible, leaving me with the following options:
Use FlowDocumentPageViewer instead,
saving the page each time the window
is resized a...
This is very similar to this question I asked earlier. I am hoping to be clearer and get a different answser.
I have a Data Object (called MockUI). It has a data template (in app.xaml) like this:
<DataTemplate DataType="{x:Type local:MockWI}">
<Button Content="{Binding Name}"/>
</DataTemplate>
In my code I want create a UI obje...
Hi Experts,
I have a RoutedUICommand called "Comment Selection". I need to add an input gesture for this command as it is in VIsual Studio, ie. (Ctrl+K, Ctrl+C).
How can I do this? Plz help me. (Keep VS functionality in mind).
Regards, Jawahar
...
Here is a simplification of the problem
I want a Button with an extra DependancyProperty that I can bind to.
The value of this property will control which image is selcted on the button.
Question 2 is do I create a UserControl and draw the button on. If so how do I can use triggers to manage the image BUT I do not know how to do the T...
I'm kinda lost and need some help.
In the past i have used php and mysql to make websites that are data driven with database. Now i want to use my C# skills to make a site. This new site will be connected to database and have alot of data.
Should i use Visual Studio to do a ASP.NET site ?
What is this WPF Browser Application thing, doe...
I often use textboxes in my wpf-projects which are bound to datetime-propertys. I want to format the dates into the german format dd.MM.yyyy.
Currently I do this with a self-written converter, which I can give the needed dateformat.
For example like this:
<TextBox Name="Date" Text="{Binding RelativeSource={RelativeSource Mode=FindAnces...
In my UI code I have a lot classes with the same basic skeleton:
derives from INotifyPropertyChanged
contains the following code:
void NotifyPropertyChanged(String info)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(info));
}
}
public event PropertyChangedEventHandler Propert...
I would like to recreate a conical/circular gradient in WPF. I've looked into inheriting System.Windows.Media.GradientBrush - which can be inherited from - but uses a lot of internal plumbing to get the job done (inherited from System.Windows.Media.Brush)
Any ideas on how to achieve this would be appreciated (preferrably without resorti...