Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

CrafterIt

@CrafterIt
About
Posts
23
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Resource dictionary [modified]
    C CrafterIt

    Hello! i have a problem with the resource dictionaries in silverlight, control styles is using the colors in my colors resource. but when i do this i get runtime error when i load the silverlight app in my browser: Cannot find a Resource with the Name/Key OfficeBlue [Line: 10 Position: 44] i have confirmed that the key name exists in colors.xaml this is from my app.xaml

    <Application.Resources>

    	<ResourceDictionary>
    		<ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Colors.xaml" />
                <ResourceDictionary Source="Navigate/Control styles.xaml"/>   			
    		</ResourceDictionary.MergedDictionaries>
    	</ResourceDictionary>
        
    </Application.Resources>
    

    How do i use colors.xaml resource in my control style? Thanks!

    modified on Tuesday, April 19, 2011 2:25 AM

    WPF wpf help question learning

  • Need help with javascript and data from web service
    C CrafterIt

    Thanks, i will try this.

    JavaScript question java javascript tools help

  • Need help with javascript and data from web service
    C CrafterIt

    Hi! I’m not so familiar with java script, i got the call to the web service working but how do i store the value from the web service in var result?, HelloWorld will be replaced with another method that returns different data depending on the input.

    <script type="text/javascript">
        $(document).ready(function () {	        
                var result;
                HelloWorld();
                // How do if store the data in result before the next line of code is executed?             
                
                //doSomething with the result
        });
    
        $(document).ready(function () {
               var result2;
               HelloWorld();
               // How do if store the data in result2 before the next line of code is executed?               
               
               // doSomething with the result
        });    
    
        function HelloWorld() {
            Pagesettings.test(HelloWorldCallback);         
        }
    
        function HelloWorldCallback(result) {
            alert(result);
        }
    
    </script>
    

    Can someone help me, thanks!

    JavaScript question java javascript tools help

  • problems setting jquery dialog left and top position
    C CrafterIt

    found it it should be

    $('#dialog').dialog({ position: [x,y])}

    edit: you also need to convert to x,y variable to int with parseInt(x)

    modified on Tuesday, March 1, 2011 8:40 AM

    Java javascript help

  • problems setting jquery dialog left and top position
    C CrafterIt

    Hi! i'm having problems setting the position of the dialog (Left and Top) after i have created it. i have tried this, but it's not working.

    $('#dialog').dialog('widget').position().left = 200;

    i have tried different solutions i have found but they didn't work either. could someone help i want to move the dialog to left and top cordinates i have stored i 2 variables thanks.

    Java javascript help

  • Columnbar styling quesiton in SL4 [modified]
    C CrafterIt

    I got it working, i replaced LinearAxis with CategoryAxis.

    WPF help css data-structures question

  • Columnbar styling quesiton in SL4 [modified]
    C CrafterIt

    Hi i need some help, my styling is not working a i would like it to. on the x axis that i try to style i have 4 text´s that says "good", "poor" etc... The problem is that after i apply the style and change the angel of the text change to about 10 different values 0 and 1 (there are still 4 columnbars displayed) I want the text good to be at an angle of -64 and adjust the with of the bars to make them smaller EDIT: The independentvalue bindings displays at the top of the graph, the bottom displays values from 0, 0,1 0,2 0,3 ... 1 can anyone help?

               <chartingToolkit:Chart HorizontalAlignment="Stretch"
                                   VerticalAlignment="Stretch"
                                   BorderBrush="White"
                                   x:Name="Chart"
                                   FlowDirection="LeftToRight"
                                   Margin="6,1,1,1"
                                   Grid.Column="0"
                                   Grid.Row="0"
                                   Title="Score"
                                   FontFamily="Arial"
                                   FontSize="10.667"
                                   BorderThickness="0,1,1,1">
                <chartingToolkit:Chart.LegendStyle>
                    <Style TargetType="Control">
                        <Setter Property="Width"
                                Value="0" />
                        <Setter Property="Height"
                                Value="0" />                        
                    </Style>
                </chartingToolkit:Chart.LegendStyle>
    
                <chartingToolkit:Chart.Axes>                    
                    <chartingToolkit:LinearAxis Orientation="X">                        
                        <chartingToolkit:LinearAxis.AxisLabelStyle>                            
                            <Style TargetType="chartingToolkit:AxisLabel">                             
                                <Setter Property="RenderTransformOrigin"
                                        Value="0.8,0.8" />                                
                                <Setter Property="RenderTransform">                                   
                                    <Setter.Value>                                       
                                        <RotateTransform Angle="-65" />
    
    WPF help css data-structures question

  • The property 'ContentStringFormat' does not exist on the type
    C CrafterIt

    Ok, thanks

    WPF help wpf com xml tutorial

  • The property 'ContentStringFormat' does not exist on the type
    C CrafterIt

    Hi! i use VS2010, and the SL project targets Silverlight 4 and .Net 4

    WPF help wpf com xml tutorial

  • The property 'ContentStringFormat' does not exist on the type
    C CrafterIt

    Hi! i have a problem with ContentStringFormat i get an error The property 'ContentStringFormat' does not exist on the type 'ContentControl' in the XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. The example i follow uses this namespace, is there an other namespace i should use? Why do i get this error?

    <UserControl
    ...
    ...
    ...
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">

    <StackPanel Margin="2,2,2,2">

    <ContentControl Content="{TemplateBinding IndependentValue}"
    ContentStringFormat="{}{0:MMMM d, yyyy}" />

    <ContentControl Content="{TemplateBinding DependentValue}"
    ContentStringFormat="Visits {0:###,###,###}" />

    </StackPanel>

    WPF help wpf com xml tutorial

  • WCF Service and event [modified]
    C CrafterIt

    Ok, thanks i will look in to it :)

    WPF csharp database wcf help tutorial

  • WCF Service and event [modified]
    C CrafterIt

    I am doing some string operations in the event(). but the problem still is: in the void event () i define 2 dynamic keys (in a property) depending on the input parameter to the service after i have done this i use the keys in the other method before calling the service again to retrive two other keys. but the methodcall_x(keys) is executed before the event is triggered and keys = null so i can't call the service again. class x { MAIN{ Servicecall() methodcall_x(keys) } viod the event(){save result to a property} }

    WPF csharp database wcf help tutorial

  • WCF Service and event [modified]
    C CrafterIt

    Hi! New to silverlight, i have a problem. I have created a service to connect to a database and i want to call it many times, the problem is that string a and string b is executed before the event is triggered? in the event i have code that catches the result from the service and i want to save it to the string a and then call the same service again and save that result to string b. but i can't do that if the event isn't triggered each time any ideas on how to solve? main(){ serviceclient x = new serviceclient x.xxx_completed += the event x.getdataAsync(); string a; string b; } void event () { code to get data }

    modified on Tuesday, January 4, 2011 6:09 AM

    WPF csharp database wcf help tutorial

  • silverlight hides menu?
    C CrafterIt

    Hi! I tried the z-index:-1 but it didn't seem to work. edit: but i found a solution that i tested and worked Add

    <param name="windowless" value="true" />

    on the aspx or html page when you add the Silverlight element in the <object> tag

    modified on Thursday, November 25, 2010 3:24 AM

    WPF java question

  • silverlight hides menu?
    C CrafterIt

    ok, i will check in to it thanks.

    WPF java question

  • silverlight hides menu?
    C CrafterIt

    Hi, I have a java menu on the webpage that is partially hidden from the silverlight control that i have placed below. Is there a way to render the menu above the SL content?

    WPF java question

  • Hyperlink layout question
    C CrafterIt

    Thank you! IsTabStop got the result i wanted :)

    WPF question

  • Hyperlink layout question
    C CrafterIt

    Hi! I have added a hyperlink in silverlight. But when i click on the link it displays a blue rectangular border for the size of the hyperlink control. The link opens a popup window, so this doesn't look so good on the webpage.

    <HyperlinkButton x:Name="History"
    Content="History"
    Margin="0"
    FontFamily="Arial"
    FontSize="10.667"
    Click="HistoryHyperlinkButton_Click"
    Foreground="Black"
    FontWeight="Bold" Background="{x:Null}" Cursor="Hand"
    BorderThickness="0"
    />

    Is there a way to disable this or have i missed somethink?

    WPF question

  • Items in listbox
    C CrafterIt

    Hi! Yes, i got it working, many thanks !!! :)

    WPF question

  • Items in listbox
    C CrafterIt

    Thanks for the answer, i'm new to silverlight so could you help me out to get the hiddenID value? this is my listbox with the datatemplate The listbox is loaded with many different items, the header=hyperlink does not have unique contents. What i want is to pass the current HiddenID that correspons to the hyperlink Ex: hiddenID = 34 Hyperlink = "Recent events" Content = "short description" when i press "Recent events" and trigger the hyperlinkbutton event i want to be able to get the value from hiddenID

    <ListBox x:Name="ListboxNews" ItemTemplate="{StaticResource NewsTemplate}" ItemsSource="{Binding _News}" Margin="8,38,8,8" Opacity="1" BorderThickness="0" Background="White" />

    <DataTemplate x:Key="NewsTemplate">
    <Grid Background="White" HorizontalAlignment="Left" Height="59" VerticalAlignment="Top" Width="265">
    <HyperlinkButton x:Name="NewsHyperLink" Content="{Binding Header}" FontSize="18.667" FontWeight="Bold" FontFamily="/StartPage;component/Fonts/Fonts.zip#Calibri" Click="HyperlinkButton_Click" Background="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" Margin="10,0,0,0"/>
    <TextBlock x:Name="Content" Text="{Binding Content}" TextWrapping="Wrap" Width="265" FontFamily="/StartPage;component/Fonts/Fonts.zip#Calibri" FontSize="16" Foreground="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12,23,0,0" />
    <TextBlock x:Name="HiddenID" Text="{Binding NewsID}" Width="20" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" FontSize="16" HorizontalAlignment="Left" Margin="-2,0,0,0" />
    </Grid>
    </DataTemplate>

    WPF question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups