|
I'm actually after all the properties of any given control. So that would start at TextBox.Default and then a tree of all the colours and property values for that instance of TextBox.
So I guess your code is going to be very useful, thanks for that. I also need to grab the actual name of the style that has been applied to the control at run time.
maybe this?
var value = EnabledTextBox.GetValue(StyleProperty) as Style;
if (value != null)
{
_styleName = value.ResourceKey
}
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
I made a project in which i have to use web camera.
I have to make a Interview process in asp.net2.0.
i don't know how to configure or code web camera in asp.net.
It means i want to make a interview process in which both side have a web camera, both can see the live movement from both side.
how it is possible????
please help me.....
|
|
|
|
|
You won't be able to access the user's microphone or webcam from Silverlight application.. So, what you can do is that you can upload a few pieces of video to server and steam it from Silverlight...
but if you are asking ASP.NET question, you can post it here[^]
|
|
|
|
|
|
Hi All,
I was using mx.messaging.MessageAgent package for developing Actionscript3. Now i want to convert project into SilverLight so i want to know which is alternative namespace or Class is available in .Net Silverlight.
Regards
Atul
|
|
|
|
|
Atul23 wrote: I was using mx.messaging.MessageAgent package for developing Actionscript3.
I already replied you in your previous message. What does that namespace do?
|
|
|
|
|
Hi All,
I was using following packages/namespaces in Flash project using ActionsScript3 language.
import mx.messaging.Consumer;
import mx.messaging.MessageAgent;
import mx.messaging.Producer;
import mx.rpc.AbstractService;
import mx.rpc.http.HTTPService;
import mx.rpc.remoting.RemoteObject;
import mx.rpc.soap.WebService;
Now i want to covert my project in to Microsoft Silverlight. Can anybody suggest me which are the alternatives namespaces available in .Net Framework class library for Silverlight.
Thanks in Advance
Atul
|
|
|
|
|
Hello Atul,
The most of here are not familiar with ActionScript or Flash. So, we are not so sure about those namespace.. What you can do is that you can tell us what you want to do. We may probably suggest you something..
|
|
|
|
|
How to create a TreeViewItem outside the main thread?
I use BeignInvoke called from the main thread to add it to a TreeView , but for performance issues I want to use more threads in multiple-core machines for creating TreeView items (loading their content may take some time).
Any help appreciated.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
Can I suggest that you read this[^] article?
|
|
|
|
|
The setting:
In my application I have a viewing area:
<Border x:Name="contentArea" BorderBrush="Black" BorderThickness="1" Margin="10" />
And, triggered by user action I get passed XAML fragment to put in, such as:
<wpf:ControlTemplate>
<wpf:Frame Source="http://music.controlability.com.au/player"/>
</wpf:ControlTemplate>
then I call LoadContent() on these ControlTemplate (which, in this particular case, create a frame loading a flash music player)
then I set
UIElement ui = GetUI(item);
contentArea.Child = ui;
where item is the XAML fragment originated ControlTemplate and contentArea is the border previously mentioned.
(and GetUI() just call FrameworkTemplate.LoadContent())
The problem:
Now I expect the content to be garbage collected when replaced by another content. Indeed it works quite well with my own objects.
Now the problem is with this Frame with a Flash music player, it doesn't get collected when it's removed from the UI and the music keeps playing!
What can I do?
I have no reference to it, I have no event registered with it, I don't even know it's a frame, as far as I know it's just a ControlTemplate!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Iam trying to develop a Treeview where the user can only view childnodes of a node only one at a time. eg. Suppose the user clicks on Node 1 its childnodes shall be visible, the moment he clicks on Node2, only Node2's child nodes shall be visible, Node1's childnodes would have collapsed. My questions are ;
i) Is it possible to do so using only XAML (No code in VB to be written)
ii)If possible where could I get articles/guidelines/manuals etc. on this subject.
Best Wishes ....... ARIJIT
|
|
|
|
|
How i can start with silverlight? Very Basic .....
|
|
|
|
|
|
Assalam-o-Alaikum Zeshan.
First of all make a literary survey that
What is silverlight?
Why should you use it?
Features?
Comparison with other technologies.
Then there is a link http://silverlight.net/default.aspx
Install Microsoft expression blend there u van find some help.
I hope that you have got some idea.
Take care.
|
|
|
|
|
Hi! I have written the following text in my WPF application. But it is not working. When I click on the hyperlink nothing happens.
<Hyperlink NavigateUri="http://www.yahoo.com">
<Span Foreground="#FF0000FF" TextDecorations="Underline">
<Run Text="Yahoo"/></Span>
</Hyperlink>
Is any other way to give links on text. Actually I want to link folders and files of harddisk with my application not websites.
|
|
|
|
|
You need to handle the Click event and navigate to the URL.
I use the below function. strFileName can be a file name, or URL and the O/S will navigate the user to the web page.
Public Class UtilityHelpers
#Region " Methods "
Public Shared Sub StartProcessWithFileName(ByVal strFileName As String)
'Start a process : http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage&lang=en
Dim psi As New System.Diagnostics.ProcessStartInfo
psi.FileName = strFileName
psi.UseShellExecute = True
System.Diagnostics.Process.Start(psi)
End Sub
#End Region
modified 27-Feb-21 21:01pm.
|
|
|
|
|
HI,
I am using update panel in my application.but i am facing one issue.
I have one page for new enrolment of members, and i have two user controls Step1.ascx and Step2.ascx. My functionality is that at a time olny one control is visible on the page and other will be hide. for eg when user fills all fields in step1 and press next button then step2.acsx will be be visible true and user Step1.ascx will be visible false. all this happening at postback.
both control is under update panel to avaid post back during change of visibility.
On Step1.ascx i have one javascript variable var_pageName and its value is "Step1".
I want to update this value during post back to "Step2" when Step2 user control visible is true and vise versa. but the problem i am facing is javascript value is not updating during postback. I had tried this with scriptManager.RegisterClientScriptBlock and also with scriptManager.RegisterStartupScriptBlock by palacing it on both Usercontrol level and also on page level.
Please help as this is very urgent.
Sajid A.
Sajid A.
|
|
|
|
|
|
When I load and show an image using WPF I get some size related problems. On many images (I think all) the image is too large than when I open it in Pain, Paint.NET or Vista's Photo Gallery.
I can circumvent it by setting the DPI. For instance if I load and show an image (in WPF) with a DPI of 72 the image is larger than it should be. If I then set the image's DPI to 96 (which is my screen's DPI) it is shown correct.
Does this has something to do with WPF device independent pixels, and what would be the correct way to handle it?
"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."
-Atlas Shrugged, Ayn Rand
|
|
|
|
|
|
Thanks for that link - that was quite interesting.
I take it to mean that every time I load a picture I should set the DpiX and DpiY to 96. It does work correctly, but it seems a bit strange I must say.
"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."
-Atlas Shrugged, Ayn Rand
|
|
|
|
|
Not sure what you mean by 'load a picture' ...
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
I also just found this which is exactly what I discovered as well:
http://themagicofsoftware.com/CS/Web/blogs/keith/archive/2008/02/13/images-and-dpi-in-wpf.aspx[^]
"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."
-Atlas Shrugged, Ayn Rand
|
|
|
|
|
This is all in the realm of WPF being DPI independent.
Have you checked out <Viewbox>?
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|