Hi,
Is there an equivalent to the System.ComponentModel.IExtenderProvider geered toward WPF ?
Do I have to go toward Dependency Properties and Attached Properties to build an equivalent, or is there already something baked in the oven waiting for me ?
Thanks,
Patrick
...
I have a bound ListBox in WPF where each item has an up / down button to move the item up or down in the list box.
However I need to know which button fired the event so I want to set the name of the button to "UpButton" + listBoxItem.Text type of thing.
Here's a simplified version of the XAML
<ListBox>
<ListBox.ItemTemplate>
...
Is there any way to get the list of asian font?
(see http://dl.getdropbox.com/u/61853/FontDialog.jpg)
or how do I know whether a font support asian text or not?
...
Hi, I've spent hours working on an application design in WPF and created a whole bunch of different styles along the way. But I noticed that I actually had just edited the styles in the SimpleStyles.xaml file and not a custom dictionary.
So, I started right clicking all controls I could find and selected "edit a copy" and created a copy...
I have a simple user control with a text box. I want to change the color of user control when the text box gets the focused
This is what I have
<UserControl x:Class="OutLookContactList.ContactSearchControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Name="ro...
My .g.cs file for a window i made is not generating.. Is there any way where i can make it generate manually?
...
Hey all!
There are a number of questiosn on StackOverflow that ALMOST hit this topic head on, but they are either for other technologies, reference obsolets information or don;t supply an answer that I can suss out. So pardon the almost duplication :)
I have a working ADO.NET Data Service, and a WPF client that hits it. Now that they a...
Hello,
Given the following code:
<Window x:Class="WpfApplication76.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:col="clr-namespace:System.Collections;assembly=mscorlib"
Title="Window1" Height="300" Width="300">
<Window.Resour...
I am working on an MVVM-based WPF app that uses the DataGrid. The grid is data-bound to an ObservableCollection (the Widget list). The user needs to be able to insert a Widget into the list below the currently-selected Widget, to delete a selected Widget, and to reorder the Widgets on the grid. I'll implement the reordering through dragg...
I keep reading about the benefits of using MVVM, especially for unit testing. So, now I need to write unit tests for my ViewModel. Does anyone have any examples of this? Should I just generate the unit tests using VS2008 and select those tests that appear important?
...
Suppose you had a text box bound to a property of a data item, and a button.
If you enter text in the text box, then click on the button with the mouse, the following events happen in this order:
The text is written from the control to the bound item
The button click event is fired
However, if you activate the button with a mnemonic ...
I have a listbox that uses a UserControl as the item template. Inside the UserControl, I have an image (an X) that when clicked, sends out event to remove the UserControl(listitem) from the listbox.
Is there a way to prevent the listbox from selecting that item when a user clicks on the image but still allows listitem selection for eve...
When I type in the combobox I automatically opens enables the dropdown list
searchComboBox.IsDropDownOpen = true;
The problem here is - the text gets highlighted and the next keystrock overwrites the previous text.
How can I disable the text highlighting when ComboBox DropDown opens up?
...
I have resources in separate assemblies to be used by multiple WPF apps and this is working fine. Now I am creating a Silverlight 3 app and am trying to use the same assembly to get the same resources. I get an error at the time of adding a reference, saying only Silverlight assemblies can be referenced.
What's the best way for me to do...
Hi I want to do the following in xaml:
I have a property FocusTarget in my control class which I want to assign an UIElement from the current class. Is this possible in XAML?
<my:BaseControl x:Class="SectionControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/200...
The subject line says it all really! I have a user control which can be bound successfully to, say, a Fullname object - i.e. it works ok.
I now need to show a list of these and, again, this works ok when the control is in a DataTemplate within ItemsControl.Template.
But, the control has a property (InEditMode) that is not a property ...
After showing an XPS file in the WPF DocumentViewer, and closing the DocumentViewer instance, the XPS file is locked and I cannot delete it. I need to release the lock on the XPS file so I can delete it, write another one with the same name, and optionally display that new XPS file in a new DocumentViewer instance. I need to do this in...
Is silverlight can be use in wpf windows application?
Some slight confusion about it, what benefits of silverlight may be taken in wpf windows application?
Is there any licensing required for silverlight developement and deployment?
...
How can use the WebBrowser control in WPF to navigate using Search engine uri and input key?
For Example if I have the following function
private void Search( Uri uri, string keyword )
{
}
How can I concatnate the Uri and keyword sucha as Uri = www.google.com and Keyword = WPF.
I want the search result of 'WPF' in window?
...
Is it possible to store style definitions in one file (XXXXX.css) and then to use this file in XAML files?
...