In my application I am loading all my shared resources into the app.xaml. The problem is that the vs2008 designer can't see styles in a different assembly so I lose designer support unless I use dynamic resources which comes with a whole other set of problems.
My question is can I directly load the same resources directly onto a page wi...
I’m working on WPF based application. Environment is VS2008 SP1 with .NET 3.5 SP 1.
In our development we are using MVVM pattern widely.
I.e. application developers write Models and ViewModels (C#), then UI developers will write Views using WPF Binding (XAML). Application developers also write unit tests on top of ViewModels.
We are u...
I am new to WPF, so I thought this was simple. I have a form with a listbox and a button. In the click handler for the button I do something iteratively that generates strings, which I want to put in the listbox as I get them. The xaml for the list box is like
<ListBox Height="87" Margin="12,0,12,10" Name="lbxProgress" VerticalAlignmen...
Hello,
I'm writing a GUI application where I need to enable editing properties of arbitrary objects (their types are only known at run-time).
I've decided to use the PropertyGrid control to enable this functionality.
I created the following class:
[TypeConverter(typeof(ExpandableObjectConverter))]
[DefaultPropertyAttribute("Value")]
...
Hi,
OK So I have a combo box which selects an administrator from a list of administrators:
<ComboBox x:Name="adminCombo"
ItemsSource="{Binding AdminsList}"
DisplayMemberPath="Name"
SelectedValue="{Binding Administrator}"
SelectedValuePath="Name"/>
and below this I have a WPF Toolkit DataGrid. E...
I have a template for a ListBox. In the ListBox I have a template on the ListBoxItems. I want to disable some of these items (I am still working on what I want to use to make the "event" fire, so I have just put in IsSelected for now)
My issue is that I need to get at some of the data for the ListBoxItem to know if it should be disabl...
I have the following test case xaml.
<Window.Resources>
<XmlDataProvider x:Key="testDS1">
<x:XData>
<root xmlns="">
<item>1</item>
<item>1</item>
</root>
</x:XData>
</XmlDataProvider>
</Window.Resources>
<StackPanel>
<ListBox ItemsSource="{Binding Source...
I'm trying to change the FontFamily of a ListBox to a fixed-width font, but I don't know what's available. Here's what I have:
<ListBox Margin="12,55,12,12" Name="listBox1" FontFamily="Arial" />
When I try something like FontFamily="Courier", it won't show up as Courier, which leads me to believe that font may not be available. I've...
Hi,
I'd like to animate items as they come into and are removed from a listbox. Essentially, I want the newly added item to animate to its position at the top of the list (from some predetermined coordinate), and have the items in the list animate down a "step" to make room.
I started trying to solve this problem by inheriting form ...
I have a main window which contains a grid, during the window loaded event, I will dynamically create an instance of a user control and add it to grid. In order to let the user control to adapt itself when the main window is resized, I want to bind the user control's width and height to the grid's ActualWidth and ActualHeight.
The firs...
I've checked the Expression Blend + Sketchflow forum, and also looked through the Gallery, but haven't found an expander control that's in the SketchFlow style. Can anyone point me to one, or offer me advice on how I can roll my own Sketchflow Expander control?
...
Hi,
I have a quesion regarding tracking changes of database records/entityspace objects.
Iam using webservices and passing enityspace objects to WPF client through webmethod. These objects will be assigned to a custom class in WPF application. Custom class is tied to UI of WPF. I want to track changes of Entityspace objects when saving...
I'm looking for a form validation framework that works best in both Windows (WPF using MVP) and Web (ASP.NET MVC).
I'm currently looking at three choices:
Enterprise Library Validation Application Block
http://www.codeplex.com/FluentValidation
http://validationframework.codeplex.com
I like Fluent Validation as it looks a lot cleaner...
Hi I am having checkBox defined in DataTemplate which is defined in resource.Xaml file.I am using this DataTemplate in my user control. I am adding this dataTemplate dynamically to GridView. Now I want to fire checked event of checkBox. How will I attache the event? my Xaml is like this
<ListView>
<ListView.View>
<GridView><...
Hi all,
I have a popup containing a ListView. The ListView contains customer names. The popup is openen when a search bar is clicked. The user can enter text in the search bar (TextBox) and the Listview is filterd based on the input.
I want to close the popup whenever it loses focus. However, the default "auto close" behaviour StaysOp...
Hello,
i have a ListView which contains objects bound from an collection. The representation of the objects i have set with data-template. Now i want to do the following.
There are two TextBlocks in my DataTemplate:
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Name}"></TextBlock>
<TextBlock Text="{Binding Path...
I have a simple window with a simple composite control embedded within it.
(Main Window)
<Window x:Class="TabOrder.Window1"
xmlns:local="clr-namespace:TabOrder"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<L...
I'm looking into doing a WPF application. I want as much as possible of the business logic to be exposed as WCF services.
Has anyone got any experience of doing this / useful links etc
...
Hi,
Please find my code below. I tried this but didn't succeed. Any help?
Path e1 = new Path();
Path e2 = new Path();
e1.Data = new EllipseGeometry(new Rect(new Size(100, 100)));
e1.RenderTransform = new TranslateTransform(100, 100);
e1.Fill = Brushes.Transparent;
e1.Stroke = Brushes.Black;
e2.Data = new EllipseGeometry(new Rect(new ...
hi, I'm trying to get you into the picture firstly, I'm trying to implement a gesture in WPF4 VS2010, it is like you move your finger until it crosses a TouchPoint that you already passed by with the SAME finger , so my thought is to make a list and check for every new TouchPoint if it exists , if yes then you have done your gesture , if...