Advanced Forum Search Results
-
I figured it out with RelativeSource binding, it was actually really easy in this instance. I think in the past I've had trouble with it because it only allows Self/TemplatedParent & in other instances I've needed to point to other objects, which can generally be done with ElementName binding.
Here's the binding in ...
-
I have a control for entering CreditCards. I have the .xaml style separated out into generic.xaml. For brevity, I'll pretend the control only has a single textbox for entering the credit card number.
The CreditCardNumber is attached to a DependencyProperty, CreditCardNumberProperty. I use TemplateBinding to put its value into the text field. ...
-
I am trying to set a style to a button control through Element-to-Element binding on the parent UserControl. I have a property called ButtonStyle which implements INotifyPropertyChanged & is also a dependency property [which I don't think it needs to be]. When I put that button outside of an itemsControl itemTemplate, it works ...
-
Thanks a bunch guys, that answers my question!
I double-checked re-creating a new SL3 app in VS & Blend, and they actually both have a comma, but the Blend version doesn't have "-2" in the data attribute like VS does. Obviously, the comma is a big deal & was my mistake, but the "-2" descrepancy ...
-
I've read that on other posts, but I don't think that's the issue. This is an issue where FireFox thinks the plugin actually isn't installed.
From what I've read on other pages about the fixed-height issue, they don't get a "please install silverlight" page, they just get a blank page.
I tried your suggestion ...
-
I recently updated my Silverlight app for SL3. Everything worked fine in IE, however in Firefox I got "please install silverlight".
During the conversion, I replaced the asp:silverlight tag with an object tag, because the asp tag is not supposed to be supported anymore [Even though I know the SL2 version technically still works].
I ...
-
However, it'd still be nice if you could do a TargetProperty="this.Foreground" or "Parent.Foreground" or "Children[0].Foreground" [or the same thing for TargetName] is any of that possible?
-
Thanks.
I realized you're right, the AlignmentContentPresenter was the parent of the dynamic text control & it has its own template. I actually didn't end up having to change its template, I just changed my control template like this:
<ContentControl>
<AlignmentContentPresenter ...
-
I'm trying to Re-Skin a 3rd party data grid [telerik] by setting a custom style & overriding the control template. I'm using a copy of their Control Template, & simply changing the colors.
Their default control template implements a "highlight on mouse over" effect for the column headers by switching a border from ...
-
The root element on my silverlight page is a scrollviewer. The scrollviewer has a grid inside of it. The grid contains my entire application ui.
My root element/scrollviewer layout is set to width/height:auto and horizontal/verticalAlign:stretch. The scrollviewer has both horizontal/vertical scrollbar visibility set to auto.
The grid has the ...