|
Hi Jammer,
thanks for your reply. It is an odd one - I have checked the graphics card setting and got one of the hardware bods here to look at the settings etc and he seems to believe its set up correctly although I will seek a second opinion. One intersting thing is that Visual Studio 2008 also sometimes crawls to a halt (which 2005 never does) sometimes scrolling through the intellisense lists are like wading through treacle so maybe that's a sign of a more significant malaise.
I will stick with WPF - it would be a shame to slide back down that learning curve, as I said I think I just needed to vent and the people around me at work were getting fed up with me cursing at the screen
It's reassuring to hear that others are having no problems running WPF apps although it does rob me of an excuse ![Poke tongue | ;-P](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_tongue.gif)
|
|
|
|
|
No problem fella.
I don't see VS2008 doing this either ... it does other weird things tho!
I hazard a guess that you possibly need to refresh that machine. At least uninstalling/reinstalling all VS2008 / .NET 3.5 / Silverlight Betas etc ... and starting again. Although really my vote usually goes with starting at the OS level.
Check video card drivers and make sure you have the latest. With the best will in the world business machine hardware bods don't always know the ins and outs of things like setting up video cards etc ... have a read online and see if anyone is having problems with that card. That said, it doesn't sound like its the card at fault here. It may also get as drastic as needing firmware updates ... there maybe a new motherboard BIOS for instance. Does the video glitch with anything else?
What order did you install things btw? That can make a difference.
|
|
|
|
|
Hmmm, I might just get a new PC - I will have a look at the Video Card settings though and clear down a few things and see what happens. Thanks for your help.
|
|
|
|
|
Hello World!
I want to learning wpf, what I do for this? ...
Tanx World ...
if(Human.live)
{
Human.peaceful = false;
while(true)
{
Human.love(Human girl, Human Boy);
}
}
|
|
|
|
|
Read Google!
Cheers,
World
|
|
|
|
|
You will need the right version of the .NET framework, a suitable version of Visual Studio or one of the express editions and to buy some books.
|
|
|
|
|
If youre already familiar with .NET, it's enough to read some articles here on CP.. It just takes a bit longer then.
|
|
|
|
|
I would really get some books. They are a big help (as long as they are the right ones).
|
|
|
|
|
In the code of a WPF custom control, I am updating Property1 in the Set{}
of another Property2(i.e. when another property changes). the Property1 is updated properly, but the updated value is not diaplayed in the Property Dialog Box of Visual studio. How can I get the updated value diaplyed in Property dialog box.
<br />
public string ControlID<br />
{<br />
get<br />
{<br />
return controlid;<br />
}<br />
set<br />
{<br />
controlid = value;<br />
Propertytoupdate = value;
<br />
}<br />
}<br />
|
|
|
|
|
One thing you need to do is implement INotifyPropertyChanged, and have the change notification raised when the property changes.
|
|
|
|
|
help to create a seprate dlls ?
|
|
|
|
|
|
Each project you add to your solution will compile into an assembly.
If you add a project of Type: Class library, WPF User Control Library or WPF Custom Control Library, these will all compile into their own .dll.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
|
|
Pleasure. Glad you like it.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Hello All,
Is there any way to bind TreeView with nested object without using HierarchicalDatatemplate?
For example:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<TreeView Margin="10,10,46,52" Name="familyTreeView"
/>
</Grid>
</Window>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfApplication1 {
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window {
public Window1() {
InitializeComponent();
List<Person> _family = new List<Person>();
Person mom = new Person() { Name = "Hteik Tin May" };
mom.Children.Add(new Person() { Name = "Michael Sync" });
mom.Children.Add(new Person() { Name = "Shwesin Sync" });
mom.Children.Add(new Person() { Name = "Aye Nyein Thu" });
mom.Children.Add(new Person() { Name = "Kyaw Zin Thu" });
_family.Add(mom);
familyTreeView.ItemsSource = _family;
familyTreeView.DisplayMemberPath = "Name";
}
}
public class Person {
readonly List<Person> _children = new List<Person>();
public IList<Person> Children {
get {
return _children;
}
}
public string Name { get; set; }
}
}
It's not working without HierarchicalDatatemplate.
Any idea?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
|
|
|
|
|
Any specific reason you don't want to use this HierarchicalDataTemplate?
You can always add TreeViewItems manually.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
I want to depend on the structure of my object. not Hierachical DataTemplate which is static.
or Am I missing something?
What should I do if I want to change the level of treeview? For example: 2 level Hierachical structure to 5 level Hierachical
2 level Hierachical structure
-111
---22222
---22222
-333
---44444
---44444
5 level Hierachical structure
-111
---22222
--------333333333333
-------------44444444444
-------------------------55555
---22222
-333
---44444
---44444
|
|
|
|
|
|
Hi
I just need to ask a quick question where do I insert my xml data into my wpf application. Like when the user clicks a button it should display for example (a dialog, picture, play a sound, ect.)
Thanks
Andrew McIntyre
|
|
|
|
|
Andrew,
Can you provide a few more details so we can lend you a hand.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Hi everyone,
i am trying to export listview data to xps using c#.net3.5, wpf. is it possible to export to xps? if it is possible means give me some samples.
regards
Kanna
|
|
|
|
|
Hello sir even i'm trying to do that. If u get please let me know.,..
|
|
|
|
|
Hi All,
I'm having some trouble using some XAML and an attached property to vary a graphic in the UI. It seems to be intermittently working!! I was testing a Debug and Release version and all was working well but I've just fired it up again and its whacko!!
The XAML is:
<DataTrigger Binding="{Binding Path=(local:TreeViewItemProps.IsRootLevel),
RelativeSource={RelativeSource AncestorType={x:Type TreeViewItem}, Mode=FindAncestor}}" Value="True">
<Setter TargetName="img" Property="Source" Value="/SampleSort.Modules.Browser;component/Graphics/diskdrive.png" />
</DataTrigger>
<DataTrigger Binding="{Binding Path=(local:TreeViewItemProps.IsRootLevel),
RelativeSource={RelativeSource AncestorType={x:Type TreeViewItem}, Mode=FindAncestor}}" Value="False">
<Setter TargetName="img" Property="Source" Value="/SampleSort.Modules.Browser;component/Graphics/folder.png" />
</DataTrigger>
The error I get is:
Cannot convert string '/SampleSort.Modules.Browser;component/Graphics/diskdrive.png' in attribute 'Source' to object of type 'System.Windows.Media.ImageSource'. Cannot locate resource 'graphics/diskdrive.png'.
I don't get why its randomly stopped working. I haven't touch *any* code since working on this app yesterday!
|
|
|
|