|
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.
|
|
|
|
|
|
I have a custom control where some action calls a method that calls InvalidateMeasure to update the look of the control. Seems like intermittently, the MeasureOverride doesn't get called.
I am sure the InvalidateMeasure is getting called and have put traces in both methods.
Any ideas on how to make sure MeasureOverride is called? Seems like it might be a .net bug???
EDIT: I actually have code that looks like this in the entry point:
InvalidateMeasure();
UpdateLayout();
So I think the UpdateLayout() is supposed to force that to happen "now".
|
|
|
|
|
It really depends what you're expecting to trigger it. If you've called RenderTransform, for instance, the update doesn't happen becase RenderTransform occurs at the end of the render pass.
|
|
|
|
|
The control is a custom list control that has in-place edit. It's supposed to be triggered by the standard mouse click / pause. When the mouse click / pause happens, it calls the adorner's "show edit box" method. That method sets the visibility of the edit box and of the adorner and calls InvalidateMeasure() and UpdateLayout().
99% of the time, MeasureOverride() and ArrangeOverride() are called as expected and the edit box is properly shown.
Occasioanlly, the control gets into a state where the click / pause DOES call the adorner's "show edit box" method, but MeasureOverride() and ArrangeOverride() never get called.
Thats the problem that I'm trying to solve, because once the control gets into this state, the edit box never shows because its MO() and AO() that lay everything out.
|
|
|
|
|
Are you sure that MeasureOverride isn't being called? As an experiment, try putting InvalidateVisual just before you leave MeasureOverride .
|
|
|
|
|
When the user clicks the mouse on the column, it calls a public UpdateVisibility() method. That is getting called all the time. That method sets some visibility flags on the internal adorner & textbox, etc. Then it calls InvalidateMeasure() and UpdateLayout(). MeasureOverride() and ArrangeOverride() do the layout work. I have trace msgs in all 3 functions. UpdateVisibility() gets called all the time correctly, but occasionally, the control gets into a state where MO and AO are not called.
|
|
|
|
|
Definitely sounds like a bug in the framework I'm afraid then.
|
|
|
|