Hi!
I am perplexed with an issue that I am experiencing, using ScaleTransform. I have a Grid with a fixed width and height. The grid contains one child, a Rectangle. The Rectangle's Fill is a VisualBrush whose Visual binds to a canvas outside of the grid, whose dimensions are rather large. On the rectangle, I use a ScaleTransform, w...
The only forums I know of are:
- WPF Disciples; this is a great group because the um, disciples are experts but seems like 1/2 the posts are 'inside' comments between the um, disciples. By design, it is for mere mortals to observe only.
- WPF on Codeplex; useful but usually only by way of catching a new release of something. Discussi...
In a WPF application (C#), one of the elements is Win32 Window, created by overriding the HwndHost class. There are about 10 instance of this Win32 window in the WPF at any given time. One should render completely (works fine), and the other 9 should only show previews, without creating a Win32 window, just a bitmap.
I've been trying ...
I am experimenting with derived custom controls, and I created what I thought would be the simplest possible derivation:
I created a custom control project in VS 2010 and changed the base class for CustomControl1 from Control to Calendar.
Then I went into Generic.xaml and removed the default Style created for CustomControl1.
Finally ...
I'm still somewhat new to WPF (only done a few small projects with it). I'm trying to make a repeating group of controls (user can add/remove these groups), databound to a custom class. Example UI:
([UserButton1] [UserButton2]) <--each of these () is a separate group of buttons
([Cheese] [Wine] )
([Wallace] [Gromit] ...
I simple form which have some fields. So i decided to add few DataField with textboxes and labels. Labels manageable and their length can be changed and i need to place my textboxes on the same distance from left side. How can i do this thing?
...
I need someone to point me in the right direction.
What would I need to do to collapse a region of text in a textbox?
I do not need to know how to allow a user to define regions, just how to collapse a region once you have the index and length of that region. I also want to, like visual studio does, leave a visual reminder of collapsed...
Can someone describe a recommended Step by Step procedure for doing this?
EDIT:
Step1. Convert SVG to XAML... thats easy
Step2. Now what?
...
I have been using Expression Blend to copy the default templates for WPF 4.0 controls. I am writing a CodeProject article on extending WPF controls, and I would like to recommend a free tool as an alternative. What would you suggest? Thanks for your help.
...
I'm just finding my way with WPF/Datagrid/Linq and I'm trying to find out how to display data from a related table in my datagrid. For example I have 3 tables:
Customers: id, name
Products: id, name
Orders: id, customerId, productId
and I've set up the relations in the DB tables. I've added the tables as a C# DataSet which has cre...
As the title describes, I want to convert System.Windows.Controls.Textbox to IWin32Window.
I read http://stackoverflow.com/questions/315164/how-to-use-a-folderbrowserdialog-from-a-wpf-application
but it only describes how to get handle of winform, not control on it.
Thanks
...
Hi.
The next code works perfectly (it changes the font size for -only- the selected text):
MyRichTextBox.Selection.ApplyPropertyValue(RichTextBox.FontSizeProperty, 18);
But the next code changes the font for the entire document, not only the selected text:
var SelectedFont = new FontFamily("Tahoma");
MyRichTextBox.Selection.ApplyProp...
Here's the top of my usercontrol:
<UserControl x:Class="MyApp.Common.Controls.Views.SimpleView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
...
I have a configuration object that contains values to be populated to the UI. This object is serializable to an XML file so the user can save and load the current state of the GUI on the fly. The object itself is a property I've added to my code-behind for a XAML window.
If each of the UI controls in this Window are bound to a propert...
I have a pretty large resource dictionary and I was wondering if there was an easy way to clean it up by removing any unused element (style, brushes, etc)
...
Is there a way to supress WPF tool tips, other than by setting their content to null?
I am extending the Calendar control to provide date highlighting, using Charles Petzold's MSDN article as a guide. As per the article, I use a value converter to return a string if a date on in the Calendar was found in a date list. The string (number ...
I would like to create a WPF application in C# that can show visually, in a user interface friendly way, the relationships between tables from a database chosen from the application user (MS SQL Server, MS Access, Oracle, MySQL, etc.) and allow the editing of the relationships.
For example, in Microsoft Access 2007 it is possible to do...
how to control main form from another form example I want to access the table in main form from another form in wpf?
...
I am writing an WPF MVVM application using Prism. A couple days ago I asked about best practices for managing different views and didn't get a whole lot of feedback. Sense then I have come up with a system that seems to work, but I want to make sure I wont get bit down the road.
I followed the tutorials at http://development-guides.silv...
In the WPF ListBox control, I am trying to update the ListBox DataContext and select the last one item. But it fails.
public void Update_Button_Click()
{
this.MyListBox.BeginInit();
this.MyListBox.DataContext = family; // family is a collection of Person object.
this.MyListBox.EndInit();
this.MyListBox.SelectedIndex = fa...