|
I want to know how to give that animation effect which is in child form.
thanks
|
|
|
|
|
Have a look at my CP article UserControl == DataTemplate (link in my sig)
Specifically:
public static class Animations
{
static Animations()
{
}
public static void Fade(this UIElement control, double sourceOpacity, double targetOpactity, int milliseconds)
{
control.BeginAnimation(UIElement.OpacityProperty,
new DoubleAnimation(sourceOpacity,targetOpactity,
new Duration(TimeSpan.FromMilliseconds(milliseconds))));
}
}
|
|
|
|
|
Obviously ignoring the spelling mistake ...
|
|
|
|
|
Bonjour SVP qlqu'un peut-il m'aider à savoir de quoi la classe DependencyProperty s'agit-il et quoi la différence entre DynamicResource et StaticResource et en èspérant que l'explication soit en français et clair merci d'avance
|
|
|
|
|
|
|
My French is far too rusty to translate it for him. I used to live in Luxembourg, so I learned French while I was there but that was a long time ago.
|
|
|
|
|
No idea why but that had me chuckling for ages
|
|
|
|
|
It's the "SVP" I can't figure out
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello.
Whenever I wanna open SilverLight2 Projects with VS2008 SP1 , I receive this[^] message and I can't open them with VS2008.
Why ?
What should I do to solve it ?
Thanks in advance .
|
|
|
|
|
Have you installed Silverlight tools, available from this[^] link?
Regards,
Syed Mehroz Alam
My Blog
My Articles
Computers are incredibly fast, accurate, and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination. - Albert Einstein
|
|
|
|
|
I've installed VS2008 SP1[^].
Should I install Silverlight tools again ?
|
|
|
|
|
VS2008 SP1 does not contain Silverlight tools in any way. You need to install it manually.
Hope that helps.
My Blog
My Articles
Computers are incredibly fast, accurate, and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination. - Albert Einstein
|
|
|
|
|
|
|
Thanks, A very helpful reference
|
|
|
|
|
Hi,
I have a requirement from client where in when they type any text, the related data needs to get filtered. We have implemented a drop down list control with it's IsEditable property set to True. But this provides a "type ahead" functionality & does not filter the relevant typed data.
Do we have any in built control(s) in WPF that will solve the purpose for the above mentioned functionality? If not then any pointers for achieving the above functionality?
Regards,
Vipul Mehta
|
|
|
|
|
Hi,
I am developing WPF custom control. I need unquie control_Id for each Control in the XAML. when a user drags and drops a control into the XAML window , I can generste the unique identifier in the control constuctor. But when a user copy & paste a control. the CtrlID which is generated in the Constructor is overwritten by previous control's(which is copied) CtrlID in the XAML.
e.g. -
<Window x:Class="TestDemo.xml.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="600" Width="800" Resources="TestDemo.xml" xmlns:my="clr-namespace:Philips.PmsMip.Private.Tools.Services.FSF.StudioNew.Controls;assembly=Philips.PmsMip.Private.Tools.Services.FSF.StudioNew.Controls">
<Grid>
<big> <my:FSFComboBox Height="23" HorizontalAlignment="Left" Margin="257,202,0,0" VerticalAlignment="Top" Width="120" ControlID="ComboBox633632137614182049" />
<my:FSFComboBox ControlID="ComboBox633632137614182049" Height="23" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="120" />
</Grid></big>
</Window>
Is thr any way I can know in constructor or anywhr in custom control's code that this control is being created by Copy an already existing control.
|
|
|
|
|
I am essentially running an application that creates a thread to run a Form, say Form1 by calling...
Application.Run(new Form1());
Then, the application runs another process. This creates a Form, say Form2 in the same way that Form1 was created, by calling Application.Run(). The problem is that Form1 is on top of Form2, even though right before the Application.Run() call of Form2, I call BringToFront(), which is supposed to place it at the front of the z-order. Why is Form1 on top of Form2 even though Form2 was created afterwards, and explicitly brought to the front? I would like to do this without having to call SendToBack() on Form1, since I don't want to send it all the way back, I just want it to be behind Form2.
|
|
|
|
|
Wrong forum. This is for WPF, WCF and WF - not Windows Forms.
|
|
|
|
|
Woops, I thought WF == Windows Forms.
I'll re-post in that forum then.
Thanks.
|
|
|
|
|
No problems - and an easy mistake to make.
|
|
|
|
|
I'm developing an app with a tree control in the left 'pane' and a dialog in the right. As the user selects items in the tree, the contents of the dialog in the right pane changes.
In my C++/MFC apps, I made the contents of the right pane modeless child dialogs. As the user selected items in the tree, I would destroy the current dialog and create a new one of the requested type.
My question: What's the best way to do this in a C#/.NET/WPF application?
I've found the following method that seems to work.
I can make the right-hand pane a System.Windows.Controls.Frame. Each 'dialog' is a System.Windows.Controls.Page. I can switch dialogs using frame.Content = new DetailPage(); . I can also switch dialogs using frame.Source = new Uri("pack://application:,,,/DetailPage.xaml"); .
Is this approach okay, or is there a simpler/better way to do this? I'm a newb at .NET, so I have no idea what the 'best practices' are.
Software Zen: delete this;
|
|
|
|
|
Gary - this sounds like an ideal candidate for a bit of juicy two-way databinding and synchronisation. Can I suggest that you take a look into the Composite UI Application Block here[^]? The samples and concepts will really help you.
|
|
|
|
|
Hmm. I took a quick look. The 'CAB' appears to be fairly complicated, and may be overkill for what I'm doing. Also, the mix of WinForms and WPF is a little off-putting. I thought that WinForms has been 'deprecated' now that WPF is available?
My application is actually a touch-screen control panel for some machinery. The 'tree control' in my example may actually be a picture of the machine. When you click on parts of the picture, you see detail information related to that component.
I'm not too worried about the architecture of the application. I was mostly interested in the mechanism I was using for changing the content of the detail view. It seemed like there were several ways to accomplish what I was after, and I wasn't sure if there were any I should avoid.
For example, instead of using a Frame as a container and Pages for the contents, I could use a Grid and set the appropriate Grid entry to a UserControl. Each detail view would then be implemented as a UserControl.
Thanks for the info; I'll keep it in mind.
Software Zen: delete this;
|
|
|
|