One hack is to use 'initParams' to send these style values to silverlight control. There, you convert them into styles and apply them.
PumbaPumba
Posts
-
Apply Css for Silverlight controls -
Does codeproject have a mobile version for the small screen?Add me to the list as well.:cool:
-
Binding MenuItem.IsChecked to RichTextBox.SpellCheck.IsEnabledYou could name the CheckBoxMenuItem and bind it via property path. Like
<ContextMenu x:Key="rtfBoxContextMenu">
<MenuItem Command="Copy"/>
<MenuItem Command="Cut"/>
<MenuItem Command="Paste"/>
<Separator/>
<MenuItem Command="My:MyCommands.ToggleSpellChecker" IsCheckable="true" Name="menuItemCheckBox"/>
</ContextMenu><RichTextBox
x:Key="rtfBox"
SpellCheck.IsEnabled = "{Binding Source={StaticResource rtfBoxContextMenu}, Path=menuItemCheckBox}"
ContextMenuService.ShowOnDisabled="True"
ContextMenu="{StaticResource rtfBoxContextMenu}">
</RichTextBox> -
Commands in User ControlAre the columns auto-generated?
-
xaml - binding path - escape double quoteThis is in real mess. Why don't you use a Converter and do these operations there.
-
Unable to set focus to datepicker using attached property in wpfHi dashingsidds, Change it into normal dp. We normally use AttachedProperty when we have child elements. In this case no need of AttachedProperty. To-Resolve this issue: Ensure, the PropertyChanged is getting fired properly and/or PropertyChanged is not null. HTH
-
Canvas, dragging, scrollbars and measureoverrideHi RugbyLeague, I could understand the problem. You are having a visual studio designer like custom canvas control, in which you will be having controls. The problem is with scrollbar of the scroll viewer in which the canvas is hosted. Right?
RugbyLeague wrote:
bit haywire.
Do you mean, the scroll bars of the scroll viewer not scrolling smoothly? If that is the case. So far known best way is, You have to create your own calculation for updating the scrollviewer's vertical and horizontal offset.
-
Silverlight debugging questionGreat question. If you are using 64Bit machine. It won't allow. Like you, I'm also having the same problem. I haven't checked it with 32-bit machine.
-
Custom control resets font properties set through XamlCould you please share some more details like code snippet of your constructor, OnApplyTemplate and the XAML block you are setting the font properties?
-
Discussion Forum - Questions and Answers Grid row highlighting Related suggessionLuc Pattyn wrote:
Question/Answer/Tip/Alternate should be above the actual content
You mentioned a case, that is applicable for expanded questions or replies alone., When in the case of no group being expanded is my question. I should have framed the question more clearly. My apologies. Thanks for the faster update.
-
pluggable gadget systemYou should look into MEF/MAF. Choosing among MAF or MEF is left with you. http://mef.codeplex.com/ HTH
-
Show position of a chartingToolkit:LineDataPoint in a collectionHi surfluds, May be this link could help you. http://endofstream.com/charts-creating-custom-style-for-linedatapoint/
-
Trying to bind to a dependency property [modified]Hi Christian Graus, Included UpdateSourceTrigger="PropertyChanged" in binding. Like,
"showProgessOnDesktop" IsYes="{Binding Mode=TwoWay, Path=ShowOnDesktop, Source={x:Static c:Preferences.Instance}, UpdateSourceTrigger=PropertyChanged}"
HTH
-
Discussion Forum - Questions and Answers Grid row highlighting Related suggessionI'm very new to this forum/community. I'm really impressed with this forum. I have a suggestion to make. In the Discussion Forums under "Question & Answer -> Programming Discussion". The question and the relative replies are listed. Each replies should be displayed in alternating grid background should be really helpful. Because, when we view this discussion forum in a High resolution laptop monitors we are unable to see when is the post was posted and/ replied. Often, the date was mistaken either with the question post or with the next question/reply's date, due to the fact the question and the timestamp information are separated with long distance ends(question is at left most corner. The Time stamp information is at right most corner). It would be really helpful to have alternating grid background and/or while hovering on a question or a reply the row of the grid should get highlighted. I know this forum has many far more important features/tasks in queue. But, I felt this would be really helpful. Let me know if you want some more details.
-
How to add simple C# user control to WPF project ?Hi Yanshof, You can do this by using the WindowsFormHost
-
Getting the size of a controlHi Theo, Are you trying to get the size of the control from inside the control. I mean inside control's
ArrangeOverride
or do you want to get the control's size in application level?