Hi,
As I'm learning WPF I came across quite a few examples, but mostly all of them have a disclamer like 'this is not production quality code', as they refer to a specific issue they're addressing.
What I would like is to see how is WPF used in reallife, the application as a whole, so that in one example I can see all of the best pract...
I have two Local applications that i want to integrate into one application. One is a flex 4 application that is compiled as an AIR application so it has a .SWF file extension and a Windows WPF application. The two applications have to constantly pass values between each other constantly. If possible, I would love to avoid a asp.net ser...
In Net 3.5 to set a validation rule in WPF you had to set binding as well. Is it still true for Net 4.0?
If yes, is there any easy workaround for that? I.e. setting validation without setting binding.
I am asking because adding regular binded value is an overkill for me (in this particular case) -- I just show a dialog, if user clicked...
Hi all!
I have an Image control inside a custom ContentControl that I use to apply some transforms (scaling and translating through the RenderTransform). The problem is that with images bigger than the control's area, if I scroll or zoom out it's all clipped as in the original viewport.
Is there a way to force the image to draw itself...
I've a simple WPF app, and I'd like to add what is known in the Win32 world as keyboard accelerators. It looks like KeyBinding is the ticket, but it requires binding to a Command object. I'm not using command objects, nor do I want to. Is there another way to get an event triggered when a ctrl-x key sequence is hit?
...
I have 3 assemblies:
Number 1- ResourceAssembly which contains a subfolder Images with 1 image in it (build action = resource). Within that subfolder is a ResourceDictionary with build action set to resource. The resource dictionary contains the following-
<BitmapImage x:Key="BluePlus_48x48_72" UriSource="112_Plus_Blue_48x48_72.png"...
I want to take all rows that are selected and modify one column value in each of them.
I tried this but it doesn't work.
foreach (System.Data.DataRowView DRV in ItemDataGrid.SelectedItems)
{
DRV.Row.BeginEdit();
DRV.Row.ItemArray[6] = true;
DRV.Row.EndEdit();
}
Anyone know how to do this?
Thanks,
Matt
...
Hello guys.
For save my configuration_data I use isolated stoeage domain scope like:
IsolatedStorageFile isoFile =
IsolatedStorageFile.GetUserStoreForDomain();
But sometimes at saving data I get:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.IO.PathTooL...
Hi,
need some help or some advice with entity framework v4. As you already know, EF v4 does not support lazy loading of scalar properties. If i have some entity object for example Order in model with many scalar properties, some of them expensive to load from DB, like attached file for example. As i found later, it is possible to move t...
I have the following class:
public class ErrorMessage
{
public enum Severity { Error, Warning}
public ErrorMessage(Severity severity, string description)
{
this.severity = severity;
this.description = description;
}
public Severity severity { get; set; }
public string description { get; set; }
...
Hi!
I have a DLL assembly referenced into my project, this is a snapcode about a dependencyProperty named EsRegistroNuevo.
namespace App_WpfResources
{
public class App_PageKernel : PageFunction<object>
{
public static readonly DependencyProperty EsRegistroNuevoProperty = DependencyProperty.Register("EsRegistroNuevo", typeof(bo...
I have a WPF (.Net 3.5 sp1) application that loads a bunch of data on start up (it takes a few seconds to start up) but it performs fine after the data is loaded.
While the app is running, if I don't touch it for some time (say, a few hours), and then I alternate to it, it then "wakes up" very slowly.
My questions:
1) Why is that? Is...
I have created a UserControl which is basically an Ellipse with a DependencyProperty called ValueH. The Fill property of the Ellipse is based on ValueH. So for example if ValueH=1 Fill=Red, ValueH=2 Fill=Blue, ValueH=3 Fill=Green and so on. I have also declared storyboards so that when the value of ValueH changes, a ColorAnimation is run...
Hi,
I am trying to bind data in my WPF Application using CollectionViewSource and
LINQ to SQL.
I have the following code in my XAML
<dbml:VendorsDataContext x:Key="vendorAddress1"/>
<CollectionViewSource x:Key="addressViewSource1" Source="{Binding
Path = tblVendor_Address ,Source={StaticResource
...
I am using the following code to stream an image source:
BitmapImage Art3 = new BitmapImage();
using (FileStream stream = File.OpenRead("c:\\temp\\Album.jpg"))
{
Art3.BeginInit();
Art3.StreamSource = stream;
Art3.EndInit();
}
artwork.Source = Art3;
"artwork" i...
Where would I put my StringFormat={}{0:C} to make the axis label have currency formatting?
<DVC:LinearAxis Orientation="X" Interval="500000" ShowGridLines="True" Minimum="0" >
<DVC:LinearAxis.AxisLabelStyle>
<Style TargetType="DVC:AxisLabel">
...
Hello,
how can I datatemplate a UserControl with a ViewModel with a NON-Empty constructor ?
public PersonViewModel(Person person)
{
_person= person;
// do some stuff
}
Binding this in Xaml will crash as the Ctor is not empty. But as I use parent/child relations with the ViewModels I have to p...
I have a markup extension that is working with Binding. Things work well except
when the markup extension is used in a DataTemplate which is then used by a
ContentControl that is bound to the same property as a ListView with
IsSynchronizedWithCurrentItem=true. How can I get the CurrentIt...
Hi,
I know the title is really unclear, so give me a moment :)
I'm a pro-coder doing cool stuff at work (console games), but I've got an idea for an app (for a couple of years now ;)) that I'd like to create at home.
With 15 years of experience, I don't want to fall in to the trap of wanting to do everything myself - I'd like to borrow...
The nested ViewModel is set to the MainWindow DataContext:
var mainWindow = new MainWindow();
mainWindow.Show();
mainWindow.DataContext = new
{
MyProperty = new
{
MySubProperty = "Hello"
}
}
It is easy to bind to MySubProperty in XAML:
<Button Content="{Binding MyProperty.MySubProperty}"/>
How can I do this bind...