|
Hi,
In xaml, There is an underline on {TemplateBinding Content} in the following script:
The error is: Property 'Content' was not found in type 'Control'
Do y ou see why?
Note that I can compile but not sure why I get this underline.
Any thoughts please?
Thanks
<UserControl.Resources>
...
...
...
<ControlTemplate x:Key="ToolTipTemplate">
<Border BorderBrush="red" BorderThickness="5" CornerRadius="1" Background="blue">
<ContentPresenter Grid.Column="3"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Margin="1,1,1,1"/>
</Border>
</ControlTemplate>
</UserControl.Resources>
|
|
|
|
|
This happens all the while to me. If this code works when you run it, you are good to go.
Just as a note, in Silverlight 4, the XAML parser has been upgraded and this is one of the effects of this upgrade.
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.
|
|
|
|
|
I want to reload the same page when the user clicks on the same link again.
As said in some forums I tried NavigationService.Refresh but it says Refresh is not available in NavigationService.
Iam using Sl4.
Anyhelp will be appreciated.
Thanks
Santhosh
Santhosh
|
|
|
|
|
There are a number of ways to skin this cat. I don't know if this is best practise but one of the simpler ways is to create a static property that is a pointer to the page. If null open as normal with the constructor setting the static property. If not null then call a method within the page (ie. RefreshPage) which will do the work to refresh the page as required.
|
|
|
|
|
Thanks Robert for the reply
But how do we refresh it (I mean the code)..
Santhosh
|
|
|
|
|
Well assuming the page is already displayed, by refreshing I mean applying some UI logic, displaying/hiding/enabling/disabling controls, requesting and displaying data, that sort of thing.
|
|
|
|
|
I am in th eprocess of changing a silverlight 3 application to silverlight 4.
Is it necessary to check the references in the silverlight app. so that if any refers to version 3 then change to version 4 references?
Thanks
|
|
|
|
|
arkiboys wrote: silverlight app. so that if any refers to version 3 then change to version 4 references?
Yes. Else those items will still be pointing to Silverlight 3 and your code will propably not build somewhere.
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.
|
|
|
|
|
|
You can always 'mark the answer as accepted'.
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,
I am running a silverlight 4 application which is using web services.
The folowing error occurs when trying to create an instance of the web service.
Can you see why this is occuring please?
Error:
xxxServiceClient _xxClient = new xxxServiceClient();
The invocation of the constructor on type 'xx.xxx.Silverlight.xxxx.somename.somenameData' that matches the specified binding constraints threw an exception. [Line: 13 Position: 41]
Any thought please?
Thanks
|
|
|
|
|
Make sure everything is in order in the serviceRefrences.clientconfig file.
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,
Under the target silverlight version I see silverlight 3.
How can I get silverlight 4 to appear in there as I am running vs2010 and silverlight 4 ?
Thanks
|
|
|
|
|
Hi,
I am using .net 4 visual studio 2010 premium.
I have been given a silverlight project to work on which was created in silverlight 3.
I can run the application but can not debug it.
The properties of the application shows that the target silverlight version is set to silverlight 3 and this is the only option available.
Note that I have installed silverlight 4.
And in the web.config of the host, the following line is indeed present
<compilation debug="true">
Question:
How can I debug the application based on the above please?
Thanks
|
|
|
|
|
So when you place a break point on the Code behind it does not go ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
All ok.
Wrong post.
Sorry
|
|
|
|
|
I want to use an expander control to contain a shadowbox style filter user control. So the basic idea is to make the expander button look like a filter button, and upon pressing a grid with some controls in it will appear in the center of the current window while the rest of the window is overlaid with a semi-transparent grid.
All the code for this is easy enough, but I am having trouble with expanded width of the expander vs. collapsed width. I want something along these lines:
<Style
x:Key="sbExpander"
TargetType="{x:Type Expander}">
<Style.Triggers>
<Trigger
Property="IsExpanded"
Value="True">
<Setter
Property="Background"
Value="Black" />
<Setter
Property="Opacity"
Value=".8" />
<Setter
Property="Width"
Value="760" />
<Setter
Property="Height"
Value="760" />
</Trigger>
</Style.Triggers>
</Style>
The expander control:
<Expander
Grid.Row="0"
Grid.Column="0"
Grid.RowSpan="10"
Grid.ColumnSpan="4"
IsExpanded="False"
HorizontalAlignment="Left"
Width="20"
ExpandDirection="Right"
Style="{StaticResource sbExpander}">
<Grid
Width="760"
Background="Black"
Opacity=".8">
</Grid>
</Expander>
The issue is that if the initial width of the expander is anything greater than 20 it overlays the rest of my controls and renders them unusable. I only want them unusable when the expander is expanded. So I really do want the collapsed expander control width to be 20 so that the controls under are available, while I want the expanded width to be 760 covering the entire window.
Thoughts?
Cheers, --EA
|
|
|
|
|
Ok, I figured it out. Put the expander inside a stackpanel whose width property was set to auto.
Cheers, --EA
|
|
|
|
|
Hi,
I am running visual studio 2010 premium with silverlight toolkit 4.
The project does not build and in references, the following dlls have yellow exclamation next to them:
1- Microsoft.Expression.Interactions
2- System.Windows.Interactivity
How can I solve these please?
Thanks
|
|
|
|
|
|
This [^] might help.
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!
I am making a full screen WPF application. Please tell me what is right way to make full screen application in one window. How to change screens/views? All views as custom controls? Or just hide elements or create them dynamically? I couldn't find the answer.
Thanks.
SXILL
|
|
|
|
|
You might actually want to look at an application block like Microsoft Prism[^].
By using this, you can divide your screen into regions and then add and remove views (xamls) from these regions based on your business requirements.
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
The RichTextBox has no Text property which to bind to show data from database..so are there workarounds to do this???
Thanks
"For as long as men massacre animals, they will kill each other. Indeed, he who sows the seed of murder and pain cannot reap joy and love." Pythagoras
|
|
|
|