I am using ribbondropdownbutton from wpf toolkits ribboncontrol. Is there a way to activate the drop down menu via a keyboard shortcut like Alt-S?
<r:RibbonDropDownButton Name="searchDropDown" Command="{StaticResource SearchCommand}"
ItemsSource="{Binding Source={StaticResource SearchFilter}}"
ItemTemplate="{StaticResource Searc...
I'm building a WPF app and trying to conform to MVVM best practices. I'm using the MVVM Foundation framework and noticed the Messenger class, which I've read should be used for handling dialogs in WPF. This sounds great, but I'm totally not understanding how to use a Messenger for this purpose. Literally, all I want to do is open a modal...
Hi everybody!
I am making a WPF program that contains a TreeView.
I am having a problem right now.
I am using an attached command behavior to try to open a TreeView children tree view item.
Basically, the treeView item contains an ID and when you double click it.
It will bring another window up showing the details that are associated...
Hello,
I'm using a ListBox to maintain a list of items in a WPF application. The ListBox data source is a HashSet wrapped in an ObservableCollection. ie, I have the following code :
this.shackSet = new ObservableCollection<Shack>(new HashSet<Shack>());
this.shackListing.ItemsSource = this.shackSet;
... where shackListing is a ListB...
I am wondering if there is a way with WPF binding to set the value via binding plus tweak it.
For example I have the width of a border being set to the canvas that contains it:
Width="{Binding Width, ElementName=mainCanvas, Mode=Default}"
Because I am doing a border with rounded corners. the Canvas.Top and Canvas.Left for the border...
I am writing a WPF control that subclasses a Button. I then provide a default style in Themes\generic.xaml, that looks like this (simplified):
<Style TargetType="{x:Type WPFControls:MyButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type WPFControls:MyButton}">
<Button
x:Name="PART_B...
I'm not sure the best way to ask this question (sorry for the ambiguous question title), but essentially I'd like to set the MaxLength property on a TextBox using a value converter that is passed in a property from the data context, and the property on the passed-in property as the converter parameter. I'd like to do all this in a style,...
I have a treeview in wpf that is built using the xaml below. It is a well structured data source, and I am having a lot of trouble dragging and dropping. I have tried several methods, all to no avail. Can anyone tell me what the standard procedure is for doing this type of thing?
<TreeView x:Name="_treeView" ItemsSource="{Binding}" Gr...
I have a list which contains some controls, including an expander. Within the expander is another list, which I want to overlay the outer list. Here's a simple repo:
<Page.Resources>
<x:Array x:Key="array1" Type="sys:String">
<sys:String>item 1</sys:String>
<sys:String>item 2</sys:String>
<sys:String>item 3</sys:String>...
I'm trying to make a bit of code like this work:
Type pageType = typeof(Page1);
Uri pageUri = GetPackUriForType(pageType);
The problem is the GetPackUriForType method - I can't find anything in the .NET framework that will do this.
In the .g.cs files that are built at compile time, the URI is embedded as part of the
InitializeCompon...
Yesterday, I asked a question about how to dynamically render something in .NET: specifically, I asked about how to create a white "canvas" for "drawing"/rendering upon, what framework to use, etc. However, many of the answers suggested for me to ask a more specific answer, so right now, I have come up with a completely hypothetical (and...
I have a textblock in a grid in WPF.
I want the text to dynamically size (font) when resized. At the moment textboxes, comboboxes do this, but the the textblock stays the same. Is it possible?
...
Hi all,
I want to do a search of a list of strings, non cap sensitive.
Have tried .Contains and ==
Is there a method to do this, or would I have to convert the entire list of strings to noncaps, then search?
Cheers!
...
I have a WPF Toolkit DataGrid bound to an ObservableCollection of Car in my view model. Car has a PropertyChanged event and the setters of each of its two string properties fire the event. I also have the grid's SelectedItem property bound to a property in the view model of type Car, also called SelectedItem.
On the same window as the...
I have this:
http://img413.imageshack.us/img413/5046/whatiwant.jpg
Each list is its own WrapPanel and they are all on another WrapPanel which is in a ScrollViewer. If I don't set the height myself for the main WrapPanel it assumes I want the WrapPanel as high as it can go giving me only one column whereas I want as many columns as need...
Hi evryone,
I am pretty new to WPF and I cannot figure out how to update a specific part of my page with a single button click.
In my application design I have a menu with buttons to the left and to the right I have a series of panels. One is status bar (bottom), one Info bar(top) and inbetween I want to visualize the info that the pro...
Hi,
I have an wpf winforms appln i need to create exe for that
How to Create Setup.msi in WPF winform appln?
...
How to create a modal panel in WPF? I got a sample to create a modal dialog box but I have to create it in one window?
...
I have a datatemplate containing an image that I want to be hidden if the the value of a property in a ViewModel is true. Can anyone tell me why the the xaml below does not work?
<Image x:Name="img" Source="..\Images\List_16.png" Margin="0,0,5,0">
<Image.Style>
<Style>
<Style.Triggers>
<DataTrigger Binding="{Binding ...
Hi,
Is it possible to show specified number of rows in the listview. This is because my whole listview area looks empty, but after values are binded it is ok. So is it possible to show rows before binding.
Thanks,
...