Coder Social home page Coder Social logo

telerik / xaml-sdk Goto Github PK

View Code? Open in Web Editor NEW
443.0 99.0 1.0K 35.67 MB

The XAML SDK is an easy-to-use infrastructure with 1000+ developer focused examples for most of the Telerik WPF and Silverlight controls.

Home Page: https://demos.telerik.com/xaml-sdkbrowser/

License: Other

C# 79.05% HTML 0.15% TSQL 13.67% SCSS 0.01% JavaScript 6.48% ASP.NET 0.12% Visual Basic .NET 0.53% Python 0.01%

xaml-sdk's Introduction

xaml-sdk

The XAML SDK is an easy-to-use infrastructure with around 1000 developer focused examples for most of the Telerik WPF and Silverlight controls.

You can also install the Telerik SDK SAMPLE BROWSER for WPF and Silverlight from here. It provides a friendly way of browsing through the repository, automatically connects to GitHub and updates the examples and gives you the ability to directly run them or see their code.

The examples for each of the components in the suite are listed in the documentation along with a short description.

xaml-sdk's People

Contributors

apopatanasov avatar bsivanov avatar didiepetrova avatar dilyantraykov avatar fakalieva avatar igorpopovio avatar jbristowe avatar kalin-todorov avatar martinivanoff avatar miromiroslavov avatar nedyalkov avatar nicklegr avatar pavelrpavlov avatar petiavladova avatar robert-j-engdahl avatar ryletko avatar tanyadimitrova avatar velikovmartin avatar vladimir-stoyanov avatar vladimiramiorkov avatar wpfteamuser avatar yoan-krumov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xaml-sdk's Issues

Error while removing a recurrence from the base appointment

It's easy to reproduce, just put an appointment, make the recurrence to daily, 3 times.

then ok, now you should see 4 appointments in table. Now, select the original, first appointment by choosing Open This Occurrence, go to recurrence, delete the recurrences, hit ok to go back to the appointment setting. Now, when you hit ok to go out of the appointment, you get a nasty crashing error :

The database operation was expected to affect 1 row(s) but actually affected 0 row(s); data may have been modified or deleted since entitites were loaded !

Where does this direct you toward? the ScheduleViewViewModel class on line : 87 => OnSaveExecuted and this is calling the SaveData method from ScheduleViewRepository

here is the code for this final destination method :

`
var isSubmited = ScheduleViewRepository.Context.SaveChanges() >= 0;
if (action != null && isSubmited)
{
action();
}

return isSubmited;
`
For some reason, this is causing the error here. Please help. By the way, I imported the data context to sqlite. But this should happen to every instance of entity framework core, not sure about EF6 though.

Binding Error in Telerik Editor User control

Good morning,

I have used the Telerik Editor User Control ( RadRichTextbox ribbon UI ) and I call it in my window, it works fine, but it was very slow in the starts of the window opening that contains the Telerik Editor UC, when I see in the output command line, I observe two errors of binding :

System.Windows.Data Error: 40 : BindingExpression path error: 'StyleDefinitions' property not found on 'object' ''RichTextBoxCommands' (HashCode=22325706)'. BindingExpression:Path=StyleDefinitions; DataItem='RichTextBoxCommands' (HashCode=22325706); target element is 'RadRibbonGallery' (Name='radRibbonGallery'); target property is 'ItemsSource' (type 'IEnumerable')
System.Windows.Data Error: 40 : BindingExpression path error: 'CurrentSelectedStyle' property not found on 'object' ''RichTextBoxCommands' (HashCode=22325706)'. BindingExpression:Path=CurrentSelectedStyle; DataItem='RichTextBoxCommands' (HashCode=22325706); target element is 'RadRibbonGallery' (Name='radRibbonGallery'); target property is 'SelectedValue' (type 'Object')

Are these errors are related to the slow of the window?
If yes , how can I fix them?

RadDataForm, upgrade

Please upgrade RadDataForm on which the employee entity can have image/photo field on which we can learn also edit (replace) or add new image of the entity!
Thank You

routing not working

server always returns: error 400 bad request

even though API key is valid

sheduleview code first for entity framework core

Hi
In the ScheduleViewEntities class where you are defining the mapping, it works with .net frame work how ever, entity frame work core, has no .WithRequired and no .WithOptional methods on defining relations, can you please give us a working class for entity frame work core?
thanks

Gridview/BindingSelectedItemsFromViewModel: Exception when DataContext is changed

Gridview/BindingSelectedItemsFromViewModel:
The current solution works nicely when you only assign the data context once. However, if you re-assign the data context everything becomes messed up. The old event handlers are still stuck, causing an InvalidOperationException in the Transfer function.

This git-diff patchfile can be applied to the current head, and will demonstrate the problem. Start the program, select a few rows. Then click "Change data", and select a few rows. After a while the exception will be thrown.

