Hello,
I have a Path in WPF and I'd like to get the single points of this path. Is this somehow possible?
(I used a WPF built-in PathSegment and I'd like to get the points that WPF calculated)
Thanks for any hint!
...
Hi,
I created a WPF application in Visual Studio 2010 Express (C#) and added the text below to the Application.Resources in App.xaml. I see the style applied to the window in the designer, but when I run the application, the window background is white.
Running in Windows XP on BootCamp on a MacBook Pro if that is a factor.
Thanks in...
Hi,
I've taken some sample code from http://sweux.com/blogs/smoura/index.php/wpf/2009/06/15/wpf-toolkit-datagrid-part-iv-templatecolumns-and-row-grouping/ that provides grouping of data in a WPF DataGrid. I'm modifying the example to use a DataTable instead of a Collection of entities.
My problem is in translating a binding declaration...
I'm hearing this alot, that you can develop an app in WPF and run it as a desktop app or in a browser.
Is this really true?
I've install visual studio 2010 and I see 2 project templates : WPF Windows Application and WPF Browser Application (XBAP).
Currently reading a book on WPF, it talks about Page-Base app, which can be use for nav...
I'm working on a WPF MVVM application and I've got a TextBox on my view that is bound to a DateTime property on the ViewModel. Seems simple enough, but when I clear the text in the TextBox, the property never changes. In fact, it never even fires until I begin typing "4/1..." and then it fires. What can I do to fix this? Obviously I ...
Hi,
I'm using a DataGrid to display 2 possible types of DataRow in a DataTable. One type has the column Parent = NULL and the other has Parent set to another DataRow in the same DataTable. The list of column in the DataTable is always different, so explicitly describing each column is not possible.
I want to display a UserControl in ev...
Hi,
When the mouse is over a menu item (first level) it displays a 3D button effect. How can this be removed?
Thanks.
EDIT:
Tried
<Style TargetType="MenuItem">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="Transparent">
<Setter Property="Bor...
In my View I got a ListView bound to a CollectionView in my ViewModel, for example like this:
<ListView ItemsSource="{Binding MyCollection}" IsSynchronizedWithCurrentItem="true">
<ListView.View>
<GridView>
<GridViewColumn Header="Title" DisplayMemberBinding="{Binding Path=Title}"/>
<GridViewColumn Header="Name" Display...
Hi I want to create a audio player class but having some problems like when audio is finished it is not repeating. While playing audio some UI controls are not working.
...
<Style TargetType="{x:Type TextBox}">
<Setter Property="Margin" Value="1"></Setter>
<Setter Property="Background" Value="{x:Null}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="ToolTip">
<Setter.Value>
<DockPanel Background="Gray">
<TextBlock Text="{Binding Source={...
I'm still learning the WPF ropes, so if the following question is trivial or my approach wrong-headed, please do speak up... I'm trying to reduce boilerplate and it sounds like styles are a common way to do so. In particular:
I've got a bunch of fairly mundane data-entry fields. The controls for these fields have various properties I...
Hi !
I have a control with this validation
<MyPicker.SelectedItem>
<Binding Path="Person.Value" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True">
<Binding.ValidationRules>
<rules:MyValidationRule ValidationType="notnull"/>
</Binding.ValidationRules>
</Binding>
</MyPicker.SelectedItem>
This i...
how can i insert a TextBlock control in a Hyperlink in c# coding. similar to
<TextBlock> <Hyperlink>a</Hyperlink></textblock in C#. i'm unable to find content property in Hyperlink. Thanks in advance.
...
Is there a DataGrid component that behaves the same in WPF and Silverlight? There are some small differences in DataGrids from MS (WPF and Silverlight Toolkits). For example, while WPF version has CanUserAddRows property, Silverlight version does not.
...
I have a combobox databound to the available system colors. When the user selects a color the following code is fired:
private void cboFontColour_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
Color colour = (Color)(cboFontColour.SelectedItem);
}
This throws a Casting Exception with the following message: "Specifie...
I have a WPF aplication that is doing some serious work (doing some calcualtions) when a button is hit. I wanted to add a 'busy animation'. However, the aplication is so busy doing its work that the animation is stopped until the calcuations are finished. Any ideas??
...
Hi,
I want to make a window interface just like "Devices and Printers" window in Windows 7 in which items can be suppressed and drilled down. Any ideas how can i build such a view and which controls from wpf can be used.
Any ideas are greatly appreciated !
...
I have a WPF Window loaded. But on event of sizeChanged, it fires twice. May I know why?
Also, I have tried adding 'e.handled = true'
...
I have a custom implementation of WPF's ICommand, that executes its bindings in a BackgroundWorker, so that the UI stays responsive.
I would like to display a custom effect while the bindings are being executed. For now, the effect is simplified to setting command source's IsEnabled property to False. Later, our designer will come up wi...
Hi,
Simple question:
1) I click and hold the mouse on a ListBoxItem in a ListBox.
2) Now I drag the mouse cursor down over the next ListBoxItem in the list
It now selects this new item. I would like to disable this. So the user has to click an item to select it. Not just drag over it.
I have Single selection turned on.
Any ideas are...