|
Thanks for Quick Reply,
I want physical path ....like "C:/Documents/MyDocuments/" in a string variable
i do not want localhost path.........
|
|
|
|
|
salon wrote: I want physical path ....like "C:/Documents/MyDocuments/" in a string variable
i do not want localhost path.........
Silverlight runs on the client end - it has no knowledge of absolute
physical paths on what I'm assuming is your server.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
Thanks for ur kind and quick support....
My problem is solved....
|
|
|
|
|
Hi salon,
Can you tell about your solution for this problem?
Thanks & Best Regards,
|
|
|
|
|
hi salon
how do you solved your problem of fetching the local path.
I ran into an issue while implementing BITS, the problem is while creating a job in BITS we have to send the local path (physical path like c:/doc/sample.txt) but Silverlight will not give us the physical path or fullpath. It says access denied.
How to get the physical path or fullpath of the file in silverlight?
Thanks
Nitin C.N
|
|
|
|
|
Hi friends,
I Have created a silverlight application.. i have a inkcanvas and i am trying to Add image objects on to it at runtime.. the image added to the Inkcanvas should clip the image in the shape of inkcanvas if the image is greater than inkcanvas..
Thanks In Advance..
Regards
Samir Satardekar
|
|
|
|
|
Does the InkPresenter.Clip property work?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hi Sir Mark,
if i set the clip Rect ie.
<inkpresenter.clip>
<rectanglegeometry rect="0,0,800,400" radiusx="15" radiusy="15">
it happens properly but i want this rect to be genarated dynamically..
sir, hope i m clear with what i require...
Thanking in advance
Samir Satardekar
|
|
|
|
|
VCsamir wrote: if i set the clip Rect ie.
Did you mean to paste some code there?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello everyone,
For small research project of my AI programme, I'm building a visualization for a multi-screen application, and 2 zones of which must be mirrored.
So basically:
- On one side I have a WPF layout with controls, data, images and animations happeling
- This content should be replicated on another screen (simply another Window)
Do you have any ideas how to achieve this? Something that could grab a frame and replicate it, like a texture brush maybe?
Thank you in advance for your answers!
Best regards,
Kel
-- Everything is possible, even the impossible! ^_^
|
|
|
|
|
|
Thank you for your reply!
Ok so I figured out how to do the mirroring within same Window, something like this:
<Canvas x:Name="RendererCanvas" Background="White" Grid.Column="1" Grid.Row="1" >
<v:RenderView x:Name="Renderer" Width="300" Height="300" />
</Canvas>
<Grid Grid.Column="0" Grid.Row="1" Background="DarkGray">
<Viewbox Stretch="Uniform" DataContext="{Binding ElementName=Renderer}">
<Grid Width="{Binding Width}" Height="{Binding Height}">
<Grid.Background>
<VisualBrush Stretch="Uniform" Visual="{Binding}" />
</Grid.Background>
</Grid>
</Viewbox>
</Grid>
Now, would it be possible to do exact same thing but in 2 different windows? So 2 XAML files one binding another.
Maybe with some static fields?
-- Just think in 10 dimensions!
|
|
|
|
|
How do I get the target for a WPF hyperlink in XAML?
I have a listbox that contains hyperlinks. The listbox is bound to a ViewModel.MyHyperlinks collection. ViewModel also has several ICommands exposed as properties. When I click on a hyperlink, it should invoke one of these ICommands. I want to specify which ICommand in a property of the MyHyperlink class. I tried creating a resource to hold the name of the ICommand, but that isn't working.
So, my question is: How do I specify an I Command to run in a hyperlink I am loading from an object or a data record?
I have created a simple demo project that shows the problem I am having. It can be downloaded here[^]
Thanks for your help!
David Veeneman
www.veeneman.com
|
|
|
|
|
I found my answer and wrote it up as a Code Project article. Hopefully, it will help other people down the road.
David Veeneman
www.veeneman.com
|
|
|
|
|
In window form, the control "ToolStripButton" has a property "CheckOnClick". When the button is click, the button is checked, once it's clicked another time, the button is unchecked.
I want to have the same function like this button in wpf. But there are no existing controls like this one. Do you know which control have similar function like this?
thanks,
Eric
|
|
|
|
|
You can use a toggle button. That has the checked property.
http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.togglebutton.aspx
Example with an image in the button:
<togglebutton tooltip="Pointer" tag="Pointer" ischecked="true">
<image source="Resources\Icons\PointerHS.png" />
</togglebutton>
Hope this helps,
Bart
EDIT: somehow it did not display all code so I ignore HTML tags now.
|
|
|
|
|
Hi.
Do we have the SplitContainer in WPF ?
THanks
|
|
|
|
|
|
|
|
dear sir,
i want to control system sound using slider.
how can i do ?? any idea???
yogesh
|
|
|
|
|
Greetings,
Create a handler for the slider value changed event. Then in that event handler, set the sound volume of your player. Of course, make sure that whatever values you use in the slider correspond proportionately to the sound volume of your audio player.
I am doing the same thing in my project and here is the code I use:
<pre>
private void OnSliderMusicVolumeValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
if (myMusicManager != null)
{
myMusicManager.Volume = SliderMusicVolume.Value;
}
}
</pre>
myMusicManager is just the name I gave to a class that wraps the wpf media player. Below is where I get and set the volume using the appropriate conversions.
<pre>
public double Volume
{
get
{
return myMusicPlayer.Volume * 10; // myMusicPlayer is the actual wpf media player
}
set
{
myMusicPlayer.Volume = (value / 10);
}
}
</pre>
I hope this helps, let me know if you have any more questions.
Blitz
|
|
|
|
|
|
Need a chat application in wpf using TCP/IP service,not using wcf
|
|
|
|
|
You having an issue doing it or just asking if anyone here has one they are willing to give?
WPF does not really stop you form using raw sockets unless you are doing an XBAP, app and then you may need to adjust some security to allow it to work.
Do you have a specific aversion to using WCF or do you have a hard requirement that you must use raw sockets.
|
|
|
|