Actually the problem arises only when the second string terminates with a period or parenthesis. It might involve other characters, but none of my sample data uses other punctuation.
Here's the background. The app consists of two vertical scroll viewers. On the right are search criteria, on the left a variety of detail lists and fields....
I have written a Well control, similar to the Visual Studio editor tabs so that a user can have multiple documents open and can see one or more at a time. It is derived from a UserControl and exposes an ObservableCollection of OpenDocuments that binds to the ViewModel. If I were to implement this as a simple TabControl, then this would b...
I have a DockPanel set up in the DataTemplate of an ItemsControl as below:
<ItemsControl HorizontalContentAlignment="Stretch">
<ItemsControl.ItemTemplate>
<DataTemplate>
<DockPanel>
<ComboBox DockPanel.Dock="Left"/>
<ComboBox DockPanel.Dock="Left"/>
<Button DockPanel.Dock="Right">Button</Button>
...
(I'll explain the problem once I show my ViewModels and Views)
I have two ViewModels:
public class CommandViewModel
{
public string DisplayName { get; set; }
public ICommand Command { get; set; }
}
and
public class SomeViewModel : INotifyPropertyChanged
{
private bool someFlag;
private CommandViewModel someCommand;
...
I have a WPF application that runs fine on my Vista development machine, but not on the production XP boxes. The only problem is with a call to OpenFileDialog.Show(). As soon as I call the method, the application is terminated on the XP box.
The problem does not trigger an exception. (I've surrounded the block in a try-catch block to no...
Hi everyone I am looking for information on how to put a calender/datepicker control into a WPF Ribbon has anyone done this before ? What is the best way to implement this.
...
How do I stop this from happening? My parent window just jumps to the top left part of the screen when ShowDialog() is called.
TransparentWindow trans = new TransparentWindow();
trans.ShowDialog();
trans.Dispose();
Thanks!
...
Hi,
I have binded a list with Editable WPF DataGrid
I want to get only the modified Items from the WPF Data Grid for updation.
Please let me know how to do this.
...
I am new to WPF and facing some wierd issue. I have designed a screen having a tab control. Tab control has two tabs and each tab item has few controls on it.
The issue is; When I open same solution from different machine I am not able to navigate between these two tabs in design time but on machine (on which I have designed screen) it ...
I am getting up to speed on the new Microsoft Ribbon for WPF. I am creating a Ribbon with a Quick Access Toolbar. I have six items in the QAT--I'd like to show four of them and put the other two in the overflow button. At this point, all six buttons are showing, with no overflow button. How do I set the number of visible QuickAccess butt...
Do folks have any guidance on when a simple .NET property that fires INotifyPropertyChanged.PropertyChanged is sufficient in a view model? Then when do you want to move up to a full blown dependency property? Or are the DPs intended primarily for views?
...
I saw ICollectionView being introduced with WPF to handle situations when you need sorting and filtering enabled. I even saw few articles which sort items, but my main concern is why my approach is failing. Lets see my code :
<ListView ItemsSource="{Binding}" x:Name="lvItems" GridViewColumnHeader.Click="ListView_Click">
<L...
Hi there,
Does anyone know if the latest drop (i beleive its 6) of prism v4.0 is compatible with WP7?
Actually really all i am interested in currently is the MVVM implementation / support that comes with prism 4.0 ...
So would this be compatible with WP7?
Any help really appreciated
...
I am trying to update a MySQL entry in WPF. So I have a list of Tenant names in a combobox and when you click on the Combobox I want to put the first and last name in the textbox. So I have an SelectionChanged event and I try to set a string to cboTenantName.Text which is actually the previous selection and not the current. Now, when I t...
I'm using the .NET4 WPF DataGrid to show a SQL table containing lots of images.
The XAML code in question is:
...
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Image Source="{Binding Converter={StaticResource ImageConverter}, Path=Picture}" Stretch="Uniform" MaxHeight="200" />
</DataTemplate>
</DataGridTemplateColum...
I have to include some sort of reports for my university project and I already have the data ready to be used.
I'm thinking of using WPF for the GUI and I was wondering if there was a library or something I could use that has some nice effects for graphs and whatnot.
Any suggestions? I have to show information such as total shipments p...
I am using the DevComponents third-party control to create a screen with multiple docking components organized in three rows, the last row having three columns. I have been successful in creating this layout, however I cannot figure out how to expand the height of the DockSite to the borders of the screen.
I have posted the XAML below:...
Very newbie question.
I want to overwrite the Main in my WPF app so if I double-click on a file, it will be loaded. My main function is:
[STAThread]
static void Main(string[] args)
{
FileConvert.App app = new FileConvert.App();
app.InitializeComponent();
if (args.Length > 0)
{
W...
I have a DataGrid that has auto generated columns. In side of the AutoColumnsGenerated event I am adding an additional column. This column is a DataGridTemplateColumn which includes a DataTemplate with it's VisualTree set to a CheckBox. I am adding a handler to the CheckBox.ClickEvent in which I will chain a value in the associated row.
...
Hi folks,
A quick question regarding WPF: How can I select child elements within a Canvas/Grid?
For example, in the following XAML snippet:
<Canvas Name="parentCanvas" Width="200" Height="200" Background="AliceBlue" MouseMove="parentCanvas_MouseMove" MouseLeave="parentCanvas_MouseLeave">
<Border Name="border1" Margin="10" ...