Hi,
We're currently working out how to implement MVVM and I've got to the point where I've got the MVVM Light Toolkit set up in blend and can specify dummy data to be supplied if running in Blend. All good.
I've created a dummy list of data. The list contains 6 instances of a very simple class called DummyItem which has Age and Name p...
I've created a custom control, and would like to create an attribute (available in Blend's design-time) which would offer a dropdown or combobox. The designer would then select one of the available options. Very much like the "Cursor" combo in the "Common Properties" tab, except that I want full control over what items go in the combo....
Pulling my hair out. I've got a table 'Belts' with columns 'BeltID' and 'BeltColor'. I've got a Linq to SQL generated class, and am trying to populate a combobox and it's only partially working. Here's what I've got so far:
private void Window_Loaded(object sender, RoutedEventArgs e)
{
using (DojoDataClassesDataContext conn = new Do...
Hi,
Due to OpenGL airspace issues I have several windows that are owned by the main window but look and act like controls. I also have some data readout/sort windows that show real-time data and need to be normal floating windows, also owned by the main window so that they remain floating above the main window even while operations ar...
I'm writing a form in XAML that has multiple buttons with content of different sizes (ie "OK" and "Save As...") Ideally, I'd like them all to be the smallest size possible to hold the largest content. In the example above, both buttons would be the width necessary to hold "Save As..." plus the margins and padding.
If they were Grid cell...
I'm trying to replicate the nowadays so fashionable "reflex" effect on a controltemplate for buttons I'm creating.
The basic idea is to create a rectangle with a gradient fill from white to transparent and then clip some of that semi-transparent rectangle with a rectanglegeometry.
The problem is that I don't know how to define a relati...
I am using the WPFToolkit to produce a ColumnSeries chart. I set the X-axis as a DateTimeAxes and I bind its IntervalType property with a value in my ViewModel class, but it doesn't work.
I read about an identical issue here. Do you know if this problem was solved?
Thank you.
...
I have been searching to hours for something very simple: bind a WPF datagrid to a datatable in order to see the columns at design-time. I can’t get any of the examples to work for me.
Here is the C# code to populate the datatable InfoWork inside the dataset info:
info = new Info();
InfoTableAdapters.InfoWorkTableAdapter adapter = new ...
I'm needing to display a list of numbers from a collection in an Items Control. So the items are: "1", "2", "3".
When they are rendered, I need them separated by a comma (or something similar). So the above 3 items would look like this: "1, 2, 3".
How can I add a separator to the individual items, without having one tacked on the en...
Hi!
I have a gridview with some columns. One of these columns is checkbox type. Then I have two buttons in my UI, one for check all and another for uncheck all. I would like to check all checkboxes in the column when I press the a button and uncheck all checkboxes when I press the another one. How can I do this?
Some snippet code:
...
I have a custom Hyperlink control. When this control is copied and pasted the pasted content has been converted to a plain old WPF Hyperlink, losing my custom control.
Is there a way to specify custom assemblies to be used when the content is serialized to the clipboard during a Copy operation?
...
Say we've got a class like
public class Doer
{
public int Timeout {get;set;}
public string DoIt(string input)
{
string toReturn;
// Do something that involves a Timeout
return toReturn;
}
}
Is there a tool that would create a Form or Control for prototyping this class? The GUI might have a Num...
Hi everyone!
I was wondering, Most wpf list view the header/columns are movable. Is it possible so that we can make them non-draggable or movable at all?
does anyone know what this property is called by any chance?
Thanks in advance!
...
I am developing an application in WPF / .Net 3.5 that will be available for download on the internet. I am - to the best of my ability - writing bug free code, and using exceptions only where necessary. However my experience with software development has shown that users always manage to do something strange which causes an exception to ...
What is the maximum number of items you can put in a WPF ComboBox before it starts suffering serious performance degration? (Assume bare-bones XP business-class computer.)
What is the maximum number of items you can put in a WPF ComboBox before a typical user will start complaining?
...
Hi!
I want to display and edit some objects in a WPF data grid and I'm looking for a good way to do so. All objects I want to display have the same fields, but every execution the fields of my objects can differ. Here is a piece of the interface to illustrate what I mean:
public interface IMyObject
{
IEnumerable<string> GetFieldNam...
I have a WPF ListBox that I would like to
Enable multiple selection in the ListBox, and
Databind the ListBox to my view model.
These two requirements appear to be incompatible. My view model has an ObservableCollection<T> property to bind to this ListBox; I set up a binding in XAML from the property to the ListBox.SelectedItems prop...
Hello,
I have several UserControls that have some of the same controls doing the same job.
Is it possible to extract those controls into a base class?
When I have tried it, I get an error that the definition in the generated .g.cs file will hide the parent def.
What I would like to do:
public class ctlBase : UserControl
{
internal C...
I'd like to play around with customizing the visual studio 2010 rc start page recent items. For what I have in mind I'd need to customize the datasource / databinding but I can't find where the information is coming from.
<ScrollViewer Grid.Row="1" HorizontalAlignment="Stretch"
Style="{DynamicResource StartPage.ScrollViewerStyle}"...
I have a TabControl that is bound to a view model
<TabControl
ItemsSource="{Binding Path=ViewModelCollection}" >
<TabControl.ItemContainerStyle>
<Style
TargetType="TabItem"
BasedOn="{StaticResource {x:Type TabItem}}">
<Setter
...