|
Pete O'Hanlon wrote: You've never read the Adam Nathan book
You are right, I have read only one Silverlight book to get the basics and the rest of the learning was by doing...
The direct binding may have it's uses but I only ever do LOB apps and there is always a database sitting behind the app. I have trouble envisioning an app without a database
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi, I'm using Silverlight. Used Charts to display the values. I have applied Styles e.g FontStyle=Normal; for all reports. But while running the program, i'm getting text in Italic. Could anyone help me to resolve this.?
|
|
|
|
|
are you developing your app on vs studio or blend any way just check at text properties if checked embedded. I hade the same issue ı just embedded which font ı want so your silverlight forsing to use your choosed font to your clients 
|
|
|
|
|
looking for a solution to redirect from silverlight to web page with querystring values
modified 30-Aug-12 3:56am.
|
|
|
|
|
HtmlPage.Navigate("http://www.url.com/Default.aspx?query_string1="+somevalue+"&querystring2="+somevalue);
Hope it helps.
Christian Amado
MCITP | MCTS | MOS | MTA
Olimpia ☆ ★★★
Please mark as answer, if it helps.
|
|
|
|
|
Thanks for the reply.But i'm calling a generic handler from silverlight and need to redirect once the upload process is completed which is written in generic handler.
With your solution the upload process won't complete and it just redirects to next page.
|
|
|
|
|
Don't you think you should have passed this information on when you posed your initial question?
|
|
|
|
|
yeah true,missed that point
|
|
|
|
|
At my work, they want to have a flipbook for pds documents. I searched the internet and came across some flipbook components.
What we wanted to do is to have a flipbook component in silverlight that accepts a pdf in runtime.
Maybe I have not investigated good enough, but I could not find a component that does this for me.
Thanks
|
|
|
|
|
defjef wrote: Maybe I have not investigated good enough, but I could not find a component that
does this for me.
Correct. You're going to have to write one I'm afraid.
|
|
|
|
|
Hi,
The type 'AssemblyPart' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
The type 'Deployment' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
I have found the following above errors in AppManifest.Xaml after adding all the essentails dll to be added in the project.
And I have also seen that , I hve insatalled the Silverlight 5 Version .But in AppmManifest.Xaml Version is RuntimeVersion="4.0.50826.0".
I have reinstall the VS2010 , But inspite of that i have found these errors.
Regards,
Ravindra
|
|
|
|
|
Did you try regenerating your AppManifest.xml? In your project properties?
Christian Amado
MCITP | MCTS | MOS | MTA
Olimpia ☆ ★★★
Please mark as answer, if it helps.
|
|
|
|
|
How to add a SMF player in a silverlight application
|
|
|
|
|
Well, the easy way would be to read the documentation at the site[^]. Please remove your other question on this; you only need to ask it once.
|
|
|
|
|
How do I bind a set of radio buttons to a tab control, so when button 0 is clicked, tab 0 is active, 1 is clicked, tab 1 is active, etc?
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
In beginners tongue, You might need to create a new variable that will act as the connector, so that if the value of the radio button is changed, the value of the variable changes and so the corresponding tab is activated.
|
|
|
|
|
Personally I'd wire it up via the VM, I presume you want this done via XAML!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
They don't really have the concept of "the selected radio button index" in WPF. Kind of lame. You either have to do the mapping by hand (winforms style) or pass in the hard-coded index via a command parameter.
If you are trying to write "professional & re-usable" code, I'd suggest going the route that I did. Create a "RadioButtonGroup" control thats derived from ItemsControl. Your ItemsSource would be an array of strings (or whatever) and your ItemTemplate would simply be a RadioButton that sets up all the bindings for you. Then you would have bindable SelectedRadioButton and/or SelectedRadioButtonIndex properties, so on and so forth.
Sounds like a bit of work (its not really), but I'm assuming you are building a generic re-usable library that you'll toss this in and use on future projects .
|
|
|
|
|
In XAML you could do this by binding the tabItems IsSelected to the IsChecked from the radiobutton. See the example below (for the sake of this example I removed some attributes like Height and Margin)
<Grid>
<TabControl Name="tabControl1" >
<TabItem Header="tabItem1" Name="tabItem1" IsSelected="{Binding ElementName=radioButton1, Path=IsChecked, Mode=TwoWay}">
<Grid />
</TabItem>
<TabItem Header="tabItem2" Name="tabItem2" IsSelected="{Binding ElementName=radioButton2, Path=IsChecked, Mode=TwoWay}">
<Grid />
</TabItem>
</TabControl>
<RadioButton Content="1" Name="radioButton1" IsChecked="True"/>
<RadioButton Content="2" Name="radioButton2" />
</Grid>
|
|
|
|
|
You can always create a IValueConverter. Bind to the TabControl
SelectedIndex . On each RadioButton, use the ConverterParameter to pass the value that should set the RadioButton to IsChecked. The IValueConverter class is pretty straight forward.
|
|
|
|
|
Is it possible to NOT have the PropertyGrid sort the properties?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
|
That's a windows forms control. In any case, I've since decided not to use the propertygrid.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
I have a WPF propertyGrid, in which I need to bind the collection of strings to a paramter that should display a combo box.
If I use a property of enum type, then by default control is displaying as Combo box. However I have collection of strings those can't be formed into an enum type (as few strings starts with numbers and some special characters).
List<string> timesList = new List<string>();timesList.Add("MidNight");timesList.Add("3:00 AM");timesList.Add("6:00 AM");timesList.Add("9:00 AM");timesList.Add("NOON");timesList.Add("3:00 PM");timesList.Add("6:00 PM");timesList.Add("9:00 PM");timesList.Add("NightComplete");Wanted to bind the above created list of strings to PropertyGrid, so that it displays the above in the combo box. So what would be the best way to achieve the requirement. Please share the way.
|
|
|
|
|