diff --git GridView/BindingSelectedItemsFromViewModel/MainWindow.xaml GridView/BindingSelectedItemsFromViewModel/MainWindow.xaml
index cfda575..9929cf8 100644
--- GridView/BindingSelectedItemsFromViewModel/MainWindow.xaml
+++ GridView/BindingSelectedItemsFromViewModel/MainWindow.xaml
@@ -16,7 +16,8 @@
                 <telerik:GridViewSelectColumn />
             </telerik:RadGridView.Columns>
             </telerik:RadGridView>
-            <TextBlock Text="SelectedItems:" Margin="5" Grid.Row="1" />
-        <ListBox ItemsSource="{Binding SelectedItems}" DisplayMemberPath="ID" Grid.Row="2" Margin="5" />
+            <Button x:Name="changeData" Grid.Row="1" Grid.Column="0" Content="Change data" Click="ChangeData_OnClick"/>
+            <TextBlock Text="SelectedItems:" Margin="5" Grid.Row="2" />
+        <ListBox ItemsSource="{Binding SelectedItems}" DisplayMemberPath="ID" Grid.Row="3" Margin="5" />
     </Grid>
 </Window>
diff --git GridView/BindingSelectedItemsFromViewModel/MainWindow.xaml.cs GridView/BindingSelectedItemsFromViewModel/MainWindow.xaml.cs
index f6fcdca..7cbb20d 100644
--- GridView/BindingSelectedItemsFromViewModel/MainWindow.xaml.cs
+++ GridView/BindingSelectedItemsFromViewModel/MainWindow.xaml.cs
@@ -20,5 +20,10 @@ public MainWindow()

             DataContext = new MyDataContext();
         }
+
+        private void ChangeData_OnClick(object sender, RoutedEventArgs e)
+        {
+            DataContext = new MyDataContext();
+        }
     }
 }
