I have a WPF based ActiveX control (COM interop). I am able to use it correctly by registering the control. When I tried to Reg-Free-COM (using manifest files) the control seems to be activated, but the events (such as mouse click, RequestBringIntoView etc) dont respond. Interestingly, Double click and tab key works.
I read in the this ...
Lets say I've got a DataTemplate like so
<DataTemplate x:Key="Body">
<StackPanel Orientation="Horizontal">
<ComboBox ItemsSource="{Binding Path=Person.Children}"></ComboBox>
<Button Click="Button_Click">Hello</Button>
</StackPanel>
</DataTemplate>
Which shows a list of ComboBoxes followed by a button.
Now, on clicki...
I have a radioButton group and each Button is binded to an Enum property
<RadioButton Name="rbFixedDiscount" IsChecked="{Binding Path=DiscountType, Mode=TwoWay, Converter={StaticResource EnumConverter},ConverterParameter=Fixed, UpdateSourceTrigger=PropertyChanged}" >Fixed:</RadioButton>
<RadioButton Name="rbPercentDiscount" Grid.Row="1...
Hello Good People!
I'm building my first WPF application and some of the validation techniques are getting me confused the more i google looking for a solution.
My application connects to a web service and pulls data for manipulation.After manipulation the app calls another method for example to send the manipulated data. (for example i...
Hi, I am trying to create a canvas with scroll bars.
Can anyone help me give some ideas on how to do this?
I have already tried using grid of 1 row and 1 column but due to certain constraints I want to use canvas.
Thanks in advance!
...
I want to databind a textblock to some CLR objects so I can display details about a users system.
Example:
TextBlock Grid.Column="1" Text="{Binding Path=System.Environment.OSVersion}"
How can I pull this type of thing off?
...
Lets say I have a WPF application that shows a ListBox with an ArrayList -populated with objects of arbitrary types- as a source, and this application is hosted in an assembly 'A'. By default the ListBox will display the custom object 'ToString' method return value. If a data template for that object type is found, the ListBox will use ...
I'm trying to create a form in a WPF application that will allow the user to use iPhone-like gestures to scroll through the available fields. So, I've put all my form controls inside a StackPanel inside a ScrollViewer, and the scrollbar shows up as expected when there are too many elements to be shown on the screen.
However, when I try ...
This is an application for reviewing performance tests. Simple in concept, tricky to describe. Picture:
1) Recording interactions with a WPF program so the inputs can be played back.
2) Playing the inputs back while doing a continuous screen capture.
3) Capturing wall time as well as continuous CPU percentages during playback.
4) R...
Hi, maybe I'm missing something.
I believed that WPF vector-based Drawings (like DrawingGroup, DrawingGeometry, etc.) were ready to be serialized. But they are not.
So, should I navigate all these drawing childrens, and store they points, lines, brushes (that also are not serializable) and so on, and then made my custom serialization?
...
So I currently have a ListView "List A" who's items each have an expander control which contains another ListView "List B". The problem I am having is that sometimes List B grows so big that it extends beyond the range of List A's view area. List A's scroll bars do not pick up the fact that parts of List B are not being displayed. Is the...
I am trying to change the color of a cell to Yellow if the value has been updated in the DataGrid.
My XAML:
<toolkit:DataGrid x:Name="TheGrid"
ItemsSource="{Binding}"
IsReadOnly="False"
CanUserAddRows="False"
CanUserResizeRows="False"
AutoGenerate...
I have the following bit of code that modifies an observable collection of 'screens' whenever a user leaves.
void OnUserLeft(int roomId, int userId, string username)
{
client.ClientDispatcher.Invoke(
(Action<int>)((id) =>
{
Console.WriteLine("Hello before the storm!");
...
Hi, well this is driving me crazy. We have a command like so:
<CommandBinding Command="ApplicationCommands.Paste" CanExecute="HasClipboardData" Executed="OnPasteExecuted"/>
And the code for OnPasteExecuted is this:
private void OnPasteExecuted(object sender, ExecutedRoutedEventArgs e)
{
CurrentView.Paste();
e.Handled = true;
...
We have a WPF windows application that contains a stackpanel control, that I want to be visible only for testing, but not when it is in production.
We'd like to store the visibility value of that stackpanel in the application configuration file (app.config).
What is the WPF way of achieving this?
...
I have some HTML, which i am converting to XAML using the library provided by Microsoft
string t = HtmlToXamlConverter.ConvertHtmlToXaml(mail.HtmlDataString,true);
now, from http://stackoverflow.com/questions/1449121/how-to-insert-xaml-into-richtextbox i am using the following:
private static FlowDocument SetRTF(string xamlString)
...
So I think I'm doing something pretty basic. I know why this doesn't work, but it seems like there should be a straight foward way to make it work.
code:
private string fooImageRoot;
// ....
public BitmapImage FooImage
{
get
{
URI imageURI = new URI(Path.Combine(fooImageRoot, CurrentFooTypes.FooObject.FooImageName));
retu...
Hi guys,
I have a panel, within that panel are several rectangular controls (the number of controls vaires) I want the user to be able to move the controls around within the panel so that they can arrange the controls in the way that suits them best. does anyone have any resources i could read or simple tips which would get me headed do...
Currently I'm making something in WPF that has a border that contains a grid and other controls. The problem I'm facing is that whenever I set the Border.Effect property to a drop shadow effect every control contained in the border now has a drop shadow. Is there a way to set the shadow just to the border and not every control containe...
The following is a snippet from a xaml defining a DataGrid in a Control, defining a template selector.
<DataGrid.Resources>
<selector:CurrencyColorSelector x:Key="currencyColorSelector">
<selector:CurrencyColorSelector.NegativeTemplate>
<DataTemplate>
<TextBlock Text="{Binding Balance, StringForma...