What does "{x:Static}" mean in XAML?
What does "{x:Static}" mean in XAML? Code sample: <SolidColorBrush Color="{x:Static SystemColors.ControlColor}" /> ...
What does "{x:Static}" mean in XAML? Code sample: <SolidColorBrush Color="{x:Static SystemColors.ControlColor}" /> ...
I'm trying to implement behaviour similar to the Firefox 3 AwesomeBar in WPF. I've got a ComboBox to use a DataTemplate that makes the dropdown look like the dropdown for the AwesomeBar, but I'm not sure how to get the right behaviour. What I want to happen is for the user to type their search into the TextBox bit of the ComboBox and th...
Even a 3rd party one will do. Thanks ...
I have a three nested classes, Show, Season and Episode, where a show has seasons, and seasons has episodes. I want to bind two listboxes so that the first lists seasons, and the second lists episodes in that season. How can I do this? I prefer to set this up in code, not xaml, but if you know how to do it with xaml, it's better than ...
Now that I can make useful user controls in WPF (thanks to this stackoverflow answer) I want to be able to put numerous user controls on one page in two columns and enable the user to be able to move them around according to preference, dragging the ones they use the most to the top, etc. Can anyone point me to code, tutorials, etc. whi...
Hi, Does anybody knows, if there is a way to use a property that is animated as source for a binding? As far as I found out, is that an animation doesn't "really" set the value on the property, and therefore doesn't fire the changed events, which is needed to trigger the binding. tia Martin ...
I'm starting to understand XAML data binding and using the DataTemplate and it's pretty nice. What is the best way to take the next step and put logic into the code below, e.g. look to see if there is anything in "Address2" and if so display it, or format foreign addresses differently, etc.? <Window.Resources> <DataTemplate x:Key...
I'm putting together a WPF application which will eventually use WCF web services as its data source. During the prototyping phase, I'm using LINQ to SQL on an SQL 2008 database and have come to appreciate the ease with which I can do "Add New Item | LINQ to SQL Classes" and generate a model class for a table, then speak to it with LIN...
I have a 2 monitors and a WinForm app that launches a WPF window. I want to get the screen that the WinForm is on, and show the WPF window on the same screen. How can I do this? ...
I'm using a WrapPanel to display variable height items in columns. The wrappanel has a constrained size. Is there an way to determine when the WrapPanel is 'full'? I will then page to another panel with an animation. I've looked at the ArrangeOverride of the items that are the panels children, but they always seem to be getting all...
I have a series of usercontrols that are added and removed from a canvas in code behind. I need to insure that certain ones are forward of others. How do you set, what used to be the ZOrder in VB6, the order of a user control once it is added to a canvas? ...
I have a WPF form I'm building - I want to specify a background image for the window, which is easy enough. However, I also want to specify a color so that the area of the form not covered by the image is white. I've seen some examples that show using two different background brushes, but when I try that VS.NET tells me I can't have mu...
I'm creating a UserControl consisting of a TextBox and a ListView. I want keyboard focus to remain with the TextBox as long as the control has keyboard focus (selection changes in the ListView shouldn't remove keyboard focus from the TextBox). I've tried catching GotKeyboardFocus in the ListView and passing keyboard focus back to the Te...
Well how do i use a template on the TextBox and the PasswordBox atm i have 2 templates defined but thay contain exactly the same content.... ...
I have a WPF window (window1) whose owner is window2. If a user clicks on window2, or the desktop, or anything else to make window1 not on top of the z-order, I want to set window1's visibility to hidden. I.e., the window either needs to be on top, or hidden. Is this possible? ...
I used data binding to bind a CLR object to a datagrid (using expression blend). I was prompted to autogenerate a template to hold the data. This created a StackPanel and three TextBlocks. I go to edit the stack panel and attempt to change the various colors. The properties window accepts the change, but the panel in the data grid r...
I've got a windows forms map in a WindowsFormsHost, and I need it to resize with the window. I'm just not sure what event to listen to, to do this. I need the map to only resize once the mouse is up, otherwise it lags out, and tries drawing itself a million times when you resize a window really slowly. ...
I've been trying to use the WPF toolkit in a WPF application that I'm deploying internally at my company, but the toolkit needs .Net 3.5 sp1. The only difference between sp0 and sp1 for the toolkit is the MultiSelector class that the datagrid uses. My question is, does anybody know of a workaround for this so sp1 isn't required? Is ther...
I've got a WPF tab control that contain several duplicate controls as Tab Page content <TabControl ItemsSource="{Binding}" Name="tabControl"> <TabControl.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Name}"/> </DataTemplate> </TabControl.ItemTemplate> <TabControl.ContentTemplate> ...
I have a simple 3D cube that I can rotate using the following code: void mui3D_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { RotateTransform3D rotation = new RotateTransform3D(new AxisAngleRotation3D(new Vector3D(0, 1, 0), 0), mui.Model.Bounds.Location); DoubleAnimation rotateAnim = ne...