|
You will need to write some logic to do this.
After capturing the event mouse move event, you will need to make a note of the co-ordinates and then transform to them after multiplying / dividing them by the zoom factor.
Sorry, but I cannot seem to think of anything easier or better.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Has anyone tried to code a SilverLight app to access a locally connected Fingerprint scanner device while staying INSIDE the browser?
I know we know have access to things like USB video and audio, but I am not sure about Fingerprint scanners.
Just curious if anyone has tried it yet...
|
|
|
|
|
Ray Cassick wrote: Just curious if anyone has tried it yet...
Not really - knowing the security sandbox Silverlight runs in - I would feel this would not be possible.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
No you can't. If the manufacturer provided a COM API, you could accomplish this through the COM OOB experience.
|
|
|
|
|
I figured...
You know, I had really expected this to be allowed in SOME manner since this provides a pretty reliable way to authenticate. I would have almost expected that a BIO API device would be allowed. Geeez, they allow you access to the camera and headset while remaining in-browser now, why not a security device
|
|
|
|
|
Ray Cassick wrote: they allow you access to the camera and headset while remaining in-browser now, why not a security device
The theory is that by this stage you will already have been authenticated.
|
|
|
|
|
Yeah, I guess you are right... Just seems that THIS of all things should be somethign ALLOWED inside the browser
|
|
|
|
|
Hi guys,
I have go get all names of columns of all tables in the model???How can i do this??
i'm a beginner of programming in silverlight
Thanks
|
|
|
|
|
You need a web service to do this - you cannot directly use ado.net in Silverlight.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Ok..can u plz give me more details?
anyway , thank u very much
*** i have chaged my ID from dchamba to jadughar
|
|
|
|
|
On the WCF side, use ADO.net to get the column names. Return this as a list to Silverlight via the service.
That should do it.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Thanks Abhinav thank you very much
|
|
|
|
|
Hi abhinav your answer was good.
but what did you mean with "use ADO.net to get the column names"???
thanks
|
|
|
|
|
jadughar wrote: use ADO.net to get the column names"???
You will need to write a query and execute it(probably using a data adapter) to fetch the column list on the server. You will then pass this back to the client via the WCF service.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Hi Abhinav I would like to thank you for your patience with me.
You'll now understand that i am a beginner, and i'm not very good to talk in english.
Do you have some article or tutorial, about creating a Service, which explain the topic easily???
|
|
|
|
|
You could start with this[^].
MSDN will[^] always be your best friend.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Hello
I want to display hierarchical data in Silverlight 4. E.g. Invoices at the top and Invoice Lines under each invoice header. How can I do that?
Regards,
|
|
|
|
|
|
I don't want to pay for it. I am sure I can do it without paying for a third party control.
|
|
|
|
|
Use a ListBox with DataTemplates - show the invoices in the ListBox then in the datatemplate for the invoice have another listbox showing invoice lines (again use a datatemplate) - if you wrap each invoice in an expander and do some styling you can make it look very funky indeed.
|
|
|
|
|
I am sure this something really simple and I have been looking at it for too long but why doesn't this show anything?
public partial class Window1 : Window
{
public XmlDataProvider Provider { get; set; }
public Window1()
{
InitializeComponent();
Provider = new XmlDataProvider();
Provider.Document = new XmlDocument();
Provider.Document.LoadXml(TestXml.Test.Test());
Provider.XPath = "Halloumi";
}
}
<Window x:Class="HalloumiDesigner.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"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
<Window.Resources>
<HierarchicalDataTemplate DataType="Database" ItemsSource="{Binding XPath=Databases/Database}">
<Border BorderBrush="SteelBlue"
BorderThickness="2"
Background="AliceBlue">
<TextBlock Text="{Binding XPath=@Name}" />
</Border>
</HierarchicalDataTemplate>
</Window.Resources>
<Grid>
<TreeView Name="TreeView" ItemsSource="{Binding Provider}" Margin="10" />
</Grid>
</Window>
XML is:
<Halloumi>
<Databases>
<Database Name="A"/>
<Database Name="B"/>
</Databases>
</Halloumi>
|
|
|
|
|
|
Your treeview needs to be bound to an ObservableCollection
Everything makes sense in someone's mind
|
|
|
|
|
It doesn't but thanks for answering. I have abandoned the TreeView and gone for a ListBox and Data Templates - far better.
|
|
|
|
|
Hi ,
i wish build a control(wpf) that the Eye(Ellipse) follow the cursor of the mouse.
here is a snippet code that i am developing :
<Window Height="480" Title="Window2" Width="640" x:Class="WpfApplication5.Window2"
x:Name="Window" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Window.Resources>
<Storyboard x:Key="OnLoaded1">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="ctrCircle"
Storyboard.TargetProperty="(UIElement.RenderTransform).( TransformGroup.Children)[3].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="1">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="ctrCircle"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="1">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Style TargetType="Ellipse">
<Setter Property="RenderTransform">
<Setter.Value>
<ScaleTransform ScaleX="1" ScaleY="1"/>
</Setter.Value>
</Setter>
<Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
</Style>
</Window.Resources>
<Canvas MouseMove="mov" x:Name="LayoutRoot">
<Border ackground="Black" B="" Canvas.Left="178" Canvas.Top="103"
CornerRadius="250" Height="255.5" Width="290" x:Name="border_eye">
<Ellipse Fill="#FFFFC600" Height="12" HorizontalAlignment="Left"
Margin="0" RenderTransformOrigin="0.5,0.5" Stroke="{x:Null}"
VerticalAlignment="Center" Visibility="Visible" Width="12" x:Name="ctrCircle">
<Ellipse.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</Ellipse.RenderTransform>
</Ellipse>
</Border>
</Canvas>
</Window>
and in the code behind :
private void mov(object sender, MouseEventArgs e)
{
System.Windows.Point pt = e.GetPosition((Canvas)sender);
Storyboard invokeStoryboard = this.Resources["OnLoaded1"] as Storyboard;
((DoubleAnimationUsingKeyFrames)invokeStoryboard.Children[0]).KeyFrames[0].Value = pt.X;
((DoubleAnimationUsingKeyFrames)invokeStoryboard.Children[1]).KeyFrames[0].Value = pt.Y;
invokeStoryboard.Begin();
}
now my purpose is when i move the mouse in the Canvas area(LayoutRoot) the Ellipse(ctrCircle) move only inside the Border(border_eye) and don't overcome the area of the "border_eye" this effect is similar an eye.
Do you have any idea how to perform this step?
Thanks so much for your attention
Have a nice day.
|
|
|
|