380 changed files with 14736 additions and 16655 deletions
@ -1,69 +0,0 @@ |
|||
/************************************************************************************* |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2007-2013 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Public |
|||
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
|
|||
|
|||
For more features, controls, and fast professional support, |
|||
pick up the Plus Edition at http://xceed.com/wpf_toolkit
|
|||
|
|||
Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids
|
|||
|
|||
***********************************************************************************/ |
|||
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Collections.ObjectModel; |
|||
using System.Collections; |
|||
|
|||
namespace Xceed.Wpf.DataGrid |
|||
{ |
|||
// We re-implement IList and IList<object> to override the implementation of the
|
|||
// IndexOf and Contains methods to use our optimized way.
|
|||
internal class OptimizedReadOnlyObservableCollection : ReadOnlyObservableCollection<object>, IList, IList<object> |
|||
{ |
|||
#region CONSTRUCTORS
|
|||
|
|||
public OptimizedReadOnlyObservableCollection( DataGridCollectionViewGroup dataGridCollectionViewGroup ) |
|||
: base( dataGridCollectionViewGroup.ProtectedItems ) |
|||
{ |
|||
if( dataGridCollectionViewGroup == null ) |
|||
throw new ArgumentNullException( "dataGridCollectionViewGroup" ); |
|||
|
|||
m_dataGridCollectionViewGroup = dataGridCollectionViewGroup; |
|||
} |
|||
|
|||
#endregion CONSTRUCTORS
|
|||
|
|||
#region "Newed" Methods
|
|||
|
|||
public new int IndexOf( object item ) |
|||
{ |
|||
// The DataGridCollectionViewGroup has been optimized to use the information
|
|||
// stored on the RawItem associated with the data item instead of searching
|
|||
// the item in the list.
|
|||
return m_dataGridCollectionViewGroup.IndexOf( item ); |
|||
} |
|||
|
|||
public new bool Contains( object item ) |
|||
{ |
|||
// The DataGridCollectionViewGroup has been optimized to use the information
|
|||
// stored on the RawItem associated with the data item instead of searching
|
|||
// the item in the list.
|
|||
return m_dataGridCollectionViewGroup.Contains( item ); |
|||
} |
|||
|
|||
#endregion "Newed" Methods
|
|||
|
|||
#region PRIVATE FIELDS
|
|||
|
|||
private DataGridCollectionViewGroup m_dataGridCollectionViewGroup; |
|||
|
|||
#endregion PRIVATE FIELDS
|
|||
} |
|||
} |
|||
@ -0,0 +1,159 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<data name="DetailsCategory" xml:space="preserve"> |
|||
<value>Détails</value> |
|||
</data> |
|||
<data name="FavoriteActor1" xml:space="preserve"> |
|||
<value>Acteur favori 1 (aucun DisplayName)</value> |
|||
</data> |
|||
<data name="FavoriteActor1Desc" xml:space="preserve"> |
|||
<value>Le type de cette propriété est un enum où les valeurs n'ont aucun attribut "DisplayName". Les valeurs affichées sont retournées par la méthode ToString().</value> |
|||
</data> |
|||
<data name="FavoriteActor2" xml:space="preserve"> |
|||
<value>Acteur favori 2 (avec DisplayName)</value> |
|||
</data> |
|||
<data name="FavoriteActor2Desc" xml:space="preserve"> |
|||
<value>Le type de cette propriété est un enum où les valeurs sont décorés avec l'attribut "DisplayName". Les valeurs affichées sont celles spécifiées par l'attribut ExtendedDisplayName.</value> |
|||
</data> |
|||
<data name="FavoriteActor3" xml:space="preserve"> |
|||
<value>Acteur favori 3</value> |
|||
</data> |
|||
<data name="FavoriteActor3Desc" xml:space="preserve"> |
|||
<value>La valeur "(Non proposé)" démontre que les valeurs des enums peuvent aussi être localisées.</value> |
|||
</data> |
|||
<data name="FirstName" xml:space="preserve"> |
|||
<value>Prénom</value> |
|||
</data> |
|||
<data name="FirstNameDesc" xml:space="preserve"> |
|||
<value>Prénom de la personne</value> |
|||
</data> |
|||
<data name="InfoCategory" xml:space="preserve"> |
|||
<value>Information</value> |
|||
</data> |
|||
<data name="LastName" xml:space="preserve"> |
|||
<value>Nom de famille</value> |
|||
</data> |
|||
<data name="LastNameDesc" xml:space="preserve"> |
|||
<value>Le nom de famille de la personne</value> |
|||
</data> |
|||
<data name="NotListed" xml:space="preserve"> |
|||
<value>(Non proposé)</value> |
|||
</data> |
|||
</root> |
|||
@ -0,0 +1,159 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<data name="DetailsCategory" xml:space="preserve"> |
|||
<value>Details</value> |
|||
</data> |
|||
<data name="FavoriteActor1" xml:space="preserve"> |
|||
<value>Favorite actor 1 (no DisplayName)</value> |
|||
</data> |
|||
<data name="FavoriteActor1Desc" xml:space="preserve"> |
|||
<value>This property's type is an enum whose values have no DisplayName attributes. These values displayed are provided by the ToString() method.</value> |
|||
</data> |
|||
<data name="FavoriteActor2" xml:space="preserve"> |
|||
<value>Favorite actor 2 (with DisplayName)</value> |
|||
</data> |
|||
<data name="FavoriteActor2Desc" xml:space="preserve"> |
|||
<value>This property's type is an enum whose values are decorated with the ExtendedDisplayName attribute. Combined with the EnumDisplayNameConverter, this allows display values to be customized.</value> |
|||
</data> |
|||
<data name="FavoriteActor3" xml:space="preserve"> |
|||
<value>Favorite actor 3</value> |
|||
</data> |
|||
<data name="FavoriteActor3Desc" xml:space="preserve"> |
|||
<value>"(Not listed)" enum value shows that enum values can also be localized.</value> |
|||
</data> |
|||
<data name="FirstName" xml:space="preserve"> |
|||
<value>First name</value> |
|||
</data> |
|||
<data name="FirstNameDesc" xml:space="preserve"> |
|||
<value>First name of that person</value> |
|||
</data> |
|||
<data name="InfoCategory" xml:space="preserve"> |
|||
<value>Information</value> |
|||
</data> |
|||
<data name="LastName" xml:space="preserve"> |
|||
<value>Last name</value> |
|||
</data> |
|||
<data name="LastNameDesc" xml:space="preserve"> |
|||
<value>Usually the familly name of the person</value> |
|||
</data> |
|||
<data name="NotListed" xml:space="preserve"> |
|||
<value>(Not listed)</value> |
|||
</data> |
|||
</root> |
|||
@ -0,0 +1,34 @@ |
|||
/*************************************************************************************** |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2007-2014 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Public |
|||
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license |
|||
|
|||
For more features, controls, and fast professional support, |
|||
pick up the Plus Edition at http://xceed.com/wpf_toolkit |
|||
|
|||
Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids |
|||
|
|||
************************************************************************************/ |
|||
|
|||
using System.Collections.ObjectModel; |
|||
using System.Collections.Specialized; |
|||
using System.Windows; |
|||
using System.Windows.Data; |
|||
namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.FilePicker.Views |
|||
{ |
|||
/// <summary> |
|||
/// Interaction logic for FilePickerView.xaml |
|||
/// </summary> |
|||
public partial class FilePickerView : DemoView |
|||
{ |
|||
public FilePickerView() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,58 @@ |
|||
<!--************************************************************************************* |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2007-2014 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Public |
|||
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license |
|||
|
|||
For more features, controls, and fast professional support, |
|||
pick up the Plus Edition at http://xceed.com/wpf_toolkit |
|||
|
|||
Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids |
|||
|
|||
***********************************************************************************--> |
|||
<local:DemoView x:Class="Xceed.Wpf.Toolkit.LiveExplorer.Samples.FilePicker.Views.FilePickerView" |
|||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:local="clr-namespace:Xceed.Wpf.Toolkit.LiveExplorer" |
|||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" |
|||
xmlns:conv="clr-namespace:Xceed.Wpf.Toolkit.Core.Converters;assembly=Xceed.Wpf.Toolkit" |
|||
xmlns:sample="clr-namespace:Xceed.Wpf.Toolkit.LiveExplorer.Samples.FilePicker.Views" |
|||
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
|||
Title="FilePicker"> |
|||
<local:DemoView.Description> |
|||
<Paragraph FontSize="14" |
|||
FontFamily="Segoe"> |
|||
<Run>The FilePicker is a control that can be used to select one or more files in a browsing window.</Run> |
|||
<LineBreak /> |
|||
<LineBreak /> |
|||
<Run>This feature is only available in the "Plus" version.</Run> |
|||
<LineBreak /> |
|||
<Hyperlink NavigateUri="http://www.xceed.com/Extended_WPF_Toolkit_Intro.html" RequestNavigate="Hyperlink_RequestNavigate"> |
|||
Click here for more details about Xceed Extended WPF Toolkit Plus. |
|||
</Hyperlink> |
|||
</Paragraph> |
|||
</local:DemoView.Description> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
<Image Source="..\OpenSourceImages\FilePicker.png" Width="600" Height="400"/> |
|||
</local:DemoView> |
|||
File diff suppressed because it is too large
File diff suppressed because it is too large
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue