I have one TextBox and one listbox for searching a collection of data. While searching a text inside a Listbox if that matching string is found anywhere in the list it should show in Green color with Bold.
eg. I have string collection like
"Dependency Property, Custom Property, Normal Property". If I type in the Search Text box "prop" ...
Hi
As an exercise to learn wpf and understand how binding works I have an example that works.However when I try to load on demand I fail miserably.
I basically have 3 classes Country-City-Hotels
If I load ALL in one go it all works if I load on demand it fails miserably.
What Am I doing wrong?
Works
<Window x:Class="MasterDe...
Hello,
I’m dealing with localization of a WPF application (Visual Studio 2010 under Windows 7). I’ve just accomplished the whole process of localization using LocBaml tool, as explained in WPF Globalization and Localization Overview and in related posts.
The target language is Italian (it-IT culture).
When I run my application in Ital...
i want a silverlight listbox whose items are automatic scrollable (like a vertical marquee)
...
I Have a User Control containing Text box and a label box. In the WPF window , I have used this user control and another Text box. If the Lost Focus event on the User Control is fired , it fires the Text changed event on the other Textbox. How can i restrict this???
...
My WPF maintenance window have a toolbar with a button "Exit"; a CommandExit is bind with this button. The CommandExit perform some checks before exit.
Now, if I click to close button of the window (x-button of title bar), this checks are ignored.
How can I do to bind CommandExit to window x-button?
...
Hi,
I have a WPF user control ...which is in MVVM. The user control(which contains a listview) need data from the page (where it is included). I have to set a property to get this data input. Will this comply with MVVM...if not, what is the way for the same?
...
Can i write something like this in WPF(i know that this piece of code is wrong, but need to know if there is kind of this construct):
<TextBlock Height="50" Text="Test: {Binding Path=MODULE_GUID}" />
Or always to add some text to binding value i must do something like this:
<StackPanel Orientation="Horizontal">
<TextBlock Heigh...
I am trying to follow Pete Brown's introductory WPF tutorial which makes use of the TweetSharp libraries to interact with Twitter.
I have downloaded what appears to be the latest TweetSharp binaries (and a few others including the ReleaseCandidate) from Codeplex (http://tweetsharp.codeplex.com/).
No matter what references I add and no ...
I want use math operations in XAML code but I dont know how?
...
Is there any way to force a radio button or check box to show properly in a toolbar? The circle/check box always disappears once its placed inside a toolbar.
...
I have created a ribbon (R:ribbon) inside my main window in WPF. And I added a frame to the same window (bottom to the ribbon) and display pages inside the frame according to the buttons click on the ribbon.
1.I have ribboncombobox on the ribbon , I want to get particular value in that combobox and display that value in a page that is...
I am using a DataGrid object from the WPF toolkit. I am binding the DataGrid object to the default view of a DataTable instance as declared in the following code:
WeatherGrid.ItemsSource = weatherDataTable.DefaultView;
weatherDataTable has three columns. The first column is defined to contain a string data type. The other two colum...
I'm having trouble applying a template to my checkboxes. I have the following template:
<ControlTemplate x:Key="TriStateRed" TargetType="{x:Type CheckBox}">
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="{x:Null}" >
<Setter TargetName="path" Property="Data" Value="M 0 2.5 A 5 2.5 0 1 1 5 5 L 5 8...
Hi,
I am new to WPF application and are developing a new WPF application which does 4 different things (4 different modules).
I was googling around and found regarding WPF composite application.
I was reading through the msdn articles but and a few a different place but all the apps are very large and so understanding them is a bit di...
I have the following code
<Canvas Width="800" Height="600">
...
In the UserControl I animate the ScaleTranform to 1. I want UserControl to "grow" from its center, but it "grows" from the upper left corner of it. The values in CenterX and CenterY do nothing. How can...
Hello All! I am fairly new to WPF and am probably missing something simple here. If I have 3 controls, only the last control will show the OriginalImage that I specify.
Any help would be most appreciated. Thanks
Ryan
Main Window
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="200*"/>
<RowDefinit...
I am trying to delete items from listbox which is data binded.
Here is the screenshot how listbox look like.
This is the code which adds items in lists.
public class Task
{
public string Taskname { get; set; }
public Task(string taskname)
{
this.Taskname = taskname;
}
}
pub...
While trying to do something a bit more complicated, I ran across a behavior I don't quite understand.
Assume the following code below handling the textChanged event.
private void textChanged(object sender, TextChangedEventArgs e)
{
TextBox current = sender as TextBox;
current.Text = current.Text + "+";
}
No...
This is a 3d n00b question.
I'm working on a WPF control which implements the basics of Silverlight's PerspectiveTransform feature, allowing a 2D plane to be rotated on any of the three axes. It works pretty well. However I'm a little stuck on the math required to determine whether or not the back of the plane is showing. My naive code ...