Hi, All
I have implemented Linq-To-Sql..
Add necessary table in it...
after that linq class will automatically set property for field..
I implemented one class using observable collection class.. and pass datacontextclass object in its constructor...
so after getting all data how to filter it ?
public class BindBookIssueDetails : O...
I want to bind a button's width to some textbox's text value, although I want to always have a button width's that's twice what is written on the textbox. This is:
textBox1.Text = 10
will set
button1.Width = 20
Can I only do this through ValueConverters or is there other way to do it?
Thanks
...
Is it possible to use value converters without having to define them beforehand as resources?
Right now I have
<Window.Resources>
<local:TrivialFormatter x:Key="trivialFormatter" />
</Window.Resources>
and
<Button Width="{Binding Width, ElementName=textBox1, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource trivialF...
Hi,
just wondering what IDE people use for their WPF apps?
I currently have VS2008 + VS2010 (RC) and MS Expression Blend 3 installed on my system. I'm just wondering what is the best way to go about WPF apps?
Could I create in Blend and then edit the source in VS or vice versa?
Ideas would be great and info on how everyone else does ...
There are some very useful classes for working with images. I am stuck with gdi+ for now, I would like to use these classes for my web app. I tried to add a reference but I can't find the assembly.
Any ideas if this is even possible?
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.aspx
...
I am getting this error in my WPF app:
The type 'Microsoft_Windows_Themes:ScrollChrome' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
Any idea?
...
Event Management
An event is an entity which can be triggered when specified condition is met. User creates an event giving following inputs:
Event Name
Event Type ( event can be categorized )
Based on event type there is a condition which user has to specify. This condition is a criterion for raising the event.
Event has Notification...
I am confused between various databinding mode in WPF like,
One-Way
Two-Eay
One-Time.. etc
plz explain these through proper scenario...
So i can easily understand when and where which mode is applicable.
...
I am having trouble databinding a TextBox.Text property to a object's method. The ideia is allowing the user to write in a textbox a file name and then have a TextBlock output that file's extension.
class GetFileInfo
{
public string GetFileExtension(string fileName)
{
return Path.GetExtension(fileName);
}
}
Here is...
<Window x:Class="tests.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" Background="Red" Foreground="Cyan">
<StackPanel VerticalAlignment="Center">
<Button>123</Button>
...
Say that I have the following piece of XAML:
<Window>
<StackPanel Orientation="Horizontal">
<Label>Phone:</Label>
<TextBlock Text={Binding PhoneNumber}"/>
</StackPanel>
</Window>
I would like to reuse this as the content of a ContextMenu. What is the best way to do that?
...
I'm using MVVM to bind views to objects in a Tree. I have a base class that implements the items in my tree, and that base class has a ContextMenu property:
public IEnumerable<IMenuItem> ContextMenu
{
get
{
return m_ContextMenu;
}
protected set
{
if (m_ContextMenu ...
Notice in the image below the 1px highlight below the text in the grey panel. How could this be achieved with WPF/Silverlight?
.
...
What would the best practice be for laying out the following item?
.
I am particularly interested in what controls I should use and how I position the delete icon to appear on the right-hand side and the tools icon to appear in the middle always?
Thanks in advance.
...
I need to write a control that is supposed to take only a certain type of child controls. Functionally it works like a Selector in that I can select/activate on of its childs but it seems that I can not derive from Selector because an ItemsControl can take any type of child (object). I really would like to have compiletime typesafety her...
I have an ItemsControl in a ScrollViewer. The ItemsControl.ItemSource is set to the Observable Collection.
Every time I add an item to the collection, my application nearly doubles in memory usage and eventually after enough adds.
Here is a rough sketch:
<Scrollviewer Name="MyScroll">
<ItemsControl Name="MyItemsControl">
...
I try to programmatically update the selected items in a listbox, with extended selection mode. Here is how I do it:
foreach (var selectedItem in ItemsForSelection)
{
_myList.SelectedItems.Add(selectedItem);
}
My problem is, that when the number of the selected items is big, the update is very slow.
The root of the problem is tha...
I have a ViewModel (AbstractContextMenu) that represents my context menu (IContextMenu), and I bind a real ContextMenu to it with a DataTemplate:
<DataTemplate DataType="{x:Type local:AbstractContextMenu}">
<ContextMenu x:Name="contextMenu"
ItemsSource="{Binding Path=(local:IContextMenu.Items)}"
IsEnabled="{Bind...
I'm not sure if there is a solution to this. But it is niggling at me and irritating me.
I'm using WPF and Visual Studio 2008. I've designed a beautiful UI :). I have a help text control which is contextual as to which control has been clicked. When the app first loads it has default text set. "Welcome to the X screen here you can ........