diff --git GridView/BindingSelectedItemsFromViewModel/MyDataContext.cs GridView/BindingSelectedItemsFromViewModel/MyDataContext.cs
index ee81b97..f6dc541 100644
--- GridView/BindingSelectedItemsFromViewModel/MyDataContext.cs
+++ GridView/BindingSelectedItemsFromViewModel/MyDataContext.cs
@@ -12,9 +12,10 @@ public ObservableCollection<MyObject> View
         {
             get
             {
+                Random r = new Random();
                 if (view == null)
                 {
-                    view = new ObservableCollection<MyObject>(from i in Enumerable.Range(0, 100) select new MyObject() { ID = i, Name = string.Format("Name{0}", i) });
+                    view = new ObservableCollection<MyObject>(from i in Enumerable.Range(0, 100) select new MyObject() { ID = i, Name = string.Format("Name{0}", r.Next(100)) });
                 }

                 return view;

The solution is to introduce a detach method in the behaviour class:

        private void Detach()
        {
            if (selectedItems != null)                            
                selectedItems.CollectionChanged -= ContextSelectedItems_CollectionChanged;             
            if (grid != null)
                grid.SelectedItems.CollectionChanged -= GridSelectedItems_CollectionChanged;                         
        }

And to make the attached behavior effectively singleton. The old behavior will then be detached when the datacontext changes, and the new behavior attached.

        private static SelectedItemsBehavior singletonBehavior;

private static void OnSelectedItemsPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            RadGridView grid = dependencyObject as RadGridView;
            INotifyCollectionChanged selectedItems = e.NewValue as INotifyCollectionChanged;

            if (grid != null && selectedItems != null)
            {
                if (singletonBehavior != null)
                    singletonBehavior.Detach();
                singletonBehavior = new SelectedItemsBehavior(grid, selectedItems);
                singletonBehavior.Attach();
            }
        }

RadDataForm Example

Hi,

Please add RadDataForm example synchronized with RadGridView and Oepn Access ORM.

Thanks for awesome work.

The data context needs to get reassigned here

base.ElementLoadedOverride(serializationTag, element);

Reproduce:

  1. Open the app
  2. Open some documents
  3. Close the app
  4. Open the app again
  5. Close some documents

You will see that the connection between the RadPane and the view model got lost, because the data context needs to get reassigned.

The fix in my code looks like this (using .net Core 3 with C# 8)

protected override void ElementLoadedOverride(string serializationTag, DependencyObject element) {
            base.ElementLoadedOverride(serializationTag, element);
            var model = DataSource.Panes.FirstOrDefault(viewModel => viewModel.SerializationTag == serializationTag);
            if (model == null) {
                return;
            }

            /// ... Control instancing code

            // reassign the data context, otherwise we have no connection when it gets closed
            if (element is FrameworkElement frameworkElement) {
                frameworkElement.DataContext = model;
            }
        }

RadRichTextBox - Apostrophe separates word while spell checking

While checking the word with an apostrophe like "I've", the "CheckWordIsCorrect" method is checking only "ve" (instead of "I've"). The apostrophe is treated as a words separator and because of that the "I've" word is marked as incorrect.

How can I check words with apostrophes?

Thanks,
Beata

Save button in Diagram\DiagramRibbonUI does not work

Run this demo application (Diagram\DiagramRibbonUI ) in visual studio, and drag and drop a diagram item into the RadDiagram canvas. Then click Save menu. You can see that the SaveFileDialog does not pop up. But if I click the gallery bar before click Save menu, then it works well.
Could anyone kindly tell me how to fix this?

Thanks very much!

It's still frozen

I don't know what I'm doing wrong and if this example is suppose to make a BusyIndicator animates even if a UI is frozen but it doesn't work.

The BusyIndicator animation freezes when freezing the UI for 5 seconds.

Telerik : 2013.3.1204.1050
Visual Studio 2013
Windows 7
Silverlight 5

SqlResourceType is Null on SqlResource

Using the code first approach for scheduler view project :

I Updated the data base using the code first project, then, manually added two resource types and few resources related to them in ResourceType and Resource tables in sqlserver manager. How ever, when I try to run the application, I get null pointer exception on the SqlResourceType in the SqlResource class in line 16 ==>

get { return this.SqlResourceType.Name; } set { if (this.SqlResourceType.Name != value) <================= line 16 !!!! { this.SqlResourceType.Name = value; this.OnPropertyChanged("ResourceType"); } }

Support for image export

Hello,

Its very common to insert images into a diagram. This export example does not export images. Could you demonstrate how to export images?

Sample code that inserts images (as copied from Telerik example) WPF:

` var image = new System.Windows.Controls.Image
{
Source = new BitmapImage(new Uri(path_to_file, UriKind.Absolute)))
};

                Viewbox viewBox = new Viewbox() { Stretch = Stretch.Fill, Margin = new Thickness(-4) };
                viewBox.Child = image;
                RadDiagramShape imageShape = new RadDiagramShape()
                {
                    Content = viewBox
                };
                this.diagram.Items.Add(imageShape);`

Exception Thrown in WPF Sample Project "CustomToolboxDragDrop"

Hello!

There is, I think, a small error in the RadDiagram sample project "CustomToolboxDragDrop" (Diagram/CustomToolboxDragDrop)

In the file Example.xaml.cs in the Default_ItemSerializing method:

        void Default_ItemSerializing(object sender, SerializationEventArgs<IDiagramItem> e)
        {
            var shape = e.Entity as RadDiagramShape;
            if (shape != null)
            {
                e.SerializationInfo["MyGeometry"] = shape.Geometry.ToString();

                var myShape = shape.DataContext as MyShape;
                if (myShape != null)
                    e.SerializationInfo["DataContent"] = myShape.Header;
            }
        }

the Geometry of a dragged shape is serialized via ToString() and thus the resulting path description string is apparently not in a format understood by GeometryParser which throws an exception in RadDiagram_ShapeDeserialized when trying to deserialize the shape.
Replacing shape.Geometry.ToString() in the above method by GeometryParser.GetString(shape.Geometry) resolves the problem. (The generated path description is different!)

TreeListView Sample doesn't work

I used the last version of Telerik on the sample ExpandItemsIntoView_WPF and nothing is displayed in the TreeListView

Version 2018.1.122
Edit: Was using the xmall less dll

ObjectStateManager Exception in SQLExceptionAppointment.cs

Hello guys,
Im new in C#. I start to reproduce this solution to my Database and so on.
All worked great, but when i start the Project the second time it throw this Exception:

image

In English:

System.InvalidOperationException: 'An object with the same key already exists in the ObjectStateManager. The existing object is in the 'Unchanged' state. An object can only be added to the ObjectStateManager again when it is in the added state. '

The ObjectStateManger is handled in the SQLExceptionAppointment.cs.

Any Solution?
Thx for Help

Filter is not working in multimodel binding

Dear Team,

I am trying to bind multi models data to grid view as below:

{
    "id": "id1001",
    "booking_date": "09-AUG-2019 18:45:00 +05:30",
    "bookingtype": "MARKETPLACE",
    "type": "booking",
    "customer": {
        "id": "CUST1001",
        "name": "PRAVIN YADAV",
        "mobileno":"9990285656"
    },
    "createdby": "SC1005",
    "createddate": "09-AUG-2019 18:45:00 +05:30",
    "updatedby": "SC1005",
    "updateddate": "09-AUG-2019 18:45:00 +05:30",
    "_rid": "RwgzANM6dFcBAAAAAAAAAA==",
    "_self": "dbs/RwgzAA==/colls/RwgzANM6dFc=/docs/RwgzANM6dFcBAAAAAAAAAA==/",
    "_etag": "\"00000000-0000-0000-4f1d-d5c1c51601d5\"",
    "_attachments": "attachments/",
    "_ts": 1565401763
}

Filter is not available on customer id or name.

Prism Examples

Would it be reasonable to request updated prism examples where applicable? The given examples are severely dated. I wouldn't be against a PR or two, though my open source time is limited. I work with both telerik products and prism daily.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.