Hi,
I am looking for some guidance and advice.
I am new to the world of wpf "6 months" with 8 years development in windows forms.
I still have not opened or used blend.I can see that is a designer tool but from a programmer prospective given that there are so many things to learn these days not sure if I should bother.
Should I bother ...
I have a TextBlock that presents a text. When the user clicks on the text, it is dynamically replaced with a TextBox (which is binded to the same data), effectively switching into "edit mode". This also significantly improves the performance.
The only caveat is that I am not able to know which part of the text the user clicked on. There...
Hi,
I am dynamically creating the checkboxes at runtime and also applying the style at runtime. Designer has developed a checkbox like control that am applying at runtime. and he put a Label on that checkbox control to show the Text on the checkbox control as its content from the Database. But when i applying content of checkbox or labe...
I'd like to have customizable toolbars in my application, like those offered by Visual Studio 2008 (right click on toolbar, customize). I need a WPF solution, and I haven't been able to find any (neither on SO, or Google). I did find this Visual Studio 2010 blog entry, which implies that even Microsoft had some trouble doing it. So anyw...
Hi All,
I am have textbox and 4 button in my page (A, B, Delete and Enter). If i click the button it has to send key event to the textbox.
Problem:
No action is happening on the textbox.
Code:
void buttonElement_Click(object sender, RoutedEventArgs e)
{
// create variable for holding string
String sendString = ""...
Hello,
I got my hands om MEF for a week now and I am trying to build up a WPF application that loads imported controls from MEF.
I created a WPF application project and removed the default window and application start up URI. Then I handled the application startup event to compose the application:
public partial class App : Applicatio...
Hi,
I have a Custom Canvas(DesignerCanvas), user can add some controls to this canvas. Before adding any control canvas first wraps it insdie a custom control(Designer Item) and then add that control to canvas.
This is done as in this codeproject article -
WPF Diagram Designer -
http://www.codeproject.com/KB/WPF/WPFDiagramDesigne...
Instead of at the top I wan't my tabs on the left side. I changed the template for the the TabControl so that the TabPanel would appear in first column and the second column would host the content.
Problem is I'm not sure how I change the TabPanel's layout so the tabs appear stacked vertically.
I know in normal ItemsControl objects its...
Hi Folks,
I have a small project that I think WPF would be perfect for, I don't however have that much time so I am looking for feasibility information and pointers. I am trying to display a large number of items from an XML document and from what I have read so far I believe it would be possible to:
Use the XML document as a dataSour...
I have created this simple expand button user control with WPF:
I designed the thing with Width and Height both set to 100 so that I could see what I'm actually doing. The stripped-down XAML of this user control is:
<UserControl x:Class="Foobar.ExpandButton"
...
Width="100" Height="100">
...
...
Im using the latest version of mvvm light toolkit, however i'm not clear how I can use EventToCommand for the event TreeViewItem.Expanded.
THis dosent work... what am I doing wrong?
<TreeView Grid.Column="0" Grid.Row="0" ItemsSource="{Binding Path= MonitoredDatabases}">
<TreeView.ItemTemplate>
<HierarchicalDataTempl...
Hello Good people
i'm developing a WPF (.NET 3.5) application where i need to validate atextbox with a regular expression to match Empty textbox or text like 02145 or 05145 or 02145,05879,02445. the expression i use is ^(0(2|5)[0-9]{3})?((,0(2|5)[0-9]{3})*?)$.
It almost works just that i won't let me have empty textbox. here is som...
Hi!
I have a WPF TreeView with 2 levels of data and 2 HierarchicalDataTemplate to format each level. From the HierarchicalDataTemplate at the second level, I need to bind a property in the class of the first level. I have tried in this way, but it dosn't work:
Text="{Binding Path=Ori, RelativeSource={RelativeSource TemplatedParent}}"
wi...
Hi all. I have an application that has a ContentControl item with content that is binded to an item of a list. A template is applied to this ContentControl. The template contains a ContentControl item that displays a WPF control (property of the item selected). This works great. However, if I try to create a bitmap of the main grid conta...
Hi All,
I am using the following code to display items in the combobox. but item is not getting displayed.
Code:
<ComboBox Width="100" ItemsSource="{Binding}" SelectedIndex="0" Name="cbProduct"/>
List<ComboObject> combObjList = new List<ComboObject>();
combObjList.Add(new ComboObject { Text = "All", Value = "%" });
...
Hi there
Does someone have know how to trap clicks on Links in the WPF WebBrowser Control?
I need to get the links target, when the link is clicked, before the Page is navigating.
Any inputs highly appreciated!
My solution in Code As proposed for simple Links this would be achieved with the following code:
private void webBrowser1_N...
Hi, I'm developing a WPF user control (for a commercial application) that does Javascript (ECMAscript) editing with syntax highlighting and some sort of code evaluating.
After some days of "heavy googling", thanks to AvalonEdit (SharpDevelop editor) I easily achieved the first requirement, and with Jint now I can somehow evaluate the edi...
Can anyone suggest me some good sources for downloading icons which i can add in my WPF forms context menu.I am looking for icons for "Cut" ,"Copy","Paste","Delete"
...
Look how odd is the following scenario:
<DataGrid.Columns>
<!--Doesn't work-->
<DataGridComboBoxColumn
Header="Vendor"
ItemsSource="{Binding Vendors}"
SelectedItemBinding="{Binding Vendor,
UpdateSourceTrigger=PropertyChanged}"
DisplayMemberPath="Contact.Title"/>
<!--Works-->
<DataGridTemplateColumn Header=...
Is there an easy way in the xaml for a form (e.g. like a xaml attribute that I can place on a DataGridTextColumn) to force a datagrid cell to be numeric only?
...